Re: VM in 2.4.7-pre hurts...

From: Linus Torvalds (torvalds@transmeta.com)
Date: Mon Jul 09 2001 - 11:20:41 EST


On Mon, 9 Jul 2001, Mike Galbraith wrote:
>
> I'm running oom whether I have swap enabled or not. The inactive
> dirty list starts growing forever, until it's full of (aparantly)
> dirty pages and I'm utterly oom.

Does it help if you just remove the

        if (atomic_read(&page->count) > 2)
                goto out;

from shmem_writepage()?

It _shouldn't_ matter (because writepage() should only be called with
inactive pages anyway), but your problem certainly sounds like your
inactive dirty list is not able to write out shmfs pages.

Note that if you don't have swap, you're screwed anyway. You just don't
have anywhere to put the pages.

                Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jul 15 2001 - 21:00:09 EST