Skip to content

Simple wrapper to start a process, suspending it based on loadavg

License

Notifications You must be signed in to change notification settings

drasill/loadmin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

loadmin

Simple wrapper to start a process, which will be paused / resumed when the loadavg of the systems goes above / under a given value.

Useful to launch a long running command on a loaded system.

Exemple :

loadmin 10 rsync file/from to::here

The rsync command will paused itself when the loadavg goes above 10, and resume once it goes under 10.

Installation

git clone https://github.com/drasill/loadmin.git
cd loadmin
make
# Install into /usr/local/bin/loadmin
sudo make install

Totally inspired/copied from here : http://www.linuxonly.nl/docs/9/77_Suspending_a_process_on_high_load.html

(Thank you Sjoerd Langkemper).

With only minors modifications :

  • LoadAvg max can be specified on command line
  • Displays when Stopping and Resuming

About

Simple wrapper to start a process, suspending it based on loadavg

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published