linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Nikita Danilov <danilov@gmail.com>
To: Vincent Li <macli@brc.ubc.ca>
Cc: Christoph Hellwig <hch@lst.de>,
	linux-mm@kvack.org, Badari Pulavarty <pbadari@us.ibm.com>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH] mm/vmscan: change generic_file_write() comment to do_sync_write()
Date: Wed, 26 Aug 2009 22:26:48 +0400	[thread overview]
Message-ID: <8acda98c0908261126s699480c8l4550f5b0798c9d7@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.00.0908261110220.3689@kernelhack.brc.ubc.ca>

2009/8/26 Vincent Li <macli@brc.ubc.ca>

[...]

> Thank you for the explaintion!
>
>        * If this process is currently in generic_file_write() against
>        * this page's queue, we can perform writeback even if that
>        * will block.
>
> So my interpretation for the comment is that if the current process is
> already in __generic_file_aio_write against the page's queue, The page
> claim path code can still perfom writeback even if the __generic_file_aio_write
> will block. Am I right?

Yes. The idea is that a heavy writer causing a lot of page allocations
should wait for the queue to drain, thus throttling itself; while a
thread that triggeres direct reclaim occasionally (i.e., not from the
main write path) shouldn't be blocked on the transput incurred by
somebody else.

Nikita.

>
>
>
> Vincent Li
> Biomedical Research Center
> University of British Columbia

--
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:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2009-08-26 18:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8acda98c0908260507s7b813292i54b2d782cbfaadfe@mail.gmail.com>
2009-08-26 18:17 ` [PATCH] mm/vmscan: change generic_file_write() comment to do_sync_write() Vincent Li
2009-08-26 18:26   ` Nikita Danilov [this message]
2009-08-25 22:18 Vincent Li
2009-08-25 22:22 ` Christoph Hellwig
2009-08-25 22:45   ` Vincent Li
2009-08-25 22:50     ` Christoph Hellwig

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=8acda98c0908261126s699480c8l4550f5b0798c9d7@mail.gmail.com \
    --to=danilov@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=hch@lst.de \
    --cc=linux-mm@kvack.org \
    --cc=macli@brc.ubc.ca \
    --cc=pbadari@us.ibm.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;
as well as URLs for NNTP newsgroup(s).