From the course: Linux Performance Tuning

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

The Linux kernel and responsiveness

The Linux kernel and responsiveness - Linux Tutorial

From the course: Linux Performance Tuning

Start my 1-month free trial

The Linux kernel and responsiveness

- [Instructor] The key factor with the Linux kernel when it comes to having your system be responsive is whether the kernel is preemptable or not. This is particularly important when you have few processors. If you have lots of processors, lots of cores. Then there's a good chance one's available and things can be fast. But when processes are competing. If all the processors are busy then something important needs to run. That means you have to preempt something that's less important and that's the kernel's decision. When the kernel's configured, there are three ordinary choices for preemption and some kernels have a special option that's not part of most mainline kernels yet. The real time preempt option, which is the fastest and best for some situations but ordinarily not an option. And if you cannot build in your own kernel then you're just limited to whatever way your current kernel's configured. The idea of kernel preemption is when a process wants to wake up. To respond to an…

Contents