lkml.org 
[lkml]   [2007]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [ckrm-tech] [RFC] [PATCH 0/3] Add group fairness to CFS
Peter Williams wrote:
> Srivatsa Vaddagiri wrote:
>> On Sat, May 26, 2007 at 10:17:42AM +1000, Peter Williams wrote:
>>> I don't think that ignoring cpu affinity is an option. Setting the
>>> cpu affinity of tasks is a deliberate policy action on the part of
>>> the system administrator and has to be honoured.
>>
>> mmm ..but users can set cpu affinity w/o administrator priveleges ..
>>
>
> OK. So you have to assume the users know what they're doing. :-)
>
> In reality though, the policy of allowing ordinary users to set affinity
> on their tasks should be rethought.

After more contemplation, I now think I may have gone overboard here. I
am now of the opinion that any degradation of overall system performance
due to the use of cpu affinity would be confined to the tasks with cpu
affinity set. So there's no need to prevent ordinary users from setting
cpu affinity on their own processes as any degradation will only affect
them.

So it goes back to the situation where you have to assume that they know
what they're doing and obey their policy.

>
> In any case, there's no point having cpu affinity if it's going to be
> ignored. Maybe you could have two levels of affinity: 1. if set by a
> root it must be obeyed; and 2. if set by an ordinary user it can be
> overridden if the best interests of the system dictate. BUT I think
> that would be a bad idea.

This idea is now not just bad but unnecessary.

Peter
--
Peter Williams pwil3058@bigpond.net.au

"Learning, n. The kind of ignorance distinguishing the studious."
-- Ambrose Bierce
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-05-29 05:33    [W:0.095 / U:0.580 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site