Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#10467 - [kernel26] Request for SCHED_DEBUG change to y
Attached to Project:
Arch Linux
Opened by Daniel Rammelt (shazeal) - Thursday, 22 May 2008, 02:02 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 15 June 2009, 15:50 GMT
Opened by Daniel Rammelt (shazeal) - Thursday, 22 May 2008, 02:02 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 15 June 2009, 15:50 GMT
|
DetailsDescription:
Request for SCHED_DEBUG=y to be added as default in kernel config for future kernel releases. Additional info: Changing SCHED_DEBUG to default to "y" allows the changing of the CFS scheduler tunables via sysctl.conf. The option adds no overhead only the ability to tune the scheduler and observe the current values of the tunables in sysfs. The default values for the tuneables are very generic and being unable to change them in the stock Arch kernel means anyone needing this option must recompile the kernel. |
This task depends upon
See http://cateee.net/lkddb/web-lkddb/SCHEDSTATS.html
More informations can be found here:
http://www.ibm.com/developerworks/linux/library/l-cfs/index.html
But it is no problem to let it be. -)
You can also tune it for background tasks such as servers might need to stop them choking.
As for the benefit, well the ability to tune the scheduler to meet your specific needs.
An example is in the Zen line of kernels where they offer preset options at compile time, with SCHED_DEBUG you can essentially switch between those sort of options at will depending on what you are doing.
An example I personally use when using blender/games is.
kernel.sched_wakeup_granularity_ns=10000000
kernel.sched_batch_wakeup_granularity_ns=10000000
kernel.sched_min_granularity_ns=4000000
kernel.sched_latency_ns=20000000
@devs I activate both settings in my own kernel package and my personaly summary is that CONFIG_SCHEDSTATS is not so important as it sounds in the url. I attach the output of the 3 file in /proc from my Core2Duo system to gives everybody a better overview about what is behind this informations to help for makes it easier to find a decision ("cat /proc/schedstat > proc_schedstat", "cat /proc/sched_debug" and "cat /proc/$(pidof blender)/sched").
The kernel does a very good job at scheduling, so it may just be a placebo effect you're experiencing by adjusting those scheduler tunables. And the option is called DEBUG, so it's probably only meant for debugging purposes :-).
In short, the nice value determines how much CPU time processes get relative to each other.
The scheduler tunables you're adjusting is actually how many times it allows a context switch, influencing how long a CPU time slice is, etc...
# CONFIG_SCHED_DEBUG is not set
# CONFIG_SCHEDSTATS is not set
This task is opened from +1 year and +6 months without comments: closing? implement in future version?