Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux: Kernel

Huge performance degradation for UDP between 2.4.17 and 2.6

 

 

Linux kernel RSS feed   Index | Next | Previous | View Threaded


christophe.leroy at c-s

Aug 2, 2012, 5:27 AM

Post #1 of 6 (106 views)
Permalink
Huge performance degradation for UDP between 2.4.17 and 2.6

Hi

I'm having a big issue with UDP. Using a powerpc board (MPC860).

With our board running kernel 2.4.17, I'm able to send 160000 voice
packets (UDP, 96 bytes per packet) in 11 seconds.
With the same board running either Kernel 2.6.35.14 or Kernel 3.4.7, I
need 55 seconds to send the same amount of packets.


Is there anything to tune in order to get same output rate as with
Kernel 2.4 ?

Regards
Christophe
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


eric.dumazet at gmail

Aug 2, 2012, 7:13 AM

Post #2 of 6 (102 views)
Permalink
Re: Huge performance degradation for UDP between 2.4.17 and 2.6 [In reply to]

On Thu, 2012-08-02 at 14:27 +0200, leroy christophe wrote:
> Hi
>
> I'm having a big issue with UDP. Using a powerpc board (MPC860).
>
> With our board running kernel 2.4.17, I'm able to send 160000 voice
> packets (UDP, 96 bytes per packet) in 11 seconds.
> With the same board running either Kernel 2.6.35.14 or Kernel 3.4.7, I
> need 55 seconds to send the same amount of packets.
>
>
> Is there anything to tune in order to get same output rate as with
> Kernel 2.4 ?

kernel size is probably too big for your old / slow cpu.

Maybe you added too many features on your 3.4.7 kernel. (netfilter ?
SLUB debugging ...)

Its hard to say, 2.4.17 had less features and was faster.



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


chris.friesen at genband

Aug 2, 2012, 10:12 PM

Post #3 of 6 (101 views)
Permalink
Re: Huge performance degradation for UDP between 2.4.17 and 2.6 [In reply to]

On 08/02/2012 06:27 AM, leroy christophe wrote:
> Hi
>
> I'm having a big issue with UDP. Using a powerpc board (MPC860).
>
> With our board running kernel 2.4.17, I'm able to send 160000 voice
> packets (UDP, 96 bytes per packet) in 11 seconds.
> With the same board running either Kernel 2.6.35.14 or Kernel 3.4.7, I
> need 55 seconds to send the same amount of packets.
>
>
> Is there anything to tune in order to get same output rate as with
> Kernel 2.4 ?

Have you tried profiling it to see where the time is being spent? Also
turning off any unnecessary features, debugging, etc?

Chris
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


christophe.leroy at c-s

Aug 5, 2012, 1:16 AM

Post #4 of 6 (100 views)
Permalink
Re: Huge performance degradation for UDP between 2.4.17 and 2.6 [In reply to]

Le 02/08/2012 16:13, Eric Dumazet a écrit :
> On Thu, 2012-08-02 at 14:27 +0200, leroy christophe wrote:
>> Hi
>>
>> I'm having a big issue with UDP. Using a powerpc board (MPC860).
>>
>> With our board running kernel 2.4.17, I'm able to send 160000 voice
>> packets (UDP, 96 bytes per packet) in 11 seconds.
>> With the same board running either Kernel 2.6.35.14 or Kernel 3.4.7, I
>> need 55 seconds to send the same amount of packets.
>>
>>
>> Is there anything to tune in order to get same output rate as with
>> Kernel 2.4 ?
> kernel size is probably too big for your old / slow cpu.
>
> Maybe you added too many features on your 3.4.7 kernel. (netfilter ?
> SLUB debugging ...)
>
> Its hard to say, 2.4.17 had less features and was faster.
>

Thanks for your answer.
Yes I have netfilter as I need it. However, I tried without it and still
need about 37 seconds to send the 160000 packets I was sending in 11
seconds with 2.4.17

I don't think there is any problem with size of the kernel. I still have
plenty of memory available.

All debugging is turned off, and I'm not using SLUB but SLOB.
I have 32Mbytes of RAM. Would SLUB be more performant than SLOB ?

Christophe
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


eric.dumazet at gmail

Aug 5, 2012, 1:28 AM

Post #5 of 6 (102 views)
Permalink
Re: Huge performance degradation for UDP between 2.4.17 and 2.6 [In reply to]

On Sun, 2012-08-05 at 10:16 +0200, LEROY christophe wrote:
> Le 02/08/2012 16:13, Eric Dumazet a écrit :
> > On Thu, 2012-08-02 at 14:27 +0200, leroy christophe wrote:
> >> Hi
> >>
> >> I'm having a big issue with UDP. Using a powerpc board (MPC860).
> >>
> >> With our board running kernel 2.4.17, I'm able to send 160000 voice
> >> packets (UDP, 96 bytes per packet) in 11 seconds.
> >> With the same board running either Kernel 2.6.35.14 or Kernel 3.4.7, I
> >> need 55 seconds to send the same amount of packets.
> >>
> >>
> >> Is there anything to tune in order to get same output rate as with
> >> Kernel 2.4 ?
> > kernel size is probably too big for your old / slow cpu.
> >
> > Maybe you added too many features on your 3.4.7 kernel. (netfilter ?
> > SLUB debugging ...)
> >
> > Its hard to say, 2.4.17 had less features and was faster.
> >
>
> Thanks for your answer.
> Yes I have netfilter as I need it. However, I tried without it and still
> need about 37 seconds to send the 160000 packets I was sending in 11
> seconds with 2.4.17
>
> I don't think there is any problem with size of the kernel. I still have
> plenty of memory available.
>

I believe you misunderstood me.

I was referring to cpu caches ( dcache & icache )

> All debugging is turned off, and I'm not using SLUB but SLOB.
> I have 32Mbytes of RAM. Would SLUB be more performant than SLOB ?

I never used SLOB I cannot comment

Please provide (on 3.4.7)

cat /proc/cpuinfo
lsmod
dmesg


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


christophe.leroy at c-s

Aug 6, 2012, 2:27 AM

Post #6 of 6 (101 views)
Permalink
Re: Huge performance degradation for UDP between 2.4.17 and 2.6 [In reply to]

Le 05/08/2012 10:28, Eric Dumazet a écrit :
> On Sun, 2012-08-05 at 10:16 +0200, LEROY christophe wrote:
>> Le 02/08/2012 16:13, Eric Dumazet a écrit :
>>> On Thu, 2012-08-02 at 14:27 +0200, leroy christophe wrote:
>>>> Hi
>>>>
>>>> I'm having a big issue with UDP. Using a powerpc board (MPC860).
>>>>
>>>> With our board running kernel 2.4.17, I'm able to send 160000 voice
>>>> packets (UDP, 96 bytes per packet) in 11 seconds.
>>>> With the same board running either Kernel 2.6.35.14 or Kernel 3.4.7, I
>>>> need 55 seconds to send the same amount of packets.
>>>>
>>>>
>>>> Is there anything to tune in order to get same output rate as with
>>>> Kernel 2.4 ?
>>> kernel size is probably too big for your old / slow cpu.
>>>
>>> Maybe you added too many features on your 3.4.7 kernel. (netfilter ?
>>> SLUB debugging ...)
>>>
>>> Its hard to say, 2.4.17 had less features and was faster.
>>>
>> Thanks for your answer.
>> Yes I have netfilter as I need it. However, I tried without it and still
>> need about 37 seconds to send the 160000 packets I was sending in 11
>> seconds with 2.4.17
>>
>> I don't think there is any problem with size of the kernel. I still have
>> plenty of memory available.
>>
> I believe you misunderstood me.
>
> I was referring to cpu caches ( dcache & icache )
>
>> All debugging is turned off, and I'm not using SLUB but SLOB.
>> I have 32Mbytes of RAM. Would SLUB be more performant than SLOB ?
> I never used SLOB I cannot comment
>
> Please provide (on 3.4.7)
>
> cat /proc/cpuinfo
> lsmod
> dmesg
>
Ok, I have recompiled with SLUB.
Find attached cpuinfo, lsmod and dmesg. I do not have any modules loaded.
Attachments: lsmod.txt (54 B)
  cpuinfo.txt (0.17 KB)
  dmesg.txt (28.5 KB)

Linux kernel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.