[tor-relays] Tor memory leak (

starlight.2018q2 at binnacle.cx starlight.2018q2 at binnacle.cx
Mon Jun 24 05:49:18 UTC 2019


No leaks.  The VM has 1GB, very light for moderate busy relay.

Should be 4GB, perhaps 3DB would do.  Settings should include:

AvoidDiskWrites 1
DisableAllSwap 1
MaxMemInQueues 1024MB    # perhaps 1536MB

My relays run about 800MB to 1.2GB.  A nice way to view memory
usage is with 

   egrep '^Vm' /proc/$(cat /var/run/tor.pid)/status

which might show something like

   VmPeak:   871696 kB
   VmSize:   710152 kB
   VmLck:    710148 kB
   VmHWM:    810872 kB
   VmRSS:    649328 kB
   VmData:   492052 kB
   VmStk:        93 kB
   VmExe:      4704 kB
   VmLib:    104724 kB
   VmPTE:      1044 kB

Notice that current VmSize usage is less than VmPeak,
indicating that memory was release by glibc malloc.

Tor consumes substantial skbuf memory in the kernel, which
accounts for some of the difference in reported size for
VmRSS and VmSize and total memory consumption.

More information about the tor-relays mailing list