From the course: Linux Performance Tuning

Unlock the full course today

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

Throughput vs. response time

Throughput vs. response time - Linux Tutorial

From the course: Linux Performance Tuning

Start my 1-month free trial

Throughput vs. response time

- [Instructor] If you want the best throughput, that is if you want to get as much work done in a time interval as possible, then that's typically what we think servers do. To have the best throughput, you want to have few context switches. You don't want to be switching back and forth between processes, you want a process to run for awhile and get some work done, and then switch to another one. That means, you want longer time slices, and that means it's better to run few things at a time, maybe one per processor so that you don't have to switch back and forth between things. We measure throughput in things like transactions per second megabytes per minute, and so forth. When we configure the Linux kernel, there are a number of choices for whether it's preemptible or not, and preemption means context switch. So how your kernel's configured can effect responsiveness versus throughput. Response time, is responding to some sort of event, and if you want to have improved response time…

Contents