Can contigmalloc(9) fail even when M_NOWAIT is *not* specified?
Conrad Meyer
cem at freebsd.org
Mon Jul 9 08:14:13 UTC 2018
Yes.
On Sun, Jul 8, 2018 at 11:21 PM, Pratyush Yadav <pratyush at 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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
More information about the freebsd-hackers
mailing list