(?)
Quotes are added by the Goodreads community and are not verified by Goodreads. (Learn more)

“When a process is rescheduled to run on a multiprocessor system, it doesn’t necessarily run on the same CPU on which it last executed. The usual reason it may run on another CPU is that the original CPU is already busy. When a process changes CPUs, there is a performance impact: in order for a line of the process’s data to be loaded into the cache of the new CPU, it must first be invalidated (i.e., either discarded if it is unmodified, or flushed to main memory if it was modified), if present in the cache of the old CPU. (To prevent cache inconsistencies, multiprocessor architectures allow data to be kept in only one CPU cache at a time.) This invalidation costs execution time. Because of this performance impact, the Linux (2.6) kernel tries to ensure soft CPU affinity for a process — wherever possible, the process is rescheduled to run on the same CPU.”

Michael Kerrisk, The Linux Programming Interface: A Linux and UNIX System Programming Handbook
Read more quotes from Michael Kerrisk


Share this quote:
Share on Twitter

Friends Who Liked This Quote

To see what your friends thought of this quote, please sign up!

2 likes
All Members Who Liked This Quote



This Quote Is From

The Linux Programming Interface: A Linux and UNIX System Programming Handbook The Linux Programming Interface: A Linux and UNIX System Programming Handbook by Michael Kerrisk
706 ratings, average rating, 44 reviews
Open Preview

Browse By Tag