Caleb Cushing's Blog
nice -n 19 ionice -c 3 programname
Won't the above make ionice run with a nice value of 19 and leave programname running with the standard nice value? I can see that it should drop the ionice value of programname but not the nice value as well. I thought that the reason many examples of ionice use the -ppid interface is so that you can pick the pid of an already nice program.
A user can execute:$ ionice -c 3 nice -n 19 dd if=/dev/urandom of=my_file &$ ionice -p $(pidof dd)and it answers: "idle". Also a user can execute "top" and see something like: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 30950 USER 39 19 94164 636 516 R 84 0.0 1:07.82 dd showing a "niceness" value of "19", which is what he wanted.
Of course, the user would also execute at the end:$ killall dd$ rm my_file
afaik, a program will inherit the nice, and ionice values of it's parent process. so even if you are nicing ionice the process you're running ionice on will inherit that niceness level. Also tias.
No trolling, profanity, or flame wars :: My Blog, my rules! No crying or arguing about them.