Re: [PATCH] splitlru: BDI_CAP_SWAP_BACKED

From: Rik van Riel
Date: Mon Jun 30 2008 - 15:50:35 EST


On Mon, 30 Jun 2008 20:23:54 +0100 (BST)
Hugh Dickins <hugh@xxxxxxxxxxx> wrote:

> On Mon, 30 Jun 2008, KAMEZAWA Hiroyuki wrote:
> >
> > Hmm, how about adding LRU only for shmem/tmpfs ? nonsense ? ;)
>
> I'd much prefer not: the more LRUs, the more balancing problems;
> And I don't think shmem/tmpfs _deserves_ its own LRUs.
> But it cannot be ruled out.

Tmpfs is often in the same boat as anonymous memory.
Used for shared memory segments, or for files that
are temporary and will be gone soon.

If swap space runs out, tmpfs pages should not be
scanned.

To me, this suggests they should probably continue
to live on the *_ANON LRUs. Worst case we make
tmpfs pages in files that are not mmaped (/tmp use)
start out on the inactive list, so they get evicted
first.

--
All rights reversed.
--
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/