Vaidyanathan Srinivasan wrote:
Playing devil's advocate here.
Does it have the needed information for that? e.g. real time information
on what the system does? I don't think anybody is in a better position
to control that than the kernel.
That sounds wrong to me. Negotiating between conflicting requirements
from different applications is something that kernels are supposed
to do.
That is right, but the kernel can do that based on nice levels
and possibly other information, can't it?
But that only helps kernel drivers, not user space, doesn't it?
That's what I meant yes. So if only the file system indexer is running
over night all niced it will run as power efficiently as possible.
Is there any real drawback from only controlling it through nice levels?
Anyways I think the main thing I object to in your proposal is that
your tunable is system global, not per process. I'm also not
sure if a tunable is really a good idea and if the kernel couldn't
do a better job.
-Andi
--