Re: [PATCH] [Request for inclusion] Filesystem in Userspace

From: Jan Hudec
Date: Wed Dec 01 2004 - 02:18:45 EST


On Tue, Nov 30, 2004 at 22:13:27 +0100, Miklos Szeredi wrote:
>
> > you're describing the deadlock here: all memory is full, no process
> > which allocates memory can make any progress.
>
> Yes they, can: the allocation will fail, function will return -ENOMEM,
> malloc will return NULL, pagefault will fail with OOM. This is
> progress, though not the best sort. It is most certainly _not_ a
> deadlock.

Allocation won't fail! There's overcommit! Pagefault won't OOM, because
it will wait for the pages to get laundered. And the pages won't get
laundered untill the pagefault suceeds. (Yes, I know that you are going
to mark the pages as dirty again so the pagefault won't wait for them,
but you have to mention it.)

-------------------------------------------------------------------------------
Jan 'Bulb' Hudec <bulb@xxxxxx>

Attachment: signature.asc
Description: Digital signature