Re: [oom]: [1/4] add __GFP_WIRED to pinned allocations

From: Andrew Morton
Date: Wed Jun 23 2004 - 17:09:27 EST


William Lee Irwin III <wli@xxxxxxxxxxxxxx> wrote:
>
> +#define __GFP_WIRED 0x8000 /* pinned */

This would be a nice thing to keep track of.

Isn't it the case that reclaimable slab pages (dentry, inode, mbcache,
dquot) should not be accounted as wired memory? Could perhaps use
SLAB_RECLAIM_ACCOUNT for that.

It would need to be overridden for, say, sysfs inodes and dentries, but
they're about to become reclaimable anyway so no prob.

It would need to be overridden for, say, ramfs dentries and inodes though.

rd.c's blockdev pagecache pages are wired.
-
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/