Re: mmap over nfs leads to excessive system load

From: Andrew Morton
Date: Wed Nov 16 2005 - 14:09:55 EST

Trond Myklebust <trond.myklebust@xxxxxxxxxx> wrote:
> On Wed, 2005-11-16 at 10:00 -0800, Andrew Morton wrote:
> > That will fix it, but the PageWriteback accounting is still wrong.
> >
> > Is it not possible to use set_page_writeback()/end_page_writeback()?
> Not really. The pages aren't flushed at this time. We the point is to
> gather several pages and coalesce them into one over-the-wire RPC call.
> That means we cannot really do it from inside ->writepage().

I still don't get it.

Once nfs_writepage() has been called, the page is conceptually "under
writeback", yes? In that, at some point in the future, it will be written
to backing store.

Hence it's perfectly appropriate to run set_page_writepage() within
nfs_writepage(). It's a matter of finding the right place for the

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at