9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Dave Eckhardt <davide+p9@cs.cmu.edu>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] acme mail on unix
Date: Fri, 20 Jan 2006 18:01:03 -0500	[thread overview]
Message-ID: <4948.1137798063@piper.nectar.cs.cmu.edu> (raw)
In-Reply-To: <20060120135038.04867B095F@conchobor.berzerked.org>

> (the S=2872 is the file size. i'm not sure why stat is so
> expensive on their machine.)

I suspect it's *not* because of this:  AFS directories
are (essentially) whole-file transferred to clients
who interpret them locally, but each stat() requires an
RPC to the server.

Instead my guess would be something more like: if you're
rebuilding the quota database you can do so by N/M
readdir()'s instead of N/M readdir()'s plus N stat()'s,
which is probably a huge reduction in disk seeks, which
would be attractive since almost everything stat() would
be telling you would be irrelevant (e.g., inode number,
permissions, actual disk blocks consumed).

Dave Eckhardt


  reply	other threads:[~2006-01-20 23:01 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-18 16:46 Russ Cox
2006-01-18 17:56 ` Tim Wiess
2006-01-18 18:08   ` Tim Wiess
2006-01-18 19:10   ` Russ Cox
2006-01-19 16:17     ` Aaron Griffin
2006-01-19 16:24       ` Russ Cox
2006-01-19 21:28         ` Dan Cross
2006-01-19 21:58           ` Russ Cox
2006-01-20  2:38             ` geoff
2006-01-20  5:31               ` Scott Schwartz
2006-01-20  6:04                 ` John Barham
2006-01-20 13:50                   ` erik quanstrom
2006-01-20 23:01                     ` Dave Eckhardt [this message]
2006-01-21  0:06                       ` erik quanstrom
2006-01-20 13:58           ` erik quanstrom
2006-01-20 20:02             ` erik quanstrom
2006-01-20 20:12               ` uriel
2006-01-20 20:18                 ` erik quanstrom
2006-01-20 20:41                   ` uriel
2006-01-20 20:59                     ` erik quanstrom
2006-01-20 22:58 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=4948.1137798063@piper.nectar.cs.cmu.edu \
    --to=davide+p9@cs.cmu.edu \
    --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).