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

Leftovers: Ubuntu and Debian

  • Download Links & Torrents for Debian 8.7 GNU/Linux
    Debian 8.7 GNU/Linux has been released at January 14th 2017. This is an update for Debian 8 (stable, Jessie) mainly for fixing security issues. Here I listed download links for 64 bit and 32 bit versions including torrent links. This article is intended as simple guide for new comers into Debian.
  • This Dev Is Working on a Way to Run Android Apps on Ubuntu Phone
    I’m writing about this way too early, but I figured it may help stoke a few fading hearts among the Ubuntu Phone faithful in light of recent news. Ubports developer (and all round awesome dude) Marius Grispgård has revealed that he’s working on a way to run Android apps on Ubuntu Phone.
  • Ubuntu 17.04 Zesty Zapus Release Schedule
    Ubuntu 17.04, which has got codename 'Zesty Zapus', is currently penciled in to ship on 13th April, 2017. The release date for Ubuntu 17.04 has now been firmed up as are the other development milestones leading up to the mid-April, currently we know that Unity 8 is going to be the interesting feature which will be shipped in 17.04 and swap partitions will likely to be replaced by swap files as mentioned by Canonical's Dimitri John Ledkov, and rest what's new coming in this release we don't know.

today's howtos

GNU/Linux and Servers

Kernel Space: Linux, Graphics