How can I add parameters to the Linux Kernel scheduler?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I am learning to work with Linux kernel. Currently I am using 4.15.0-36-generic.
I understood that the schedulers after version 2.6 use a completely fair scheduler. I also came to know that, the implementation uses virtual runtime(v_runtime) for priority updation of a process.
Theoretically, after the the process has a virtual runtime of t, the update is done as
v_runtime += t * (w).
This weight w is said to be a function of the NICE value of the process. It is here, that I want to add one more parameter. I want this w to be a function of NICE value, and another parameter for a given process. The rest of the scheduling algorithm can remain same for the moment.
I cloned the Linux code, and checked out the scheduler code and documentation. I could not locate the point where I could make the change.
linux linux-kernel scheduling
migrated from unix.stackexchange.com yesterday
This question came from our site for users of Linux, FreeBSD and other Un*x-like operating systems.
add a comment |
up vote
0
down vote
favorite
I am learning to work with Linux kernel. Currently I am using 4.15.0-36-generic.
I understood that the schedulers after version 2.6 use a completely fair scheduler. I also came to know that, the implementation uses virtual runtime(v_runtime) for priority updation of a process.
Theoretically, after the the process has a virtual runtime of t, the update is done as
v_runtime += t * (w).
This weight w is said to be a function of the NICE value of the process. It is here, that I want to add one more parameter. I want this w to be a function of NICE value, and another parameter for a given process. The rest of the scheduling algorithm can remain same for the moment.
I cloned the Linux code, and checked out the scheduler code and documentation. I could not locate the point where I could make the change.
linux linux-kernel scheduling
migrated from unix.stackexchange.com yesterday
This question came from our site for users of Linux, FreeBSD and other Un*x-like operating systems.
I have edited to fix grammar and some ambiguity. It I have interpreted the wrong way, then please edit again.
– ctrl-alt-delor
yesterday
What is the other parameter?
– ctrl-alt-delor
yesterday
@ctrl-alt-delor It could be a value depending on the type of program
– Nikhilesh Singh
yesterday
Yes what else could it be?: A parameter has a value, and program ≈ process. More insight may help us to find another solution.
– ctrl-alt-delor
18 hours ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am learning to work with Linux kernel. Currently I am using 4.15.0-36-generic.
I understood that the schedulers after version 2.6 use a completely fair scheduler. I also came to know that, the implementation uses virtual runtime(v_runtime) for priority updation of a process.
Theoretically, after the the process has a virtual runtime of t, the update is done as
v_runtime += t * (w).
This weight w is said to be a function of the NICE value of the process. It is here, that I want to add one more parameter. I want this w to be a function of NICE value, and another parameter for a given process. The rest of the scheduling algorithm can remain same for the moment.
I cloned the Linux code, and checked out the scheduler code and documentation. I could not locate the point where I could make the change.
linux linux-kernel scheduling
I am learning to work with Linux kernel. Currently I am using 4.15.0-36-generic.
I understood that the schedulers after version 2.6 use a completely fair scheduler. I also came to know that, the implementation uses virtual runtime(v_runtime) for priority updation of a process.
Theoretically, after the the process has a virtual runtime of t, the update is done as
v_runtime += t * (w).
This weight w is said to be a function of the NICE value of the process. It is here, that I want to add one more parameter. I want this w to be a function of NICE value, and another parameter for a given process. The rest of the scheduling algorithm can remain same for the moment.
I cloned the Linux code, and checked out the scheduler code and documentation. I could not locate the point where I could make the change.
linux linux-kernel scheduling
linux linux-kernel scheduling
edited yesterday
ctrl-alt-delor
4,12032242
4,12032242
asked yesterday
Nikhilesh Singh
114
114
migrated from unix.stackexchange.com yesterday
This question came from our site for users of Linux, FreeBSD and other Un*x-like operating systems.
migrated from unix.stackexchange.com yesterday
This question came from our site for users of Linux, FreeBSD and other Un*x-like operating systems.
I have edited to fix grammar and some ambiguity. It I have interpreted the wrong way, then please edit again.
– ctrl-alt-delor
yesterday
What is the other parameter?
– ctrl-alt-delor
yesterday
@ctrl-alt-delor It could be a value depending on the type of program
– Nikhilesh Singh
yesterday
Yes what else could it be?: A parameter has a value, and program ≈ process. More insight may help us to find another solution.
– ctrl-alt-delor
18 hours ago
add a comment |
I have edited to fix grammar and some ambiguity. It I have interpreted the wrong way, then please edit again.
– ctrl-alt-delor
yesterday
What is the other parameter?
– ctrl-alt-delor
yesterday
@ctrl-alt-delor It could be a value depending on the type of program
– Nikhilesh Singh
yesterday
Yes what else could it be?: A parameter has a value, and program ≈ process. More insight may help us to find another solution.
– ctrl-alt-delor
18 hours ago
I have edited to fix grammar and some ambiguity. It I have interpreted the wrong way, then please edit again.
– ctrl-alt-delor
yesterday
I have edited to fix grammar and some ambiguity. It I have interpreted the wrong way, then please edit again.
– ctrl-alt-delor
yesterday
What is the other parameter?
– ctrl-alt-delor
yesterday
What is the other parameter?
– ctrl-alt-delor
yesterday
@ctrl-alt-delor It could be a value depending on the type of program
– Nikhilesh Singh
yesterday
@ctrl-alt-delor It could be a value depending on the type of program
– Nikhilesh Singh
yesterday
Yes what else could it be?: A parameter has a value, and program ≈ process. More insight may help us to find another solution.
– ctrl-alt-delor
18 hours ago
Yes what else could it be?: A parameter has a value, and program ≈ process. More insight may help us to find another solution.
– ctrl-alt-delor
18 hours ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53304868%2fhow-can-i-add-parameters-to-the-linux-kernel-scheduler%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I have edited to fix grammar and some ambiguity. It I have interpreted the wrong way, then please edit again.
– ctrl-alt-delor
yesterday
What is the other parameter?
– ctrl-alt-delor
yesterday
@ctrl-alt-delor It could be a value depending on the type of program
– Nikhilesh Singh
yesterday
Yes what else could it be?: A parameter has a value, and program ≈ process. More insight may help us to find another solution.
– ctrl-alt-delor
18 hours ago