Skip to contentSkip to conversation

Performance Comparison between 2.6 and 2.4 kernel

Routing Song Wang 3 participants 7 messages Sep 11, 2004 – Sep 29, 2004

Subsystems (2)
lore
Share & tools
lore

Song Wang

author
#0 lore raw

Hi,

I'm looking for the network packet routing performance comparison between the latest 2.4 and 2.6 kernel.

I did some initial testing on my mips-based router. 2.6 kernel (2.6.8.1) performed way below 2.4 kernel (2.4.17). It sucks. Turning on preemption on 2.6 kernel even makes routing performance worse.

Anybody did a comprehensive study on the routing performance for 2.6 and 2.4 kernel?

Thanks.

__________________________________
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now.
http://messenger.yahoo.com

#1 lore raw

What mips board is this? NAPI based?
I would say that you should get higher numbers with 2.6.x. Are you running any sort of apps that need gettimeofday? I have certainly seen higher numbers on 2.6 vs 2.4 starting at some point where Andis gettimeofday patch went in - but this was on x86.

cheers,
jamal

Quoted 24 lines · Song Wang

Hi,

I'm looking for the network packet routing performance comparison between the latest 2.4 and 2.6 kernel.

I did some initial testing on my mips-based router. 2.6 kernel (2.6.8.1) performed way below 2.4 kernel (2.4.17). It sucks. Turning on preemption on 2.6 kernel even makes routing performance worse.

Anybody did a comprehensive study on the routing performance for 2.6 and 2.4 kernel?

Thanks.

__________________________________
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now.
http://messenger.yahoo.com

author
#2 lore raw

Hi,

The mips CPU on the board is MIPS32 compatible. I don't think it's NAPI based.

The gettimeofday patch you mentioned came into the 2.6 kernel at what version?

Do you think it's related to HZ change from 100 to 1000? Actually I did change HZ back to 100, but it didn't help.

-Song

Quoted 31 lines · --- jamal

What mips board is this? NAPI based?
I would say that you should get higher numbers with 2.6.x.
Are you running any sort of apps that need gettimeofday?
I have certainly seen higher numbers on 2.6 vs 2.4 starting at some
point where Andis gettimeofday patch went in - but this was on x86.

cheers,
jamal

Quoted 7 lines · Song Wang

Hi,

I'm looking for the network packet routing performance comparison between the latest 2.4 and 2.6 kernel.

I did some initial testing on my mips-based

router.

Quoted 1 line

2.6 kernel (2.6.8.1) performed way below 2.4

kernel

Quoted 6 lines

(2.4.17). It sucks. Turning on preemption on 2.6 kernel even makes routing performance worse.

Anybody did a comprehensive study on the routing performance for 2.6 and 2.4 kernel?

Quoted 13 lines
Quoted 7 lines

Thanks.

__________________________________
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download

now.

Quoted 3 lines

http://messenger.yahoo.com

_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

maintainer
#3 lore raw
Quoted 2 lines · On Wed, 15 Sep 2004 11:06:03 -0700 (PDT) Song Wang <[email protected]> wrote:

The mips CPU on the board is MIPS32 compatible.
I don't think it's NAPI based.

NAPI is an attribute of the network adapter, not
the cpu.

Although I would very much anticipate this being
a MIPS or network adapter specific problem since
on x86 routing is pretty fast in 2.6.x

#4 lore raw
Quoted 6 lines · David S. Miller
Quoted 2 lines · On Wed, 15 Sep 2004 11:06:03 -0700 (PDT) Song Wang <[email protected]> wrote:

The mips CPU on the board is MIPS32 compatible.
I don't think it's NAPI based.

Quoted 6 lines

NAPI is an attribute of the network adapter, not
the cpu.

Although I would very much anticipate this being
a MIPS or network adapter specific problem since
on x86 routing is pretty fast in 2.6.x

Note, I could hit 4-500Kpps on a bcom sb1250 800Mhz; trying to simulate Andis gettimeofday changes (which are in 2.6 since i havent seen a 2.6 port for that board ) gives another 100Kpps. Theres still room for improvement just havent had time.
You are right though it could be a 2.6.x arch specific issue. Bacchus?

cheers,
jamal

author
#5 lore raw
Quoted 15 lines
Quoted 4 lines

Although I would very much anticipate this being
a MIPS or network adapter specific problem since
on x86 routing is pretty fast in 2.6.x

Note, I could hit 4-500Kpps on a bcom sb1250 800Mhz; trying to simulate
Andis gettimeofday changes (which are in 2.6 since i havent seen a 2.6
port for that board ) gives another 100Kpps. Theres still room for
improvement just havent had time.
You are right though it could be a 2.6.x arch specific issue. Bacchus?

Quoted 4 lines

cheers,
jamal

Hi Jamal and Dave,

I continued to do some testing in a minimal environment, basically the routing between the two ethernet ports on the mips board. Only ethernet driver is loaded. The user-space only has busybox.

The difference between 2.6.8.1 and 2.4.17 kernel is 3000pps less for routing. However, the bridging performance is the same between two kernels.

Jamal, where is the Andis gettimeofday changes you mentioned?

Thanks.

-Song

__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

author
#6 lore raw
In reply to jamal

Hi, jamal,

Could you please kindly point where the gettimeofday patch is? Is it in 2.6.8.1 kernel?

BTW, what is the packet size for you performance
number, 64 bytes?

I appreciate it.

-Song

Quoted 24 lines · --- jamal
Quoted 6 lines · David S. Miller
Quoted 2 lines · On Wed, 15 Sep 2004 11:06:03 -0700 (PDT) Song Wang <[email protected]> wrote:

The mips CPU on the board is MIPS32 compatible.
I don't think it's NAPI based.

Quoted 6 lines

NAPI is an attribute of the network adapter, not
the cpu.

Although I would very much anticipate this being
a MIPS or network adapter specific problem since
on x86 routing is pretty fast in 2.6.x

Note, I could hit 4-500Kpps on a bcom sb1250 800Mhz; trying to simulate
Andis gettimeofday changes (which are in 2.6 since i havent seen a 2.6
port for that board ) gives another 100Kpps. Theres still room for
improvement just havent had time.
You are right though it could be a 2.6.x arch specific issue. Bacchus?

Quoted 4 lines

cheers,
jamal

_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com