LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-06-2007, 05:32 AM   #16
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Rep: Reputation: 39

arghh... i realised too that the irq enable balancing setting wasnt included in my kernel... so i included it and recompiled....
this is the output

nass@stargaze:~$ cat /proc/interrupts
CPU0 CPU1
0: 3366 276405 IO-APIC-edge timer
1: 8 0 IO-APIC-edge i8042
4: 18588 0 IO-APIC-edge serial
6: 3 0 IO-APIC-edge floppy
7: 0 0 IO-APIC-edge parport0
8: 3 0 IO-APIC-edge rtc
9: 0 0 IO-APIC-fasteoi acpi
12: 112 0 IO-APIC-edge i8042
16: 86 0 IO-APIC-fasteoi ohci1394, ehci_hcd:usb1, uhci_hcd:usb7, libata
17: 0 0 IO-APIC-fasteoi uhci_hcd:usb3
18: 0 0 IO-APIC-fasteoi libata
19: 2607 0 IO-APIC-fasteoi uhci_hcd:usb6, eth0
20: 189 0 IO-APIC-fasteoi ehci_hcd:usb2, uhci_hcd:usb5
21: 0 0 IO-APIC-fasteoi uhci_hcd:usb4
22: 2611 0 IO-APIC-fasteoi ide2, ide3
23: 179 0 IO-APIC-fasteoi HDA Intel
219: 12888 0 PCI-MSI-edge libata
NMI: 0 0
LOC: 277386 277388
ERR: 0
MIS: 0


damn it doesn seem to work
i have a core 2 duo 6400....

meh what is wrong???
nass

Last edited by nass; 09-06-2007 at 05:36 AM.
 
Old 09-06-2007, 05:37 AM   #17
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Rep: Reputation: 39
well hm it doesnt look very nicely structured... but if u look closely ull notice there is a column of 0's corresponding to the CPU1 column.........
any ideas?

notice that interrupt # 0: is the only interrupt that CPU1 is serving... and by far more amounts compared to CPU0.... thats the timer as i can read.. is it reasonable that so many timer interrupts have been generated in such small time? (less than half hour)....

also what is the LOC: ? it seems to me the only 'balanced' thing between the 2 cpu's...
is it possible that CPU1 spends its time serving 0: and so - to provide balance - the kernel chooses to let CPU0 serve the other interrupts, thus leading to the many 0's in the CPU1 column????

here is an updated /proc/interrupts - taken about a quarter after the previous

root@stargaze:/usr/src/linux# cat /proc/interrupts
CPU0 CPU1
0: 3366 703524 IO-APIC-edge timer
1: 8 0 IO-APIC-edge i8042
4: 50120 0 IO-APIC-edge serial
6: 3 0 IO-APIC-edge floppy
7: 0 0 IO-APIC-edge parport0
8: 3 0 IO-APIC-edge rtc
9: 0 0 IO-APIC-fasteoi acpi
12: 112 0 IO-APIC-edge i8042
16: 86 0 IO-APIC-fasteoi ohci1394, ehci_hcd:usb1, uhci_hcd:usb7, libata
17: 0 0 IO-APIC-fasteoi uhci_hcd:usb3
18: 0 0 IO-APIC-fasteoi libata
19: 7186 0 IO-APIC-fasteoi uhci_hcd:usb6, eth0
20: 189 0 IO-APIC-fasteoi ehci_hcd:usb2, uhci_hcd:usb5
21: 0 0 IO-APIC-fasteoi uhci_hcd:usb4
22: 2611 0 IO-APIC-fasteoi ide2, ide3
23: 179 0 IO-APIC-fasteoi HDA Intel
219: 15109 0 PCI-MSI-edge libata
NMI: 0 0
LOC: 700992 700994
ERR: 0
MIS: 0

Last edited by nass; 09-06-2007 at 05:57 AM.
 
Old 09-06-2007, 10:57 AM   #18
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Well this is interesting. I have a Dell Dimension E520 which has an Intel Core 2 Duo 4300 processor. Here are my findings from a Slackware 11 system with a custom 2.6.20.4 kernel:
uname -a :
Code:
bash-3.1$ uname -a
Linux dellhost 2.6.20.4 #17 SMP PREEMPT Mon May 28 03:45:43 BST 2007 i686 i686 i386 GNU/Linux
cat /proc/cpuinfo:
Code:
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 15
model name	: Intel(R) Core(TM)2 CPU          4300  @ 1.80GHz
stepping	: 2
cpu MHz		: 1795.565
cache size	: 2048 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 2
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl est tm2 ssse3 cx16 xtpr lahf_lm
bogomips	: 3593.14
clflush size	: 64

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 15
model name	: Intel(R) Core(TM)2 CPU          4300  @ 1.80GHz
stepping	: 2
cpu MHz		: 1795.565
cache size	: 2048 KB
physical id	: 0
siblings	: 2
core id		: 1
cpu cores	: 2
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl est tm2 ssse3 cx16 xtpr lahf_lm
bogomips	: 3591.00
clflush size	: 64
cat /proc/interrupts:
Code:
           CPU0       CPU1       
  0:  926033038          0   IO-APIC-edge      timer
  1:          2          0   IO-APIC-edge      i8042
  8:        342          0   IO-APIC-edge      rtc
  9:          0          0   IO-APIC-fasteoi   acpi
 12:          4          0   IO-APIC-edge      i8042
 16:   79704405          0   IO-APIC-fasteoi   uhci_hcd:usb3, HDA Intel, nvidia
 19:          0          0   IO-APIC-fasteoi   ehci_hcd:usb1
 20:          4          0   IO-APIC-fasteoi   ehci_hcd:usb2, uhci_hcd:usb5
 21:    1583273          0   IO-APIC-fasteoi   uhci_hcd:usb4, uhci_hcd:usb6
 22:      41187          0   IO-APIC-fasteoi   uhci_hcd:usb7
222:    6044236          0   PCI-MSI-edge      eth0
223:    1746641          0   PCI-MSI-edge      libata
NMI:          0          0 
LOC:  908935419  908935845 
ERR:          0
MIS:          0
I have SMP enabled in my kernel - seems one core is handling all my interrupts.

Last edited by bgeddy; 09-06-2007 at 10:58 AM.
 
Old 09-06-2007, 03:32 PM   #19
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Original Poster
Rep: Reputation: 46
Seems to me that the interrupts aren't balanced for stuff like HT etc. Only real multiple CPUs achieve any kind of balancing. Dual core systems seem to balance only the RTC interrupts.
 
Old 09-06-2007, 07:09 PM   #20
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Rep: Reputation: 39
so, what do we do? write to intel forums? to kernel ones?
 
Old 09-06-2007, 09:32 PM   #21
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
duryodhan, I must disagree. It looks like it just depends on the dual core processor. My custom-built PC with an AMD Athlon X2 4400+ has a much more equal balancing of interrupts:
Code:
$ cat /proc/interrupts
           CPU0       CPU1
  0:        102          0   IO-APIC-edge      timer
  1:         14       8493   IO-APIC-edge      i8042
  8:          0          1   IO-APIC-edge      rtc
  9:          0          0   IO-APIC-fasteoi   acpi
 12:       1405     925123   IO-APIC-edge      i8042
 14:        368     289544   IO-APIC-edge      ide0
 16:       2650    3265729   IO-APIC-fasteoi   HDA Intel, eth0
 17:       1521    2078005   IO-APIC-fasteoi   sata_nv, nvidia
 18:          1          1   IO-APIC-fasteoi   ehci_hcd:usb1
 19:          1         42   IO-APIC-fasteoi   ohci_hcd:usb2
NMI:          0          0
LOC:    1157268    1327780
ERR:          1
MIS:          0
ghostdancer's post seems to indicate that each dual core processor behaves differently.
 
Old 09-07-2007, 01:14 AM   #22
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
Might be useful to check with www.irqbalance.org..
 
Old 09-07-2007, 02:04 AM   #23
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
Quote:
Originally Posted by Yalla-One View Post
Might be useful to check with www.irqbalance.org..
Very interesting, I thought is just a kernel configuration, we need daemon for this?

I giving it a test...
 
Old 09-07-2007, 03:31 AM   #24
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Rep: Reputation: 39
i can hardly believe this is a deamon too!
please post your findings ghostdancer...
 
Old 09-07-2007, 05:15 AM   #25
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Rep: Reputation: 39
arghh it appears the irqbalance deamon needs glib2-devel sources..

where can i get that from?

the closest i got to finding something was some glib2-devel RPM package for fedora core 7.... but it wouldn't even get downloaded!

anywhere else on the net to find it please.... ?
thank you
 
Old 09-07-2007, 06:25 AM   #26
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
I manage to test it out with one of my Hyper-Threading P4. I would say, the result is encouraging:

Code:
$> uname -a
Linux power0 2.6.22.6 #2 SMP Fri Sep 7 18:50:40 SGT 2007 i686 pentium4 i386 GNU/Linux

$> cat /proc/interrupts 
           CPU0       CPU1       
  0:         69          0   IO-APIC-edge      timer
  1:          2          0   IO-APIC-edge      i8042
  8:          0          0   IO-APIC-edge      rtc0
  9:          0          0   IO-APIC-fasteoi   acpi
 12:          4          0   IO-APIC-edge      i8042
 14:         67          0   IO-APIC-edge      libata
 15:          0          0   IO-APIC-edge      libata
 17:       2129          0   IO-APIC-fasteoi   eth0
 18:      17294          0   IO-APIC-fasteoi   libata
 19:          2          0   IO-APIC-fasteoi   uhci_hcd:usb1, ehci_hcd:usb5
 20:         40          0   IO-APIC-fasteoi   uhci_hcd:usb2
 21:       3597       2561   IO-APIC-fasteoi   uhci_hcd:usb3, eth1
 22:          0          0   IO-APIC-fasteoi   uhci_hcd:usb4
NMI:          0          0 
LOC:      22099      30163 
ERR:          0
MIS:          0
Compare my previous result where all IRQ, except LOC (by the way, what is LOC? Kernel lock?) route to CPU0. Now, I got another IRQ route to CPU1 as well.

Will look for one of my dual-core system to test out more.

By the way, according to what I read, in order to use userspace irqbalance, we need to disable the kernel's IRQ balance.
 
Old 09-07-2007, 06:28 AM   #27
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
Quote:
Originally Posted by nass View Post
arghh it appears the irqbalance deamon needs glib2-devel sources..

where can i get that from?

the closest i got to finding something was some glib2-devel RPM package for fedora core 7.... but it wouldn't even get downloaded!

anywhere else on the net to find it please.... ?
thank you
Just install glib2 package from Slack...
 
Old 09-07-2007, 07:52 AM   #28
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
My Dell Inspiron 640m, which previously shows all IRQ handle by 1 CPU now shows:

Code:
cat /proc/interrupts 
           CPU0       CPU1       
  0:     119319          0   IO-APIC-edge      timer
  1:        753          0   IO-APIC-edge      i8042
  9:          2          0   IO-APIC-fasteoi   acpi
 12:         49          0   IO-APIC-edge      i8042
 14:       5875       8990   IO-APIC-edge      libata
 15:       2254          0   IO-APIC-edge      libata
 16:      31537          0   IO-APIC-fasteoi   i915@pci:0000:00:02.0
 17:         34       1225   IO-APIC-fasteoi   eth0
 18:          2          0   IO-APIC-fasteoi   ohci1394
 19:          0          0   IO-APIC-fasteoi   sdhci:slot0
 20:       2429      37730   IO-APIC-fasteoi   HDA Intel, uhci_hcd:usb2
 21:          3          0   IO-APIC-fasteoi   uhci_hcd:usb1, ehci_hcd:usb5
 22:       4368          0   IO-APIC-fasteoi   uhci_hcd:usb3
 23:          0          0   IO-APIC-fasteoi   uhci_hcd:usb4
NMI:          0          0 
LOC:      57599     106212 
ERR:          0
MIS:          0
Notice now, at least not all interrupt is handle by 1 CPU. This is getting very interesting...
 
Old 09-07-2007, 08:08 AM   #29
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Rep: Reputation: 39
ok LOC is the local interrupt counter... it sounds like a summing indicator, but i didn't find more info on it.

as for glib2, well im on a slack11 machine (with core 2 duo 6400), so i already have package 'glib2-2.10.3-i486-1'... however this is not a development package.... or is it?
 
Old 09-07-2007, 08:17 AM   #30
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
Quote:
Originally Posted by nass View Post
... as for glib2, well im on a slack11 machine (with core 2 duo 6400), so i already have package 'glib2-2.10.3-i486-1'... however this is not a development package.... or is it?
Ya, that is all you need.

However, for Slack 11, you need to manually edit the irqbalance's Makefile to use the running kernel's include headers. Otherwise, it won't built.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Clamav-Milter Issues (messages not being processed) jon3k Linux - Server 0 08-28-2006 05:31 PM
keyboard keys processed incorrect nadroj Linux - Newbie 4 03-14-2005 02:28 AM
fstab processed before sda exists bardinjw Debian 4 12-01-2004 10:40 AM
hardware interrupts using too much cpu Rocker Linux - General 4 10-12-2004 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:38 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