EnglishFrenchSpanish

OnWorks favicon

reniced - Online in the Cloud

Run reniced in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command reniced that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


reniced - renice running processes based on regular expressions

SYNOPSIS


reniced [-h] [-v] [-o format] [configfile]

OVERVIEW


reniced takes a list of regular expressions, looks for processes (and threads) matching
them and renices the processes to given values. reniced can also change io priorities.

DESCRIPTION


On start, reniced reads a configuration file. It consists of nice values and regular
expressions.

It then scans the process table using the ps(1) command. Whenever a process name from the
CMD column matches a regular expression, that process is reniced to the given value. If a
process matches multiple regular expressions, all rule matches are executed in order and
the last match wins.

When run as root, reniced will scan all processes ("`ps H -e`"). When run as a user,
renice only scans the user's processes ("`ps H --user`").

Switches
-h This prints the version number, a short help text and exits without doing anything.

-v This activates verbose mode. Error messages, some statistics and all renice actions
are printed to stdout.

-o format
Set the ps(1) output format to filter on. The default format is "comm". See the -o
parameter in the ps(1) manpage for details.

configfile
This reads the regular expressions from an alternate configfile.

The default location of the configfile is "/etc/reniced.conf" if reniced is run as
root, "~/.reniced" otherwise.

Configuration file format
The configuration file is composed of single lines. Empty lines and lines starting with a
# are ignored.

Every line must consist of a command followed by a whitespace and a Perl regular
expression.

The regular expression is matched against the ps(1) output. For every matched process the
command is executed.

A command generally takes the form of a character followed by a number. Multiple commands
can be given simultaneously with no spaces inbetween. Sometimes the number is optional.

Command characters

n Sets the nice value of a process. Must be followed by a number, usually within the
range of -20 to 19.

For backwards compatibility a n at the beginning of the command can be left out (if
the command starts with a number it is treated as a nice value).

r Sets the io priority to the realtime scheduling class. The optional number is
treated as class data (typically 0-7, lower being higher priority).

b Sets the io priority to the best-effort scheduling class. The optional number is
treated as class data (typically 0-7, lower being higher priority).

i Sets the io priority to the idle scheduling class. No number needs to be given as
the idle scheduling class ignores the class data value.

o Sets the OOM killer adjustment in "/proc/$PID/oom_adj" to the given number.

Examples

"5 ^bash"
gives currently running bash shells a nice value of 5

"b2 ^tar"
sets currently running tar-processes to io priority best-effort within class 2

"i torrent"
sets currently running torrent-like applications to io priority idle

"n-10r4 seti"
gives currently running seti-processes a nice value of -10 and sets them to realtime
io priority in class 4

MODULES NEEDED


use BSD::Resource;

This module can be obtained from <http://www.cpan.org>.

PROGRAMS NEEDED


ps
ionice

ionice is only needed if you want to change io priority. It can be obtained from
<http://rlove.org/schedutils/>.

You also need a suitable kernel and scheduler, e.g. Linux 2.6 with CFQ.

Use reniced online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    PAC Manager
    PAC Manager
    PAC is a Perl/GTK replacement for
    SecureCRT/Putty/etc (linux
    ssh/telnet/... gui)... It provides a GUI
    to configure connections: users,
    passwords, EXPECT regula...
    Download PAC Manager
  • 2
    GeoServer
    GeoServer
    GeoServer is an open-source software
    server written in Java that allows users
    to share and edit geospatial data.
    Designed for interoperability, it
    publishes da...
    Download GeoServer
  • 3
    Firefly III
    Firefly III
    A free and open-source personal finance
    manager. Firefly III features a
    double-entry bookkeeping system. You can
    quickly enter and organize your
    transactions i...
    Download Firefly III
  • 4
    Apache OpenOffice Extensions
    Apache OpenOffice Extensions
    The official catalog of Apache
    OpenOffice extensions. You'll find
    extensions ranging from dictionaries to
    tools to import PDF files and to connect
    with ext...
    Download Apache OpenOffice Extensions
  • 5
    MantisBT
    MantisBT
    Mantis is an easily deployable, web
    based bugtracker to aid product bug
    tracking. It requires PHP, MySQL and a
    web server. Checkout our demo and hosted
    offerin...
    Download MantisBT
  • 6
    LAN Messenger
    LAN Messenger
    LAN Messenger is a p2p chat application
    for intranet communication and does not
    require a server. A variety of handy
    features are supported including
    notificat...
    Download LAN Messenger
  • More »

Linux commands

  • 1
    abidw
    abidw
    abidw - serialize the ABI of an ELF
    file abidw reads a shared library in ELF
    format and emits an XML representation
    of its ABI to standard output. The
    emitted ...
    Run abidw
  • 2
    abilint
    abilint
    abilint - validate an abigail ABI
    representation abilint parses the native
    XML representation of an ABI as emitted
    by abidw. Once it has parsed the XML
    represe...
    Run abilint
  • 3
    coresendmsg
    coresendmsg
    coresendmsg - send a CORE API message
    to the core-daemon daemon ...
    Run coresendmsg
  • 4
    core_server
    core_server
    core_server - The primary server for
    SpamBayes. DESCRIPTION: Currently serves
    the web interface only. Plugging in
    listeners for various protocols is TBD.
    This ...
    Run core_server
  • 5
    fwflash
    fwflash
    fwflash - program to flash image file
    to a connected NXT device ...
    Run fwflash
  • 6
    fwts-collect
    fwts-collect
    fwts-collect - collect logs for fwts
    bug reporting. ...
    Run fwts-collect
  • More »

Ad