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

Jan Hudec
2004-12-01T07:17:35Z

[-- Attachment #1: Type: text/plain, Size: 861 bytes --]

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@ucw.cz>

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]