public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* kernel 2.4.2 network performances
@ 2001-03-15  9:47 Jerome Tollet
  2001-03-15 13:42 ` Sampsa Ranta
  2001-03-21 23:17 ` Anders Peter Fugmann
  0 siblings, 2 replies; 7+ messages in thread
From: Jerome Tollet @ 2001-03-15  9:47 UTC (permalink / raw)
  To: linux-kernel

Hello, i have a problem with the network layer of linux kernel 2.4.2
I wrote a minimalist program which basically sends UDP datagrams over
the network in an infinite loop.
Under Linux 2.2.x, this program floods the network and my xosview prints
that 12 MB/s are sent over my 100Mbit ethernet.

Under Linux 2.4.2, this program can't flood the network because my
xosview (the same ;-) ) tells me that 4.6MB/s are sent over my ethernet
although my cpu is not overloaded.

I think that Linux 2.4.2 limits the rate of packets sent over the
network with some soft parameters.
*Does anyone have any idea ?
*Could someone explains me the new
/proc/sys/net/core/{hot_list_length|no_cong|no_cong_thresh|mod_cong|lo_cong}
parameters ?
*Where could i see in the code this soft limits ?

Thanks for your help.
Please CC me your response while i didn't subscribed to the mailing
list.

------------------------
Jerome Tollet
jerome.tollet@qosmos.net
www.qosmos.net
------------------------

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: kernel 2.4.2 network performances
  2001-03-15  9:47 kernel 2.4.2 network performances Jerome Tollet
@ 2001-03-15 13:42 ` Sampsa Ranta
  2001-03-16  9:33   ` Helge Hafting
                     ` (2 more replies)
  2001-03-21 23:17 ` Anders Peter Fugmann
  1 sibling, 3 replies; 7+ messages in thread
From: Sampsa Ranta @ 2001-03-15 13:42 UTC (permalink / raw)
  To: Jerome Tollet; +Cc: linux-kernel

On Thu, 15 Mar 2001, Jerome Tollet wrote:

> Hello, i have a problem with the network layer of linux kernel 2.4.2
> I wrote a minimalist program which basically sends UDP datagrams over
> the network in an infinite loop.
> Under Linux 2.2.x, this program floods the network and my xosview prints
> that 12 MB/s are sent over my 100Mbit ethernet.
>
> Under Linux 2.4.2, this program can't flood the network because my
> xosview (the same ;-) ) tells me that 4.6MB/s are sent over my ethernet
> although my cpu is not overloaded.
>
> I think that Linux 2.4.2 limits the rate of packets sent over the
> network with some soft parameters.
> *Does anyone have any idea ?
> *Could someone explains me the new
> /proc/sys/net/core/{hot_list_length|no_cong|no_cong_thresh|mod_cong|lo_cong}
> parameters ?
> *Where could i see in the code this soft limits ?

Yesterday I discovered that the load I can throw out to network seems to
depend on other activities running on machine. I was able to get
throughput of 33M/s with ATM when machine was idle, while I compiled
kernel at same time, the throughput was 135M/s.

So, I suggest you try to compile kernel while running your UDP stream!

 - Sampsa Ranta



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: kernel 2.4.2 network performances
  2001-03-15 13:42 ` Sampsa Ranta
@ 2001-03-16  9:33   ` Helge Hafting
  2001-03-16 23:24   ` Bernd Eckenfels
  2001-03-16 23:54   ` bert hubert
  2 siblings, 0 replies; 7+ messages in thread
From: Helge Hafting @ 2001-03-16  9:33 UTC (permalink / raw)
  To: Sampsa Ranta, linux-kernel

Sampsa Ranta wrote:

> Yesterday I discovered that the load I can throw out to network seems to
> depend on other activities running on machine. I was able to get
> throughput of 33M/s with ATM when machine was idle, while I compiled
> kernel at same time, the throughput was 135M/s.
> 
> So, I suggest you try to compile kernel while running your UDP stream!

Ouch.  My guess is the kernel looks for stuff to do when scheduling, and
compiling will definitely cause more of that.  Maybe it waits for
the next timer interrupt when idle, instead of checking if there's
more to do?  

Helge Hafting

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: kernel 2.4.2 network performances
  2001-03-15 13:42 ` Sampsa Ranta
  2001-03-16  9:33   ` Helge Hafting
@ 2001-03-16 23:24   ` Bernd Eckenfels
  2001-03-16 23:54   ` bert hubert
  2 siblings, 0 replies; 7+ messages in thread
From: Bernd Eckenfels @ 2001-03-16 23:24 UTC (permalink / raw)
  To: linux-kernel

In article <Pine.LNX.4.33.0103151540240.856-100000@nalle.netsonic.fi> you wrote:
> Yesterday I discovered that the load I can throw out to network seems to
> depend on other activities running on machine. I was able to get
> throughput of 33M/s with ATM when machine was idle, while I compiled
> kernel at same time, the throughput was 135M/s.

- which protocol/application you have used for this
- how do you have measured throughput (try wristwatch!)

I could think that applications can profit from increased context switches
count, especially if there is a handshake network protocol going on. But it
could also be some hardware problems.

Greetings
Bernd

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: kernel 2.4.2 network performances
  2001-03-15 13:42 ` Sampsa Ranta
  2001-03-16  9:33   ` Helge Hafting
  2001-03-16 23:24   ` Bernd Eckenfels
@ 2001-03-16 23:54   ` bert hubert
  2 siblings, 0 replies; 7+ messages in thread
From: bert hubert @ 2001-03-16 23:54 UTC (permalink / raw)
  To: linux-kernel

On Thu, Mar 15, 2001 at 03:42:37PM +0200, Sampsa Ranta wrote:

> Yesterday I discovered that the load I can throw out to network seems to
> depend on other activities running on machine. I was able to get
> throughput of 33M/s with ATM when machine was idle, while I compiled
> kernel at same time, the throughput was 135M/s.
> 
> So, I suggest you try to compile kernel while running your UDP stream!

Try raising HZ. Perhaps your driver depends on it. It shouldn't, but who
knows.

Regards,

bert

-- 
http://www.PowerDNS.com      Versatile DNS Services  
Trilab                       The Technology People   
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: kernel 2.4.2 network performances
  2001-03-15  9:47 kernel 2.4.2 network performances Jerome Tollet
  2001-03-15 13:42 ` Sampsa Ranta
@ 2001-03-21 23:17 ` Anders Peter Fugmann
       [not found]   ` <3AB9C083.C093769F@qosmos.net>
  1 sibling, 1 reply; 7+ messages in thread
From: Anders Peter Fugmann @ 2001-03-21 23:17 UTC (permalink / raw)
  To: Jerome Tollet; +Cc: linux-kernel

Hi Jerome.

As Mr. Hafting says, is seems that there is a softirq missing somewhere.
If this is the case, it should help to make some add some systemcalls in 
your program, since a softirq should happen at every system-call exit.

Try adding:

	getpid();

in the innermost loop, and see if it helps.

I would be happy to look deeper into it, so if you could send me your 
test program and I'll see if I can find anything. Please append the 
result from the code with and without the getpid call.


Regards
Anders Fugmann

-- 
Hi. I'm a .signature virus.
Please copy me into your .signature file and help me spread.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: kernel 2.4.2 network performances
       [not found]   ` <3AB9C083.C093769F@qosmos.net>
@ 2001-03-22 17:29     ` Anders Peter Fugmann
  0 siblings, 0 replies; 7+ messages in thread
From: Anders Peter Fugmann @ 2001-03-22 17:29 UTC (permalink / raw)
  To: Jerome Tollet; +Cc: linux-kernel

Hi again.

I've written my own test program, and I get 12M throughput.

I used a packet size of 1024 Bytes. Smaller packages seems to result in 
less throughput.

There was no load on the machine I tested on. Does the throughput get 
better is there is a lot of stress on the machine? (eg. compiling kernel 
with -j 10).

It could also be the NIC itself, but this I cannot test (I'm using a 
3Com 905b) card. Have you tried to replace the NIC?


-- 
Hi. I'm a .signature virus.
Please copy me into your .signature file and help me spread.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-03-22 17:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-15  9:47 kernel 2.4.2 network performances Jerome Tollet
2001-03-15 13:42 ` Sampsa Ranta
2001-03-16  9:33   ` Helge Hafting
2001-03-16 23:24   ` Bernd Eckenfels
2001-03-16 23:54   ` bert hubert
2001-03-21 23:17 ` Anders Peter Fugmann
     [not found]   ` <3AB9C083.C093769F@qosmos.net>
2001-03-22 17:29     ` Anders Peter Fugmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox