[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0607180659310.30887@schroedinger.engr.sgi.com>
Date: Tue, 18 Jul 2006 07:03:12 -0700 (PDT)
From: Christoph Lameter <clameter@....com>
To: "Martin J. Bligh" <mbligh@...igh.org>
cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>,
linux-mm <linux-mm@...ck.org>,
Linus Torvalds <torvalds@...l.org>,
Andrew Morton <akpm@...l.org>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] mm: inactive-clean list
On Tue, 18 Jul 2006, Martin J. Bligh wrote:
> > Adding logic to determine the number of clean pages is not necessary. The
> > number of clean pages in the pagecache can be determined by:
> >
> > global_page_state(NR_FILE_PAGES) - global_page_state(NR_FILE_DIRTY)
>
> It's not that simple. We also need to deal with other types of non-freeable
> pages, such as memlocked.
mlocked is an exceptional case. The problem is that the information if a
page is mlocked is only available via the vma. One has to
scan the reverse list and check all the vmas for the flag.
Is mlock that important?
What other types of non freeable pages could exist?
Maybe slab allocations and direct kernel allocations? We have only
limited means to reclaim those pages.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists