Skip to contentSkip to conversation

High CPU utilization with Bonding driver ?

DISCUSSION Ravinandan Arakali 3 participants 9 messages Mar 29, 2005 – Apr 13, 2005

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

Hi,
We are facing the following problem with bonding driver with two 10-gigabit ethernet cards.
Any help is greatly appreciated.

Configuration:
--------------

Server:  Four processor AMD Opteron running 2.6.5 kernel
Switch:  Foundry stackable switch
Clients: Two Opteron systems, each with one 10-gigabit card.
Bonding: Two 10G cards bonded in LACP mode. One card in 133 MHz slot,

the other in 100 MHz slot(though we suspect the latter is scaling down to 66 MHz)

Results(8 nttcp/chariot streams):
---------------------------------
1. Combined throughputs(but no bonding):
3.1 + 6.2 = 9.3 Gbps with 58% CPU idle.

2. eth0 and eth1 bonded together in LACP mode:
8.2 Gbps with 1% CPU idle.

Quoted 1 line

From the above results, when Bonding driver is used(#2), the CPUs are

completely maxed out compared to the case when traffic is run simultaneously on both the cards(#1).
Can anybody suggest some reasons for the above behavior ?

Thanks,
Ravi

#1 lore raw
Quoted 6 lines · Ravinandan Arakali

....
Results(8 nttcp/chariot streams):
---------------------------------
1. Combined throughputs(but no bonding):
3.1 + 6.2 = 9.3 Gbps with 58% CPU idle.

Quoted 8 lines

2. eth0 and eth1 bonded together in LACP mode:
8.2 Gbps with 1% CPU idle.

From the above results, when Bonding driver is used(#2), the CPUs are completely maxed out compared to the case when traffic is run simultaneously on both the cards(#1).
Can anybody suggest some reasons for the above behavior ?

Ravi;

Have you tried this patch?

http://marc.theaimsgroup.com/?l=linux-netdev&m=111091146828779&w=2

If not, it will likely go a long way to solving your problem.

--
Arthur

#2 lore raw

Arthur,
Thanks for the reply.
Not yet. Will try out the patch.

Ravi

-----Original Message-----
From: Arthur Kepner [mailto:[email protected]]
Sent: Tuesday, March 29, 2005 10:29 AM
To: Ravinandan Arakali
Cc: [email protected]; [email protected]; Leonid. Grossman (E-mail); Raghavendra. Koushik (E-mail)
Subject: Re: High CPU utilization with Bonding driver ?

Quoted 6 lines · Ravinandan Arakali

....
Results(8 nttcp/chariot streams):
---------------------------------
1. Combined throughputs(but no bonding):
3.1 + 6.2 = 9.3 Gbps with 58% CPU idle.

Quoted 8 lines

2. eth0 and eth1 bonded together in LACP mode:
8.2 Gbps with 1% CPU idle.

From the above results, when Bonding driver is used(#2), the CPUs are completely maxed out compared to the case when traffic is run simultaneously on both the cards(#1).
Can anybody suggest some reasons for the above behavior ?

Ravi;

Have you tried this patch?

http://marc.theaimsgroup.com/?l=linux-netdev&m=111091146828779&w=2

If not, it will likely go a long way to solving your problem.

--
Arthur

#3 lore raw
In reply to Arthur Kepner

Arthur,
On what kernel version should your below mentioned patch be applied ? We tried on one of the older kernels(2.6.5) and got an Oops while loading the bonding driver.

Thanks,
Ravi

-----Original Message-----
From: Arthur Kepner [mailto:[email protected]]
Sent: Tuesday, March 29, 2005 10:29 AM
To: Ravinandan Arakali
Cc: [email protected]; [email protected]; Leonid. Grossman (E-mail); Raghavendra. Koushik (E-mail)
Subject: Re: High CPU utilization with Bonding driver ?

Quoted 6 lines · Ravinandan Arakali

....
Results(8 nttcp/chariot streams):
---------------------------------
1. Combined throughputs(but no bonding):
3.1 + 6.2 = 9.3 Gbps with 58% CPU idle.

Quoted 8 lines

2. eth0 and eth1 bonded together in LACP mode:
8.2 Gbps with 1% CPU idle.

From the above results, when Bonding driver is used(#2), the CPUs are completely maxed out compared to the case when traffic is run simultaneously on both the cards(#1).
Can anybody suggest some reasons for the above behavior ?

Ravi;

Have you tried this patch?

http://marc.theaimsgroup.com/?l=linux-netdev&m=111091146828779&w=2

If not, it will likely go a long way to solving your problem.

--
Arthur

#4 lore raw
Quoted 5 lines · Ravinandan Arakali

Arthur,
On what kernel version should your below mentioned patch be applied ? We tried on one of the older kernels(2.6.5) and got an Oops while loading the bonding driver.
.....

Hmmm, interesting.

I've used it with 2.6.X for at least two values of X (one of them being 5) so I'm surprised. Can you provide details about the oops?

--

Arthut

#5 lore raw

Arthur,
The problem does not seem to be due to your patch because the bonding driver built without your patch crashes too on load. However, the pre-existing binary under /lib/modules/uname -r/... works fine.
Any idea why this may be happening ?

Given below is the output of trying to insmod the bonding driver.

linux:/usr/src/linux-2.6.5-7.135/drivers/net/bonding # insmod bonding.ko mode=4 miimon=100
Killed
linux:/usr/src/linux-2.6.5-7.135/drivers/net/bonding # Message from syslogd@linux at Tue Apr 5 03:28:53 2005 ... linux kernel: Oops: 0002 [1] SMP

Message from syslogd@linux at Tue Apr 5 03:28:53 2005 ... linux kernel: CR2: ffffffffa0245000

linux:/usr/src/linux-2.6.5-7.135/drivers/net/bonding # dmesg|tail -25

Unable to handle kernel paging request at ffffffffa0245000 RIP:
<ffffffff8015afac>{sys_init_module+3388}
PML4 103027 PGD 105027 PMD f988c067 PTE 0
Oops: 0002 [1] SMP
CPU 2
Pid: 6608, comm: insmod Tainted: GF U (2.6.5-7.135-smp
SLES9_SP1_BRANCH-20041215213001)
RIP: 0010:[<ffffffff8015afac>] <ffffffff8015afac>{sys_init_module+3388}
RSP: 0018:000001007e17bd88  EFLAGS: 00010207
RAX: ffffffffa0244f00 RBX: ffffff000080b2d8 RCX: ffffffffa0244580
RDX: 0000000000000014 RSI: ffffff000081362b RDI: ffffffffa0243de3
RBP: ffffffffa0242e40 R08: 0000000000000018 R09: ffffffffa0246000
R10: 0000000000000001 R11: 000001003fffeda8 R12: 0000000000000018
R13: 7fffffffffffffff R14: ffffffff803d46c0 R15: 0000000000000002
FS:  0000002a9588f6e0(0000) GS:ffffffff80552d00(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: ffffffffa0245000 CR3: 00000000bff90000 CR4: 00000000000006e0
Process insmod (pid: 6608, threadinfo 000001007e17a000, task
000001007ea17400)
Stack: 000001007f136c00 8000000000106025 0000010001003950 000001003d7ec340
       00000100bf5debe8 0000000000000246 000001007ea17400 ffffffff8013cb20
       000001007e17bdc8 000001007e17bdc8
Call Trace:<ffffffff8013cb20>{autoremove_wake_function+0}
<ffffffff80179641>{do_munmap+1249}
       <ffffffff801106d4>{system_call+124}
Code: c7 80 00 01 00 00 00 00 00 00 48 83 e8 80 83 fa 3f 76 eb 65

RIP <ffffffff8015afac>{sys_init_module+3388} RSP <000001007e17bd88>
CR2: ffffffffa0245000

-----Original Message-----
From: Arthur Kepner [mailto:[email protected]]
Sent: Monday, April 04, 2005 8:03 PM
To: Ravinandan Arakali
Cc: [email protected]; [email protected]; 'Leonid. Grossman (E-mail)'; 'Raghavendra. Koushik (E-mail)'
Subject: RE: High CPU utilization with Bonding driver ?

Quoted 5 lines · Ravinandan Arakali

Arthur,
On what kernel version should your below mentioned patch be applied ? We tried on one of the older kernels(2.6.5) and got an Oops while loading the bonding driver.
.....

Hmmm, interesting.

I've used it with 2.6.X for at least two values of X (one of them being 5) so I'm surprised. Can you provide details about the oops?

--

Arthut

#6 lore raw
Quoted 10 lines · Ravinandan Arakali

The problem does not seem to be due to your patch because the bonding driver built without your patch crashes too on load. However, the pre-existing binary under /lib/modules/uname -r/... works fine.
Any idea why this may be happening ?

Given below is the output of trying to insmod the bonding driver.

linux:/usr/src/linux-2.6.5-7.135/drivers/net/bonding # insmod bonding.ko mode=4 miimon=100

What's this kernel from, and do you have the config file
available?

	-J

---
-Jay Vosburgh, IBM Linux Technology Center, [email protected]

#7 lore raw

The kernel is from SuSE9-SP1.
Attached is the .config file.

Ravi

-----Original Message-----
From: Jay Vosburgh [mailto:[email protected]]
Sent: Tuesday, April 05, 2005 1:31 PM
To: Ravinandan Arakali
Cc: 'Arthur Kepner'; [email protected]; [email protected]; 'Leonid. Grossman (E-mail)'; 'Raghavendra. Koushik (E-mail)'
Subject: Re: High CPU utilization with Bonding driver ?

Quoted 10 lines · Ravinandan Arakali

The problem does not seem to be due to your patch because the bonding driver built without your patch crashes too on load. However, the pre-existing binary under /lib/modules/uname -r/... works fine.
Any idea why this may be happening ?

Given below is the output of trying to insmod the bonding driver.

linux:/usr/src/linux-2.6.5-7.135/drivers/net/bonding # insmod bonding.ko mode=4 miimon=100

What's this kernel from, and do you have the config file
available?

	-J

---
-Jay Vosburgh, IBM Linux Technology Center, [email protected]

#8 lore raw
In reply to Arthur Kepner

Arthur,
We were able to get the bonding driver working with your patch on 2.6.12. The good news is it does help in our setup since we were left with 25% CPU compared to 1% CPU remaining earlier.

Thanks,
Ravi

-----Original Message-----
From: Arthur Kepner [mailto:[email protected]]
Sent: Monday, April 04, 2005 8:03 PM
To: Ravinandan Arakali
Cc: [email protected]; [email protected]; 'Leonid. Grossman (E-mail)'; 'Raghavendra. Koushik (E-mail)'
Subject: RE: High CPU utilization with Bonding driver ?

Quoted 5 lines · Ravinandan Arakali

Arthur,
On what kernel version should your below mentioned patch be applied ? We tried on one of the older kernels(2.6.5) and got an Oops while loading the bonding driver.
.....

Hmmm, interesting.

I've used it with 2.6.X for at least two values of X (one of them being 5) so I'm surprised. Can you provide details about the oops?

--

Arthut