Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 May 2009 01:56:39 -0500
From:      Rayson Ho <raysonlogin@gmail.com>
To:        yuri@rawbw.com
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Why kernel kills processes that run out of memory instead of just failing memory allocation system calls?
Message-ID:  <73a01bf20905202356t5fd65eb5n7ec97f6c318e6045@mail.gmail.com>
In-Reply-To: <4A14F58F.8000801@rawbw.com>
References:  <4A14F58F.8000801@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?73a01bf20905202356t5fd65eb5n7ec97f6c318e6045>