Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on AMD64
  • Search

64bit kills SMP ?

Have an x86-64 problem? Post here.
Locked
Advanced search
36 posts
  • Previous
  • 1
  • 2
Author
Message
darkphader
Veteran
Veteran
User avatar
Posts: 1225
Joined: Thu May 09, 2002 11:24 pm
Location: Motown
Contact:
Contact darkphader
Website

  • Quote

Post by darkphader » Wed Mar 05, 2008 11:27 pm

loftwyr wrote:irqbalance is for dual core systems.
Can we see the relevant log entries?
Nothing in the logs. But I did find this forum post:http://forums.gentoo.org/viewtopic-t-66 ... lance.html
WYSIWYG - What You See Is What You Grep
Top
loftwyr
l33t
l33t
User avatar
Posts: 970
Joined: Wed Dec 29, 2004 2:51 am
Location: 43°38'23.62"N 79°27'8.60"W

  • Quote

Post by loftwyr » Thu Mar 06, 2008 2:39 pm

I wouldn't worry about what one website says, the site that designs it (run by Intel) specifically mentions helping dual core processors.
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Top
darkphader
Veteran
Veteran
User avatar
Posts: 1225
Joined: Thu May 09, 2002 11:24 pm
Location: Motown
Contact:
Contact darkphader
Website

  • Quote

Post by darkphader » Thu Mar 06, 2008 3:09 pm

loftwyr wrote:the site that designs it (run by Intel) specifically mentions helping dual core processors.
More like multi-core processors on different sockets. The sparse documentation does seem to indicate that it is "socket" oriented, basically deciding which cores to place interrupts based on the "package" or socket that they are in. Different packages for "performance" mode, same package for "power" mode.

Even in debug mode no errors are provided, no syslog errors, etc. I suspect it does a check for "true physical smp", ie. multiple sockets, and the daemon exits if this isn't the case.

OK, just found this comment in the source of irqbalance.c:
/* On dual core/hyperthreading shared cache systems just do a one shot setup */
I think basically it is saying that it has little to do with a one "package"/socket system and that the daemon will not continue to run but only work in --oneshot fashion.

Chris
WYSIWYG - What You See Is What You Grep
Top
gimpel
Advocate
Advocate
User avatar
Posts: 2720
Joined: Fri Oct 15, 2004 10:08 am
Location: Munich, Bavaria
Contact:
Contact gimpel
Website

  • Quote

Post by gimpel » Thu Mar 06, 2008 5:45 pm

Daemon keeps running fine on Athlon64 X2, it has a seperate cache for each core.
No idea if that means it has two sockets.
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Top
darkphader
Veteran
Veteran
User avatar
Posts: 1225
Joined: Thu May 09, 2002 11:24 pm
Location: Motown
Contact:
Contact darkphader
Website

  • Quote

Post by darkphader » Thu Mar 06, 2008 6:05 pm

gimpel wrote:it has a seperate cache for each core
That must be what makes the difference.
WYSIWYG - What You See Is What You Grep
Top
snIP3r
l33t
l33t
Posts: 866
Joined: Fri May 21, 2004 6:21 pm
Location: germany

  • Quote

Post by snIP3r » Thu Mar 06, 2008 7:42 pm

darkphader wrote:
gimpel wrote:it has a seperate cache for each core
That must be what makes the difference.
i dont think so, cause also the core2duo's do have a seperate cache for each core. a hyperthreading cpu only has one cache.
Intel i3-4130T on ASUS P9D-X
Kernel 6.6.52-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Top
darkphader
Veteran
Veteran
User avatar
Posts: 1225
Joined: Thu May 09, 2002 11:24 pm
Location: Motown
Contact:
Contact darkphader
Website

  • Quote

Post by darkphader » Thu Mar 06, 2008 7:51 pm

snIP3r wrote:i dont think so, cause also the core2duo's do have a seperate cache for each core
The info I've found claims that the cache is shared. From the Intel Core 2 Duo product brief:
The shared L2 cache is dynamically allocated to each processor core based on workload.
WYSIWYG - What You See Is What You Grep
Top
snIP3r
l33t
l33t
Posts: 866
Joined: Fri May 21, 2004 6:21 pm
Location: germany

  • Quote

Post by snIP3r » Thu Mar 06, 2008 8:02 pm

darkphader wrote:
snIP3r wrote:i dont think so, cause also the core2duo's do have a seperate cache for each core
The info I've found claims that the cache is shared. From the Intel Core 2 Duo product brief:
The shared L2 cache is dynamically allocated to each processor core based on workload.
ok, thx for the info, i always thought that each core has its seperate cache - but i found some (now i know wrong) info that claims 2x X MB cache...



but i got another thing i am wondering about: some user's irq's share more balanced - with or without irqbalance installed! e.g. loser_5150 with his opteron and no irqbalance installed or streamkid with his core2duo and a installation of irqbalance also cyrre with his quadcore and irqbalance installed... so i think there might be something with the respective installation. checking my /proc/interrupts again i can see the "grouping" of the irqbalance package but not this "clean" balancing like the users i posted...

Code: Select all

cat /proc/interrupts
           CPU0       CPU1
  0:      94484  589249681   IO-APIC-edge      timer
  1:         31       6089   IO-APIC-edge      i8042
  4:        723     761603   IO-APIC-edge      serial
  8:          0          1   IO-APIC-edge      rtc
  9:          0          0   IO-APIC-fasteoi   acpi
 16:      29168   22432472   IO-APIC-fasteoi   3w-9xxx, serial
 19:          0          3   IO-APIC-fasteoi   ohci1394
 20:    1027220    4362242   IO-APIC-fasteoi   ohci_hcd:usb1
 21:          0          0   IO-APIC-fasteoi   sata_nv
 22:          0          0   IO-APIC-fasteoi   sata_nv
 23:          2         58   IO-APIC-fasteoi   sata_nv
1272:        237     193572   PCI-MSI-edge      eth1
1273:        117      96725   PCI-MSI-edge      eth0
NMI:          0          0
LOC:  589349040  589349014
ERR:          0
can someone perhaps confirm this?

greets
snIP3r
Intel i3-4130T on ASUS P9D-X
Kernel 6.6.52-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Top
Dairinin
n00b
n00b
User avatar
Posts: 64
Joined: Sun Feb 03, 2008 7:28 pm
Location: MSK, RF

  • Quote

Post by Dairinin » Fri Apr 18, 2008 5:59 pm

This is _sole_ io-apic's doing. At least, how bios tells him to manage interrupts.

I saw it with my own eyes, when changing mobo from intel p965 to g33 changed the way interrupts are handled from "let-one-core-do-all-the-work" to complete per-interrupt load balance. First approach is defenetly better for dual-cores and newer quads with shared l2-cache. On another box with q6600 and p35 I saw io-apic balancing interrupts among _all_ 4 cores despite the fact q6600 has two l2 caches. On the first box irqbalance is not needed, but on the second box, network i/o performance can suffer without irqbalance. So I think it is not wise to ask for a feature because figures look "cool" :)
Top
vegaman
n00b
n00b
Posts: 18
Joined: Sat May 26, 2007 1:23 am

  • Quote

Post by vegaman » Wed Apr 30, 2008 10:54 am

darkphader wrote:Decided to try irqbalance but it seems to only work in --oneshot fashion. It starts and then stops, no error messages are provided. Anyone else seeing this?

EDIT UPDATE: looks like it's because I don't have more than one socket - it's a dual-core system - irqbalance not desirable.
Sorry if I'm underestimating you, but are you running it via "/etc/init.d/irqbalance start"?
If you simply run the irqbalance executable, it will behave as you mentioned.
Top
darkphader
Veteran
Veteran
User avatar
Posts: 1225
Joined: Thu May 09, 2002 11:24 pm
Location: Motown
Contact:
Contact darkphader
Website

  • Quote

Post by darkphader » Wed Apr 30, 2008 8:25 pm

vegaman wrote:Sorry if I'm underestimating you, but are you running it via "/etc/init.d/irqbalance start"?
If you simply run the irqbalance executable, it will behave as you mentioned.
Oddly enough it now doesn't matter how I start it, either with the init script or simply running the executable, irqbalance does daemonize. Previously it would not daemonize no matter how I ran it and would always act as if --oneshot was specified.

As I pointed out previously http://forums.gentoo.org/viewtopic-p-49 ... ml#4934159 the code seems to be designed in some cases to not daemonize. At this point I'm guessing that something is different due to a kernel upgrade that causes the new behavior.
WYSIWYG - What You See Is What You Grep
Top
Locked

36 posts
  • Previous
  • 1
  • 2

Return to “Gentoo on AMD64”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic