[PATCH 20/24] huge tmpfs: use Unevictable lru with variable hpage_nr_pages()

2015-02-20 Thread Hugh Dickins
A big advantage of huge tmpfs over hugetlbfs is that its pages can be swapped out; but too often it OOMs before swapping them out. At first I tried changing page_evictable(), to treat all tail pages of a hugely mapped team as unevictable: the anon LRUs were otherwise swamped by pages that could

[PATCH 20/24] huge tmpfs: use Unevictable lru with variable hpage_nr_pages()

2015-02-20 Thread Hugh Dickins
A big advantage of huge tmpfs over hugetlbfs is that its pages can be swapped out; but too often it OOMs before swapping them out. At first I tried changing page_evictable(), to treat all tail pages of a hugely mapped team as unevictable: the anon LRUs were otherwise swamped by pages that could