Article View: news.software.nntp
Article #35641Re: INN 2.2, FreeBSD, NFS, hangs!
From: Greg Andrews
Date: Thu, 25 Feb 1999 00:00
Date: Thu, 25 Feb 1999 00:00
40 lines
2261 bytes
2261 bytes
brad@shub-internet.org (Brad Knowles) writes: >In article <7b4d25$jqq$1@shell1.ncal.verio.com>, >gerg@shell1.ncal.verio.com (Greg Andrews) wrote: > >> In the context of Usenet News, *what* file locking issue are >> you talking about Brad? > > Okay, I'm obviously demonstrating my ignorance yet once again. I was >under the impression that, when using traditional spool, INN (and similar >programs) would use file locking when creating a message, and that this >would introduce a lot of additional overhead that could be a real killer >with NFS. > Think about it. With mail, you have multiple processes trying to write to the common mailbox file (multiple delivery processes, and at least one reader process). That's why locking is necessary. With news, only one process is writing an article file. All the others are merely reading article files, not writing them. The only exceptions are the expire process and the overchan/expireover combination. Expire doesn't need locking because it's deleting *different* files than are being created. It's deleting old articles and the incoming articles are being written to new files. Expireover may lock the .overview file (I don't remember), but the consequences of a lock failure on overview data aren't nearly as bad as they are with e-mail. If I understand CNFS properly, the expire process is taken out of the picture. The overchan/expireover combination may even be gathered into the same process that writes article data, so once again, no NFS locking is needed. -Greg
Technical Details
Message-ID:
<7b4ggi$nhn$1@shell1.ncal.verio.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-mailReferences:
<36cf15ee.3051947@news.clubi.ie> <brad-2502992138570001@brad.techos.skynet.be> <7b4d25$jqq$1@shell1.ncal.verio.com> <brad-2502992227460001@brad.techos.skynet.be>Show Full Headers
Complete Article Headers
Message-ID: <7b4ggi$nhn$1@shell1.ncal.verio.com> Subject: Re: INN 2.2, FreeBSD, NFS, hangs! Date: Thu, 25 Feb 1999 00:00:00 +0000 From: gerg@shell1.ncal.verio.com (Greg Andrews) References: <36cf15ee.3051947@news.clubi.ie> <brad-2502992138570001@brad.techos.skynet.be> <7b4d25$jqq$1@shell1.ncal.verio.com> <brad-2502992227460001@brad.techos.skynet.be> 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: 448470746 Organization: The Nerd From B.O.F.H. Newsgroups: news.software.nntp