aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-02-22 13:18:45 +0100
committerMattias Andrée <m@maandree.se>2026-02-22 13:18:45 +0100
commite2d80d2da476f583b77d793bcbf23b59a5d1266e (patch)
tree7269993fa263a83538375c8769956e426a742d16
parentUpdate e-mail (diff)
downloadcoreupdown-master.tar.gz
coreupdown-master.tar.bz2
coreupdown-master.tar.xz
misc fixesHEAD1.1.1master
Signed-off-by: Mattias Andrée <m@maandree.se>
-rw-r--r--README10
-rw-r--r--coredown.110
-rw-r--r--coreup.110
-rw-r--r--coreupdown.c4
-rw-r--r--coreupdownd.118
-rw-r--r--coreupdownd.conf.510
6 files changed, 31 insertions, 31 deletions
diff --git a/README b/README
index bbb5a4f..3b2985d 100644
--- a/README
+++ b/README
@@ -1,8 +1,8 @@
-MAME
- coreup - Enable all CPU core
+NAME
+ coreup - Enable all CPU cores
coredown - Disable all but one CPU core
-SYNPOSIS
+SYNOPSIS
coreup [count]
coredown [count]
@@ -10,7 +10,7 @@ DESCRIPTION
The coreup utility enables all CPU cores on the machine.
The coredown utility disables all CPU cores on the machine
- expect the CPU 0.
+ except CPU 0.
This is designed as a workaround for virtual machines that
have input performance issues (keyboard input lag and keys
@@ -34,7 +34,7 @@ EXIT STATUS
1 An error occurred.
NOTES
- The is no difference between the coreup(1) and coredown(1)
+ There is no difference between the coreup(1) and coredown(1)
utilities when the count operand is specified.
SEE ALSO
diff --git a/coredown.1 b/coredown.1
index f97f2f5..7f8200f 100644
--- a/coredown.1
+++ b/coredown.1
@@ -1,14 +1,14 @@
-.TH COREDOWN 1 COREDOWNDOWN
+.TH COREDOWN 1 COREUPDOWN
.SH NAME
coredown - Disable all but one CPU core
-.SH SYNPOSIS
+.SH SYNOPSIS
.B coredown
.RI [ count ]
.SH DESCRIPTION
The
.B coredown
utility disables all CPU cores on the machine
-expect the CPU 0.
+expect CPU 0.
.PP
This is designed as a workaround for virtual machines
that have input performance issues (keyboard input lag
@@ -30,7 +30,7 @@ utility does not use the standard input.
.SH INPUT FILES
None.
.SH ENVIRONMENT VARIABLES
-No environment variables affects the execution of
+No environment variable affects the execution of
.BR coredown .
.SH ASYNCHRONOUS EVENTS
Default.
@@ -63,7 +63,7 @@ None.
.SH RATIONALE
None.
.SH NOTES
-The is no difference between the
+There is no difference between the
.BR coreup (1)
and
.BR coredown (1)
diff --git a/coreup.1 b/coreup.1
index e666c71..091d8f9 100644
--- a/coreup.1
+++ b/coreup.1
@@ -1,7 +1,7 @@
.TH COREUP 1 COREUPDOWN
-.SH MAME
-coreup - Enable all CPU core
-.SH SYNPOSIS
+.SH NAME
+coreup - Enable all CPU cores
+.SH SYNOPSIS
.B coreup
.RI [ count ]
.SH DESCRIPTION
@@ -24,7 +24,7 @@ utility does not use the standard input.
.SH INPUT FILES
None.
.SH ENVIRONMENT VARIABLES
-No environment variables affects the execution of
+No environment variable affects the execution of
.BR coreup .
.SH ASYNCHRONOUS EVENTS
Default.
@@ -57,7 +57,7 @@ None.
.SH RATIONALE
None.
.SH NOTES
-The is no difference between the
+There is no difference between the
.BR coreup (1)
and
.BR coredown (1)
diff --git a/coreupdown.c b/coreupdown.c
index 283a1de..ba80758 100644
--- a/coreupdown.c
+++ b/coreupdown.c
@@ -30,7 +30,7 @@ coreupdown(unsigned long int count, const char *postcommand)
int fd, have_success = 0, have_failure = 0;
for (i = 1; i; i++) {
- sprintf(path, "/sys/devices/system/cpu/cpu%zu/online", i);
+ sprintf(path, "/sys/devices/system/cpu/cpu%lu/online", i);
fd = open(path, O_WRONLY);
if (fd < 0) {
if (errno == ENOENT)
@@ -337,7 +337,7 @@ writefile(const char *path, const char *data, size_t len)
exit(1);
}
- for (off = 0; off < len; off++) {
+ for (off = 0; off < len;) {
r = write(fd, &data[off], len - off);
if (r < 0) {
if (errno == EINTR)
diff --git a/coreupdownd.1 b/coreupdownd.1
index 7d59db3..b550b5b 100644
--- a/coreupdownd.1
+++ b/coreupdownd.1
@@ -1,7 +1,7 @@
.TH COREUPDOWND 1 COREUPDOWN
-.SH MAME
+.SH NAME
coreupdownd - Dynamically enable and disable CPU's to only use one during low CPU usage
-.SH SYNPOSIS
+.SH SYNOPSIS
.B coreupdownd
.RI "[-C " coreup-cooldown-time ]
.RI "[-c " coredown-cooldown-time ]
@@ -17,13 +17,13 @@ coreupdownd - Dynamically enable and disable CPU's to only use one during low CP
.SH DESCRIPTION
The
.B coreupdownd
-daemon dynamically turns all CPU cores, except except
+daemon dynamically turns all CPU cores, 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 if only the main CPU core was enabled. If it
would be saturated, the other cores are enabled, otherwise
-the they are disabled.
+they are disabled.
.PP
This is designed as a workaround for virtual machines
that have input performance issues (keyboard input lag
@@ -57,7 +57,7 @@ Do not close standard error at end of initialisation.
.B -f
Do not daemonise. (The standard input and standard
output will still be closed when the process has
-completed it's initialisation.)
+completed its initialisation.)
Implies
.BR -e .
@@ -71,14 +71,14 @@ 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
+The amount of time, measured 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
+The amount of time, measuredd in (integer) multiples of the
.IR check-interval ,
the CPU usage must have stayed at or below
.I coredown-cpu-usage-threshold
@@ -124,7 +124,7 @@ If the
utility traps the following signals:
.TP
.B SIGHUP
-Causes the daemon reload it's configurations, and
+Causes the daemon reload its configurations, and
attempt to update to the newest installed version
of the daemon.
.SH STDOUT
diff --git a/coreupdownd.conf.5 b/coreupdownd.conf.5
index 961de41..2c60d03 100644
--- a/coreupdownd.conf.5
+++ b/coreupdownd.conf.5
@@ -1,20 +1,20 @@
.TH COREUPDOWND 5 COREUPDOWN
-.SH MAME
+.SH NAME
coreupdownd.conf - Configurations for coreupdownd(1)
-.SH SYNPOSIS
+.SH SYNOPSIS
/etc/coreupdownd.conf
.SH DESCRIPTION
The
.B coreupdownd.conf
-configuration files is a plain line based
+configuration file is a plain line-based
configuration file for the
.BR coreupdownd (1)
daemon.
.PP
Any hash
.RB ( # )
-character starts comment that end of the
-end of the cline.
+character starts comment that ends of the
+end of the line.
Comments and otherwise blank lines are ignored.
Apart from this, each line must be a configuration
name, followed by an equals sign