How to make the Linux system as CPU-bounded rather than I/O-bounded.

I want to run the mplayer with most-highest priority than any other processes, including copying data from/to one-storage device or from/to over network to/from the local storage device.

Normally, when I started the copying action, the video stuck for a moment, and continued to play again. This process repeats itself, till the copying operation get completed.

If copying takes more time, then I do not mind.

Any idea, how can I do that ?

Regards, Satish

link|improve this question
feedback

migrated from stackoverflow.com Feb 17 '11 at 12:03

This question came from our site for professional and enthusiast programmers.

1 Answer

ionice lets you specify the IO priority of a process on recent Linux kernels

e.g.

ionice -c 1 -n 0 mplayer ...
link|improve this answer
I tried this command, but it did not ring the bell. Any other way to do ? – SHW Feb 17 '11 at 11:34
you can retrospectively apply io scheduler priorities to a process using ionice by passing and existing PID using the -p option – awoodland Feb 17 '11 at 11:37
I tried that too, but it was of no use, as the mplayer get stucks when the I/O operation starts. – SHW Feb 17 '11 at 12:53
You can always run the other io processes at low priority too. – awoodland Feb 17 '11 at 14:02
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.