[tor-bugs] #27247 [Core Tor/Tor]: Clients are using RAM for cached_dir_t

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Sep 7 23:53:39 UTC 2018


#27247: Clients are using RAM for cached_dir_t
-------------------------------------------------+-------------------------
 Reporter:  nickm                                |          Owner:  nickm
     Type:  defect                               |         Status:
                                                 |  accepted
 Priority:  Medium                               |      Milestone:  Tor:
                                                 |  0.3.5.x-final
Component:  Core Tor/Tor                         |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  035-roadmap-master, 035-triaged-     |  Actual Points:
  in-20180711                                    |
Parent ID:  #27243                               |         Points:
 Reviewer:                                       |        Sponsor:
                                                 |  Sponsor8
-------------------------------------------------+-------------------------
Changes (by nickm):

 * owner:  ahf => nickm
 * status:  assigned => accepted


Comment:

 This turns out to be an extremely simple patch, if we try to do the simple
 version of this code.  See branch ticket27247 ; PR at
 https://github.com/torproject/tor/pull/310

 Teor, could you review this?  It reverts part of a commit that you made in
 2016, and I'm hoping you'll be able to tell me if I'm about to break
 something here.

 I've opened #27563 for a fancier way to save this memory on directory
 caches.  The remaining ticket (#27244) is not in fact redundant: we could
 use mmap here instead of read_file_to_string, but we'd need to refactor
 other things.

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


More information about the tor-bugs mailing list