Re: [RFC] fuse writable mmap design

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <a.p.zijlstra@...>
Cc: <miklos@...>, <linux-kernel@...>, <akpm@...>, <linux-fsdevel@...>, <linux-mm@...>
Date: Thursday, November 15, 2007 - 3:57 pm

> The next point then, I'd expect your fuse_page_mkwrite() to push

You're talking about this:

+	wait_event(fc->writeback_waitq,
+		   fc->numwrite < FUSE_WRITEBACK_THRESHOLD);

right?  It's one of the things I need to clean out, there's no point
in fc->numwrite, which is essentially the same as the BDI_WRITEBACK
counter.

OTOH, I'm thinking about adding a per-fs limit (adjustable for
privileged mounts) of dirty+writeback.

I'm not sure how hard would it be to add support for this into
balance_dirty_pages().  So I'm thinking of a parameter in struct
backing_dev_info that is used to clip the calculated per-bdi threshold
below this maximum.

How would that affect the proportions algorithm?  What would happen to
the unused portion?  Would it adapt to the slowed writeback and
allocate it to some other writer?

Miklos
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] fuse writable mmap design, Miklos Szeredi, (Thu Nov 15, 12:10 pm)
Re: [RFC] fuse writable mmap design, Peter Zijlstra, (Thu Nov 15, 3:22 pm)
Re: [RFC] fuse writable mmap design, Miklos Szeredi, (Thu Nov 15, 3:37 pm)
Re: [RFC] fuse writable mmap design, Peter Zijlstra, (Thu Nov 15, 3:42 pm)
Re: [RFC] fuse writable mmap design, Miklos Szeredi, (Thu Nov 15, 3:57 pm)
Re: [RFC] fuse writable mmap design, Peter Zijlstra, (Thu Nov 15, 4:01 pm)
Re: [RFC] fuse writable mmap design, Miklos Szeredi, (Thu Nov 15, 4:11 pm)