9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Kris Maglione <bsdaemon@comcast.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] 9P2000 and p9p
Date: Tue, 10 Apr 2007 22:50:07 -0400	[thread overview]
Message-ID: <20070411025006.GC3187@kris.home> (raw)
In-Reply-To: <461BC57B.3090006@tecmav.com>

[-- Attachment #1: Type: text/plain, Size: 733 bytes --]

On Tue, Apr 10, 2007 at 07:12:27PM +0200, Adriano Verardo wrote:
>The log of the two sessions above are in the the attached files.
>I see that the FreeBDS "lc" command allocates a lot of Fids while
>Plan9 reuse them issuing Tclunk messages as soon as possible.

There's more to it than that. Unfortunately, p9p's ls calls p9p's 
readdir. Since readdir on Plan 9 has to return a complete Stat for each 
file in a directory, p9p's readdir stats every file in the directory, 
whether the caller needs the data or not (ls doesn't, without the ls 
flag). That means that the p9p lc needs to walk to each directory entry, 
whereas Plan 9's doesn't.

-- 
Kris Maglione

Things equal to nothing else are equal to each other.

[-- Attachment #2: Type: application/pgp-signature, Size: 194 bytes --]

      parent reply	other threads:[~2007-04-11  2:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-10 17:12 Adriano Verardo
2007-04-10 17:39 ` Charles Forsyth
2007-04-10 18:14   ` Adriano Verardo
2007-04-10 19:33     ` C H Forsyth
2007-04-10 21:28       ` Adriano Verardo
2007-04-10 18:29 ` Russ Cox
2007-04-10 22:14   ` Adriano Verardo
2007-04-10 22:38     ` Charles Forsyth
2007-04-10 22:50     ` Russ Cox
2007-04-11  2:19       ` Adriano Verardo
2007-04-11  2:55         ` erik quanstrom
2007-04-11  3:10         ` Russ Cox
2007-04-11  6:58           ` Bruce Ellis
2007-04-11  8:20             ` Charles Forsyth
2007-04-11 15:38               ` ron minnich
2007-04-11  2:50 ` Kris Maglione [this message]

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=20070411025006.GC3187@kris.home \
    --to=bsdaemon@comcast.net \
    --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).