🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #52174

Re: expire time suddenly jumps?

#52174
From: Alex Kiernan
Date: Sat, 05 May 2001 06:04
63 lines
4132 bytes
Brian Edmonds <brian@gweep.ca> writes:

> Russ Allbery <rra@stanford.edu> writes:
> > Unfortunately, you're already running with that change, I believe.
> 
> Bother.
> 
> > I suspect that the history file just isn't doing well during expire,
> > but I don't have a good fix other than adding another 256MB of memory.
> 
> But, but, but, I'm not swapping.  Really.  Shouldn't it be obviously and
> consistently swapping if memory is a problem?
> 

No.

> # vmstat -S 5
>  procs     memory            page            disk          faults      cpu
>  r b w   swap  free  si  so pi po fr de sr f0 m1 m2 s1   in   sy   cs us sy id
>  0 1 0 278364 43836   0   0 237 14 14 0  0  0 15 62  0  370  329  149  4 30 66
>  0 2 0 310728 60340   0   0 392 39 39 0  0  0 30 92  0  585  821  298  4 32 63
>  0 2 0 310728 59900   0   0 432 42 42 0  0  0 31 104 0  599  839  274  5 34 62
>  0 3 0 310728 60144   0   0 187 16 16 0  0  0 11 132 0  580  228  273  2 23 75
>  0 2 0 310728 60340   0   0 244 28 28 0  0  0 22 129 0  599  312  213  4 20 76
>  (and so on with si/so pegged at zero...)
> 

si/so aren't relevant - they'll only crawl off zero when you've hit
the kernel so hard its decided to start swapping whole processes
out. pi/po are what you're interested in, but because they're used for
file IO its real hard to separate IO from genuine paging.

Since you're using Solaris 8, use vmstat -p, which will list the
different page ins/outs separately:

     memory           page          executable      anonymous      filesystem 
   swap  free  re  mf  fr  de  sr  epi  epo  epf  api  apo  apf  fpi  fpo  fpf
 763464 629864 11  34   0   0   0    0    0    0    0    0    0  224    0    0
 749752 608136 28  56   0   0   0    0    0    0    0    0    0  336    0    0
 749752 606384 23  66   0   0   0    0    0    0    0    0    0  496    0    0

> I'll admit I'm not a Solaris guru, but this does mean I'm not swapping,
> right?  So if I'm not swapping, why is RAM an issue?  The above snapshot
> was taken when expireover had been running since just after noon, the
> current time now approaching 7pm.  The expireover process has only
> accumulated 34 minutes of CPU time, and the machine has been fairly
> idle, with the load average running under 0.5 most of the time.
> 

Hmmm I had started writing words about expire here (and just what it
does to cause the vm system to do the wrong thing), but just realised
you said its expireover which is slow...

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.

-- 
Alex Kiernan, Principal Engineer, Development, Thus PLC
Technical Details
Message-ID: <723dakuyar.fsf@nd1.eng.demon.net>
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!212.74.64.35!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!nd1.eng.demon.net!not-for-mail
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>

Show Full Headers
Complete Article Headers
Message-ID: <723dakuyar.fsf@nd1.eng.demon.net>
Subject: Re: expire time suddenly jumps?
Date: Sat, 05 May 2001 06:04:12 +0000
From: Alex Kiernan <alexk@demon.net>
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>
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!212.74.64.35!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!nd1.eng.demon.net!not-for-mail
Newsgroups: news.software.nntp
Sender: alexk@nd1.eng.demon.net
NNTP-Posting-Host: nd1.eng.demon.net
X-NNTP-Posting-Host: nd1.eng.demon.net:194.217.90.2
X-Trace: news.demon.co.uk 989042652 nnrp-14:28449 NO-IDENT nd1.eng.demon.net:194.217.90.2
X-Complaints-To: abuse@demon.net
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Canyonlands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Lines: 62