aboutsummaryrefslogtreecommitdiffstats
path: root/coreupdownd.1
blob: 7d59db300a51f03387d1049bac86da6d10f0803d (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
.TH COREUPDOWND 1 COREUPDOWN
.SH MAME
coreupdownd - Dynamically enable and disable CPU's to only use one during low CPU usage
.SH SYNPOSIS
.B coreupdownd
.RI "[-C " coreup-cooldown-time ]
.RI "[-c " coredown-cooldown-time ]
.RI "[-i " check-interval ]
.RI "[-s " configuration-file ]
.RI "[-T " coreup-cpu-usage-time-consistency-threshold ]
.RI "[-t " coredown-cpu-usage-time-consistency-threshold ]
.RI "[-U " coreup-cpu-usage-threshold ]
.RI "[-u " coredown-cpu-usage-threshold ]
.RI "[-X " post-coreup-command ]
.RI "[-x " post-coredown-command ]
[-ef]
.SH DESCRIPTION
The
.B coreupdownd
daemon dynamically turns all CPU cores, except except
the main one, on and off depending on CPU usage.
.PP
The daemon periodically determines what the CPU usage
would be if only the main CPU core was enable. If it
would be saturated, the other cores are enabled, otherwise
the they are disabled.
.PP
This is designed as a workaround for virtual machines
that have input performance issues (keyboard input lag
and keys getting stuck) when more than one CPU core is
online.
.SH OPTIONS
The
.B coreupdownd
daemon shall conform to the Base Definitions volume of
POSIX.1-2017, Section 12.2, Utility  Syntax Guidelines.
.PP
The following options are supported:
.TP
.BI "-C " coreup-cooldown-time
The amount of time, measured in (integer) multiples of the
.IR check-interval ,
before the daemon may disable CPU's after enabling CPU's.
During this time, time is not counted toward
.IR coredown-cpu-usage-threshold .
.TP
.BI "-c " coredown-cooldown-time
The amount of time, measured in (integer) multiples of the
.IR check-interval ,
before the daemon may enable CPU's after disabling CPU's.
During this time, time is not counted toward
.IR coreup-cpu-usage-threshold .
.TP
.B -e
Do not close standard error at end of initialisation.
.TP
.B -f
Do not daemonise. (The standard input and standard
output will still be closed when the process has
completed it's initialisation.)

Implies
.BR -e .
.TP
.BI "-i " check-interval
The interval, in seconds (need not be integer), with
which the daemon periodically checks the CPU usage.
.TP
.BI "-s " configuration-file
Configuration file to read instead of
.BR /etc/coreupdownd.conf .
.TP
.BI "-T " coreup-cpu-usage-time-consistency-threshold
The amount of time, measure in (integer) multiples of the
.I check-interval
the CPU usage must have stayed at or above
.I coreup-cpu-usage-threshold
before the daemon may enable all CPU's.
.TP
.BI "-t " coredown-cpu-usage-time-consistency-threshold
The amount of time, measured in (integer) multiples of the
.IR check-interval ,
the CPU usage must have stayed at or below
.I coredown-cpu-usage-threshold
before the daemon may disable all CPU's except the main core .
.TP
.BI "-U " coreup-cpu-usage-threshold
The required CPU usage (integer lower bound) before the
daemon may enable all CPU's.
.TP
.BI "-u " coredown-cpu-usage-threshold
The required CPU usage (integer upper bound) before the
daemon may disable all CPU's except the main core.
.TP
.BI "-X " post-coreup-command
Run
.I post-coreup-command
in
.BR sh (1)
after each time all CPU's are enabled.
.TP
.BI "-x " post-coredown-command
Run
.I post-coredown-command
in
.BR sh (1)
after each time all non-main CPU's are disabled.
.SH OPERANDS
No operands are supported.
.SH STDIN
The
.B coreupdownd
daemon does not use the standard input, however
it will be closed by the daemon once initialisation
has completed.
.SH INPUT FILES
None.
.SH ENVIRONMENT VARIABLES
No environment variables affects the execution of
.BR coreupdownd .
.SH ASYNCHRONOUS EVENTS
If the
.B coreupdownd
utility traps the following signals:
.TP
.B SIGHUP
Causes the daemon reload it's configurations, and
attempt to update to the newest installed version
of the daemon.
.SH STDOUT
The
.B coreupdownd
daemon does not use the standard output, however
it will be closed by the daemon once initialisation
has completed.
.SH STDERR
The standard error is used for diagnostic messages.
.SH OUTPUT FILES
None.
.SH EXTENDED DESCRIPTION
None.
.SH EXIT STATUS
If the
.B coreupdownd
daemon only terminates on failure, in which case
the exit status will be:
.TP
1
An error occurred.
.SH CONSEQUENCES OF ERRORS
Default.
.SH APPLICATION USAGE
None.
.SH EXAMPLES
None.
.SH RATIONALE
None.
.SH NOTES
None.
.SH BUGS
None.
.SH FUTURE DIRECTIONS
None.
.SH SEE ALSO
.BR coreupdownd.conf (5),
.BR coreup (1),
.BR coredown (1)