aboutsummaryrefslogtreecommitdiffstats
path: root/slack.1
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-10-19 20:37:55 +0200
committerMattias Andrée <maandree@kth.se>2017-10-19 20:38:18 +0200
commitab8c5404d8e6468204cea83c9d20205f0ab122ed (patch)
treedc873c3e0614b630e8b183be22aba2314a4c6ed0 /slack.1
parentupdate dist (diff)
downloadslack-ab8c5404d8e6468204cea83c9d20205f0ab122ed.tar.gz
slack-ab8c5404d8e6468204cea83c9d20205f0ab122ed.tar.bz2
slack-ab8c5404d8e6468204cea83c9d20205f0ab122ed.tar.xz
Remove crap, simplify makefile, and relicense
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'slack.1')
-rw-r--r--slack.170
1 files changed, 70 insertions, 0 deletions
diff --git a/slack.1 b/slack.1
new file mode 100644
index 0000000..f8a0c37
--- /dev/null
+++ b/slack.1
@@ -0,0 +1,70 @@
+.TH SLACK 1 SLACK
+.SH NAME
+slack - Spawn processes with customised timer slack
+.SH SYNOPSIS
+.B slack
+(get | GET)
+.br
+.B slack
+.RI ((reset\ |\ INTERVAL )
+[\-\-fatal] [--]
+.IR COMMAND ...)
+.SH DESCRIPTION
+If the verb
+.B get
+or
+.B GET
+is used, the current timer slack value and exit. If get is used, the
+program shall use as high prefix as possible. If
+.V GET
+is used the value shall be printed in nanoseconds but not unit shall
+be printed.
+.PP
+If the verb reset is used, the process shall set the timer slack value
+for the process to the default timer slack value, and
+.BR exec (3)
+to
+.IR COMMAND .
+.PP
+If an
+.I INTERVAL
+is given, the process shall set the timer slack value for the process
+to
+.IR INTERVAL ,
+and
+.BR exec (3)
+to
+.IR COMMAND .
+.PP
+.I INTERVAL
+must be a positive number, optionally with a prefix. Recognised
+prefixes (and units) are:
+.TP
+.BR ns ,\ n
+nanoseconds (default)
+.TP
+.BR µs ,\ µ ,\ us \,\ u
+microseconds
+.TP
+.BR ms ,\ m
+milliseconds
+.TP
+.BR s
+seconds
+.PP
+The default timer slack value is the timer slack value on PID 1.
+.SH OPTIONS
+.TP
+.B \-\-fatal
+Fail if the timer slack value cannot be set.
+.SH NOTES
+Real-time threads do not slack around.
+.SH RATIONALE
+Could be useful increase the performance of your computer.
+.SH "SEE ALSO"
+.BR nice (1),
+.BR ionice (1),
+.BR prctl (2)
+.SH AUTHORS
+Mattias Andrée
+.RI < maandree@kth.se >