Messages in this thread | | | Date | Thu, 08 Jan 2009 08:24:13 -0800 (PST) | Subject | Re: Increase dirty_ratio and dirty_background_ratio? | From | David Miller <> |
| |
From: Andrew Morton <akpm@linux-foundation.org> Date: Thu, 8 Jan 2009 03:02:45 -0800
> The kernel can't get this right - it doesn't know the usage > patterns/workloads, etc.
I don't agree with that.
The kernel is watching and gets to see every operation that happens both to memory and to the disk, so of course it can see what the "patterns" and the "workload" are.
It also can see how fast or slow the disk technology is. And I think that is one of the largest determinants to what these values should be set to.
So, in fact, the kernel is the place that has all of the information necessary to try and adjust these settings dynamically.
Userland can only approximate a good setting, at best, because it has so many fewer pieces of information to work with.
| |