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 16:03:58 +0000 From: rog@vitanuova.com In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-ohtyciofnxprdfazcsxvxdkspd" Topicbox-Message-UUID: 0e0f7a4e-ead0-11e9-9d60-3106f5b1d025 This is a multi-part message in MIME format. --upas-ohtyciofnxprdfazcsxvxdkspd Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit > sure. you could imagine adding a stream message to > start some number of reads, but maybe it's enough to > define that streaming style servers allow the client to > queue multiple read messages and respond in order. > > you can already do that for file transfers by using the > offset field appropriately. i tried that, and it didn't seem to speed things up much. regardless of the number of concurrent reads, it was still much slower than streaming TCP. i couldn't say why though - i just measured it across a slow trans-atlantic connection. 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. perhaps someone that knows something about TCP might be able to say why this technique can't use more of the available bandwidth? it'd be great if it could... --upas-ohtyciofnxprdfazcsxvxdkspd Content-Type: application/octet-stream Content-Disposition: attachment; filename=streamcp.b.gz Content-Transfer-Encoding: base64 H4sIAIwRFkIAA6VYW2/bOBZ+tn7FqYu20sT2psViu5DjAEHSwfSh00G2QB8yeZAlOhYiU16R jpud5r/vuZASZTtJuwu0jkTy3L9zocrVulIrpS2cr6dRVOq82hQKhubeTFbDaTTAhxT+dW+m 3V7RZFvebFey5qa/0KisKMpGWLiXFC7lAeWcr1NY1cWmUtFf0aDUpU0HCx3rskqhUQu4QBHj 0/NaW/XNjgD536VQlcZCvQBjm1LfJNPoATkZW6imESpUc3z668U0wpW6MZDO4BiPLIo8hXyZ aSKOg4OjkAr5RRuT3ag4IZ0MrS7WKMnGImMEQ95P/7SogcpW+RpMk4NF7ZT9Uw+T6SNkAcHV +BI0OUQ15hrfvoLeNqV1b801c5xMJoB+Urm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