LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Manjaro
User Name
Password
Manjaro This forum is for the discussion of Manjaro Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 11-02-2019, 11:35 PM   #1
expat42451
LQ Newbie
 
Registered: Oct 2015
Posts: 10

Rep: Reputation: Disabled
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
 
Old 11-03-2019, 10:05 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,687

Rep: Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274
I would implement a wrapper, so instead of invoking your process you will start the wrapper which will set everything as you need.
 
1 members found this post helpful.
Old 11-03-2019, 12:20 PM   #3
expat42451
LQ Newbie
 
Registered: Oct 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
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.
 
Old 11-03-2019, 12:33 PM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,687

Rep: Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274
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.

Last edited by pan64; 11-03-2019 at 12:38 PM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux: PlugSched, Pluggable CPU Schedulers LXer Syndicated Linux News 0 07-18-2007 11:46 PM
LXer: Linux: Comparing New CPU Schedulers LXer Syndicated Linux News 0 04-22-2007 03:31 PM
making changes permanent through mii-tool simplyrahul Linux - Networking 1 11-20-2004 12:56 PM
Making Routing Table Changes Permanent gabriele_101 Linux - Networking 3 11-18-2004 07:30 AM
Making Changes Permanent T-u-N-i-X Linux - General 1 09-01-2003 05:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Manjaro

All times are GMT -5. The time now is 09:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration