From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4cd472f2defb9cd2d185aeda208dab6f@vitanuova.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] writing code Date: Fri, 18 Feb 2005 20:57:48 +0000 From: rog@vitanuova.com In-Reply-To: <0f57322cacb80f7c319565aeb7cfae61@plan9.ucalgary.ca> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-ibickxpskbmjtkvtyrykcigoye" Topicbox-Message-UUID: 4d7261ee-eace-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-ibickxpskbmjtkvtyrykcigoye Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit i tried it myself: % for(i in 1 2 3 4){ time fcp sun.tgz /dev/null time cp sun.tgz /dev/null time hget http://plan9.bell-labs.com/magic/9down4e/compressed/1108754619.nm555mqv7uc7rvvyye52p4zcaeeziq2d/sun.tgz > /dev/null } 0.00u 0.01s 12.09r fcp sun.tgz /dev/null 0.00u 0.03s 30.37r cp sun.tgz /dev/null 0.03u 0.11s 11.93r hget http://plan9.bell-labs.com/magic/9down4e/compressed/1108754619.nm555mqv7uc7rvvyye52p4zcaeeziq2d/sun.tgz 0.00u 0.04s 12.16r fcp sun.tgz /dev/null 0.00u 0.00s 30.32r cp sun.tgz /dev/null 0.01u 0.06s 10.16r hget http://plan9.bell-labs.com/magic/9down4e/compressed/1108754619.nm555mqv7uc7rvvyye52p4zcaeeziq2d/sun.tgz 0.00u 0.04s 12.46r fcp sun.tgz /dev/null 0.00u 0.01s 30.24r cp sun.tgz /dev/null 0.08u 0.02s 9.71r hget http://plan9.bell-labs.com/magic/9down4e/compressed/1108754619.nm555mqv7uc7rvvyye52p4zcaeeziq2d/sun.tgz 0.00u 0.01s 11.86r fcp sun.tgz /dev/null 0.00u 0.03s 30.10r cp sun.tgz /dev/null 0.05u 0.07s 9.93r hget http://plan9.bell-labs.com/magic/9down4e/compressed/1108754619.nm555mqv7uc7rvvyye52p4zcaeeziq2d/sun.tgz overhead was averaging about 15% there. it seems it isn't nearly as bad as i remember, which is good! BTW, there's a bug in fcp; you need to malloc the buffer separately inside each thread, otherwise you get data corruption. --upas-ibickxpskbmjtkvtyrykcigoye Content-Type: message/rfc822 Content-Disposition: inline Received: from mail.cse.psu.edu ([130.203.4.6]) by doppio; Fri Feb 18 18:57:15 GMT 2005 Received: from psuvax1.cse.psu.edu (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id CE29CC6AF2 for ; Fri, 18 Feb 2005 13:54:04 -0500 (EST) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: from localhost (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 9DEE0C68C5 for <9fans@cse.psu.edu>; Fri, 18 Feb 2005 13:53:16 -0500 (EST) Received: from mail.cse.psu.edu ([127.0.0.1]) by localhost (psuvax1 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00350-01-32 for <9fans@cse.psu.edu>; Fri, 18 Feb 2005 13:53:15 -0500 (EST) Received: from plan9.ucalgary.ca (plan9.ucalgary.ca [136.159.220.110]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id ED531C6896 for <9fans@cse.psu.edu>; Fri, 18 Feb 2005 13:53:14 -0500 (EST) Message-ID: <0f57322cacb80f7c319565aeb7cfae61@plan9.ucalgary.ca> To: 9fans@cse.psu.edu Subject: Re: [9fans] writing code Date: Fri, 18 Feb 2005 11:53:09 -0700 From: andrey mirtchovski In-Reply-To: <2c7c3234b8871252e4dde821152d96a2@vitanuova.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces+rog=vitanuova.com@cse.psu.edu Errors-To: 9fans-bounces+rog=vitanuova.com@cse.psu.edu > have you compared the speed against raw TCP? this may sound silly, but the only way i could find to compare against raw tcp is via hget: % time fcp /n/sources/extra/sun.tgz /dev/null 0.00u 0.01s 2.90r fcp /n/sources/extra/sun.tgz /dev/null 0.00u 0.02s 4.16r fcp /n/sources/extra/sun.tgz /dev/null 0.01u 0.02s 4.07r fcp /n/sources/extra/sun.tgz /dev/null 0.00u 0.00s 2.83r fcp /n/sources/extra/sun.tgz /dev/null % time hget http://204.178.31.2/magic/9down4e/compressed/1108752459/sun.tgz > /dev/null 0.01u 0.00s 2.49r hget http://204.178.31.2/magic/9down4e/compressed/1108752459/sun.tgz 0.00u 0.00s 2.43r hget http://204.178.31.2/magic/9down4e/compressed/1108752459/sun.tgz 0.00u 0.01s 3.14r hget http://204.178.31.2/magic/9down4e/compressed/1108752459/sun.tgz 0.01u 0.02s 2.34r hget http://204.178.31.2/magic/9down4e/compressed/1108752459/sun.tgz short of writing something small, of course :) --upas-ibickxpskbmjtkvtyrykcigoye--