From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <20101115032531.GB27578@opal.ai.ki> Date: Tue, 16 Nov 2010 07:42:13 -0500 Message-ID: Subject: Re: [9fans] 9p vs http From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: 8296107a-ead6-11e9-9d60-3106f5b1d025 On Mon, Nov 15, 2010 at 2:00 PM, Dan Adkins wrote: > That brings up a question of interest to me. =C2=A0How do you effectively > read ahead with the 9p protocol? =C2=A0Even if you issued many read > requests in parallel, the server is allowed to return less data than > was asked for. =C2=A0You'll end up with holes in your buffer that require > at least another roundtrip to fill. The traditional "store data" file servers that Unix users would recognize tend to follow the Unix semantics that a read will return as much data as it can. If you're talking to one of them you issue reads for 8k each or whatever and then do the roundtrip if necessary, but it rarely is. Russ