Date: Mon, 12 Nov 2012 16:12:10 -0800 From: Julian Elischer <julian@freebsd.org> To: Adrian Chadd <adrian@freebsd.org> Cc: StevenSears <Steven.Sears@netapp.com>, Alan Cox <alc@rice.edu>, alc@freebsd.org, "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>, Sushanth Rai <sushanth_rai@yahoo.com>, pho@freebsd.org, Konstantin Belousov <kostikbel@gmail.com> Subject: Re: Memory reserves or lack thereof Message-ID: <50A1905A.6020406@freebsd.org> In-Reply-To: <CAJ-Vmokb6kbvd4EXsQh1hVvPQ44WXwg6ZOCROMPZadskjL_nxg@mail.gmail.com> References: <20121112133638.GZ73505@kib.kiev.ua> <1352755682.93266.YahooMailClassic@web181701.mail.ne1.yahoo.com> <20121112214808.GH73505@kib.kiev.ua> <50A181C9.7030209@rice.edu> <CAJ-Vmomn1X2XRHvY4RV=yfy5QukH9BT%2BWhCZNUKjcypCGmbCQw@mail.gmail.com> <50A185B0.3030309@rice.edu> <CAJ-Vmokb6kbvd4EXsQh1hVvPQ44WXwg6ZOCROMPZadskjL_nxg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11/12/12 3:49 PM, Adrian Chadd wrote:
> On 12 November 2012 15:26, Alan Cox <alc@rice.edu> wrote:
>> On 11/12/2012 5:24 PM, Adrian Chadd wrote:
>>> .. wait, so what exactly would the difference be between M_NOWAIT and
>>> M_WAITOK?
>>
>> Whether or not the allocation can sleep until memory becomes available.
> Ok, so we're still maintaining that particular behaviour. Cool.
no mem | mem avail
----------------------------------------------
M_WAITOK | wait, then success | success |
----------------------------------------------
M_NOWAIT | returns failure | success |
----------------------------------------------
the question is whether the top left can ever fail for any other reason.
>
>
>
> Adrian
> _______________________________________________
> 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?50A1905A.6020406>
