There's more than one way to do things | |
PerlMonks |
Re: A lesson in statistics (no, specs)by tye (Sage) |
on Mar 20, 2007 at 01:47 UTC ( [id://605615]=note: print w/replies, xml ) | Need Help?? |
For context: po Pages paged out fr Pages freed per second Since po=1 and fr=0 is more than a million times "worse" than your "15 times" threshold and yet I really doubt it represents a situation that you want to be worried about, I think your "15 times" criteria is not enough. Your problem sample data shows samples where every single sample has fr <= 15*po so, of course, it fires the "15 times" alarm. That problem is more with your choice of alarm criteria than with your arithmetic. If your "15 times" does a good job even for quite large values (it certainly doesn't for very small values), then perhaps you just need to add a minimum criterion. Forcing fr=1 as a minimum is a fine way of saying that pr < 15 is never alarming. So if pr stays at 14 for many samples while fr stays at 0 for many samples, is that indicative of a problem? It goes off the scale for your stated "15 times" criteria. But it never reaches the criteria if you set a minimum of 1 for fr. Is po=300,fr=15 really much more worrying than po=3000,fr=250 ? So play with some more data and figure out criteria that better represent the situation you are worried about than just "15 times". - tye
In Section
Seekers of Perl Wisdom
|
|