Article View: news.software.nntp
Article #21932Re: News data storage model
From: Matt Dillon
Date: Sat, 27 Sep 1997 00:00
Date: Sat, 27 Sep 1997 00:00
37 lines
2549 bytes
2549 bytes
:In article <60ifq6$hch$1@news.gv.tsc.tdk.com>,
:Don Lewis <gdonl@tsc.tdk.com> wrote:
:>In article <60hohg$oli$1@flea.best.net>, Matt Dillon <dillon@best.net> wrote:
:>>:In article <342C0AFE.F4EB92D5@syr.edu>,
:>>
:>> The standard inn file storage model is broken because it blows up the
:>> namei cache. There are just too many files... several million in your
:>> typical spool. Even with a hash-based directory lookup, namei misses
:>> still add a large number of random seeks to the disk.
:>
:>I suspect it would be worthwhile to put a quota on the number of article
:>files in the namei cache, especially since the hit rate on files is likely
:>to be low. This would give you a pretty good chance of keeping all the
:>directories in the namei cache, so that you'd get cache hits on all the
:>components of the path name until you got to the last component (the
:>article number), at which point a hash-based directory lookup would be
:>the best strategy.
:>--
:>Don "Truck" Lewis TDK Semiconductor
:>Internet: Don.Lewis@tsc.tdk.com 138 New Mohawk Road
:>Phone: +1 916 478-8284 FAX: +1 916 478-8251 Nevada City, CA 95959
Yes, but even the hash-lookup case is going to cause several
directory-related seek/reads for each article open(). i.e. the
hash based scheme will reduce disk I/O, but it will not do anything
for the basic bottleneck in the namei cache. The kernel simply cannot
return a descriptor until it knows the open will succeed and it doesn't
know that until it does a number of disk I/O's.
My point is that you cannot avoid synchronous disk I/O on open() with the
old one-article-per-file scheme no matter how good your filesystem is.
-Matt
Technical Details
Message-ID:
<60ijv8$364$1@flea.best.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<5vpddn$qlb$1@news5.ais.net> <342C0AFE.F4EB92D5@syr.edu> <60hohg$oli$1@flea.best.net> <60ifq6$hch$1@news.gv.tsc.tdk.com>Show Full Headers
Complete Article Headers
Message-ID: <60ijv8$364$1@flea.best.net> Subject: Re: News data storage model Date: Sat, 27 Sep 1997 00:00:00 +0000 From: dillon@best.net (Matt Dillon) References: <5vpddn$qlb$1@news5.ais.net> <342C0AFE.F4EB92D5@syr.edu> <60hohg$oli$1@flea.best.net> <60ifq6$hch$1@news.gv.tsc.tdk.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 275986383 Distribution: inet X-Trace: 875352874 25350 dillon 206.184.139.132 Organization: Best Internet Communications, Inc - 650 964 BEST Newsgroups: news.software.nntp