Hot answers tagged ionice
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 ...
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.
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. ...
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