<div dir="ltr">That depends on how tor is started and have different origins. What i know:<div>* if started by systemd: the limit can be specified in the service descripton file /lib/systemd/system/tor@default.service: => LimitNOFILE=xxxx</div><div>* if started by init: usually pam/security will be applied => using limits.conf and propagated by pam: /etc/pam.d/common-*</div><div><br></div><div>There are probably also other paths.</div><div><br></div><div>Regards</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, 15 Dec 2017 at 11:03 Ralph Seichter <<a href="mailto:m16%2Btor@monksofcool.net">m16+tor@monksofcool.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 15.12.2017 10:45, r1610091651 wrote:<br>
<br>
> could be that your tuning is not being picked up by the distro.<br>
<br>
Looks like you are right:<br>
<br>
# cat /proc/3534/limits<br>
Limit Soft Limit Hard Limit Units<br>
Max cpu time unlimited unlimited seconds<br>
Max file size unlimited unlimited bytes<br>
Max data size unlimited unlimited bytes<br>
Max stack size 8388608 unlimited bytes<br>
Max core file size 0 unlimited bytes<br>
Max resident set unlimited unlimited bytes<br>
Max processes 3969 3969 processes<br>
Max open files 4096 4096 files<br>
Max locked memory 65536 65536 bytes<br>
Max address space unlimited unlimited bytes<br>
Max file locks unlimited unlimited locks<br>
Max pending signals 3969 3969 signals<br>
Max msgqueue size 819200 819200 bytes<br>
Max nice priority 0 0<br>
Max realtime priority 0 0<br>
Max realtime timeout unlimited unlimited us<br>
<br>
Only 4096 open files max. I did not expect that, because of<br>
<br>
tor $ ulimit -n<br>
65535<br>
tor $ cat /proc/sys/fs/file-max<br>
101300<br>
<br>
What part of the system's configuration could cause the 4096 open files<br>
limit, overriding the 65535 I specified in limits.conf?<br>
<br>
-Ralph<br>
_______________________________________________<br>
tor-relays mailing list<br>
<a href="mailto:tor-relays@lists.torproject.org" target="_blank">tor-relays@lists.torproject.org</a><br>
<a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays" rel="noreferrer" target="_blank">https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays</a><br>
</blockquote></div>