🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #23322

Re: symlinking vs mounting into the spool

#23322
From: Jerry Aguirre
Date: Mon, 17 Nov 1997 00:00
32 lines
2189 bytes
In article <64jabq$nv9$4@newsource.ihug.co.nz>,
Nick Kean - IHUG Staff <nick.kean@ihug.co.nz> wrote:
>  I've been having a debate with myself[1] over whether it's better to 
>mount a drive in, say, /disk2 and make /var/news/spool/articles/alt a symlink
>to it or just mount the drive at /var/news/spool/articles/alt.  At the moment
>I'm mounting into the spool.

Mounting is more efficient than using a symbolic link.  It avoids the
overhead of traversing the symbolic link.  This is probably a minor point.

If you mount using symbolic links then you need to modify expirerm to
remove the "-u" flag to fastrm.  This tells fastrm that it is not safe
to do a "cd ../group" to move around in the spool.  Obviously with
directories that are symbolic links the "cd .." doesn't always return
to the same place in the directory tree.  Again this causes another minor
performance hit.

The biggest problem with multiple filesystems seems to be ballancing
the space and IO load.  For one obvious example the alt/binaries tree
uses a lot of disk space but relativly little IO.  Unix is just more
efficient at accessing a few large files than a lot of small ones.

Also the space usage will shift over time.  I have seen changes of 30%
in a few days.  Thus first news/alt will be full then a few days later
news/talk will be full.  You either live with the wasted space or spend
your time shifting groups around to try and ballance it.  If your going
to try and ballance the space by moving heirarchies around then using
the symbolic links, say to /news2/group.name, is probably a cleaner
approach.

Technical Details
Message-ID: <64q9mj$7o4$1@pluto.whowhere.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: <64jabq$nv9$4@newsource.ihug.co.nz>

Show Full Headers
Complete Article Headers
Message-ID: <64q9mj$7o4$1@pluto.whowhere.com>
Subject: Re: symlinking vs mounting into the spool
Date: Mon, 17 Nov 1997 00:00:00 +0000
From: jerry@rigel.whowhere.com (Jerry Aguirre)
References: <64jabq$nv9$4@newsource.ihug.co.nz>
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: 290273978
Organization: WhoWhere?; Mt. View, CA USA
Newsgroups: news.software.nntp