Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jul 2018 23:43:55 -0700
From:      Conrad Meyer <cem@freebsd.org>
To:        Pratyush Yadav <pratyush@freebsd.org>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Re: Can contigmalloc(9) fail even when M_NOWAIT is *not* specified?
Message-ID:  <CAG6CVpWsbOswYp5w5eMtcMHRrn_9tnw5dCC=U0Kkcw7gkqkDEQ@mail.gmail.com>
In-Reply-To: <CA%2BX=3T%2BBbcfY1BFGze=scxXFNPkh7Pn-Qx1kKGURi00adHCquw@mail.gmail.com>
References:  <CA%2BX=3T%2BBbcfY1BFGze=scxXFNPkh7Pn-Qx1kKGURi00adHCquw@mail.gmail.com>

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

On Sun, Jul 8, 2018 at 11:21 PM, Pratyush Yadav <pratyush@freebsd.org> wrote:
> Hi,
>
> The contigmalloc(9) man page says:
>
>> The contigmalloc() function does not sleep waiting for memory resources
>> to be freed up, but instead actively reclaims pages before giving up.
>> However, unless M_NOWAIT is specified, it may select a page for reclama-
>> tion that must first be written to backing storage, causing it to sleep.
>
> So if M_NOWAIT is *not* specified, can contigmalloc() "give up", and
> return NULL?
>
> --
> Regards,
> Pratyush Yadav
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> https://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?CAG6CVpWsbOswYp5w5eMtcMHRrn_9tnw5dCC=U0Kkcw7gkqkDEQ>