Subject: Re: NetBSD1.6 UVM problem?
To: None <tech-kern@netbsd.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-kern
Date: 12/09/2002 08:31:13
> I've never understood why a process that is behaving could randomly
> get killed.

> Doesn't it make more sense to simply return ENOMEM to the process
> requesting memory, and let -it- deal with the problem?

Yes, but that's not always possible.  There isn't always a channel
avialable to return ENOMEM, and when there is, it isn't always easy to
take advantage of it.

The worst case is perhaps when you're out of RAM servicing a page
fault.  There simply is no way to tell a process "I'm sorry, you get
ENOMEM instead of that page your PC is pointing into".

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML	       mouse@rodents.montreal.qc.ca
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B