Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Sep 1999 01:37:50 +0900
From:      "Daniel C. Sobral" <dcs@newsguy.com>
To:        Ivan <Ivan.Djelic@prism.uvsq.fr>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Out of swap handling and X lockups in 3.2R
Message-ID:  <37E905DE.7ACBDD7A@newsguy.com>
References:  <Pine.SUN.3.95.990922174139.961A-100000@bonnard.prism.uvsq.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
Ivan wrote:
> 
> Of course I didn't mean that malloc() calls the pageout daemon ... I
> simply meant that if no more memory space can be regained (in particular
> by killing a process) then at some point memory allocations will be
> refused -- or else, when does malloc() ever returns NULL ?!

When per-process limits have been reached.

> Or even simply send SIGTERM for instance before SIGKILL ... at least,
> that would be understood by many processes (such as the X server).

When the time comes to do a SIGKILL, nothing else should be used.
There is +NO+ memory free. A SIGTERM under these circunstances can
led to a deadlock (or else require disgustingly complex code).

--
Daniel C. Sobral			(8-DCS)
dcs@newsguy.com
dcs@freebsd.org

	"Thus, over the years my wife and I have physically diverged. While
I have zoomed toward a crusty middle-age, she has instead clung
doggedly to the sweet bloom of youth. Naturally I think this unfair.
Yet, if it was the other way around, I confess I wouldn't be happy
either."


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37E905DE.7ACBDD7A>