From owner-freebsd-current Sat May 4 21:17:37 2002 Delivered-To: freebsd-current@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 7267237B416; Sat, 4 May 2002 21:17:31 -0700 (PDT) Received: (from ken@localhost) by panzer.kdm.org (8.11.6/8.9.1) id g454HQA28992; Sat, 4 May 2002 22:17:26 -0600 (MDT) (envelope-from ken) Date: Sat, 4 May 2002 22:17:26 -0600 From: "Kenneth D. Merry" To: current@FreeBSD.org Cc: net@FreeBSD.org Subject: zero copy sockets patches available Message-ID: <20020504221726.A28940@panzer.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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