What about using a time based aproach for pinned pages?
* only individually freeable pages are added into the LRU.
* everyone else registers callbacks.
* shrink_mmap estimates (*) the age (in jiffies) of the oldest entry in
the LRU, and then it calls the pressure callbacks with that time.
(*) nr_of_lru_pages/lru_reclaimed_pages_during_last_jiffies. Another
field in "struct page" is too expensive.
-- Manfred- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/