🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #52177

Sv.: Re: expire time suddenly jumps?

#52177
From: Foul Filthy Festering Flatulent ...
Date: Sat, 05 May 2001 16:48
55 lines
4145 bytes
"'brian@gweep.ca'" <brian@gweep.ca> skrev i en
nyhedsmeddelelse:m37kzvbyy1.fsf@yuri.aq2.gweep.ca...

:: Alex Kiernan <alexk@demon.net> writes:
::
:: > If you have "enough" RAM (say 4x the size of your .pag file), you
:: > could try locking history.pag in core; there's a utility called
:: > mlockfile I wrote which is in the contrib directory of -current.
:: > Basically it allows you to force the kernel to keep a particular file
:: > in core, running it against your history.pag might resolve the
:: > problem.
::
:: Hmm, my history.pag is ~32MB, while I have 144MB of RAM, so that would
:: seem to be "enough" by your estimates.  I assume this would have to be
:: done at the start of every news.daily run, since that file gets replaced
:: every day.

What I did shortly before Alex wrote the `mlockfile', was to modify
the kernel itself on a Reasonable OS to permit an ordinary news
user to mlock() a file, rather than restricting it to r00t and its
ilk.  And maybe bumped the percentage of RAM that could be mlock'ed
to make it more likely to succeed on systems which were not blessed
with the Proper Amount of memory that G-d had in mind when assembling
the sturdy yet noisy Black Boxen of Doom.

Adding this mlock() call, along with a few additional useful mmap()
options as well as extending the mmap() to one of the files that was
mysteriously no longer mmap'ed somewhere along the road from 1.x to
2.wozzit, resulted in greatly increased performance, though admittedly
it was on a machine with somewhat more memory than you have, so I could
get away with blowing RAM on keeping both randomly accessed files in
memory.

The numbers showed themselves in the normal operation idle timers,
where I was aiming to improve performance.  Expire itself was not a
problem, and I'm not sure if it would help or hurt you.  Rather than
try to parse iostat-like numbers, I relied on watching disk activity
directly to see if any disk was particularly hard hit, indicating
accesses which were not normal.  Of course, I had all the important
filesystems (overview, spool, history) separate so that at a glance
I could say, whoa, that's NOT SUPPOSED TO BE LIKE THAT.

You might try ``truss -p'' on the expireover/expire process as it
runs to see if it's doing something it shouldn't be doing that is
taking too much time.

Unfortunately, my kernel and mmap/mlock/madvise hacks are lost, so
they wouldn't help much even if you weren't using an OS that does
not support many of the mmap/madvise cheats to improve performance,
and that does not allow you to rebuild the kernel with a userland
mlock(), should the mlockfile utility that I haven't looked at at
all, turn out not to be optimal for you for whatever reason.

Of course, I could be lying.
Technical Details
Message-ID: <4FEED0BABE2DEAD.57BEEF3248462@microsoft.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!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!134.222.94.5!npeer.kpnqwest.net!nmaster.kpnqwest.net!newsfeed.Austria.EU.net!newsfeed.kpnqwest.at!anon.lcs.mit.edu!nym.alias.net!mail2news
References: <m3hez2gxoj.fsf@yuri.aq2.gweep.ca> <3AF1D33C.CC816F91@mindless.com> <m3pudqdp2o.fsf@yuri.aq2.gweep.ca> <3AF2093D.60F34C5D@mindless.com> <m38zkddu9g.fsf@yuri.aq2.gweep.ca> <yl8zkck844.fsf@windlord.stanford.edu> <m3r8y4blxq.fsf@yuri.aq2.gweep.ca> <723dakuyar.fsf@nd1.eng.demon.net> <m37kzvbyy1.fsf@yuri.aq2.gweep.ca>

Show Full Headers
Complete Article Headers
Message-ID: <4FEED0BABE2DEAD.57BEEF3248462@microsoft.com>
Subject: Sv.: Re: expire time suddenly jumps?
Date: Sat, 05 May 2001 16:48:10 +0000
From: Foul Filthy Festering Flatulent Fleabitten Furball Feline <meow@meow.meow>
References: <m3hez2gxoj.fsf@yuri.aq2.gweep.ca> <3AF1D33C.CC816F91@mindless.com> <m3pudqdp2o.fsf@yuri.aq2.gweep.ca> <3AF2093D.60F34C5D@mindless.com> <m38zkddu9g.fsf@yuri.aq2.gweep.ca> <yl8zkck844.fsf@windlord.stanford.edu> <m3r8y4blxq.fsf@yuri.aq2.gweep.ca> <723dakuyar.fsf@nd1.eng.demon.net> <m37kzvbyy1.fsf@yuri.aq2.gweep.ca>
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!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!134.222.94.5!npeer.kpnqwest.net!nmaster.kpnqwest.net!newsfeed.Austria.EU.net!newsfeed.kpnqwest.at!anon.lcs.mit.edu!nym.alias.net!mail2news
Organization: Meow.
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Meow: Meow.
Newsgroups: news.software.nntp
Mail-To-News-Contact: postmaster@nym.alias.net
Lines: 54