From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
YAMAMOTO Takashi <yamamoto@valinux.co.jp>,
linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
linux-fsdevel <linux-fsdevel@vger.kernel.org>
Subject: Re: [PATCH] fix task dirty balancing
Date: Mon, 7 Jul 2008 20:36:54 +1000 [thread overview]
Message-ID: <200807072036.54553.nickpiggin@yahoo.com.au> (raw)
In-Reply-To: <1215250202.6320.10.camel@lappy.programming.kicks-ass.net>
On Saturday 05 July 2008 19:30, Peter Zijlstra wrote:
> On Sat, 2008-07-05 at 15:04 +0900, KAMEZAWA Hiroyuki wrote:
> > And task-dirty-limit don't have to take care of following 2 case ?
> > - __set_page_dirty_nobuffers(struct page *page) (increment
> > BDI_RECRAIMABLE) - test_set_page_writeback() (increment BDI_RECLAIMABLE)
>
> Gah - what a mess...
It's not so bad once you get past the funny names and conventions :)
> It's in set_page_dirty() so it wouldn't have to be in all the
> a_ops->set_page_dirty() functions...
At some point, they have to actually set the page dirty though, in
which case they would normally call __set_page_dirty_nobuffers or
similar (ie. rather than SetPageDirty, unless they really know what
they're doing).
> But now it turns out people don't use set_page_dirty() to dirty
> pages :-(
They do, but they also use other things :) Filesystems of course are
in complete control of the aops, so they can definitely bypass it.
> For the purpose of task_dirty_inc() I guess we might as well pair it
> with task_io_account_write() for each PAGE_CACHE_SIZE (and ignore the
> DIO bit, since that doesn't care about the dirty limit anyway).
Yes, the dirty increment should go in the same places where we increment
all the dirty statistics... it's the right spot to do it AFAIKS.
> Might be my ignorance, but _why_ do we have __set_page_dirty_nobuffers()
> reimplemented in fs/buffers.c:__set_page_dirty() ? - those two functions
> look suspiciously similar.
Probably no really good reason. The buffers.c code should probably be
merged / unified in page-writeback.c.
> Also, why was the EXPORT added anyway - fs/buffers.o never ends up in
> modules?
Definitely it would. Almost every filesystem can be build modularly. Or
did you mean some other symbol?
next prev parent reply other threads:[~2008-07-07 10:37 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-02 8:26 YAMAMOTO Takashi
2008-07-02 20:27 ` Peter Zijlstra
2008-07-03 7:33 ` YAMAMOTO Takashi
2008-07-05 6:04 ` KAMEZAWA Hiroyuki
2008-07-05 9:30 ` Peter Zijlstra
2008-07-07 6:46 ` YAMAMOTO Takashi
2008-07-07 10:36 ` Nick Piggin [this message]
2008-07-08 23:38 ` YAMAMOTO Takashi
2008-07-09 7:41 ` Nick Piggin
2008-07-10 3:10 ` YAMAMOTO Takashi
2008-07-10 7:23 ` Nick Piggin
2008-07-24 0:27 ` YAMAMOTO Takashi
2008-07-24 15:08 ` Nick Piggin
2008-07-25 8:04 ` YAMAMOTO Takashi
2008-07-25 9:57 ` Peter Zijlstra
2008-07-28 5:50 ` YAMAMOTO Takashi
2008-07-28 7:24 ` Peter Zijlstra
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=200807072036.54553.nickpiggin@yahoo.com.au \
--to=nickpiggin@yahoo.com.au \
--cc=a.p.zijlstra@chello.nl \
--cc=akpm@linux-foundation.org \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yamamoto@valinux.co.jp \
/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
Powered by JetHome