From: Christoph Hellwig <hch@infradead.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: Christoph Hellwig <hch@infradead.org>, fengguang.wu@intel.com, mel@csn.ul.ie, npiggin@suse.de, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: Re: what is the point of nr_pages information for the flusher thread? Date: Wed, 7 Jul 2010 19:43:16 -0400 [thread overview] Message-ID: <20100707234316.GA21990@infradead.org> (raw) In-Reply-To: <20100707163710.a46173b2.akpm@linux-foundation.org> On Wed, Jul 07, 2010 at 04:37:10PM -0700, Andrew Morton wrote: > On Wed, 7 Jul 2010 19:16:11 -0400 > Christoph Hellwig <hch@infradead.org> wrote: > > > Currently there's three possible values we pass into the flusher thread > > for the nr_pages arguments: > > I assume you're referring to wakeup_flusher_threads(). In that context I refer to everything using the per-bdi flusher thread. That includes wakeup_flusher_threads() and the functions I've mentioned below. > There's also free_more_memory() and do_try_to_free_pages(). Indeed. So we still have some special cases that want a specific number to be written back globally. > wakeup_flusher_threads() apepars to have been borked. It passes > nr_pages() into *each* bdi hence can write back far more than it was > asked to. > > But seriously, how is the _global_ number of dirty and unstable pages > > a good indicator for the amount of writeback per-bdi or superblock > > anyway? > > It isn't. This appears to have been an attempt to transport the > wakeup_pdflush() functionality into the new wakeup_flusher_threads() > regime. Badly. Unfortunately we don't just use it for wakeup_flusher_threads() but also for various bits of per-bdi and per-sb writeback.
WARNING: multiple messages have this Message-ID (diff)
From: Christoph Hellwig <hch@infradead.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: Christoph Hellwig <hch@infradead.org>, fengguang.wu@intel.com, mel@csn.ul.ie, npiggin@suse.de, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: Re: what is the point of nr_pages information for the flusher thread? Date: Wed, 7 Jul 2010 19:43:16 -0400 [thread overview] Message-ID: <20100707234316.GA21990@infradead.org> (raw) In-Reply-To: <20100707163710.a46173b2.akpm@linux-foundation.org> On Wed, Jul 07, 2010 at 04:37:10PM -0700, Andrew Morton wrote: > On Wed, 7 Jul 2010 19:16:11 -0400 > Christoph Hellwig <hch@infradead.org> wrote: > > > Currently there's three possible values we pass into the flusher thread > > for the nr_pages arguments: > > I assume you're referring to wakeup_flusher_threads(). In that context I refer to everything using the per-bdi flusher thread. That includes wakeup_flusher_threads() and the functions I've mentioned below. > There's also free_more_memory() and do_try_to_free_pages(). Indeed. So we still have some special cases that want a specific number to be written back globally. > wakeup_flusher_threads() apepars to have been borked. It passes > nr_pages() into *each* bdi hence can write back far more than it was > asked to. > > But seriously, how is the _global_ number of dirty and unstable pages > > a good indicator for the amount of writeback per-bdi or superblock > > anyway? > > It isn't. This appears to have been an attempt to transport the > wakeup_pdflush() functionality into the new wakeup_flusher_threads() > regime. Badly. Unfortunately we don't just use it for wakeup_flusher_threads() but also for various bits of per-bdi and per-sb writeback. -- 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>
next prev parent reply other threads:[~2010-07-07 23:43 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-07-07 23:16 what is the point of nr_pages information for the flusher thread? Christoph Hellwig 2010-07-07 23:16 ` Christoph Hellwig 2010-07-07 23:37 ` Andrew Morton 2010-07-07 23:37 ` Andrew Morton 2010-07-07 23:43 ` Christoph Hellwig [this message] 2010-07-07 23:43 ` Christoph Hellwig 2010-07-07 23:55 ` Andrew Morton 2010-07-10 14:58 ` Wu Fengguang
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=20100707234316.GA21990@infradead.org \ --to=hch@infradead.org \ --cc=akpm@linux-foundation.org \ --cc=fengguang.wu@intel.com \ --cc=linux-fsdevel@vger.kernel.org \ --cc=linux-mm@kvack.org \ --cc=mel@csn.ul.ie \ --cc=npiggin@suse.de \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.