From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] writing code Date: Fri, 18 Feb 2005 11:27:47 -0700 From: andrey mirtchovski MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-gbvzhqivtjxcxxmnfnamirvvye" Topicbox-Message-UUID: 4d0a9398-eace-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-gbvzhqivtjxcxxmnfnamirvvye Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit NOTE: i originally sent this message (successfuly, according to plan9.ucalgary's mail server) but since it took so long i'll just assume some filter decided fcp.c was spam. i've gzipped it now. sorry if you get double copies. andrey --- original message follows --- > if you want to experiment, i've attached a version of the Inferno > cp(1) called "streamcp" that uses this technique to try to speed up > file transfer; it allows you to specify the number of concurrent reads > and writes. attached is the same idea for plan9, done by Aki Nyrhinen (with a little help from me integrating it with the official plan9 cp). it speeds up copy from sources up to tenfold in some occasions. has reasonable speed locally. i heard ioproc is even faster. % time cp /n/sources/extra/sun.tgz /dev/null 0.00u 0.02s 19.91r cp /n/sources/extra/sun.tgz /dev/null % time cp /n/sources/extra/sun.tgz /dev/null 0.00u 0.03s 20.35r cp /n/sources/extra/sun.tgz /dev/null % time cp /n/sources/extra/sun.tgz /dev/null 0.00u 0.03s 19.93r cp /n/sources/extra/sun.tgz /dev/null % time fcp /n/sources/extra/sun.tgz /dev/null 0.00u 0.01s 4.36r fcp /n/sources/extra/sun.tgz /dev/null % time fcp /n/sources/extra/sun.tgz /dev/null 0.00u 0.00s 5.31r fcp /n/sources/extra/sun.tgz /dev/null % time fcp /n/sources/extra/sun.tgz /dev/null 0.00u 0.04s 5.36r fcp /n/sources/extra/sun.tgz /dev/null --upas-gbvzhqivtjxcxxmnfnamirvvye Content-Type: application/octet-stream Content-Disposition: attachment; filename=fcp.c.gz Content-Transfer-Encoding: base64 H4sICDdEFUIAA2ZjcC5jAJVX7U/bRhj/bP8V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