Floating Point Math in Bash, Part 2 (Wait for System Load)

Posted by Scott_Ruecker on Aug 11, 2008 11:41 PM EDT
Linux Journal; By Mitch Frazier
Mail this story
Print this story

If you run scripts that require a lot of execution time it's a good idea to try to avoid letting them overload your system. You can run them via nice, but if for example your script is sending a bunch of emails your email daemon isn't running via nice and it may itself get out of control. One way to deal with this is by using the values in /proc/loadavg to pause when your system load gets too high.

Full Story

  Nav
» Read more about: Story Type: News Story; Groups: Linux

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.