lkml.org 
[lkml]   [1999]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Max tcp connections
Date
From
> 	No, continue checking state, but don't add to wait queues. I thought all
> along that the reason poll was so inefficient was because you had to go on
> O(n) wait queues only to be taken off of them if you don't block.

The wait queue add is about 30-40 clocks. It isnt the wait_queue add that
is the issue, its the fact you are doing things for 30,000 handles for every
event on every handle (or at best every pending set of events)

>
> Now, poll itself is O(n), but doing the I/O is going to be O(n) (here n
> represents the number of fds or clients). So we make a call that is O(n)
> with a frequency that is O(1/n). Hence the overall overhead of poll is O(1)
> with respect to the number of active connections. Signals can't touch that
> scalability.

My computer science lecturer would have put a red pen through that and marked
it 0


-
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/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.240 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site