Date: Sun, 26 Jul 2020 22:24:38 +0200 From: Polytropon <freebsd@edvax.de> To: Valeri Galtsev <galtsev@kicp.uchicago.edu> Cc: freebsd-questions@freebsd.org Subject: Re: Ask stupid questions and you'll get a stupid answers, was: Technological advantages over Linux Message-ID: <20200726222438.719b77cf.freebsd@edvax.de> In-Reply-To: <27ca8c6c-6b06-6ad4-7af0-2b88f51a3856@kicp.uchicago.edu> References: <CAEJNuHxC7i%2Bq7cq65=my6mJZDdiK4gpQsKjMU1nvsm=Ri4On%2Bg@mail.gmail.com> <ce61b5e9-b71c-e5b7-c64d-f79884c87435@watters.ws> <20200725152412.GJ92589@admin.sibptus.ru> <CAGBxaX=Ktr-pqtT8FU37ajkYonVLYT_WhSenn23Tj5b=i0d-8g@mail.gmail.com> <20200725162403.GA4721@admin.sibptus.ru> <CAGBxaXmBZcCWqAZFR9OSyRGrqGFU%2BqCAZ8CfOi=0oXAmf-2=tA@mail.gmail.com> <20200725182554.deffc63058a7c9f6d343ef06@sohara.org> <04df312d-9b2b-1873-2117-79a49e089bd9@kicp.uchicago.edu> <20200726063256.GA22924@admin.sibptus.ru> <20200726093909.ee5e14e643d31da4dad5c804@sohara.org> <20200726151835.GA35966@admin.sibptus.ru> <27ca8c6c-6b06-6ad4-7af0-2b88f51a3856@kicp.uchicago.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 26 Jul 2020 10:39:16 -0500, Valeri Galtsev wrote: > > > On 7/26/20 10:18 AM, Victor Sudakov wrote: > > Steve O'Hara-Smith wrote: > >> > >>> FreeBSD freezes, then kills some innocent random processes like > >>> local_unbound, then it may slowly recover. Sometimes it guesses > >>> correctly and kills the offender (firefox most often). > >> > >> What else would you have it do ? Kill the largest process ? Kill > >> the last process to call malloc ? There is no good response to OOM. The OS > >> has no way to know which processes you care about most. > > > > I agree, Steve. Killing a process is a bad thing always. And it's not always the "best thing" to do: If a process is killed for whatever reason, a parent process might think it is a good idea to spawn a new process that then starts to behave the same way the killed process did. > I must confess, > these are decently large RAM machines. No swap on servers and > workstation. Swap of the same size as RAM (16GB) on laptop. And I still > do not consider myself lucky. Because disk space is cheap today, I tend to create swap partitions everywhere. If they aren't used - fine. But in a case where swap space is expected, due to "memory is full" or "I want to write a core file", it doesn't harm, and in worst case it can be ignored. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200726222438.719b77cf.freebsd>