1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to set process priority in Tomato

Discussion in 'Tomato Firmware' started by bitsonic, Oct 22, 2007.

  1. bitsonic

    bitsonic LI Guru Member

    I am running a piece of program in Tomato, I would like to set the its priority to low so that it consume less CPU resources. What command should I use? Some Linux articles said I should use "nice" command. But I couldn't find it. Thanks in advance.
  2. acidmelt

    acidmelt LI Guru Member

    Youll need nice and renice, however the busybox binary in tomato is not compiled with these utilities (and many other utilities busybox supports that are considered unneeded, to reduce the size of the binary).

    So your only choice is to recompile busybox (cross compile for the mips architecture) and configure it to your tastes and then just replace the busybox in /bin with your busybox and create the correct symlinks for nice and renice.
  3. bitsonic

    bitsonic LI Guru Member

    Thanks Acidmelt. But I guess I will give up because I know nothing about compiling.

Share This Page