LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Manjaro (https://www.linuxquestions.org/questions/manjaro-119/)
-   -   Making permanent changes to I/O and CPU schedulers on a given program (https://www.linuxquestions.org/questions/manjaro-119/making-permanent-changes-to-i-o-and-cpu-schedulers-on-a-given-program-4175663594/)

expat42451 11-02-2019 11:35 PM

Making permanent changes to I/O and CPU schedulers on a given program
 
System:
Host: orphaned-inode Kernel: 4.19.80-1-MANJARO x86_64 bits: 64
Desktop: KDE Plasma 5.17.1 Distro: Manjaro Linux Stable

I want to permanently change priorities on a couple of programs on the CPU scheduler from normal to FIFO at highest priority and the I/O scheduler to highest priority Realtime. I can do this in KSysguard using the process table tab, right clicking on the process and making the changes to both CPU and I/O. Trouble is its only good for the life of the process during the time its running in the given session. I want to change this so whenever I start the process I dont have to go through the dance with KSysguard--and where the program remembers the priority across uses and sessions. I have not been able to find anything here on the forum or in Arch or Manjaro, I figure there has to be a CLI tool to do this I just do not know what it is, to make my changes persistent.
Regards & Thanks

pan64 11-03-2019 10:05 AM

I would implement a wrapper, so instead of invoking your process you will start the wrapper which will set everything as you need.

expat42451 11-03-2019 12:20 PM

Hi pan64

Thaks very much for the suggestion. Going to try that and see how it works. Whats pretty interesting is there doesnt seem to be much information around about wrappers.

Regards & thanks again for the read, interest and suggestion.

pan64 11-03-2019 12:33 PM

wrapper script is a quite common and general expression. That means you will set up an environment to be able to run something (which actually cannot be altered) the way you like.
wrapper can be anything, but usually it is a simple shell script (or python/perl/whatever, what you prefer). Usually (most probably) we replace the original app and invoke the wrapper which will then run the real app in a controlled way.


All times are GMT -5. The time now is 06:46 PM.