# Run procedure with greater priority

I intend to run mplayer with greater priority than any kind of various other procedures, consisting of the IO - procedures. Just how can I do that?

0
2019-05-18 23:44:28
Source Share

To set niceness (CPU bound) make use of nice. To set IO niceness (IO bound) make use of ionice. Describe the corresponding male web pages for additional information. You can utilize them with each other as adhere to:

ionice -c 2 -n 0 nice -n -20 mplayer


Note: the most affordable degree of niceness (lower suggests extra desirable) you can specify is established by limits.conf. On my computer system the documents lies at /etc/security/limits.conf.

0
2019-05-21 09:54:11
Source

In basic, as a non - origin customer, you can just decrease the priority of your jobs, not increase them. So, one strategy would certainly be to lower the priority of every little thing else. Or, you can set up something at the system degree which manages your top priorities.

If you are making use of a reasonably modern-day Linux circulation, one of the most effective means would certainly be with control groups. This remains in its early stage so primarily you would certainly need to set up every little thing by hand, yet basically what you desire is to set up the categorizer to place various procedures right into various CPU control teams, and afterwards to offer the mplayer procedure extra CPU shares.

0
2019-05-21 09:38:23
Source