aboutsummaryrefslogtreecommitdiffstats
path: root/slack.1
blob: 92289fc7829934d90000d62bc7cccbd9548554ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
.TH SLACK 1 SLACK
.SH NAME
slack - Spawn processes with customised timer slack
.SH SYNOPSIS
.B slack
[-f] ('get' | 'GET' | ('reset' |
.IR interval )
.I command
.RI [ argument ]\ ...)
.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 \-f
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 >