Why kernel kills processes that run out of memory instead of just failing memory allocation system calls?

Rayson Ho raysonlogin at gmail.com
Thu May 21 07:19:20 UTC 2009


Because the kernel is lazy!!

You can google for "lazy algorithm", or find an OS internals book and
read about the advantages of doing it this way...

Rayson



On Thu, May 21, 2009 at 1:32 AM, Yuri <yuri at rawbw.com> wrote:
> Seems like failing system calls (mmap and sbrk) that allocate memory is more
> graceful and would allow the program to at least issue the reasonable error
> message.
> And more intelligent programs would be able to reduce used memory instead of
> just dying.
>
> Yuri
>
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>


More information about the freebsd-hackers mailing list