From: Nikita Danilov <nikita@clusterfs.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-mm@kvack.org
Subject: Re: [PATCH]: VM 5/8 async-writepage
Date: Tue, 26 Apr 2005 14:05:31 +0400 [thread overview]
Message-ID: <17006.4715.211258.938496@gargle.gargle.HOWL> (raw)
In-Reply-To: <20050426013632.55e958c8.akpm@osdl.org>
Andrew Morton writes:
> Nikita Danilov <nikita@clusterfs.com> wrote:
> >
> > >
> > > I don't understand this at all. ->writepage() is _already_ asynchronous.
> > > It will only block under rare circumstances such as needing to perform a
> > > metadata read or encountering disk queue congestion.
> >
> > This patch tries to decrease latency of direct reclaim by avoiding
> >
> > - occasional stalls you mentioned, and
> >
> > - CPU cost of ->writepage().
>
> Seems a bit pointless then?
Err.. why? With this patch, if there is small memory shortage, and dirty
pages on the end of the inactive list are rare (usual case),
alloc_pages() will return quickly after reclaiming clean pages, allowing
memory consuming operation to complete faster. If there is severe memory
shortage (priority < KPGOUT_PRIORITY), ->writepage() calls are done
synchronously, so there is no risk of deadlock.
>
> Have you quantified this?
Yes, (copied from original message that introduced patches):
before after
45.4 45.8
214.4 204.3
199.1 194.8
208.3 194.9
199.5 197.7
206.8 195.0
200.8 199.4
204.7 196.3
In that micro-benchmark memory pressure is high, so not a lot of
asynchronous pageout is done. More testing will be a good thing of
course, isn't this what -mm is for? :)
>
> > Plus, deferred pageouts will be easier to cluster.
>
> hm. Why?
Sorry, I meant "it is possible to write the code to do more efficient
pageout clustering from kpgout()": we have a list of pages ready for
pageout, so we can scan the list for the pages from the same mapping,
and build a clusters of them.
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-26 10:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-17 17:37 Nikita Danilov
2005-04-18 1:10 ` Nick Piggin
2005-04-26 3:57 ` Andrew Morton
2005-04-26 8:22 ` Nikita Danilov
2005-04-26 8:36 ` Andrew Morton
2005-04-26 10:05 ` Nikita Danilov [this message]
2005-04-26 10:22 ` Nick Piggin
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=17006.4715.211258.938496@gargle.gargle.HOWL \
--to=nikita@clusterfs.com \
--cc=akpm@osdl.org \
--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