Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What is CPU affinity in Linux ?

user-image
Question added by Abu Nur Muhammad Hasanul Karim , Manager-System Administration , Dhaka Stock Exchange Ltd.
Date Posted: 2015/04/09
Arshed Hussain
by Arshed Hussain , IT Analyst , Tata Consultancy Services

Assalamu Alaikum,

CPU affinity is binding a process to a specific CPU. This case is applicable when there are multiple CPUs available.

 

Thanks,

Syed Arshed Hussain

Mehmoodkha Pathan
by Mehmoodkha Pathan , Cloud engineer , Cisco - Aricent payroll

Basically we can program or configure particular interrupt to process on specific cpu core.

The /proc/interrupts file lists the number of interrupts per CPU per I/O device. IRQs have an associated "affinity" property, smp_affinity, which defines the CPU cores that are allowed to execute the ISR for that IRQ. This property can be used to improve application performance by assigning both interrupt affinity and the application's thread affinity to one or more specific CPU cores. This allows cache line sharing between the specified interrupt and application threads.

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.