Skip to content

Tag: linux-kernel

How does perf associate events to functions?

More precisely how does the perf tool associate PMU events to functions i already realized that when the kernel perf subsystem records the event counters it also records the Program Counter (PC) so it can associate the count to a function. However to really get fine grain result, you need to sample the counte…

Linux default scheduler alternatives

The Linux kernel implements the Completely Fair Scheduling (SCHED_NORMAL) algorithm as its default scheduling algorithm for scheduling real-time processes. How to modify the linux kernel such that the default scheduling policy is set to round-robin (SCHED_RR) or any other scheduling policy ? Is there a generi…