Re: Performance tips

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Coax <coax(at)shell1(dot)cornernet(dot)com>
Cc: Andrew Perrin <andrew_perrin(at)unc(dot)edu>, Doug McNaught <doug(at)wireboard(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Performance tips
Date: 2002-01-10 06:08:35
Message-ID: 20020110170835.A31577@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jan 09, 2002 at 11:33:24PM -0600, Coax wrote:
> In Linux, vmstat's first line of output is always incorrect, as it pulls
> values from /proc/stat - and averages them over the timeperiod you
> specify.

LOL! If that's true, why does running it with no arguments produce one line
of output if it's going to be wrong? I'd count that as a form of bug.

Actually, the man page does discuss this. It says that the first time it
gives an average since boot, which is nice to know, but not very useful in
this case.

> Therefore, just running a single vmstat will do zilch for you.
>
> 'vmstat 1' will give you accurate numbers on the 2nd thru <infinite>
> reading, at 1 second intervals.

Well, I did mention that to him. Hopefully he'll send the results soon.

--
Martijn van Oosterhout <kleptog(at)svana(dot)org>
http://svana.org/kleptog/
> Terrorists can only take my life. Only my government can take my freedom.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Coax 2002-01-10 06:12:11 Re: Performance tips
Previous Message Andrew Perrin 2002-01-10 05:14:50 Re: Performance tips