lkml.org 
[lkml]   [2010]   [Jan]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] proc: Get/set timer slack through /proc
On Thu, 31 Dec 2009 13:01:49 -0800
"Smith, GeoffX" <geoffx.smith@intel.com> wrote:

> Subject: Get/set timer_slack_ns through /proc
>
> This patch makes the timer_slack_ns parameter accessible through
> the /proc system.
>
> On 9/1/2008, arjan@linux.intel.com submitted a patch to allow a
> process to set the timer slack value as part of the range timers
> feature. Further, he noted that "Applications and admins can
> override this [the timer slack value] via the prctl()."
>
> We have found this feature useful in attempting to reduce system
> wakeups caused by timer interrupts. But we have also found that
> while applications can set their own timer slack value, there is no
> provision for setting the timer slack for another process -- prctl()
> only operates on the current process.
>

this statement is incorrect btw;
timerslack is explicitly inherited over exec, so you can have (and we
do have) a utility similar to the nice program, that launches an
application with a specific timer slack.


--
Arjan van de Ven Intel Open Source Technology Centre
For development, discussion and tips for power savings,
visit http://www.lesswatts.org


\
 
 \ /
  Last update: 2010-01-02 00:15    [W:1.658 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site