[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why don't we make mmap MAP_SHARED with /dev/zero possible?
On 3 Nov 1999, Eric W. Biederman wrote:
> Q: Highmem allocation for the page cache.
>
> Note: page_cache_alloc currently doesn't take any parameters.
> It should take __GFP_BIGMEM or whatever so we can yes high memory is ok.
it's now an unconditional __GFP_HIGHMEM in my tree. HIGHMEM gfp()
allocation automatically falls back to allocate in lowmem, if highmem
lists are empty.
> Or no.
> I'm going to put metadata in this page and high memory is not o.k, too
> inconvienint.
hm, i see, this makes sense. permanent mappings are not inconvenient at
all (you can hold a number of them, can sleep inbetween), but maybe we
still want to allocate in low memory in some cases, for performance
reasons. It's not a problem at all and completely legal, as low memory
pages can happen anyway, so everything is completely symmetric. Any 'high
memory enabled code' automatically works with low memory (or exclusive low
memory) as well.
-- mingo
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/