Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 May 2002 17:19:39 -0700
From:      Bakul Shah <bakul@bitblocks.com>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        Bakul Shah <bakul@bitblocks.com>, Scott Hess <scott@avantgo.com>, "Vladimir B. Grebenschikov" <vova@sw.ru>, fs@FreeBSD.ORG
Subject:   Re: Filesystem 
Message-ID:  <200205040019.UAA13780@illustrious.cnchost.com>
In-Reply-To: Your message of "Fri, 03 May 2002 16:52:18 PDT." <3CD322B2.FBEF3C19@mindspring.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert writes:
> Bakul Shah wrote:
> > > In any case, it's still an incredibly bad idea to have even a tenth
> > > of that man objects in a single directory, period.
> > 
> > IMHO it is a bad idea to not have evolved directories to use
> > a B-tree representation (at least when the number of entries
> > exceed some threshold.  Implement mechanisms and leave
> > policies to the users!
> 
> You can argue this, but then we are left with software that
> will only run well on AIX or [insert pet platform here], and
> runs dog slow on other platforms, because it assumes that
> the underlying implementation will always be O(log2(N)) instead
> of O(N) or O(N**2).
> 
> It's a really crappy program that relies on underlying OS
> specific features for its efficiencies, because as soon as it's
> ported to an OS where the assumptions it makes are no longer
> true, it's screwed.

Unless enough systems provide this capability no one sane
will use it.  So yes, portability suffers.

My frustration is with the 70s mindset when it comes to
extending basic capabilities.  Reasoning like: the disk
access speed is very slow so the speed of directory access is
not an issue.  And since speed is not an issue a linear
search is fine and dandy.  Never mind that with a large
buffer cache, chances are you will find dir. blocks in core
and a linear search is not a great searching strategy when
you have more than 10 to 20 items.  And this is not the
only such instance in the kernel.

If you build scalable solutions people will use them.  If
enough Unix variants provide fast dir search, others will
have to pick it up.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-fs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205040019.UAA13780>