lkml.org 
[lkml]   [2007]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] [PATCH] A clean approach to writeout throttling
On Thu, 6 Dec 2007 12:04:14 -0800
Daniel Phillips <phillips@phunq.net> wrote:

> Any idea
> how to extend the accounting idea to all tasks involved in a particular
> block device stack?

SMOP, I'd have thought. As long as each piece of code which handles data
for this stack knows that it's handling data for that stack it should be
able to account its memory allocations.

The tricky part will be networking allocations because a NIC can of course
handle data for all sorts of consumers. But I expect this can be greatly
simplified with a few heuristics - work out how much memory your typical
networking stack will allocate for a frame and tack that onto the total.
Couple of pages worst case..


\
 
 \ /
  Last update: 2007-12-06 21:45    [W:0.100 / U:0.476 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site