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.
Attachment:
signature.asc
Description: This is a digitally signed message part
- Follow-Ups:
- Re: [PATCH 00/23] per device dirty throttling -v9
- From: Christoph Lameter <[email protected]>
- Re: [PATCH 00/23] per device dirty throttling -v9
- References:
- [PATCH 00/23] per device dirty throttling -v9
- From: Peter Zijlstra <[email protected]>
- Re: [PATCH 00/23] per device dirty throttling -v9
- From: Christoph Lameter <[email protected]>
- [PATCH 00/23] per device dirty throttling -v9
- Prev by Date: [Announce] RHEL5 LSPP/EAL4 Certification Testsuite has been released
- Next by Date: Re: Fork Bombing Patch
- Previous by thread: Re: [PATCH 00/23] per device dirty throttling -v9
- Next by thread: Re: [PATCH 00/23] per device dirty throttling -v9
- Index(es):