You are not logged in.

#1 2017-09-15 13:12:01

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Give more priority (cpu time) to a certain process over others

My computer is becoming a bit slow this days, it's quite old and some x265 playback is starting to lag a lot.

I have been doing some research and it seems to be very heavy on cpu usage, so I wasn thinking perhaps I could prioritise kodi over, for example, deluge daemon, which is hogging a lot of cpu from time to time.

I guess I could work out how to manually set the priority but I must ask how to do this persistent between reboots, so this process is always more privileged than any other ones.

Thanks!

Offline

#2 2017-09-15 13:15:08

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,534
Website

Re: Give more priority (cpu time) to a certain process over others

`man nice`

As for making it permanent, just change how you start the programs in question to add the call to `nice`.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2017-09-15 13:42:05

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Give more priority (cpu time) to a certain process over others

Also 'man schedtool'.

Especially if you happened to be using linux-ck, or some other kernel that supports SCHED_ISO and/or SCHED_IDLEPRIO.

Offline

Board footer

Powered by FluxBB