I have a shell script that runs very cpu intensive programs. FFMPEG,ffmpeg2theora,etc. and I want to be able to run them but not choke the server. Is there something I can do to make sure the running programs are running as fast as possible but not hurting the server?
Like a priority system...if something else comes along that needs it the other programs drop in priority aka cpu usage. I know there is "nice" but with the above programs are not working with it.
I played with cpulimit but that makes me say it can't go higher than that even though there may be a light load and it could handle more.
Any existing unix tools or ideas?