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

More Maru OS

Red Hat News

  • What Systemd Developers Want To Change With Linux User-Space In 2016
    Last weekend at FOSDEM, Lennart Poettering was one of the keynote speakers where he presented on systemd's user-space plans for the years. Lennart's presentation was entitled systemd and Where We Want to Take the Basic Linux Userspace in 2016. I held off on covering it since the PDF slides weren't available, but alas, they still aren't out yet short of watching the video (the audio quality isn't that good).
  • Growth Score By Zacks: Red Hat, Inc. (NYSE:RHT)
    Zacks Research has covered Red Hat, Inc. (NYSE:RHT) in the list of firms boasting a positive Growth Style Score. This encouraging perspective is reached after studying the company financial report and the growth prospect of the firm.
  • Scientific Linux 7.2 Officially Released
    While it took a while past the November release of Red Hat Enterprise Linux 7.2, available this weekend is Scientific Linux 7.2. Just as planned, Scientific Linux 7.2 is now available for those wanting this distribution derived from RHEL 7.2 with a focus on science-related Linux users.

Q4OS 1.4.7, Orion

Another update of Q4OS 'Orion' desktop is available, version 1.4.7. A complete Trinity repository has been added to the system as the main new feature. Access to all the Trinity software were given to users by default, there is no need to add external Trinity repositories anymore. Bunch of important packages updates and security patches has been delivered as usual. Read more

Slackware Live Edition – on its way to 1.0?

Last week the second Beta of the upcoming Slackware 14.2 was released. My goal was to have a new Beta of my liveslak ready by that time, so that I could provide new ISO images to test the Slackware Beta2 on a live medium. Unfortunately, there was an attack of the flu in my team at work and things got a bit busier than usual. There was a plus side to this: some last moment bug fixes which could be applied to my scripts – the result of having more evenings available to test. Therefore the new release is not labeled “0.5.0” but “0.5.1” Read more