Re: Some more info about CONNECT/ACCEPT problem.

From: Arjan van de Ven (arjan@fenrus.demon.nl)
Date: Fri Apr 07 2000 - 14:43:31 EST


On Fri, 7 Apr 2000, Peter Zaitsev wrote:

>
> > Strange. Without syn-cookies, I can easily get 3000 connections/second
> > (full http requests for files of 1Kb in size) om my 100 Mbit network.
> > [With syncookies/tcplogd the story is different]
>
> Yes. I have the similar - if I run only one thread/process or something up
> to 10-20 I got no problem More then 2000 of ducuments on my hardware. But if
> the connects are going in a parralel from many clients the situation is
> different....
> Any Ideas. Can anyone repeat my test (I have provided the source) and tell
> if he has or has not such problem ?

You do realise there is some unexpected behavior in your program?
Instead of creating 200 threads, you create 200! threads.

You basically do

for (t=0;t<200;t++) {
         fork();
}

So you get this

t number of threads
0 1
1 2
2 4
3 8
etc

The load on my system went through the roof.....

Greetings,
   Arjan van de Ven

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



This archive was generated by hypermail 2b29 : Fri Apr 07 2000 - 21:00:18 EST