LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
LinkBack Search this Thread
Old 10-07-2009, 02:12 PM   #1
zman2245
LQ Newbie
 
Registered: Mar 2009
Location: San Francisco, CA
Posts: 26

Rep: Reputation: 15
Question: Network Stack in SMP mode


Quick question on the Linux networking stack. When in SMP mode, will the Linux networking stack run on multiple cores?

For example:
We have Program A running on core 0, Program B running on core 1, and 1 ethernet port (eth0).
Say A and B each send a packet which will be transmitted on eth0. When the packets are being processed by the kernel network stack, they would potentially be processed in seperate cores (probably 0 and 1 based on the cores A and B are running on) correct?

Or is there some point at which processing of packets is scheduled on a particular core?

When the packet is passed to the network card driver, there must be a send lock so that access to the tx ring is synchronized....

Thanks,
Zack
 
Old 10-08-2009, 11:56 PM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,849
Blog Entries: 1

Rep: Reputation: Disabled
Good question!

Here's an excellent article that discusses the issues, and some solutions for the 2.6.x kernel:

http://www.alexonlinux.com/smp-affin...dling-in-linux

Here's the official kernel documentation on "IRQ affinity":

http://www.mjmwired.net/kernel/Docum...Q-affinity.txt

And a good article discussing what it means:

http://software.intel.com/en-us/arti...ssor-affinity/

'Hope that helps .. PSM

Last edited by paulsm4; 10-09-2009 at 12:00 AM.
 
Old 10-09-2009, 06:05 PM   #3
zman2245
LQ Newbie
 
Registered: Mar 2009
Location: San Francisco, CA
Posts: 26

Original Poster
Rep: Reputation: 15
Hey PSM,

Thanks for your reply. I think what you are referring to is only relevant for received packets, correct?

I was talking more about packets being sent out by applications, which would be syscall-driven rather than interrupt-driven...

Thanks,
Zack
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
eth0 not working in SMP kernel mode (but works in UP mode!) jorgeluis Linux - Networking 2 11-27-2007 09:46 AM
eth0 not working in SMP kernel mode (but works in UP mode!) jorgeluis Red Hat 1 11-26-2007 01:33 PM
Can not boot into SMP mode. cjtasi Fedora 5 11-02-2005 10:04 AM
ugh, how to do linux in SMP mode? akebono Linux - Software 2 10-23-2001 12:00 AM


All times are GMT -5. The time now is 12:56 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration