lkml.org 
[lkml]   [2006]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: UDP packets loss
From
From: eli@dev.mellanox.co.il
Date: Thu, 16 Nov 2006 23:10:08 +0200 (IST)

> >
> > BTW, TCP will be significantly faster than UDP because with UDP you
> > incur an extra full context switch on every packet.
> >
>
> Could you elaborate on this a bit more? What kind of context switch?

TCP queues and takes care of all the sending, packetization,
etc. handling asynchronously. Whereas with UDP every write()
results in a packet on the wire, packets are always emitted
synchronously in process context.

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

\
 
 \ /
  Last update: 2006-11-16 22:25    [W:0.030 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site