Re: [RFC] Tracking mlocked pages and moving them off the LRU

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nate Diller
Date: Tuesday, February 6, 2007 - 3:05 pm

On 2/4/07, Christoph Lameter <clameter@sgi.com> wrote:

I don't understand why you want to account mlocked pages in
dirty_ratio.  of course mlocked pages *can* be dirty, but they have no
relevance in the write throttling code.  the point of dirty ratio is
to guarantee that there are some number of non-dirty, non-pinned,
non-mlocked pages on the LRU, to (try to) avoid deadlocks where the
writeback path needs to allocate pages, which many filesystems like to
do.  if an mlocked page is clean, there's still no way to free it up,
so it should not be treated as being on the LRU at all, for write
throttling.  the ideal (IMO) dirty ratio would be

NR_DIRTY - NR_DIRTY_MLOCKED + NR_UNSTABLE_NFS
        /
NR_FREE_PAGES + NR_INACTIVE + NR_ACTIVE

obviously it's kinda useless to keep an NR_DIRTY_MLOCKED counter, any
of these mlock accounting schemes could easily be modified to update
the NR_DIRTY counter so that it only reflects dirty unpinned pages,
and not mlocked ones.

is that the only place you wanted to have an accurate mocked page count?

NATE
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] Tracking mlocked pages and moving them off the LRU, Christoph Lameter, (Fri Feb 2, 11:20 pm)
Re: [RFC] Tracking mlocked pages and moving them off the LRU, Christoph Hellwig, (Sat Feb 3, 3:16 am)
Re: [RFC] Tracking mlocked pages and moving them off the LRU, Christoph Lameter, (Sat Feb 3, 10:33 am)
Re: [RFC] Tracking mlocked pages and moving them off the LRU, Christoph Lameter, (Sat Feb 3, 10:56 am)
Re: [RFC] Tracking mlocked pages and moving them off the LRU, Christoph Lameter, (Sat Feb 3, 10:59 am)
Re: [RFC] Tracking mlocked pages and moving them off the LRU, Arjan van de Ven, (Sat Feb 3, 11:04 am)
Re: [RFC] Tracking mlocked pages and moving them off the LRU, Christoph Lameter, (Sat Feb 3, 11:09 am)
Re: [RFC] Tracking mlocked pages and moving them off the LRU, Christoph Lameter, (Sat Feb 3, 11:55 am)
Re: [RFC] Tracking mlocked pages and moving them off the LRU, Christoph Lameter, (Sat Feb 3, 12:03 pm)
Re: [RFC] Tracking mlocked pages and moving them off the LRU, Nigel Cunningham, (Sat Feb 3, 3:56 pm)
Re: [RFC] Tracking mlocked pages and moving them off the LRU, Nigel Cunningham, (Sat Feb 3, 3:58 pm)
Re: [RFC] Tracking mlocked pages and moving them off the LRU, Christoph Lameter, (Sat Feb 3, 6:49 pm)
Re: [RFC] Tracking mlocked pages and moving them off the LRU, Arjan van de Ven, (Sun Feb 4, 1:16 am)
Re: [RFC] Tracking mlocked pages and moving them off the LRU, Christoph Lameter, (Sun Feb 4, 11:45 pm)
Re: [RFC] Tracking mlocked pages and moving them off the LRU, Christoph Lameter, (Mon Feb 5, 12:57 am)
Re: [RFC] Tracking mlocked pages and moving them off the LRU, Arjan van de Ven, (Mon Feb 5, 1:39 am)
Re: [RFC] Tracking mlocked pages and moving them off the LRU, Christoph Lameter, (Mon Feb 5, 10:33 am)
Re: [RFC] Tracking mlocked pages and moving them off the LRU, Christoph Lameter, (Mon Feb 5, 10:34 am)
Re: [RFC] Tracking mlocked pages and moving them off the LRU, Christoph Lameter, (Mon Feb 5, 12:04 pm)
Re: [RFC] Tracking mlocked pages and moving them off the LRU, Nate Diller, (Tue Feb 6, 3:05 pm)
Re: [RFC] Tracking mlocked pages and moving them off the LRU, Christoph Lameter, (Wed Feb 7, 1:02 am)