login
Header Space

 
 

Re: [RFC] [PATCH] A clean approach to writeout throttling

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Daniel Phillips <phillips@...>
Cc: <linux-kernel@...>, Peter Zijlstra <peterz@...>
Date: Thursday, December 6, 2007 - 3:31 am

On Wed, 5 Dec 2007 22:21:44 -0800 Daniel Phillips <phillips@phunq.net> wrote:


It isn't an inquiry - it's a plain old submit_bio() and it runs to
completion in the usual fashion.

Thing is, we wouldn't have called it at all if this queue was already over
its allocation limit.  IOW, we know that it's below its allocation limit,
so we know it won't deadlock.  Given, of course, reasonably pessimistc
error margins.

Which margins can even be observed at runtime: keep a running "max" of this
stack's most-ever memory consumption (for a single call), and only submit a
bio into it when its current allocation is less than (limit - that-max).


We already have that, I think: blk_run_backing_dev().  One could envisage a
similar thing which runs up and down the stack accumulating "how much
memory do you need for this request" data, but I think that would be hard to
implement and plain dumb.


I don't see any unviability.


oh.


Yeah, one would need to be pretty pessimal.  Perhaps unacceptably
inaccurate, dunno.


I don't think so.  If you're going to sleep in state TASK_INTERRUPTIBLE
then you *have* to bale out and return to userspace (or whatever) when
signal_pending().  Because schedule() becomes a no-op.


Well..  See 

add-lock_page_killable.patch
kernel-add-mutex_lock_killable.patch
vfs-use-mutex_lock_killable-in-vfs_readdir.patch

in 2.6.24-rc4-mm1.

But for now, TASK_UNINTERRUPTIBLE is the honest solution.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] [PATCH] A clean approach to writeout throttling, Daniel Phillips, (Wed Dec 5, 8:03 pm)
Re: [RFC] [PATCH] A clean approach to writeout throttling , Jonathan Corbet, (Mon Dec 10, 5:31 pm)
Re: [RFC] [PATCH] A clean approach to writeout throttling, Daniel Phillips, (Tue Dec 11, 12:21 am)
Re: [RFC] [PATCH] A clean approach to writeout throttling, Daniel Phillips, (Mon Dec 10, 7:33 am)
Re: [RFC] [PATCH] A clean approach to writeout throttling, Daniel Phillips, (Thu Dec 6, 2:21 am)
Re: [RFC] [PATCH] A clean approach to writeout throttling, Daniel Phillips, (Thu Dec 6, 8:04 pm)
Re: [RFC] [PATCH] A clean approach to writeout throttling, Daniel Phillips, (Fri Dec 7, 3:13 am)
Re: [RFC] [PATCH] A clean approach to writeout throttling, Daniel Phillips, (Mon Dec 10, 5:20 am)
Re: [RFC] [PATCH] A clean approach to writeout throttling, Andrew Morton, (Thu Dec 6, 3:31 am)
Re: [RFC] [PATCH] A clean approach to writeout throttling, Daniel Phillips, (Thu Dec 6, 5:48 am)
Re: [RFC] [PATCH] A clean approach to writeout throttling, Daniel Phillips, (Thu Dec 6, 4:04 pm)
Re: [RFC] [PATCH] A clean approach to writeout throttling, Daniel Phillips, (Thu Dec 6, 5:27 pm)
speck-geostationary