lkml.org 
[lkml]   [2007]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 00/23] per device dirty throttling -v9
From
Date
On Thu, 2007-08-16 at 14:29 -0700, Christoph Lameter wrote:
> Is there any way to make the global limits on which the dirty rate
> calculations are based cpuset specific?
>
> A process is part of a cpuset and that cpuset has only a fraction of
> memory of the whole system.
>
> And only a fraction of that fraction can be dirtied. We do not currently
> enforce such limits which can cause the amount of dirty pages in
> cpusets to become excessively high. I have posted several patchsets that
> deal with that issue. See http://lkml.org/lkml/2007/1/16/5
>
> It seems that limiting dirty pages in cpusets may be much easier to
> realize in the context of this patchset. The tracking of the dirty pages
> per node is not necessary if one would calculate the maximum amount of
> dirtyable pages in a cpuset and use that as a base, right?


Currently we do:
dirty = total_dirty * bdi_completions_p * task_dirty_p

As dgc pointed out before, there is the issue of bdi/task correlation,
that is, we do not track task dirty rates per bdi, so now a task that
heavily dirties on one bdi will also get penalised on the others (and
similar issues).

If we were to change it so:
dirty = cpuset_dirty * bdi_completions_p * task_dirty_p

We get additional correlation issues: cpuset/bdi, cpuset/task.
Which could yield surprising results if some bdis are strictly per
cpuset.

The cpuset/task correlation has a strict mapping and could be solved by
keeping the vm_dirties counter per cpuset. However, this would seriously
complicate the code and I'm not sure if it would gain us much.

Anyway, things to ponder. But overall it should be quite doable.

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2007-08-17 09:27    [from the cache]
©2003-2011 Jasper Spaans