summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Cort <tcort@gentoo.org>2006-10-19 01:34:24 +0000
committerThomas Cort <tcort@gentoo.org>2006-10-19 01:34:24 +0000
commitccc7a5a213278744cbfaebd7fd8f562d14a3aff7 (patch)
treea2579e53cbf5c83409a05c43d16a2e3c419a6c04 /app-admin/cpulimit/files
parentReplace -O2 with -O3 on x86 systems running GCC 4.1. Closes bug #151221. (diff)
downloadgentoo-2-ccc7a5a213278744cbfaebd7fd8f562d14a3aff7.tar.gz
gentoo-2-ccc7a5a213278744cbfaebd7fd8f562d14a3aff7.tar.bz2
gentoo-2-ccc7a5a213278744cbfaebd7fd8f562d14a3aff7.zip
Initial Commit. Ebuild from sunrise overlay. Ebuild originally from Rupel <ruepel@gmx.li> on Bug #139547.
(Portage version: 2.1.1-r1)
Diffstat (limited to 'app-admin/cpulimit/files')
-rw-r--r--app-admin/cpulimit/files/cpulimit-1.1-makefile.patch11
-rw-r--r--app-admin/cpulimit/files/cpulimit.849
-rw-r--r--app-admin/cpulimit/files/digest-cpulimit-1.13
3 files changed, 63 insertions, 0 deletions
diff --git a/app-admin/cpulimit/files/cpulimit-1.1-makefile.patch b/app-admin/cpulimit/files/cpulimit-1.1-makefile.patch
new file mode 100644
index 000000000000..19f8b56dfd6c
--- /dev/null
+++ b/app-admin/cpulimit/files/cpulimit-1.1-makefile.patch
@@ -0,0 +1,11 @@
+--- cpulimit-1.1~/Makefile 2006-07-12 23:33:51.000000000 +0200
++++ cpulimit-1.1/Makefile 2006-07-12 23:34:48.000000000 +0200
+@@ -1,7 +1,7 @@
+ all:: cpulimit
+
+ cpulimit: cpulimit.c
+- gcc -o cpulimit cpulimit.c -lrt -Wall -O2
++ $(CC) -o cpulimit cpulimit.c -lrt $(CFLAGS)
+
+ clean:
+ rm -f *~ cpulimit
diff --git a/app-admin/cpulimit/files/cpulimit.8 b/app-admin/cpulimit/files/cpulimit.8
new file mode 100644
index 000000000000..8e6dcf9bbf42
--- /dev/null
+++ b/app-admin/cpulimit/files/cpulimit.8
@@ -0,0 +1,49 @@
+.TH CPULIMIT "8" "July 2006" "cpulimit" "System Management"
+.SH NAME
+cpulimit -- limits the CPU usage of a process
+.SH SYNOPSIS
+.B cpulimit
+\fITARGET \fR[\fIOPTIONS\fR...]
+.SH DESCRIPTION
+.P
+\fITARGET \fRmust be exactly one of these:
+.TP
+\fB\-p\fR, \fB\-\-pid\fR=\fIN\fR
+pid of the process
+.TP
+\fB\-e\fR, \fB\-\-exe\fR=\fIFILE\fR
+name of the executable program file
+.TP
+\fB\-P\fR, \fB\-\-path\fR=\fIPATH\fR
+absolute path name of the executable program file
+.P
+\fIOPTIONS\fR
+.TP
+\fB\-l\fR, \fB\-\-limit\fR=\fIN\fR
+percentage of CPU allowed from 0 to 100 (mandatory)
+.TP
+\fB\-v\fR, \fB\-\-verbose\fR
+show control statistics
+.TP
+\fB\-z\fR, \fB\-\-lazy\fR
+exit if there is no suitable target process, or if it dies
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+display this help and exit
+.SH EXAMPLES
+Assuming you have started \fB`foo \-\-bar`\fR and you find out with \fItop\fR(1) or
+\fIps\fR(1) that this process uses all your CPU time you can either
+.TP
+\[sh] \fBcpulimit \-e foo \-l 50\fR
+limits the CPU usage of the process by acting on the executable program file
+(note: the argument "\-\-bar" is omitted)
+.TP
+\[sh] \fBcpulimit \-p 1234 \-l 50\fR
+limits the CPU usage of the process by acting on its PID, as shown by
+\fIps\fR(1)
+.TP
+\[sh] \fBcpulimit \-P /usr/bin/foo \-l 50\fR
+same as \fI\-e\fR but uses the absolute path name
+.SH AUTHOR
+This manpage was written for the Debian project by gregor herrmann
+<gregor+debian@comodo.priv.at> but may be used by others.
diff --git a/app-admin/cpulimit/files/digest-cpulimit-1.1 b/app-admin/cpulimit/files/digest-cpulimit-1.1
new file mode 100644
index 000000000000..6f32cbc43ce7
--- /dev/null
+++ b/app-admin/cpulimit/files/digest-cpulimit-1.1
@@ -0,0 +1,3 @@
+MD5 f4ff6d4bfaef1258e8f5cd2041e2e2a3 cpulimit-1.1.tar.gz 5130
+RMD160 386a7c0cd248273c7dff1a2dc48e5269160fa3c3 cpulimit-1.1.tar.gz 5130
+SHA256 ee734e82692dc496a083c003340b326bd779567f5de99fcae99e451606c85c00 cpulimit-1.1.tar.gz 5130