Description: A script that lists all processes and allows the user to change the priority a process has. Requires zenity. The script will prompt for root password, display a list of processes and request a PID and then a priority.
Normally the Linux kernel decides which processes should get the most CPU time than others but with this script you can set one process to use more or less CPU. Higher values mean less CPU is devoted to that process and the opposite is also true. 0 is the default value.
Feedback is appreciated.Last changelog:
v0.2 changed the process list dialog to be more readable
I'm not exactly the expert on this but the idea behind all this is that you have a program running that you either want to go faster or slower. Say you have a video converter that's eating up too many of your computer's resources and the temperature is rising too fast (on laptops this can be an issue).
So we want to change how much of the CPU they take up, right? Decreasing CPU time means the video converter will now run slower, but not take up as much CPU or produce lots of heat.
So with this script it brings up a window displaying all processes from all users (I know it doesn't look very readable at the moment, I intend on looking into changing that). The idea is that you look for the process you want to change the priority of for the CPU. So find the process and look at its PID.
Type the PID into the box and then it will ask you for the priority. 0 is default and negative numbers like -5 can be used. Typing in -5 will make that process use more CPU whilst 5 would make it use less CPU.
Does this explain it?
Ratings & Comments
2 Comments
although I don't really know what I should do with this, it looks very interesting.
I'm not exactly the expert on this but the idea behind all this is that you have a program running that you either want to go faster or slower. Say you have a video converter that's eating up too many of your computer's resources and the temperature is rising too fast (on laptops this can be an issue). So we want to change how much of the CPU they take up, right? Decreasing CPU time means the video converter will now run slower, but not take up as much CPU or produce lots of heat. So with this script it brings up a window displaying all processes from all users (I know it doesn't look very readable at the moment, I intend on looking into changing that). The idea is that you look for the process you want to change the priority of for the CPU. So find the process and look at its PID. Type the PID into the box and then it will ask you for the priority. 0 is default and negative numbers like -5 can be used. Typing in -5 will make that process use more CPU whilst 5 would make it use less CPU. Does this explain it?