🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
23 messages
23 total messages Started by Brian Edmonds Thu, 03 May 2001 17:16
expire time suddenly jumps?
#52148
Author: Brian Edmonds
Date: Thu, 03 May 2001 17:16
9 lines
1274 bytes
Ok, so I've still got the abnormally long expire times (16h) I've
reported before, but within the last week something has been going on
that has caused expire to take double that time or more.  Has there been
some kind of new or morphed cancel or spam attack that is bypassing the
filters on my transit server and making life difficult for our poor,
underpowered reader box?

Brian.
Re: expire time suddenly jumps?
#52153
Author: ded
Date: Thu, 03 May 2001 21:53
11 lines
1322 bytes
Brian Edmonds wrote:
> 
> Ok, so I've still got the abnormally long expire times (16h) I've
> reported before, but within the last week something has been going on
> that has caused expire to take double that time or more.  Has there been
> some kind of new or morphed cancel or spam attack that is bypassing the
> filters on my transit server and making life difficult for our poor,
> underpowered reader box?

probably there is just not enough memory for expire.
Re: expire time suddenly jumps?
#52155
Author: Brian Edmonds
Date: Thu, 03 May 2001 22:50
12 lines
1487 bytes
ded <ded@mindless.com> writes:
>> Ok, so I've still got the abnormally long expire times (16h) I've
>> reported before, but within the last week something has been going on
>> that has caused expire to take double that time or more.
> probably there is just not enough memory for expire.

And this just changed last weekend after having been in the previous
state for almost three months?  Nice try, but vmstat reports that the
system (Solaris 2.8 on a Sparc 20) is not swapping.  At all.

Brian.
Re: expire time suddenly jumps?
#52159
Author: ded
Date: Fri, 04 May 2001 01:43
51 lines
2943 bytes
Brian Edmonds wrote:
> 
> ded <ded@mindless.com> writes:
> >> Ok, so I've still got the abnormally long expire times (16h) I've
> >> reported before, but within the last week something has been going on
> >> that has caused expire to take double that time or more.
> > probably there is just not enough memory for expire.
> 
> And this just changed last weekend after having been in the previous
> state for almost three months?

well, it depends on how many articles the system accepted during weekend and
day before ;-)

I experienced expire time raising dramatically after the number of articles
increased from about 8 million to 10 million. And the server was
using about 400M of swap, and vmstat also showed swaping..

Additional memory completely improved the situation.

>  Nice try, but vmstat reports that the
> system (Solaris 2.8 on a Sparc 20) is not swapping.  At all.

sorry, no idea.. but, about your inn:

what is the storage method? what is the overview method? 
how many articles in your history and what is the about of memory?
what is the 1st line from db/history.dir file? what is the inn version?

too many questions, huh? :)


inn 2.3.2 is announced today, from its announce:

> * Some serious performance problems with expiration of tradspool should
>    now be at least somewhat alleviated.  tradspool and timehash now know
>    how to output file names for removal rather than tokens, and fastrm's
>    ability to remove regular files has been restored.  This should bring
>    expiration times for tradspool back to within a factor of two of
>    pre-storage-API expiration times.


about "attacks" - for last several days I just noticed several hundreds
"newgroup *hipcrime*" and similar messages.. this could freeze your box
for a while if it is not using controlchan.


good luck!

alex
Re: expire time suddenly jumps?
#52162
Author: Brian Edmonds
Date: Fri, 04 May 2001 15:11
34 lines
2342 bytes
ded <ded@mindless.com> writes:
> what is the storage method? what is the overview method? 

Mostly tradspool and tradindexed.  Not the fastest, I know, but it's
survived up until now.  I just moved control.cancel, alt.nocem.* and
news.lists.filters onto cycbuffs yesterday.

> how many articles in your history and what is the about of memory?

The box has 144MB of RAM, and has ~2.8M history entries (using tagged
hash -- as I said, it's not actively swapping).

> what is the 1st line from db/history.dir file? what is the inn version?

dbz 6 3951109 4 50 128 127 24 4

INN-STABLE-20010213: Somewhere between 2.3.1 and 2.3.2.

>> * Some serious performance problems with expiration of tradspool
>>   should now be at least somewhat alleviated.

Ah, now that's useful.  I'll go looking for that right away.  Silly me
for not paying closer attention to the release notice.

> about "attacks" - for last several days I just noticed several
> hundreds "newgroup *hipcrime*" and similar messages.. this could
> freeze your box for a while if it is not using controlchan.

I've seen them too, but the box in question is using controlchan.  I've
gone through entirely enough control message attacks in the last few
years that I wouldn't run a box without it.

Brian.
Re: expire time suddenly jumps?
#52166
Author: ded
Date: Fri, 04 May 2001 19:51
31 lines
2385 bytes
Brian Edmonds wrote:
> ded <ded@mindless.com> writes:
> > what is the storage method? what is the overview method?
> 
> Mostly tradspool and tradindexed.  Not the fastest, I know, but it's
> survived up until now.  I just moved control.cancel, alt.nocem.* and
> news.lists.filters onto cycbuffs yesterday.
> 
> > how many articles in your history and what is the about of memory?
> 
> The box has 144MB of RAM, and has ~2.8M history entries (using tagged
> hash -- as I said, it's not actively swapping).

So, according to all calculations you have enough memory.. But as
I understand from last comment - vmstat does show swapping, though it is
not very active.. 

Again, I would recommend to try to avoid of swapping at all. It would be
interesting even as an experiment - to add memory and then run expire.

> >> * Some serious performance problems with expiration of tradspool
> >>   should now be at least somewhat alleviated.
> 
> Ah, now that's useful.  I'll go looking for that right away.  Silly me
> for not paying closer attention to the release notice.

And it also contains some info about resolved tagged hash problems.
Probably the upgrade will help..

Alex
Re: expire time suddenly jumps?
#52167
Author: Brian Edmonds
Date: Fri, 04 May 2001 21:36
26 lines
2226 bytes
ded <ded@mindless.com> writes:
> So, according to all calculations you have enough memory.. But as I
> understand from last comment - vmstat does show swapping, though it is
> not very active..

The system reports some swap in use (swap -l), but a few spot checks
while expire is in process (vmstat -S 5) shows no ongoing si/so
activity, so I expect it merely bumped out some inactive system
processes and everything since then is running pretty much in core.

> Again, I would recommend to try to avoid of swapping at all. It would
> be interesting even as an experiment - to add memory and then run
> expire.

I don't recall if we have any free memory slots in this box.  It's a lot
better than the old Sparc 2 I was using with only four slots (max 64MB
of RAM), but the older RAM tech just doesn't have the per-SIMM density
of current hardware.

I've got the latest INN 2.3.2 on the box now though, and an expire
going, so we'll see how it does.  It's still in expireover after two
hours, but that was usually the long step, so I don't expect it to be
anywhere near done yet.

Brian.
Re: expire time suddenly jumps?
#52169
Author: Russ Allbery
Date: Fri, 04 May 2001 23:27
27 lines
2160 bytes
Brian Edmonds <brian@gweep.ca> writes:
> ded <ded@mindless.com> writes:

> INN-STABLE-20010213: Somewhere between 2.3.1 and 2.3.2.

>>> * Some serious performance problems with expiration of tradspool
>>>   should now be at least somewhat alleviated.

> Ah, now that's useful.  I'll go looking for that right away.  Silly me
> for not paying closer attention to the release notice.

Unfortunately, you're already running with that change, I believe.  It's
in the version of STABLE you have, I think.  It only sped up fastrm; it
didn't do much for expire or expireover.

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.  :/
There's a knee in the memory curve for a given history size after which
expire becomes really fast again, and for some reason it's *way* higher in
INN 2.3 than it was in earlier versions.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: expire time suddenly jumps?
#52172
Author: Brian Edmonds
Date: Sat, 05 May 2001 01:53
30 lines
2562 bytes
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?

# 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...)

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.

Brian.
Re: expire time suddenly jumps?
#52173
Author: Russ Allbery
Date: Sat, 05 May 2001 02:33
24 lines
1972 bytes
Brian Edmonds <brian@gweep.ca> writes:
> Russ Allbery <rra@stanford.edu> writes:

>> 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?

Yeah.  *sigh*  Hm.

Memory has definitely fixed this problem for other people.  I'm not sure
what's different about your system.  I really wish I knew what was making
both expire and expireover take so long.

It's possible that it's just the disk accesses.  What does iostat -cx look
like?

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: expire time suddenly jumps?
#52174
Author: 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
Re: expire time suddenly jumps?
#52176
Author: Brian Edmonds
Date: Sat, 05 May 2001 15:14
22 lines
2161 bytes
Russ Allbery <rra@stanford.edu> writes:
> It's possible that it's just the disk accesses.  What does iostat -cx
> look like?

# iostat -cx 5
(...wait for a couple reports to go by...)
device       r/s    w/s   kr/s   kw/s wait actv  svc_t  %w  %b  us sy wt id
fd0          0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0   3 31 65  0
md1          1.0    3.0    8.0   20.0  0.0  0.1   33.4   0   6
md2        120.7   12.2  454.4   44.6  0.0  3.0   22.8   0  98
sd1          0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
sd3          0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
sd6          0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
sd7         57.6    8.4  222.5   34.8  0.0  1.5   22.5   0  71
sd8         64.8    7.2  239.9   29.8  0.0  1.7   23.2   0  80

Hmm, does all that k[rw]/s (kernel read/write?) mean that it's actually
paging hard?  Solaris certainly makes it hard enough to track down this
information...

Brian.
Re: expire time suddenly jumps?
#52179
Author: Brian Edmonds
Date: Sat, 05 May 2001 15:25
58 lines
4219 bytes
Alex Kiernan <alexk@demon.net> writes:
>> But, but, but, I'm not swapping.  Really.  Shouldn't it be obviously
>> and consistently swapping if memory is a problem?
> 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.

Ah, joy.  I can never recall which unix OSes have simple VM paging
models and which have gone and made it gratuitously complex. :)

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

Ok, how do I interpret the fields meaningfully?

# vmstat -p 5
     memory           page          executable      anonymous      filesystem
   swap  free  re  mf  fr  de  sr  epi  epo  epf  api  apo  apf  fpi  fpo  fpf
 278504 43852  42  15  14   0   0    1    0    0    0    0    0  237   14   14
 263900  7764  82   2  23   0   0    0    0    0    0    0    0  244   23   23
 263896  7652  90   1  20   0   0    0    0    0    0    0    0  225   20   20
 263892  7416  76   0  21   0   0    0    0    0    0    0    0  201   21   21
 263892  7296  70   0  20   0   0    0    0    0    0    0    0  187   20   20
 263892  7144  54   0   7   0   0    0    0    0    0    0    0  228    7    7
 263892  7184  62   0  22   0   0    0    0    0    0    0    0  201   22   22
 263892  7224  79   0  15   0   0    0    0    0    0    0    0  201   15   15
 263892  7264  52   0  21   0   0    0    0    0    0    0    0  180   21   21
 263892  7280  62   0  20   0   0    0    0    0    0    0    0  213   20   20
 263892  7236  74   0  19   0   0    0    0    0    0    0    0  242   19   19

Currently expire -v1 is running away merrily, and has been since 4am
this morning (currently a little after 8am).

> 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...

Both, actually.  I started news.daily at noon yesterday; expire only
started at 4am this morning.  The most annoying thing is that with our
old INN 2.0 install on a Sparc 2 with 64MB of RAM, expire usually only
took 4-6 hours.  Then INN 2.3.2 was totally incapable of running on that
machine so we moved the disks into a Sparc 20 with 144MB of RAM, and
expires were still taking 12-18 hours.  Now it's pegged the meter again,
with no obvious cause.

> 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.

Brian.
Sv.: Re: expire time suddenly jumps?
#52177
Author: 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.
Re: Sv.: Re: expire time suddenly jumps?
#52186
Author: Brian Edmonds
Date: Sat, 05 May 2001 19:17
10 lines
1631 bytes
Foul Filthy Festering Flatulent Fleabitten Furball Feline <meow@meow.meow> writes:
> 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.

Good idea.  Looks like it's just doing half a bazillion access() calls
and history writes at present.

Brian.
Re: expire time suddenly jumps?
#52187
Author: Kjetil Torgrim Homme
Date: Sat, 05 May 2001 23:26
42 lines
2888 bytes
[Brian Edmonds]

>   Russ Allbery <rra@stanford.edu> writes:
>   > It's possible that it's just the disk accesses.  What does iostat -cx
>   > look like?
>   
>   # iostat -cx 5
>   (...wait for a couple reports to go by...)
>   device       r/s    w/s   kr/s   kw/s wait actv  svc_t  %w  %b  us sy wt id
>   fd0          0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0   3 31 65  0
>   md1          1.0    3.0    8.0   20.0  0.0  0.1   33.4   0   6
>   md2        120.7   12.2  454.4   44.6  0.0  3.0   22.8   0  98
>   sd1          0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
>   sd3          0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
>   sd6          0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
>   sd7         57.6    8.4  222.5   34.8  0.0  1.5   22.5   0  71
>   sd8         64.8    7.2  239.9   29.8  0.0  1.7   23.2   0  80
>   
>   Hmm, does all that k[rw]/s (kernel read/write?) mean that it's
>   actually paging hard?

No offence, but did you try to read iostat(1m)?

     Kr/s      kilobytes read per second

Yes, it means the system is I/O bound by md2 (65% CPU is spent in I/O
wait).  I like the actv column: It states how many processes are
blocked for I/O on that disk.  Obviously, it's a bad thing for values
in that column to reach 1.0.

>   Solaris certainly makes it hard enough to track down this
>   information...

At least the information is available in Solaris, in contrast with
a certain other popular Unix ...

Reading Adrian Cockroft's columns in www.sunworld.com is a good way to
learn more about tuning Solaris.


Kjetil T.
Re: expire time suddenly jumps?
#52201
Author: Brian Edmonds
Date: Sun, 06 May 2001 05:49
30 lines
2527 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:
>> Hmm, does all that k[rw]/s (kernel read/write?) mean that it's
>> actually paging hard?
> No offence, but did you try to read iostat(1m)?

None taken.  Silly me, I had not.  In context I had swap on the brain,
so it seemed natural to assume that r/s vs kr/s was user vs kernel
reads.  Sucks to be me, I guess. :)

> Yes, it means the system is I/O bound by md2 (65% CPU is spent in I/O
> wait).

Well, md2 is the article spool and overview (a stripe between two
disks).  I'm not surprised it's busy, but it's still surprising that
it's this much busier for a system that is essentially unchanged (apart
from a faster processor and more RAM) from INN 2.0.  The machine is
taking far from a full feed: select hierachies and definitely no
binaries.

> I like the actv column: It states how many processes are blocked for
> I/O on that disk.  Obviously, it's a bad thing for values in that
> column to reach 1.0.

Interesting.  I noticed the iowait levels looked rather high.  I wonder
why things seem to be running so much slower at the IO level on the new
system.  It's also using Solaris 2.8 vs 2.6 for INN 2.0, but I wouldn't
have thought that should make it worse...

Brian.
Re: expire time suddenly jumps?
#52207
Author: Greg Andrews
Date: Sun, 06 May 2001 17:29
59 lines
3657 bytes
Brian Edmonds <brian@gweep.ca> writes:
>
>But, but, but, I'm not swapping.  Really.  Shouldn't it be obviously and
>consistently swapping if memory is a problem?
>
># 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...)
>
>I'll admit I'm not a Solaris guru, but this does mean I'm not swapping,
>right?
>

You're looking at the wrong reading.  You should be watching sr rather
than si/so to find out whether the system has to flush memory pages to
disk in order to free up the ram.  You need to watch longer than the
20 seconds you showed above.


The thing that does stand out is the number of processes blocked
on I/O (the "b" column under "procs")

I've had expires hit a knee in the curve and suddenly take much
longer because my disks had become busy.

Insufficient memory is the first thing to check, but busy disk
is also on the list.

Here's advice cribbed from the Porshe Book (Sun Performance and Tuning
by Cockroft and Pettit):

Run "iostat -x 30" and pay attention to the %b and svc_t columns for
the disks you're interested in.  Whenever the %b column is 20 or more
(disk is at least 20% busy), look at the svc_t number.  If svc_t is
higher than 30-50, then you have a disk that's probably too busy.
(svc_t is the average time read/write commands waited before they were
serviced by the disk, in milliseconds)  Consistent readings less than
30 means your disk isn't slowing the computer down, consistent readings
(or long periods of time) in the range 30-50 means the disk might be
slowing the computer down some, and consistent readings (or long bursts)
over 50 mean the disk is almost surely slowing the computer down.

This can't tell you whether the disks themselves are too busy, or the
SCSI bus is the bottleneck.  There are some guidelines about how many
busy disks a SCSI bus can support (depends on if the bus is fast, or
fast/wide, etc).

  -Greg
-- 
+++++ Greg Andrews +++ gerg@panix.com +++++
I have a map of the United States that's actual size
		 -- Steven Wright
Re: expire time suddenly jumps?
#52463
Author: bill davidsen
Date: Wed, 23 May 2001 17:06
33 lines
2479 bytes
In article <m38zkddu9g.fsf@yuri.aq2.gweep.ca>,
Brian Edmonds  <brian@gweep.ca> wrote:
| ded <ded@mindless.com> writes:

| > how many articles in your history and what is the about of memory?
| 
| The box has 144MB of RAM, and has ~2.8M history entries (using tagged
| hash -- as I said, it's not actively swapping).

  144MB of RAM... that's about right for a video card ;-) How does you
disk i/o and cpu usage look while this is running?

| >> * Some serious performance problems with expiration of tradspool
| >>   should now be at least somewhat alleviated.
| 
| Ah, now that's useful.  I'll go looking for that right away.  Silly me
| for not paying closer attention to the release notice.

  I think that was just in fastrm, but don't quote me, I'm running
CURRENT and cnfs for everything, due to incoming volume.

  After expire finishes, what does the report say? Got the file around
to post? I doubt this will tell us much.

  Do you have some funky expire stuff going on? Does the expire process
take a lot of CPU by any chance, due to having to implement some fancy
policy?

-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
"I am lost. I am out looking for myself. If I should come back before I
return, please ask me to wait."  -seen in a doctor's office
Re: Sv.: Re: expire time suddenly jumps?
#52466
Author: bill davidsen
Date: Wed, 23 May 2001 17:28
34 lines
2759 bytes
In article <m3snija9lr.fsf@yuri.aq2.gweep.ca>,
Brian Edmonds  <brian@gweep.ca> wrote:
| Foul Filthy Festering Flatulent Fleabitten Furball Feline <meow@meow.meow> writes:
| > 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.
| 
| Good idea.  Looks like it's just doing half a bazillion access() calls
| and history writes at present.

  Hum, I don't have STABLE code handy, but CURRENT doesn't seem to be
using access directly in expire or expireover, and I don't see it in the
lib directory in an obvious way, but in storage both tradspool and
timehash do a call to access.

  You may really want to rethink your storage method, overview method,
or where you put data. I have overview, history, and articles on
separate storage.

  Another thing which *might* help and is easy to try, expire has an
option (which you will look up to be sure it's -d) to use another
directory for building the new expiure files. Given that you seem to
have a disk bottleneck, if you have somewhere else on the system to put
the copy of history* files, you might be able to spread the i/o a bit.
You might look at options to move other activity as well, sort temp
space, etc.

  Can you {beg, borrow, steal} more spindles to help spread the load?

-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
"I am lost. I am out looking for myself. If I should come back before I
return, please ask me to wait."  -seen in a doctor's office
Re: expire time suddenly jumps?
#52471
Author: Brian Edmonds
Date: Wed, 23 May 2001 17:51
32 lines
2573 bytes
davidsen@tmr.com (bill davidsen) writes:
> 144MB of RAM... that's about right for a video card ;-) How does you
> disk i/o and cpu usage look while this is running?

I think we ended up deciding that the box was swapping pretty heavily.
I held its hand through a few expires and manual article flushes to get
things settled down, and dropped the history retention (which wasn't
abnormally long) to reduce the history file size, and we're back to ten
hour expires now.

> Do you have some funky expire stuff going on? Does the expire process
> take a lot of CPU by any chance, due to having to implement some fancy
> policy?

Nope, nothing fancy, just somewhat old hardware. :)

It's just somewhat sad seeing the difference from 2.0 to more current
releases.  With 2.0 a 64MB Sparc 2 was running the same disks, feed
size, expiry, and so on in about 4-6 hours.  When it finally came time
to upgrade we had to more than double the RAM, go to a Sparc 20, drop
the retention time, and put some groups on CNFS (cancels and nocems)
just to keep the expiry down to twice that.

I'm sure there's a lot of new functionality, but performance on at least
smaller/slower systems seems to have gotten hit badly somewhere.  Maybe
this hasn't also affected more modern systems, or maybe they're just so
drugged out on Moore's law that no one can tell anymore.

Heh, I'd never thought of Moore's law as a slippery slope before. :)

Brian.
Re: expire time suddenly jumps?
#52478
Author: bill davidsen
Date: Wed, 23 May 2001 21:43
42 lines
3242 bytes
In article <m3u22cdkdj.fsf@yuri.aq2.gweep.ca>,
Brian Edmonds  <brian@gweep.ca> wrote:
| davidsen@tmr.com (bill davidsen) writes:
| > 144MB of RAM... that's about right for a video card ;-) How does you
| > disk i/o and cpu usage look while this is running?
| 
| I think we ended up deciding that the box was swapping pretty heavily.

  I thought the overview and articles were on the same disk and it was
getting the snot beat out of it... If RAM is the issue you could test by
shutting down innd and running expire by hand with no fight for memory.
If the disk is still solid busy you're not out of RAM (and I don't think
you are, quite).


| It's just somewhat sad seeing the difference from 2.0 to more current
| releases.  With 2.0 a 64MB Sparc 2 was running the same disks, feed
| size, expiry, and so on in about 4-6 hours.  When it finally came time
| to upgrade we had to more than double the RAM, go to a Sparc 20, drop
| the retention time, and put some groups on CNFS (cancels and nocems)
| just to keep the expiry down to twice that.
|
| I'm sure there's a lot of new functionality, but performance on at least
| smaller/slower systems seems to have gotten hit badly somewhere.  Maybe
| this hasn't also affected more modern systems, or maybe they're just so
| drugged out on Moore's law that no one can tell anymore.

  Have you turned off mmap() for everything available? That can really
drive you RAM use. Still, it looked to me like disk, not memory. When
you ran 2.0, did you have a lot fewer articles online? It doesn't take
much to hit the point where memory needs go up, and when you get there
performance follows a tabletop curve (similar to the trajectory of a
marble rolling off the edge of a tabletop).

  I posted some thoughts on other things you could try to chase this, I
won't repeat them here.

-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
"I am lost. I am out looking for myself. If I should come back before I
return, please ask me to wait."  -seen in a doctor's office
Re: expire time suddenly jumps?
#52487
Author: Brian Edmonds
Date: Thu, 24 May 2001 00:52
21 lines
1920 bytes
davidsen@tmr.com (bill davidsen) writes:
> I thought the overview and articles were on the same disk and it was
> getting the snot beat out of it.

Everything is pretty much on two disks striped together.  I'm not
completely clueless enough to think I could make this work on a single
spindle. :)

> When you ran 2.0, did you have a lot fewer articles online?

I don't have a record offhand, but nothing has changed in the system or
feed configuration for at least a year.  I've got an INN/CNFS box in
front of this one doing all the feeds and spam filtering, so all this
box has been handling for a few years now is a fairly heavily filtered
feed of select hierarchies.

I'll keep your various suggestions in mind should the server run into
future problems.

Brian.
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