linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Michael Kerrisk (man-pages)" <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Dmitry Antipov <dmitry.antipov-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	patches-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org,
	linaro-dev-cunTk1MwBs8s++Sfvej+rw@public.gmane.org
Subject: Re: [PATCH] prctl.2, proc.5: proposal to reflect http://lwn.net/Articles/484162
Date: Thu, 19 Apr 2012 15:38:20 +1200	[thread overview]
Message-ID: <CAKgNAki4z9ENTVmirLqtZEo4ca5AVL63cuP6N1b166PeXshdyw@mail.gmail.com> (raw)
In-Reply-To: <1333702969-28795-1-git-send-email-dmitry.antipov-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>

Dmitry,

Thanks for this patch. Would you be willing to revise it a little to
add some words about the *purpose* of timer slack.

Thanks

Michael


On Fri, Apr 6, 2012 at 9:02 PM, Dmitry Antipov
<dmitry.antipov-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
> Document PR_GET_TIMERSLACK and PR_SET_TIMERSLACK for prctl (2).
> Document /proc/sys/kernel/timer_slack for proc (5).
>
> Signed-off-by: Dmitry Antipov <dmitry.antipov-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> ---
>  man2/prctl.2 |   15 +++++++++++++++
>  man5/proc.5  |    4 ++++
>  2 files changed, 19 insertions(+), 0 deletions(-)
>
> diff --git a/man2/prctl.2 b/man2/prctl.2
> index effad2a..dcf803f 100644
> --- a/man2/prctl.2
> +++ b/man2/prctl.2
> @@ -378,6 +378,21 @@ Return the current per-process machine check kill policy.
>  All unused
>  .BR prctl ()
>  arguments must be zero.
> +.TP
> +.BR PR_GET_TIMERSLACK " (since Linux 2.6.28)"
> +Return the current per-thread high-resolution timers slack, in nanoseconds.
> +.TP
> +.BR PR_SET_TIMERSLACK " (since Linux 2.6.28)"
> +Set the current per-thread high-resolution timers slack. If arg2 is less than or
> +equal to zero, system-wide default value is restored. The system-wide default can
> +be read and set by /proc/sys/kernel/timer_slack (see
> +.BR proc (5)).
> +Otherwise, if arg2 is less than or equal to HRTIMER_MAX_SLACK (which is a kernel
> +constant defined in include/linux/hrtimer.h), this value is set up as a new slack.
> +Slack is not inherited across
> +.BR fork (2);
> +new process initially uses system-wide default slack, and new thread inherits
> +it's slack from the group leader.
>  .SH "RETURN VALUE"
>  On success,
>  .BR PR_GET_DUMPABLE ,
> diff --git a/man5/proc.5 b/man5/proc.5
> index 54ccdd8..0493b6b 100644
> --- a/man5/proc.5
> +++ b/man5/proc.5
> @@ -2407,6 +2407,10 @@ date behind it indicates the time the kernel was built.
>  This file specifies the system-wide limit on the number of
>  threads (tasks) that can be created on the system.
>  .TP
> +.IR /proc/sys/kernel/timer_slack
> +This file specifies the system-wide default slack for
> +high-resolution timers, in nanoseconds.
> +.TP
>  .IR /proc/sys/kernel/zero-paged " (PowerPC only) "
>  This file
>  contains a flag.
> --
> 1.7.7.6
>



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
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

      parent reply	other threads:[~2012-04-19  3:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-06  9:02 [PATCH] prctl.2, proc.5: proposal to reflect http://lwn.net/Articles/484162 Dmitry Antipov
     [not found] ` <1333702969-28795-1-git-send-email-dmitry.antipov-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2012-04-19  3:38   ` Michael Kerrisk (man-pages) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKgNAki4z9ENTVmirLqtZEo4ca5AVL63cuP6N1b166PeXshdyw@mail.gmail.com \
    --to=mtk.manpages-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=dmitry.antipov-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=linaro-dev-cunTk1MwBs8s++Sfvej+rw@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=patches-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).