Hello,
I just installed a new relay in a fresh FreeBSD installation.
The relay starts fine, except for a warning that I don't understand.
Then it dies all of a sudden. The time before it dies is different every time.
I have googled for the warnings but could not find anything.
Does anyone here know what is going on?
Tor 0.3.1.4-alpha (git-fab91a290ded3e74) running on FreeBSD with Libevent 2.1.8-stable, OpenSSL 1.0.2j-freebsd, Zlib 1.2.8, Liblzma N/A, and Libzstd N/A.
Jul 12 23:44:24.672 [warn] You appear to lack permissions to change memory limits. Are you root? Jul 12 23:44:24.672 [warn] Unable to raise RLIMIT_MEMLOCK: Operation not permitted ....
Jul 12 23:44:29.000 [notice] Self-testing indicates your ORPort is reachable from the outside. Excellent. Jul 12 23:44:30.000 [err] Out of memory on realloc(). Dying.
It's the tor-devel version installed from ports.
Thanks in advance.
Farid Joubbi wrote:
Jul 12 23:44:24.672 [warn] You appear to lack permissions to change memory limits. Are you root? Jul 12 23:44:24.672 [warn] Unable to raise RLIMIT_MEMLOCK: Operation not permitted
Read about login classes. Starting points:
man login.conf man cap_mkdb man chfn
Thanks for pointing me in the right direction!
The 128M for daemon processes was too low. I added this in /etc/login.conf: _tor:\ :memorylocked=unlimited:\ :tc=default:
The warnings are gone and the process is not dying anymore. Maybe I should tinker and find a value better than unlimited...
________________________________________ From: tor-relays tor-relays-bounces@lists.torproject.org on behalf of Alexander Nasonov alnsn@yandex.ru Sent: 13 July 2017 00:46 To: tor-relays@lists.torproject.org Subject: Re: [tor-relays] Tor relay dying in FreeBSD
Farid Joubbi wrote:
Jul 12 23:44:24.672 [warn] You appear to lack permissions to change memory limits. Are you root? Jul 12 23:44:24.672 [warn] Unable to raise RLIMIT_MEMLOCK: Operation not permitted
Read about login classes. Starting points:
man login.conf man cap_mkdb man chfn
-- Alex _______________________________________________ tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
On 14 Jul 2017, at 02:47, Farid Joubbi joubbi@kth.se wrote:
Thanks for pointing me in the right direction!
The 128M for daemon processes was too low. I added this in /etc/login.conf: _tor:\ :memorylocked=unlimited:\ :tc=default:
The warnings are gone and the process is not dying anymore. Maybe I should tinker and find a value better than unlimited…
On a large (300 Mbps) exit on Linux, 1-1.5GB RAM is reasonable. On a non-exit or smaller exit relay, you may be able to get away with 500-750 MB.
But it's best to allow more so your relay doesn't die the moment it gets a load spike.
T
-- Tim Wilson-Brown (teor)
teor2345 at gmail dot com PGP C855 6CED 5D90 A0C5 29F6 4D43 450C BA7F 968F 094B ricochet:ekmygaiu4rzgsk6n xmpp: teor at torproject dot org ------------------------------------------------------------------------
tor-relays@lists.torproject.org