Tuesday, April 30, 2024
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 16854  / 1 Year ago, sat, november 26, 2022, 6:15:11

I would like to be able to change the priority of the SuperTuxKart process to a higher one so that it will run with less lag. It is quite easy to do on Windows (you just need the administrator password/account) but it's basically impossible in Ubuntu.
I tried gksu gnome-system-monitor and sudo gnome-system-monitor but both gave me processes for the root account, not mine (an administrator account).



Any help I can get is appreciated!


More From » system-monitor

 Answers
1

changing a process' priority...


from the gui:


Run the system monitor as root with


gksu gnome-system-monitor  

Then under the "view" menu move the radio button to "All processes"


enter code here


Then you will see all users processes and can change their priority.


from the command line:


First find your processes PID (Process ID) with pidof like so:


pidof name-of-process  

It will return the PID of the given process, usually a four to five character number. Then run


renice priority processes-PID  

Replacing priority with the priority you want (-20 being the highest and +20 being the lowest) and process-PID with the PID you got earlier.


renice is used to change the priority of a running process, if you want to start a process and change it's priority you use nice.


nice priority name-of-process

Replacing priority with the priority you want and name-of-process with the name of the process you want to start.


Note: In order to give a process a negative priority you must have root access.


[#32140] Sunday, November 27, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fectlyole

Total Points: 64
Total Questions: 110
Total Answers: 110

Location: Nicaragua
Member since Thu, Feb 3, 2022
2 Years ago
fectlyole questions
Sun, May 8, 22, 02:54, 2 Years ago
Mon, Jun 21, 21, 16:56, 3 Years ago
Fri, Jul 9, 21, 17:44, 3 Years ago
;