Language Selection

English French German Italian Portuguese Spanish

Linux "processor affinity" explained

Filed under

IBM's DeveloperWorks has published a story describing how the Linux 2.6 kernel supports "processor affinity" -- that is, ensuring that a particular process runs on a particular processor or set of processors within a multi-processor machine. Processor affinity can improve real-time performance, as well as cache hit-rates in complex calculations.

In determining where to run a process, the Linux 2.6 scheduler takes a look at the cpus_allowed bitmask within each process's task_struct data structure. This bitmask can be read or manipulated using the sched_get_affinity() or sched_set_affinity() functions, respectively.

Full Story.

More in Tux Machines

GNOME's Evolution Email Client Now Follows the Notification Settings of GNOME Shell

The GNOME developers are still working hard these days on the second milestone of the upcoming GNOME 3.20 desktop environment, which means that we should see more and more updates to various core components and GNOME applications. Read more Also: GNOME Shell and Mutter Updated for GNOME 3.20, Several Bugs Were Fixed

My Open Source Thanksgiving List: Wine, Netflix, OpenWrt and More

Running 3.1 miles through my hometown. Consuming unreasonable quantities of simple carbohydrates, fat and sodium. Pretending that the former activity justifies the latter. These are some of my favorite Thanksgiving traditions. Read more

BlackArch Linux ISO Images Updated with Over 100 New Tools, Multilib Support

The developers of the Arch Linux-based BlackArch GNU/Linux operating system have announced today, November 25, 2015, the immediate availability for download of a new installation media for the distribution. Read more

Snapcraft 0.5 Is Out for Snappy Ubuntu 15.04, Snapcraft 2.0 In Plan for Ubuntu 16.04

Canonical's Sergio Schvezov informs all users of the Snappy Ubuntu Core operating system for embedded and IoT (Internet of Things) devices about the release of the Snapcraft 0.5 snaps creation utility. Read more