<div dir="ltr">Hi David,<div><br></div><div>thank you very much for your hints - i got now a better picture on how this could work on my ubuntu relay. Very interesting infos - thanks!</div><div>I've setup some tweaks now - lets see how it works.</div>
<div>If you are interested what i have did and if it helped - just let me know - i will drop you a message in a week or two.</div><div><br></div><div>Thanks!</div><div>Geri</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2014-02-01 David Stainton <span dir="ltr"><<a href="mailto:dstainton415@gmail.com" target="_blank">dstainton415@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Geri!<br>
<br>
You may adjust the Linux OOM killer's settings on a per process basis<br>
with the proc fs; see here:<br>
<a href="http://askubuntu.com/questions/60672/how-do-i-use-oom-score-adj" target="_blank">http://askubuntu.com/questions/60672/how-do-i-use-oom-score-adj</a><br>
<br>
If you have multiple numa cores then it also might be helpful to set<br>
the process to use numa interleaved memory<br>
instead of just it's local numa memory bank... see numactl for more<br>
information about that. Jeremy Cole wrote<br>
an interesting article about tuning mysql with numactl a while back.<br>
<br>
Some people advise keeping a sacrificial lamb process that gets<br>
oom-killed first.<br>
<br>
Also I always like to disable swap completely (e.g. swapoff -a)... but<br>
sometimes I meet sys admins that<br>
try to argue that having some swap is a good idea; i am not convinced.<br>
swap is so 1992.<br>
<br>
I didn't explain everything or go into all the details here... so feel<br>
free to ask me questions if you have some<br>
problems or if something is unclear.<br>
<br>
Cheers!<br>
<br>
David<br>
<div><div class="h5"><br>
<br>
On Sat, Feb 1, 2014 at 12:41 PM, toxi roxi <<a href="mailto:toxiroxi@gmail.com">toxiroxi@gmail.com</a>> wrote:<br>
> Hi Folks,<br>
><br>
> im running many relays which are doing a nice job. But i have also some<br>
> smaller relays outside which have just 256mb.<br>
> They are performing quite quell - but on one relay im facing issues which i<br>
> think you may help me.<br>
><br>
> this relay seems to ran out of memory from time to time (2 to 5 days) and i<br>
> found out via dmesg, that ubuntu itself is killing the process to free up<br>
> memory.<br>
> the swap is used, but far away from full.<br>
><br>
> as this stops tor immediately its bit annoying that i need to restart the<br>
> releay without any reason.<br>
><br>
> is there any way to tell ubuntu or to prevent that the tor process is killed<br>
> for freeing up memory?<br>
><br>
> i dont care about other processes as this machine is for tor purposes only.<br>
><br>
> thanks for your expertise!<br>
> Geri<br>
><br>
</div></div>> _______________________________________________<br>
> tor-relays mailing list<br>
> <a href="mailto:tor-relays@lists.torproject.org">tor-relays@lists.torproject.org</a><br>
> <a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays" target="_blank">https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays</a><br>
><br>
_______________________________________________<br>
tor-relays mailing list<br>
<a href="mailto:tor-relays@lists.torproject.org">tor-relays@lists.torproject.org</a><br>
<a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays" target="_blank">https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays</a><br>
</blockquote></div><br></div>