From: Nikita Danilov <nikita@clusterfs.com>
To: Dave Hansen <haveblue@us.ibm.com>
Cc: linux-mm <linux-mm@kvack.org>, Andrew Morton <akpm@osdl.org>
Subject: Re: [PATCH]: VM 3/8 PG_skipped
Date: Tue, 19 Apr 2005 00:29:20 +0400 [thread overview]
Message-ID: <16996.6304.930404.72906@gargle.gargle.HOWL> (raw)
In-Reply-To: <1113846712.10810.111.camel@localhost>
Dave Hansen writes:
> On Mon, 2005-04-18 at 11:12 -0400, Rik van Riel wrote:
> > On Sun, 17 Apr 2005, Nikita Danilov wrote:
> >
> > > Don't call ->writepage from VM scanner when page is met for the first time
> > > during scan.
> >
> > > Reason behind this is that ->writepages() will perform more efficient
> > > writeout than ->writepage(). Skipping of page can be conditioned on
> > > zone->pressure.
> >
> > Agreed, in order to write out blocks of pages at once from
> > the pageout code, we'll need to wait with writing until the
> > dirty bit has been propagated from the ptes to the pages.
>
> Is there a way to do this without consuming a page->flags bit? We're
> starting to run really low on them.
Cannot think of one immediately. (Not counting that last fad of using
least significant bit of pointer to store something: page->mapping,
page->lru.next, and page->lru.prev, plus PAGE_CACHE_SHIFT bits in the
page->virtual :-)).
One possible route is to move flags that are used by file systems only
(PG_mappedtodisk, PG_error) into the per-mapping radix-tree.
Also, PG_skipped only makes sense for pages on inactive list, so we can
use some otherwise invalid combination (e.g., PageActive(pg) &&
!PageLRU(pg)), but this will complicate code that temporarily privatizes
pages from LRU.
>
> -- Dave
>
Nikita.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
next prev parent reply other threads:[~2005-04-18 20:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-17 17:36 Nikita Danilov
2005-04-18 15:12 ` Rik van Riel
2005-04-18 17:51 ` Dave Hansen
2005-04-18 20:29 ` Nikita Danilov [this message]
2005-04-26 3:43 ` Andrew Morton
2005-05-02 9:03 ` Hirokazu Takahashi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16996.6304.930404.72906@gargle.gargle.HOWL \
--to=nikita@clusterfs.com \
--cc=akpm@osdl.org \
--cc=haveblue@us.ibm.com \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox