🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #5163

Re: Linux & INN poor performance, help sought.

#5163
From: Jerry Aguirre
Date: Thu, 22 Feb 1996 00:00
51 lines
3562 bytes
In article <4gfft9$998@web.ddp.state.me.us> isdmill@gatekeeper.ddp.state.me.us (David Miller) writes:
>I agree with not wanting to make multiple spindles seek to retrieve a 
>single file as a general rule, but keep in mind that most reads are of 
>very short length - a couple K max for a directory lookup, and the avg 
>article size is around 2K depending some on your balance of alt.binaries 
>to everything else.  I think 4MB is awfully high for a stripe size:)

Getting a single file sounds like a single seek and read.  But consider
the overhead needed to get the file.  First there is all the directory
traversal to find out the inode number.  Then there is the read to get
the inode.  Then, finally, you can actually read the file.  Yes, the
system is supposed to cache things but news accesses so very much data
in such a random manner that it is unlikely the specific directory and
inode you need is cached.

So the file may be just a few consecutive sectors in one cylinder but
the overhead items may be spread across a larger area.  The UFS (AKA
Berkeley fast file system) has logic to try and group directories,
inodes, and files by cylinder groups.  It would seem prudent to stripe
based on this behavior.

I suggest that the best stripe size for news articles is a cylinder
group.  This should evenly balance the load except for slightly higher
accesses to the first spindle for superblock updates.  Also cylinder
group stripes will increase the chance that a single spindle can
service a single request.  This would leave other spindle free to
service other requests.  The objective is to minimize the number of
seeks as they are more typically the limiting factor.

To put it another way, if "most reads are of very short length" then
what is the disadvantage of using a large stripe size?  What is your
reason for thinking "4MB is awfully high"?

Based on personal experience concatenation is not that good.  The files
seem to fill from the beginning so the first spindle gets all the
activity.  As the file system fills subsequent spindles are used.
I notice that the last spindle gets accessed very little and only
when the file system fills so full that it is forced to use it.
I would have striped but the logistics of setting this up forced me
to start small and growfs.  Redoing it is probably a couple of days
down time.  At least I don't have to balance space between 5 separate
filesystems anymore.

I would suggest that for anyone who is going to concatenate and has
different size drives that they put the smallest drive first and
the largest drive last.  The first drive gets more accesses for
super blocks and such so this is offset if it has less data on it.
The biggest drive will get more accesses as it has more blocks so
making it the last will tend to offset that.

Technical Details
Message-ID: <4gikbb$im2@olivea.ATC.Olivetti.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
References: <311F8C62.4BC4@pluto.njcc.com> <4gctgq$403@irk.zetnet.co.uk> <4gdcn8$33g@sunsrv10.clr.com> <4gfft9$998@web.ddp.state.me.us>

Show Full Headers
Complete Article Headers
Message-ID: <4gikbb$im2@olivea.ATC.Olivetti.Com>
Subject: Re: Linux & INN poor performance, help sought.
Date: Thu, 22 Feb 1996 00:00:00 +0000
From: jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre)
References: <311F8C62.4BC4@pluto.njcc.com> <4gctgq$403@irk.zetnet.co.uk> <4gdcn8$33g@sunsrv10.clr.com> <4gfft9$998@web.ddp.state.me.us>
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: 140616155
Organization: Olivetti ATC; Cupertino, CA; USA
Newsgroups: news.software.b,news.software.nntp