Article View: news.software.nntp
Article #15087Re: Effects of the -s flag to `crosspost'?
From: Per Hedeland
Date: Sun, 16 Feb 1997 00:00
Date: Sun, 16 Feb 1997 00:00
43 lines
2619 bytes
2619 bytes
In article <5e57ss$ij8@papaioea.manawatu.gen.nz> alan@news.manawatu.gen.nz (Alan Brown) writes: >In article <82vi7zl1np.fsf@parrot.eecs.umich.edu>, >Michael Hucka <hucka@eecs.umich.edu> wrote: > >>It sounds like using -s would improve performance, but I'm unsure about the >>ramifications of not fsync'ing the articles. Won't they eventually be >>fsync'ed anyway? > >They will eventually.... > >Meantime, if you have a crash or power hit you may lose those links >inasmuch as they won't be written to disk. Not necessarily, I think - at least on Berkeley ffs file systems (which Michael would be using on SunOS 4), directory updates are always synchronous (actually I believe all metadata updates are, i.e. the inode link count would also be updated synchronously) - this can be turned off on SunOS via the ioctl()s that 'fastfs' uses though. What the fsync() in crosspost presumably always *does* do though is force the article *contents* out to disk - as there is no fsync() call in innd as far as I can see. Now, farming out the linking to a separate process (crosspost) and then having that process increase disk I/O by fsync()ing individual files, rather than waiting for the periodic sync as innd did, perhaps doesn't sound like a bright idea - but if your problem is latency in innd rather than disk I/O per se you *might* gain both speed and "crash-tolerance". I'm a bit surprised that fsync()ing is the default though, I would rather view it as an optional bonus that you might decide to turn on if you were very worried about getting mangled articles in a crash *and* had disk I/O to spare... Personally I haven't used crosspost (yet) as my "innd-timer" data indicates that innd spends less than 10% of its time doing the links - and the gain ought to be even less as writing the articles (the big one, 30-40%) would presumably take longer with crosspost competing for disk access. --Per Hedeland per@erix.ericsson.se
Technical Details
Message-ID:
<5e6v49$lo3$1@news.du.etx.ericsson.se>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:
<82vi7zl1np.fsf@parrot.eecs.umich.edu> <5e57ss$ij8@papaioea.manawatu.gen.nz>Show Full Headers
Complete Article Headers
Message-ID: <5e6v49$lo3$1@news.du.etx.ericsson.se> Subject: Re: Effects of the -s flag to `crosspost'? Date: Sun, 16 Feb 1997 00:00:00 +0000 From: per@erix.ericsson.se (Per Hedeland) References: <82vi7zl1np.fsf@parrot.eecs.umich.edu> <5e57ss$ij8@papaioea.manawatu.gen.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: 219151516 Organization: Ericsson Telecom, Stockholm, Sweden NNTP-Posting-User: per Newsgroups: news.software.nntp