tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Writing to multiple descriptors with one system call
On Wed, Mar 17, 2010 at 12:50:51PM +0000, Sad Clouds wrote:
> [...]
> I profiled a simple event driven server, with 5000 simultaneous
> connections. About 80% of the time was spent in write() system call.
What makes you think that a syscall writing the same data to multiple
descriptors would be faster ?
My guess is that the time is not spent in the syscall code itself,
but in the socket code (or TCP).
--
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
NetBSD: 26 ans d'experience feront toujours la difference
--
Home |
Main Index |
Thread Index |
Old Index