linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Nikita Danilov <nikita@clusterfs.com>
Cc: Andrew Morton <akpm@osdl.org>, linux-mm@kvack.org
Subject: Re: [PATCH]: VM 5/8 async-writepage
Date: Tue, 26 Apr 2005 20:22:55 +1000	[thread overview]
Message-ID: <1114510975.5097.10.camel@npiggin-nld.site> (raw)
In-Reply-To: <17006.4715.211258.938496@gargle.gargle.HOWL>

On Tue, 2005-04-26 at 14:05 +0400, Nikita Danilov wrote:
> Andrew Morton writes:
>  > 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.
> 

It is adding a lot of state/behavioural complexity, which is
unfortunate considering we barely manage to keep page reclaim
doing the right thing at the best of times :(

I agree with Andrew. kswapd provides one layer of asynchronous
reclaim, and in the rare case of direct reclaim, ->writepage is
usually asynchronous as well.

We'll never be able to eliminate all stalls. And under really
heavy memory pressure most of the stalls are probably going to
be coming from actually waiting for a page to be cleaned and
freed, or *reading* in the working set.

>  > 
>  > 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? :)
> 

I'd rather see a real benefit *first*, even for -mm :)


-- 
SUSE Labs, Novell Inc.


--
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>

      reply	other threads:[~2005-04-26 10:22 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
2005-04-26 10:22         ` Nick Piggin [this message]

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=1114510975.5097.10.camel@npiggin-nld.site \
    --to=nickpiggin@yahoo.com.au \
    --cc=akpm@osdl.org \
    --cc=linux-mm@kvack.org \
    --cc=nikita@clusterfs.com \
    /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