Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

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

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

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

e.g.

ionice -c 1 -n 0 mplayer ...
share|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 – Flexo 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. – Flexo Feb 17 '11 at 14:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .