Skip to contentSkip to conversation

SMP for TCP/IP Stack

Question Hyochang Nam 4 participants 4 messages Sep 25, 2002

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Can Linux Kernel 2.4.X handle two IP Packets at the same time in a SMP machine which has two CPUs?
I have a SMP machine which equips two Intel Xeon CPUs and two Intel Gigabit Network Cards. When I sent small IP Packets to the machine, most of packets are dropped. When I watch CPU utlization with TOP program, only one CPU shows high value but the other shows much low value, ie. 10% CPU utlization. My test shows current IP Stack in Linux Kernel cannot provide SMP Processing properly. But, some articles said Linux Kernel 2.4 gives true SMP processing. What do you think my problem is?

Best regards,

Hyochang Nam

#1 lore raw

Have you made sure each nic is on a separate interrrupt and that those interrupts are bound to different cpus?

-ben

Quoted 16 lines · Hyochang Nam

Can Linux Kernel 2.4.X handle two IP Packets at the same time in a SMP machine which has two CPUs?
I have a SMP machine which equips two Intel Xeon CPUs and two Intel Gigabit Network Cards. When I sent small IP Packets to the machine, most of packets are dropped. When I watch CPU utlization with TOP program, only one CPU shows high value but the other shows much low value, ie. 10% CPU utlization. My test shows current IP Stack in Linux Kernel cannot provide SMP Processing properly. But, some articles said Linux Kernel 2.4 gives true SMP processing. What do you think my problem is?

Best regards,

Hyochang Nam

Signature · 1 line
GMS rules.
#2 lore raw
In reply to Hyochang Nam
Quoted 9 lines · Hyochang Nam

Can Linux Kernel 2.4.X handle two IP Packets at the same time
in a SMP machine which has two CPUs?
I have a SMP machine which equips two Intel Xeon CPUs and two
Intel Gigabit Network Cards. When I sent small IP Packets
to the machine, most of packets are dropped. When I watch CPU utlization with TOP program, only one CPU shows high value but the other shows much low value, ie. 10% CPU utlization.
My test shows current IP Stack in Linux Kernel cannot provide SMP Processing properly. But, some articles said Linux Kernel 2.4 gives true SMP processing. What do you think my problem is?

Quoted 4 lines

Best regards,

Hyochang Nam

I will be interested to hear if your tests can generate heavy traffic for more than a few hours...my machine keeps crashing when doing this kind of test.

How many packets are you trying to send?

Also, try loading the NIC with TxDescriptors=4096 RxDescriptors=1024

Enjoy,
Ben

Signature · 3 lines
Ben Greear <[email protected]>       <Ben_Greear AT excite.com>
President of Candela Technologies Inc      http://www.candelatech.com
ScryMUD:  http://scry.wanfear.com     http://scry.wanfear.com/~greear
#3 lore raw
In reply to Hyochang Nam
Quoted 3 lines · Hyochang Nam

Can Linux Kernel 2.4.X handle two IP Packets at the same time in a SMP machine which has two CPUs?

We've done tests on large SMP's without significant problems.

Quoted 3 lines

I have a SMP machine which equips two Intel Xeon CPUs and two Intel Gigabit Network Cards. When I sent small IP Packets to the machine, most of packets are dropped. When I watch

How small is your small packet? Do you have the same problem with larger packets?
Are these drops showing up in ifconfig output? i.e. reported by the card? In which case I suspect it might be a card issue. Also, have you configured your card settings?

Quoted 2 lines

CPU utlization with TOP program, only one CPU shows high value but the other shows much low value, ie. 10% CPU utlization.

How are you doing your sends? Is your application mostly running on one CPU? Do you have anything else running on the busy CPU? What is the interrupt distribution between the two CPU's?

Quoted 3 lines

My test shows current IP Stack in Linux Kernel cannot provide SMP Processing properly. But, some articles said Linux Kernel 2.4 gives true SMP processing. What do you think my problem is?

Could you provide your stats (ifconfig, netstat -s)?

Quoted 1 line

Hyochang Nam

thanks,
Nivedita