Re: 2.6.20 OOM with 8Gb RAM

From: Andrew Morton
Date: Fri Apr 13 2007 - 19:33:03 EST


On Fri, 13 Apr 2007 15:54:33 -0700
William Lee Irwin III <wli@xxxxxxxxxxxxxx> wrote:

> On Fri, Apr 13, 2007 at 03:46:53PM -0700, Andrew Morton wrote:
> > It's just weird - it exploits internal knowledge of VFS behaviour, diddles
> > with pagecache within a fake disk strategy handler, etc.
> > Furthermore, because it pretends to be a block device, the VFS will not use
> > highmem pages when accessing the ramdisk. So the 8GB machine will go splat
> > with only 800MB of ramdisk.
> > ramfs is much cleaner and does not have that limitation.
>
> After all this time, bdevs are still lowmem etc. Crying shame.

One would need to hunt down every use of b_data in filesystems and switch
them to kmap the page.

Possibly it could be done on a per-fs basis.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/