From: Francisco Ballesteros <nemo@lsub.org>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] Re: some Plan9 related ideas
Date: Tue, 30 Aug 2005 19:33:27 +0200 [thread overview]
Message-ID: <600308d60508301033589f9f55@mail.gmail.com> (raw)
In-Reply-To: <19450.1125421653@piper.nectar.cs.cmu.edu>
We added two (library) calls readf and writef that perform file I/O
besides resolving the name. We found ourselves calling them a lot, because
in many cases it's very convenient. They would be
an opportunity to "batch" walk/open/read(s)/clunk, which happen
a lot. However, this would require changing the kernel (even more than we
did for Plan B).
I think the man page is at http://planb.lsub.org/magic/man2html/2/readf
We would be very interested on implementing this change for Plan 9
because we found
that the main problem we have in Plan B
is the latency accessing the various file servers,
because of the addition of the individual RPC turn around times.
Any thought on this?
On 8/30/05, Dave Eckhardt <davide+p9@cs.cmu.edu> wrote:
> > 'Tailcall optimizations' for filesystems with other mounted
> > filesystems
>
> In Plan 9 all mounts are done at the client side, so this
> wouldn't be an optimization--it's the only case.
>
> > * Macro messages
> > Lightweight clients (such as microcontrollers) that communicate
> > with a fileserver using 9P protocol over flaky radio connections
> > would benefit from being able to compose several messages (eg:
> > OPEN+READ+CLUNK) together a a single macro packet.
>
> 9P runs over TCP, so I don't think there's a packet-boundary
> problem here. Getting a client to send the three messages
> at once would seem to be the problem, since at present the
> open() system call won't complete until the 9P message gets
> its reply... there isn't an open()+read()+close() system
> call. And you'd probably need to reinvent or clone existing
> work on batch RPC's to do things like fill the result of the
> OPEN into the subsequent READ request.
>
> > Also if in most cases, the number of operations performed
> > during the time a file is open are small, it limits the number
> > of open files and corresponding the state that needs to be
> > stored for fids.
>
> Collecting or finding somebody else's data on that "if" might
> be a good first step.
>
> Dave Eckhardt
>
next prev parent reply other threads:[~2005-08-30 17:33 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-29 23:23 [9fans] " Bhanu Nagendra Pisupati
2005-08-30 12:27 ` Sape Mullender
2005-08-30 15:21 ` Francisco Ballesteros
2005-08-30 15:25 ` Francisco Ballesteros
2005-08-30 17:07 ` [9fans] " Dave Eckhardt
2005-08-30 17:33 ` Francisco Ballesteros [this message]
2005-08-30 17:46 ` Russ Cox
2005-08-31 5:54 ` [9fans] tcs bug arisawa
2005-08-31 5:57 ` Rob Pike
2005-10-17 7:14 ` [9fans] Re: some Plan9 related ideas Uriel
2005-10-17 11:23 ` Russ Cox
2005-10-17 12:45 ` Uriel
2005-10-17 13:03 ` Russ Cox
2005-10-17 13:22 ` Uriel
2005-10-17 15:14 ` Russ Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=600308d60508301033589f9f55@mail.gmail.com \
--to=nemo@lsub.org \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).