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

From: Andrew Morton
Date: Wed Jun 23 2004 - 17:49:11 EST


William Lee Irwin III <wli@xxxxxxxxxxxxxx> wrote:
>
> Also, I should mention this concept is based on code seen in RHEL3,

What kernel is that?

> which uses a __GFP_WIRED flag, albeit for a different purpose (it
> appears to be centered around removing dirty ramfs pagecache from
> the LRU lists(s) as opposed to accounting for OOM-related reasons).

yes, putting ramfs, ramdisk and sysfs pages on the LRU is a bit silly.

However I think that taking a peek into mapping->backing_dev_info in
add_to_page_cache_lru(), __grab_cache_page() and wherever else would be a
tidier way of doing it.

-
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/