LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-05-2007, 06:53 PM   #1
shimrot
LQ Newbie
 
Registered: Mar 2007
Posts: 2

Rep: Reputation: 0
Question How does "latest" /proc/irq/xx/smp_affinity work?


Hi folks. I'm relatively new to linux and hope someone can steer me a bit.

Can someone help interprete the output from /proc/irq/xx/smp_affinity and how to set the irq affinity? Why I'm stumped is when I cat my 8 way opteron machine - I get a list of values (masks?).

> cat /proc/irq/201/smp_affinity
00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000002

The the last value bounces around, so it doesn't appear to indicate the CPU mask - perhaps it's the last CPU used?

However, all the documentation I can find indicates that smp_affinity returns or is set with a single mask. The docs appear to be out of date or something - even the
/usr/src/linux2.6.18/Documentation/IRQaffinity.txt file for my kernel. The kernel happens to be 2.6.18-1.2798.fc6 - x86_64.

Thanks much,

Kris
 
Old 03-06-2007, 06:17 PM   #2
shimrot
LQ Newbie
 
Registered: Mar 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Received an out of band answer. It appears that somewhere along the way the kernel was updated to support a larger mask (256 bits wide). The "," is just included to improve readability. The correlation between my 8 processors and the 8 x 32 bit values is just coincidence. Other kernel version appears to only be 128 bytes wide.
 
Old 01-07-2009, 12:33 PM   #3
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
Quote:
Originally Posted by shimrot View Post
Hi folks. I'm relatively new to linux and hope someone can steer me a bit.

Can someone help interprete the output from /proc/irq/xx/smp_affinity and how to set the irq affinity? Why I'm stumped is when I cat my 8 way opteron machine - I get a list of values (masks?).

> cat /proc/irq/201/smp_affinity
00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000002

The the last value bounces around, so it doesn't appear to indicate the CPU mask - perhaps it's the last CPU used?

However, all the documentation I can find indicates that smp_affinity returns or is set with a single mask. The docs appear to be out of date or something - even the
/usr/src/linux2.6.18/Documentation/IRQaffinity.txt file for my kernel. The kernel happens to be 2.6.18-1.2798.fc6 - x86_64.

Thanks much,

Kris
The last value bouncing around actually is the current CPU mask at that time... I have a feeling you also have a service called irqbalance running as well, which attempts to move around irq's to different processors to balance out interrupt loading.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what is "FRAG" in "/proc/net/sockstat" ? dileepkk Linux - Networking 1 06-21-2011 11:16 AM
IRQ smp_affinity gangaraju Fedora 1 01-07-2009 12:34 PM
Any way to get "Alice"; "Call of Duty" series and "Descent 3" to work? JBailey742 Linux - Games 13 06-23-2006 01:34 PM
FC4 install errors, "diabling IRQ #10" "nobody cares" error message??? A6Quattro Fedora 6 07-20-2005 12:49 PM
Writing to "/dev/usb/hiddev*" and to "/proc/bus/usb/00B/00S" throw an arror EI stpg Programming 0 07-14-2004 05:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:26 AM.

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