Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 09-07-2009, 10:29 AM   #1
LQ Newbie
Registered: Mar 2009
Posts: 13

Rep: Reputation: 0
Processor Affinity

I am new to linux...
When I was going through an operating system book...
I found the work processor affinity..related to cache and processor..
what exactly does processor affinity mean..
and difference between different types..(soft/hard affinity)
Old 09-07-2009, 01:52 PM   #2
Senior Member
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,330

Rep: Reputation: 227Reputation: 227Reputation: 227
for switching multi processor or multi core systems
for example you have a 2 core system
and have a process with affinity set to 1
the process exeicutes on core 2
so in general
affinity 0 is core 1
affinity 1 is core 2
affinity 0 & 1 is core 1 & 2
got that?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
new linux user...but affinity is inborn silverblackvoid_lnx Member Intro 1 08-05-2009 03:32 PM
Setting thread affinity lennyk Programming 1 02-17-2009 02:56 AM
Can you set processor affinity on Linux? Thaidog Linux - General 1 02-27-2008 10:31 AM
CPU affinity on kernel 2.4.14-SMP tsik Linux - Kernel 0 11-05-2007 10:27 PM
Processor affinity and cpu scheduling...? Thaidog Linux - Newbie 5 01-09-2003 08:08 PM

All times are GMT -5. The time now is 07:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration