Tag Info

Hot answers tagged

11

To set niceness (CPU bound) use nice. To set IO niceness (IO bound) use ionice. Refer to the respective man pages for more information. You can use them together as follow: ionice -c 2 -n 0 nice -n -20 mplayer Note: the lowest level of niceness (lower means more favorable) you can define is determined by limits.conf. On my computer the file is located at ...


9

ionice [-p] <pids/> For example: $ ionice -p `pidof X` none: prio 0 This means X is using the none scheduling class (best effort) with priority 0 (highest priority out of 7). Read more with man ionice.


7

In general, as a non-root user, you can only decrease the priority of your tasks, not increase them. So, one approach would be to lower the priority of everything else. Or, you can set up something at the system level which handles your priorities. If you're using a relatively modern Linux distribution, the most powerful way would be with control groups. ...


5

There is big difference between them. ulimit -e only set the RLIMIT_NICE, which is a upper bound value to which the process's nice value can be set using setpriority or nice. renice alters the priority of running process. Doing strace: $ cat test.sh #!/bin/bash ulimit -e 19 Then: $ strace ./test.sh ................................................... ...


2

*emphasized text*Since all the child processes are still a part of the session id (sess in ps output) we could exploit that fact using this command: $ parent=6187 $ ps -eo sess:1=,pid:1= |sed -n "s/^$parent //p" This should return to us all the process IDs of the child processes spawned from lb load. We can also get this directly from pgrep, using the -s ...


2

These snippet of Debian's /etc/default/rsync (Fedora probably doesn't divert too much), # run rsyncd at a nice level? # ... RSYNC_NICE='' # run rsyncd with ionice? # ... # RSYNC_IONICE='-c3' makes me think that the *NICE values only affect the rsyncd daemon. Looking at /etc/init.d/rsync, we find if [ -s $RSYNC_DEFAULTS_FILE ]; then . ...



Only top voted, non community-wiki answers of a minimum length are eligible