kernel.sched_schedstats
This article has last been updated at .
The sysctl key kernel.sched_schedstats is used to enable statistics of the Linux scheduler. When enabled, more detailed information will be stored within the /proc directory and specifically in the sched file. To see the information look at the path /proc/PID/sched. See also the explanation of values in /proc/PID/sched for more details.
Values
Value | Description |
---|---|
0 | statistics disabled |
1 | statistics enabled |
Show current value
The value of the kernel.sched_schedstats can be retrieved using the sysctl command.
sysctl kernel.sched_schedstats
or using the proc file system:
sysctl /proc/sys/kernel/sched_schedstats
Configure new value
To apply a new value, use the option --write, followed by the key and value.
sysctl --write kernel.sched_schedstats=NEWVALUE
To ensure that these changes are also applied during the next boot, add them to a configuration file, typically something like /etc/sysctl.d/99-custom.conf.