Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
cputool
debian-cputool
Commits
ac601019
Commit
ac601019
authored
Jan 05, 2015
by
Nigel Kukard
Browse files
Imported Upstream version 0.0.8
parent
c568a9fb
Changes
7
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
ac601019
commit e09750be7ec66c0643030da78a7fecbd6d52d09e
Author: Nigel Kukard <nkukard@lbsd.net>
Date: Mon Jan 5 14:50:14 2015 +0000
Fixed missing long option arguments
commit b6f8e1b55beb2aed7a77e182f0cbec74fe08aabe
Author: Nigel Kukard <nkukard@lbsd.net>
Date: Wed Sep 10 14:25:00 2014 +0000
Fixed spelling mistake
commit 1dcbd5cdd21e35150d6b16cbd5e349668d2e7c25
Author: Nigel Kukard <nkukard@lbsd.net>
Date: Wed Sep 10 13:29:29 2014 +0000
Fixed up some typography
commit 566f73b5ee5e1bdab8b51fe651053be58d47e758
Author: Nigel Kukard <nkukard@lbsd.net>
Date: Wed Sep 10 13:14:50 2014 +0000
Tidied up manpage a bit
commit ba05019f577066f99d74f61b61b335a4ab624711
Author: Nigel Kukard <nkukard@lbsd.net>
Date: Wed Sep 10 13:14:25 2014 +0000
Remove generated manpage on clean
commit def342fdff2d68b234c3091c3443f9778c092caf
Author: Nigel Kukard <nkukard@lbsd.net>
Date: Tue Sep 9 21:18:22 2014 +0000
...
...
Makefile.am
View file @
ac601019
...
...
@@ -20,4 +20,4 @@ bin_PROGRAMS = cputool
distclean-local
:
killbuildmanpages
killbuildmanpages
:
rm
-f
doc/
*
.tmp manpage.refs manpage.links
rm
-f
doc/
*
.tmp manpage.refs manpage.links
cputool.8
Makefile.in
View file @
ac601019
...
...
@@ -603,7 +603,7 @@ uninstall-man: uninstall-man8
distclean-local
:
killbuildmanpages
killbuildmanpages
:
rm
-f
doc/
*
.tmp manpage.refs manpage.links
rm
-f
doc/
*
.tmp manpage.refs manpage.links
cputool.8
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT
:
configure
View file @
ac601019
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for cputool 0.0.
7
-1.
# Generated by GNU Autoconf 2.69 for cputool 0.0.
8
-1.
#
# Report bugs to <nkukard@lbsd.net>.
#
...
...
@@ -580,8 +580,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME
=
'cputool'
PACKAGE_TARNAME
=
'cputool'
PACKAGE_VERSION
=
'0.0.
7
-1'
PACKAGE_STRING
=
'cputool 0.0.
7
-1'
PACKAGE_VERSION
=
'0.0.
8
-1'
PACKAGE_STRING
=
'cputool 0.0.
8
-1'
PACKAGE_BUGREPORT
=
'nkukard@lbsd.net'
PACKAGE_URL
=
''
...
...
@@ -1258,7 +1258,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat
<<
_ACEOF
\`
configure' configures cputool 0.0.
7
-1 to adapt to many kinds of systems.
\`
configure' configures cputool 0.0.
8
-1 to adapt to many kinds of systems.
Usage:
$0
[OPTION]... [VAR=VALUE]...
...
...
@@ -1324,7 +1324,7 @@ fi
if
test
-n
"
$ac_init_help
"
;
then
case
$ac_init_help
in
short
|
recursive
)
echo
"Configuration of cputool 0.0.
7
-1:"
;;
short
|
recursive
)
echo
"Configuration of cputool 0.0.
8
-1:"
;;
esac
cat
<<
\
_ACEOF
...
...
@@ -1411,7 +1411,7 @@ fi
test
-n
"
$ac_init_help
"
&&
exit
$ac_status
if
$ac_init_version
;
then
cat
<<
\
_ACEOF
cputool configure 0.0.
7
-1
cputool configure 0.0.
8
-1
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
...
...
@@ -1888,7 +1888,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by cputool
$as_me
0.0.
7
-1, which was
It was created by cputool
$as_me
0.0.
8
-1, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0
$@
...
...
@@ -2554,7 +2554,7 @@ fi
# Define the identity of the package.
PACKAGE
=
'cputool'
VERSION
=
'0.0.
7
-1'
VERSION
=
'0.0.
8
-1'
cat
>>
confdefs.h
<<
_ACEOF
...
...
@@ -5549,7 +5549,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by cputool
$as_me
0.0.
7
-1, which was
This file was extended by cputool
$as_me
0.0.
8
-1, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES =
$CONFIG_FILES
...
...
@@ -5615,7 +5615,7 @@ _ACEOF
cat
>>
$CONFIG_STATUS
<<
_ACEOF
|| ac_write_fail=1
ac_cs_config="`
$as_echo
"
$ac_configure_args
" | sed 's/^ //; s/[
\\
""
\`\$
]/
\\\\
&/g'`"
ac_cs_version="
\\
cputool config.status 0.0.
7
-1
cputool config.status 0.0.
8
-1
configured by
$0
, generated by GNU Autoconf 2.69,
with options
\\
"
\$
ac_cs_config
\\
"
...
...
configure.ac
View file @
ac601019
...
...
@@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.67])
AC_INIT([cputool], [0.0.
7
-1], [nkukard@lbsd.net])
AC_INIT([cputool], [0.0.
8
-1], [nkukard@lbsd.net])
AM_INIT_AUTOMAKE([-Wno-portability])
AC_CONFIG_SRCDIR([cputool.h])
...
...
cputool.c
View file @
ac601019
...
...
@@ -581,10 +581,10 @@ int main (int argc, char *argv[]) {
/* Our long options */
struct
option
long_options
[]
=
{
{
"pid"
,
0
,
0
,
'p'
},
{
"pid-pgrp"
,
0
,
0
,
'P'
},
{
"cpu-limit"
,
0
,
0
,
'c'
},
{
"load-limit"
,
0
,
0
,
'l'
},
{
"pid"
,
1
,
0
,
'p'
},
{
"pid-pgrp"
,
1
,
0
,
'P'
},
{
"cpu-limit"
,
1
,
0
,
'c'
},
{
"load-limit"
,
1
,
0
,
'l'
},
{
"verbose"
,
0
,
0
,
'v'
},
{
"version"
,
0
,
0
,
'V'
},
{
"help"
,
0
,
0
,
'h'
},
...
...
doc/cputool.sgml
View file @
ac601019
...
...
@@ -59,7 +59,7 @@ manpage.1: manpage.sgml
<refnamediv>
<refname>&dhpackage;</refname>
<refpurpose>
cput
ool is a utility which manages CPU usage and system load</refpurpose>
<refpurpose>
CPUT
ool is a utility which manages CPU usage and system load</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
...
...
@@ -78,8 +78,8 @@ manpage.1: manpage.sgml
<refsect1>
<title>DESCRIPTION</title>
<para>
Limit the
cpu
usage of a process or a process group to a given limit and/or suspend processes if the system load exceeds a
treshold
value. Cput
ool works by sending SIGSTOP and SIGCONT signals to processes depending on the system load.
Limit the
CPU
usage of a process or a process group to a given limit and/or suspend processes if the system load exceeds a
t
h
reshold
. CPUT
ool works by sending SIGSTOP and SIGCONT signals to processes depending on the system load.
</para>
</refsect1>
<refsect1>
...
...
@@ -93,7 +93,7 @@ manpage.1: manpage.sgml
<term><option>-c</option>, <option>--cpu-limit <replaceable>PCNT</replaceable></option></term>
<listitem>
<para>
Specify the maxium
cpu
the process / process group can use. Expressed as percentage of total CPU. Eg. 200 is two full
Specify the maxium
CPU
the process / process group can use. Expressed as percentage of total CPU. Eg. 200 is two full
CPUs in a multi processor system. Specify an integer value.
</para>
</listitem>
...
...
@@ -102,7 +102,7 @@ manpage.1: manpage.sgml
<term><option>-l</option>, <option>--load-limit <replaceable>LOAD</replaceable></option></term>
<listitem>
<para>
Specify the maxium load the system may experience for the process process group to continue running. Specif
i
ng a
Specify the maxium load the system may experience for the process process group to continue running. Specif
y
ng a
fractional value is possible (e.g. 3.5).
</para>
</listitem>
...
...
@@ -111,7 +111,7 @@ manpage.1: manpage.sgml
<term><option>-p</option>, <option>--pid <replaceable>PID</replaceable></option></term>
<listitem>
<para>
Manage the CPU usage of a specific PID. This is the most efficient use of
cput
ool as it does not have to walk the
Manage the CPU usage of a specific PID. This is the most efficient use of
CPUT
ool as it does not have to walk the
process tree to look for forks of children.
</para>
</listitem>
...
...
@@ -121,7 +121,7 @@ manpage.1: manpage.sgml
<listitem>
<para>
Manage the CPU usage of a specific PID's entire process group. The same can be achieved by specifying a
<replaceable>COMMAND</replaceable> which
cput
ool will then execute and manage the process group created by that
<replaceable>COMMAND</replaceable> which
CPUT
ool will then execute and manage the process group created by that
command.
</para>
</listitem>
...
...
@@ -151,7 +151,7 @@ manpage.1: manpage.sgml
<refsect1>
<title>NOTES</title>
<para>
cput
ool will run on 32-bit and 64-bit Linux systems. It depends on the /proc pseudo-filesystem to detect PIDs and their
CPUT
ool will run on 32-bit and 64-bit Linux systems. It depends on the /proc pseudo-filesystem to detect PIDs and their
resource usage.
</para>
<para>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment