Ask stupid questions and you'll get a stupid answers, was: Technological advantages over Linux
Valeri Galtsev
galtsev at kicp.uchicago.edu
Sun Jul 26 15:39:26 UTC 2020
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.
> AFAIK the Linux OOM killer uses multiple weighted criteria to decide
> which process to kill. Each process has an oom_score showing its
> eligibility to be killed.
>
My understanding of Linux OOM killer lies along same lines though my
understanding is much more simplified: kill minimal number of processes
to recover maximum amount of resources. Another speculative way to say
it would be: process owning maximum amount of RAM that keeps allocating
more RAM is first candidate.
> So at least Linux attemps intelligent killing. What about FreeBSD?
>
Yes, but still I have to admit: killing a process is a bad thing. But
under some circumstances it is better than system unresponsive for long
time. In first case you can investigate logs of what process was killed
etc. In second case if you had to press power button...
That said, I never had any of my FreeBSD machines unresponsive. And that
refers to a bunch of servers with dozens of jails, my workstation, my
laptop. That probably is why I am so ignorant about Out Of Memory
situation handling by FreeBSD. Never happened to me. 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.
Valeri
--
++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++
More information about the freebsd-questions
mailing list