I run a tor relay on a Raspberry Pi, with ramdisk e.g. used for /var/lib/tor
and some other folders that see lots of data written, so that the SD card does not see too many writes.
No the folder /var/lib/tor
sees more and more data stored, until the ramdisk is full and tor stops working.
My tor version is 0.4.2.7, I've recenty upgraded from an older version (based on debian stretch
). I've not seen this problem before the upgrade.
Is it possible to avoid that Tor uses so much space? Here are the biggest files and folders:
/var/lib/tor/diff-cache 75M
/var/lib/tor/cached-descriptors 60M
/var/lib/tor/cached-descriptors.new 27M
/var/lib/tor/keys 11M
Update (2020-04-21):
So my settings are now:
DirPort 9030 # unchanged
DirCache 0 # new
I received once the log message:
[warn] DirCache is disabled and we are configured as a relay. We will not become a Guard
The V2DIR
flag for my relay on Tor Metrics is gone now.
I'll wait how the folder /var/lib/tor
fills up and report the results here.
Update (2020-04-22):
The memory usage in folder /var/lib/tor
seems to be stable at 75M (for two days now), so tor
keeps running without running out of space.