Thread View: news.software.nntp
2 messages
2 total messages
Started by Alan Brown
Sun, 16 Feb 1997 00:00
Re: Effects of the -s flag to `crosspost'?
Author: Alan Brown
Date: Sun, 16 Feb 1997 00:00
Date: Sun, 16 Feb 1997 00:00
30 lines
1786 bytes
1786 bytes
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. I'm running with -s on a Linux box and it made a reduction of about 25% on recorded disk activity along with around 15% performance boost. >We're using a hardware RAID box, in case that makes a difference. At this level it doesn't. If data's lost before the fsync is done, it never got to the RAID in the first place - but the "data" in question is only a hardlink. AB -- o Stamp out unauthorised relay-hosting. This SMTP "feature" shouldn't default "on" - See http://www.vix.com/spam/ and http://www.sendmail.org/antispam.html o Junk email returned, in bulk, back to sender; w/copies to all postmasters. o Received junkmail constitutes a request for aggressive site security probing.
Re: Effects of the -s flag to `crosspost'?
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads