[tor-bugs] #1790 [Tor - Relay]: Count bytes spent on answering directory requests

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Fri Aug 6 06:57:06 UTC 2010


#1790: Count bytes spent on answering directory requests
-------------------------+--------------------------------------------------
 Reporter:  karsten      |       Owner:  karsten     
     Type:  enhancement  |      Status:  needs_review
 Priority:  normal       |   Milestone:              
Component:  Tor - Relay  |     Version:              
 Keywords:               |      Parent:              
-------------------------+--------------------------------------------------

Comment(by karsten):

 Still far more bytes read than written:

 {{{
 BWHistoryDirReadEnds 2010-08-06 06:48:10
 BWHistoryDirReadValues 12288,3046400,8133632,14726144,19582976,22445056,
 24411136,22467584,24254464,24261632,21853184,29230080,31928320,33859584,
 26002432,35966976,31826944,30321664,38299648,30172160,30070784,29010944,
 31027200,34312192,33003520,29108224,24442880,26138624,27737088,30773248,
 20355072,21350400,21373952,21355520,18140160,16589824,18079744,14092288,
 16784384,17646592,15721472,16871424,13120512,16904192,12439552,16291840,
 14654464,14429184,14314496,15229952,10378240,12633088,13803520,17124352,
 13905920,13348864,15665152,18242560,15900672,20761600,23213056,29303808,
 23517184,20302848,16098304,19204096,17095680,15508480,17684480,16966656,
 16137216,13243392,13696000,14605312,13999104,12584960,12645376,16165888,
 13488128,14565376,15346688,19612672,15410176,16740352,18549760,15300608,
 15569920,15515648,3056949
 BWHistoryDirWriteEnds 2010-08-06 06:33:10
 BWHistoryDirWriteValues 0,0,258048,359424,371712,338944,593920,696320,
 855040,1366016,675840,771072,1018880,793600,1007616,750592,1458176,526336,
 299008,763904,693248,636928,875520,494592,1142784,1075200,666624,787456,
 842752,806912,864256,311296,642048,493568,1039360,126976,771072,668672,
 419840,390144,805888,850944,452608,351232,274432,678912,370688,411648,
 544768,168960,589824,550912,504832,228352,288768,371712,234496,258048,
 178176,196608,338944,168960,66560,569344,385024,388096,229376,199680,
 378880,455680,282624,482304,455680,409600,218112,363520,484352,286720,
 455680,273408,407552,344064,500736,249856,796672,382976,253952,440754
 }}}

 Could it be that local directory connections are special in the sense that
 connection_buckets_decrement() doesn't get called when writing to them?

 For example, in _connection_write_to_buf_impl(), there's a line "return;
 /* no need to try flushing */" before connection_handle_write() gets
 called which in turn calls connection_buckets_decrement().

 Or am I missing something else?

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1790#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list