Language Selection

English French German Italian Portuguese Spanish

Linux "processor affinity" explained

Filed under
Linux

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

AMD is working on a new Linux graphics driver to catch up with Nvidia

There’s no doubt about it: AMD’s Linux graphics drivers are behind Nvidia’s, something that will start mattering a lot more when Valve’s first Linux-based Steam Machines start hitting the market this November. AMD hasn’t turned the ship around yet, and big-name games are still only supporting Nvidia hardware when they launch on Linux. But AMD hasn’t been sitting on its hands. AMD’s developers are working on a new Linux driver architecture that will result in better open-source drivers, too—eventually. Read more

LibreOffice 5: The best office suite today won't cost you a dime

I've used LibreOffice as my main office suite since it forked from OpenOffice five years ago. Now its latest edition, LibreOffice 5.0, is better than ever. And, in my book, that means it's the best standalone office suite available in 2015. Read more

Enlightenment Foundation Libraries 1.15 and Friends are Out

After three months of development work we are proud to announce the release of version 1.15 of the EFL, Elementary, Evas Generic Loaders and Emotion Generic Players. In these 12 weeks we got over 1000 commits from 64 authors in EFL alone. We slowed down a bit from last release (by around 200 commits). Elementary has another 472 commits by 56 authors. Great job everyone! Some highlights are listed below. Read more

Debian Finally Moves to GCC 5

Ubuntu and Debian developers have been working for some time to make GCC 5.x the default compiler for the project, and they have finally made it. Ubuntu was the first one to achieve this, and now it looks like Debian has joined the party as well. Read more