Skip to contentSkip to conversation

memory pressure callbacks (was: 2.5 TODO)

DISCUSSION Stephen C. Tweedie 1 participant 1 message Jun 6, 2000 2 messages not in the archive Memory management

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Hi,

Quoted 8 lines · Chris Mason
Quoted 7 lines

Chris, I think that you don't want to put that in the address space operations, the main reason is that you don't want your pages to stay in the main LRU queue, because you need to freed them in an specific order (not LRU at all). Then if shrink_mmap is not scanning your pages, it is better to use your own reclaim function, that would be called from do_try_to_free_pages (a la shrink_[di]cache way).

Quoted 4 lines

The goal isn't to make something perfect for the journaled filesystems, it is a generic facility that also happens to work for the journaled filesystems. So, I like the address space operations, mostly because this is an operation on an address space ;-)

Right. There's one other major problem with a lot of page reclaim algorithms --- the algorithm can be the best in the world, but it needs to be balanced against the other page stealers in the kernel too. Using the main LRUs for all filesystems, with address_space callbacks to free pages, should make such balancing a lot easier to achieve.

Cheers,
Stephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/