lkml.org 
[lkml]   [2008]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: RLIMIT_RTTIME documentation for getrlimit.2
Hey Peter,

Ping!

Cheers,

Michael


---------- Forwarded message ----------
From: Michael Kerrisk <mtk.manpages@googlemail.com>
Date: Fri, Apr 18, 2008 at 6:52 PM
Subject: RLIMIT_RTTIME documentation for getrlimit.2
To: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Eugene Teo <eugeneteo@kernel.sg>, linux-kernel@vger.kernel.org,
Neil Horman <nhorman@tuxdriver.com>, Ingo Molnar <mingo@elte.hu>,
linux-man@vger.kernel.org


Peter,

Below is the draft text that I will add to the getrlimit.2 man page to describe
RLIMIT_RTTIME. Does it look okay to you? (I will add a pointer in
sched_setscheduler.2 to this description in getrlimit.2.)

RLIMIT_RTTIME (Since Linux 2.6.25)
Specifies a limit on the amount of CPU time that a
process scheduled under a real-time scheduling
policy may consume without making a blocking sys-
tem call. For the purpose of this limit, each
time a process makes a blocking system call, the
count of its consumed CPU time is reset to zero.
The CPU time count is not reset if the process
continues trying to use the CPU but is preempted,
its time slice expires, or it calls
sched_yield(2).

Upon reaching the soft limit, the process is sent
a SIGXCPU signal. If the process catches or
ignores this signal and continues consuming CPU
time, then SIGXCPU will be generated once each
second until the hard limit is reached, at which
point the process is sent a SIGKILL signal.

The intended use of this limit is to stop a run-
away real-time process from locking up the system.

Cheers,

Michael




--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html


\
 
 \ /
  Last update: 2008-04-28 13:47    [W:0.063 / U:2.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site