/proc/sched Global QOS status file /proc/events Kernel event sources /proc/reserves Lists reserve names and parameters
This file can be parsed as follows:fscanf(fp, "%d %d", &ppm, &rsvd)
- int ppm - Currently allocated QOS in parts per million (0 to 1000000).
- int rsvd - Percentage CPU reserved for non-QOS allocation (0 to 100). Defaults to 10.
Lists the available kernel event source names, one per line. For example:
sys-exec sched-param
Lists all reserves (named and automatic) known to the kernel, one per line. Each line can be parsed as follows:
fscanf(fp, "%d, Policy %c (%c), Period %d, CPU %d, " "Pri %d, Nice %d <%[^>]>", &members, &policy, &overrun_policy, &period, &slice, &static_priority, &nice, rsv_name)A typical line is:
0, Policy Q (P), Period 100, CPU 50, Pri 0, Nice 0 <half>Columns are also aligned for easy parsing by humans.