lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20061116.162320.28787779.davem@davemloft.net>
Date:	Thu, 16 Nov 2006 16:23:20 -0500 (EST)
From:	David Miller <davem@...emloft.net>
To:	eli@....mellanox.co.il
Cc:	jheffner@....edu, linux-kernel@...r.kernel.org,
	linux-net@...r.kernel.org
Subject: Re: UDP packets loss

From: eli@....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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ