* RLIMIT_RTTIME documentation for getrlimit.2 [not found] ` <cfd18e0f0804110238l66fb60c8pa8ac934a2a43baa7-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2008-04-18 16:52 ` Michael Kerrisk [not found] ` <4808D1CC.80103-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Michael Kerrisk @ 2008-04-18 16:52 UTC (permalink / raw) To: Peter Zijlstra Cc: Eugene Teo, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Neil Horman, Ingo Molnar, linux-man-u79uwXL29TY76Z2rM5mHXA 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 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <4808D1CC.80103-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: RLIMIT_RTTIME documentation for getrlimit.2 [not found] ` <4808D1CC.80103-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2008-04-28 11:44 ` Michael Kerrisk [not found] ` <cfd18e0f0804280444jd558060g6cf5ee7df0248ee1-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Michael Kerrisk @ 2008-04-28 11:44 UTC (permalink / raw) To: Peter Zijlstra Cc: Eugene Teo, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Neil Horman, Ingo Molnar, linux-man-u79uwXL29TY76Z2rM5mHXA Hey Peter, Ping! Cheers, Michael ---------- Forwarded message ---------- From: Michael Kerrisk <mtk.manpages-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> Date: Fri, Apr 18, 2008 at 6:52 PM Subject: RLIMIT_RTTIME documentation for getrlimit.2 To: Peter Zijlstra <a.p.zijlstra-/NLkJaSkS4VmR6Xm/wNWPw@public.gmane.org> Cc: Eugene Teo <eugeneteo-X4ZF2iejbADYtjvyW6yDsg@public.gmane.org>, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Neil Horman <nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>, Ingo Molnar <mingo-X9Un+BFzKDI@public.gmane.org>, linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <cfd18e0f0804280444jd558060g6cf5ee7df0248ee1-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: RLIMIT_RTTIME documentation for getrlimit.2 [not found] ` <cfd18e0f0804280444jd558060g6cf5ee7df0248ee1-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2008-04-28 12:09 ` Peter Zijlstra 2008-04-28 12:14 ` Michael Kerrisk 0 siblings, 1 reply; 4+ messages in thread From: Peter Zijlstra @ 2008-04-28 12:09 UTC (permalink / raw) To: Michael Kerrisk Cc: Eugene Teo, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Neil Horman, Ingo Molnar, linux-man-u79uwXL29TY76Z2rM5mHXA On Mon, 2008-04-28 at 13:44 +0200, Michael Kerrisk wrote: > Hey Peter, > > Ping! Thanks for the reminder ;-) > Cheers, > > Michael > > > ---------- Forwarded message ---------- > From: Michael Kerrisk <mtk.manpages-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> > Date: Fri, Apr 18, 2008 at 6:52 PM > Subject: RLIMIT_RTTIME documentation for getrlimit.2 > To: Peter Zijlstra <a.p.zijlstra-/NLkJaSkS4VmR6Xm/wNWPw@public.gmane.org> > Cc: Eugene Teo <eugeneteo-X4ZF2iejbADYtjvyW6yDsg@public.gmane.org>, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, > Neil Horman <nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>, Ingo Molnar <mingo-X9Un+BFzKDI@public.gmane.org>, > linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.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. Looks excellent, thanks! Acked-by: Peter Zijlstra <a.p.zijlstra-/NLkJaSkS4VmR6Xm/wNWPw@public.gmane.org> in so far that is applicable to man pages ;-) -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: RLIMIT_RTTIME documentation for getrlimit.2 2008-04-28 12:09 ` Peter Zijlstra @ 2008-04-28 12:14 ` Michael Kerrisk 0 siblings, 0 replies; 4+ messages in thread From: Michael Kerrisk @ 2008-04-28 12:14 UTC (permalink / raw) To: Peter Zijlstra Cc: Michael Kerrisk, Eugene Teo, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Neil Horman, Ingo Molnar, linux-man-u79uwXL29TY76Z2rM5mHXA > > 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. > > > Looks excellent, thanks! Good -- thanks for checking it over. > Acked-by: Peter Zijlstra <a.p.zijlstra-/NLkJaSkS4VmR6Xm/wNWPw@public.gmane.org> > > in so far that is applicable to man pages ;-) It works for me. 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 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-04-28 12:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20080208145950.GA3910@kernel.sg>
[not found] ` <1202483445.6292.1.camel@lappy>
[not found] ` <517f3f820802280712o3d756b4fq46461b226515e1f2@mail.gmail.com>
[not found] ` <1204212100.12120.9.camel@twins>
[not found] ` <cfd18e0f0804110156l658107e5x1f2695cacfc3ac75@mail.gmail.com>
[not found] ` <1207904485.7074.28.camel@twins>
[not found] ` <cfd18e0f0804110216l3c679bb6ned83f5d58d1c9d66@mail.gmail.com>
[not found] ` <1207905668.7074.32.camel@twins>
[not found] ` <cfd18e0f0804110227w37915734r8ca31271a3dfc8ab@mail.gmail.com>
[not found] ` <1207906325.7153.2.camel@twins>
[not found] ` <cfd18e0f0804110238l66fb60c8pa8ac934a2a43baa7@mail.gmail.com>
[not found] ` <cfd18e0f0804110238l66fb60c8pa8ac934a2a43baa7-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-04-18 16:52 ` RLIMIT_RTTIME documentation for getrlimit.2 Michael Kerrisk
[not found] ` <4808D1CC.80103-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-04-28 11:44 ` Michael Kerrisk
[not found] ` <cfd18e0f0804280444jd558060g6cf5ee7df0248ee1-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-04-28 12:09 ` Peter Zijlstra
2008-04-28 12:14 ` Michael Kerrisk
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox