Can contigmalloc(9) fail even when M_NOWAIT is *not* specified?
Pratyush Yadav
pratyush at freebsd.org
Mon Jul 9 06:27:09 UTC 2018
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
More information about the freebsd-hackers
mailing list