Date: Sat, 4 May 2002 22:17:26 -0600 From: "Kenneth D. Merry" <ken@kdm.org> To: current@FreeBSD.org Cc: net@FreeBSD.org Subject: zero copy sockets patches available Message-ID: <20020504221726.A28940@panzer.kdm.org>
next in thread | raw e-mail | index | archive | help
I have released a new zero copy sockets snapshot; the patches are against yesterday's (May 3rd) -current. The astute reader may note that it has been quite a while (November 2000) since my last zero copy code release, and all I can say is "time, motivation, lack of local equipment". Anyway, the code and a FAQ (I've updated it a bit, but not thoroughly) is available here: http://people.freebsd.org/~ken/zero_copy/ Comments, questions, reviews are all welcome. A sample benchmark: {gondolin:/usr/local/netperf:15:0} ./netperf -H nargothrond-ge TCP STREAM TEST to nargothrond-ge : histogram Recv Send Send Socket Socket Message Elapsed Size Size Size Time Throughput bytes bytes bytes secs. 10^6bits/sec 262144 262144 262144 10.01 989.06 That, in and of itself, is unremarkable. I can get that sort of speed going between two machines running -stable. (In fact the sender is running -stable, the receiver is running -current.) The remarkable thing here is the CPU utilization on the receiver -- only about 35% on average during the 10 second run. If I turn off zero copy receive, CPU utilization on the receiver goes up to around 60% or so. The difference is a bit larger on the send side. Before you ask "can I do this on my system??", please see item 4 of the FAQ. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020504221726.A28940>