Discussion:
[PATCH 2/9] irqview, procview: spins in Gtk 3.0 need to have range defined
John Kacur
2021-03-19 16:21:52 UTC
Permalink
The man page for sched_setscheduler(), which tuna uses to set the RT priority, says the allowed range is specified by sched_get_priority_min() and sched_get_priority_max().
The man page for those 2 functions says the range is 1 to 99 for FIFO and RR.
import os
os.sched_get_priority_min(2)
1
os.sched_get_priority_max(2)
99
Oops, I should have caught that one, thanks Guy! We should have the range
from 0 to 99 though, to accomdate SCHED_OTHER, or am I missing something

John
_______________________________________________
tuna-devel mailing list -- tuna-***@lists.fedorahosted.org
To unsubscribe send an email to tuna-devel-***@lists.fedorahosted.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedorahosted.org/archives/list/tuna-***@lists.fedorahosted.org
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastruc
Federico Pellegrin
2021-03-20 04:42:14 UTC
Permalink
Hi all,
Thanks for finding this out and fixing! My apologies, I've found the
127 value in a man page (which I'm now failing to find again :-o) but
indeed absolutely agree now that 99 is the correct value.

Thanks!
Federico


Il giorno ven 19 mar 2021 alle ore 17:22 John Kacur
Post by John Kacur
The man page for sched_setscheduler(), which tuna uses to set the RT priority, says the allowed range is specified by sched_get_priority_min() and sched_get_priority_max().
The man page for those 2 functions says the range is 1 to 99 for FIFO and RR.
import os
os.sched_get_priority_min(2)
1
os.sched_get_priority_max(2)
99
Oops, I should have caught that one, thanks Guy! We should have the range
from 0 to 99 though, to accomdate SCHED_OTHER, or am I missing something
John
_______________________________________________
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
_______________________________________________
tuna-devel mailing list -- tuna-***@lists.fedorahosted.org
To unsubscribe send an email to tuna-devel-***@lists.fedorahosted.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedorahosted.org/archives/list/tuna-***@lists.fedorahosted.org
Do not reply to spam on the list, report it:

Loading...