lkml.org 
[lkml]   [1999]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: > 15,000 Simultaneous Connections
On Mon, 6 Sep 1999, Rogier Wolff wrote:

> Steve Underwood wrote:
> >
> > Of course, using a select based approach on a multi-processor machine requires
>
> Guys, the system call select does an in-kernel translate to poll.

Not exactly. It does something _similar_ to poll and calls the
same per-descriptor check functions but saying it translates
to poll is going a bit far :-).

> So, for max efficiency always use poll.

Er... The difference between select and poll is not that great
if you manage your fd space effectively. Also poll scales to
large numbers of fds worse than select. And poll will dirty
a lot more cache than the equivalent select - which is a problem
for real life which sooner than it is for benchmarking :-).
(Poll uses 8 bytes per fd, select uses 3 bits...)

Mike

--
A train stops at a train station, a bus stops at a bus station.
On my desk I have a work station...
.----------------------------------------------------------------------.
| Mike Jagdis | Internet: mailto:mike@roan.co.uk |
| Roan Technology Ltd. | |
| 2 Markham Mews, Broad Street | Telephone: +44 118 989 0403 |
| Wokingham ENGLAND | Fax: +44 118 989 1195 |
`----------------------------------------------------------------------'


-
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:53    [W:0.041 / U:1.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site