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

Ubuntu Developers Talking About the Future of Firefox in the OS

Ubuntu developers are talking about the future of Firefox in Ubuntu, which is creating a disturbance with its NPAPI support that will be deprecated in a little over a year. Read more

Boston GNOME Summit 2015 Hackfest Day 2 Brings GNOME Builder and GTK+ Features

Some of the GNOME developers are gathered together these days at the Boston GNOME Summit 2015 hackfest event that takes place between October 10-12 at the MIT building E51, in Cambridge, Massachusetts, USA. Read more Also: GNOME's Nautilus File Manager to Get an Awesome New Search UI - Video

KDevelop 4.7.2 Released

Hey all, I'm happy to announce the availability of KDevelop 4.7.2. This is a bug fix release increasing the stability of our KDE 4 based branch. Please update to this version if you are currently using 4.7.1 or older. Read more

GTK+ 3.18 Gets a Second Bugfix Release, Prepares for GNOME 3.18.1

The GNOME developers are working hard these days to push the first point release of the GNOME 3.18 desktop environment to users of Linux kernel-based operating systems. Read more