[tor-bugs] #4848 [Tor Relay]: Prealloc disk space for descriptors files
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Fri Jan 6 12:38:07 UTC 2012
#4848: Prealloc disk space for descriptors files
-------------------------+--------------------------------------------------
Reporter: tmpname0901 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Tor: 0.2.2.x-final
Component: Tor Relay | Version: Tor: 0.2.2.35
Keywords: perf | Parent:
Points: | Actualpoints:
-------------------------+--------------------------------------------------
When I defrag my hard disk in Windows (NTFS filesystem) I usually see that
the file cached-descriptors.new is in several hundred fragments on the
disk. This while running a relay.
This can't be good for performance. I suggest preallocating the file of
cached-descriptors.new, possibly using the size of cached-descriptors + 5%
as a guide to the initial size of the newer file.
Those of who still have spinning media will thank you.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/4848>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list