lkml.org 
[lkml]   [1997]   [Oct]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Unix domain sockets being slooooooooooooooooooooooooowwwwwwwww
Date
> I think there's a minimum packet length over ethernet that is killing you
> with overhead. I think it's 64 bytes. If you have a 1-byte semaphore, you
> are only using about 1/64th of the available data bandwidth.

The actual wasted 63 bytes is but a tiny fraction of the cost of getting
a packet to wire - a lot of it is going to the hardware setup overheads,
and even the linux syscall overhead too

Effectively its an equation of the form

large_overhead+(small_cost*bytes)
---------------------------------
bytes

which means small messages get you into poor performance areas. Doing it
with tcp not udp really makes it fun


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