Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Apr 1999 21:08:57 -0400 (EDT)
From:      Brian Feldman <green@unixhelp.org>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        Mikhail Teterin <mi@kot.ne.mediaone.net>, current@FreeBSD.ORG
Subject:   Re: swap-related problems 
Message-ID:  <Pine.BSF.4.10.9904142107440.83269-100000@janus.syracuse.net>
In-Reply-To: <771.924103059@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help

On Wed, 14 Apr 1999, Poul-Henning Kamp wrote:

> In message <199904141501.LAA25847@kot.ne.mediaone.net>, Mikhail Teterin writes:
> >Poul-Henning Kamp once stated:
> >
> >=malloc() on FreeBSD returns NULL when it cannot allocate the memory
> >=asked for.
> >
> >=If you have an example where this is not the case I would VERY
> >=much like to see it.
> >
> >I believe, a number of examples were given, when the use of the non-NULL
> >pointer returned by malloc resulted in the program being killed.
> 
> No, the examples I have seen showed the system killing a (somewhat)
> random large process in an attempt to avoid deadlock.
> 
> I guess you can interpret it the way above if you insist on using a
> very narrow application oriented focus.
> 
> Ignoring the larger issues is not a modus operandi I subscribe to.
> 
> Anyway, what you're asking for is really resource reservation.
> 
> Sorry FreeBSD doesn't support resource reservation for memory.

mlock()? BTW, why can't anyone explain why the old behavior WAS THAT
the process would get NULL? Now it's this...

> 
> --
> Poul-Henning Kamp             FreeBSD coreteam member
> phk@FreeBSD.ORG               "Real hackers run -current on their laptop."
> FreeBSD -- It will take a long time before progress goes too far!
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-current" in the body of the message
> 

 Brian Feldman                _ __ ___ ____  ___ ___ ___  
 green@unixhelp.org                _ __ ___ | _ ) __|   \ 
     FreeBSD: The Power to Serve!      _ __ | _ __ \ |) |
         http://www.freebsd.org           _ |___/___/___/ 



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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9904142107440.83269-100000>