Re: Size for vacuum_mem - Mailing list pgsql-general

From Tom Lane
Subject Re: Size for vacuum_mem
Date
Msg-id 12426.1039204607@sss.pgh.pa.us
Whole thread Raw
In response to Re: Size for vacuum_mem  ("David Blood" <david@matraex.com>)
Responses Re: Size for vacuum_mem  (Steve Atkins <steve@blighty.com>)
List pgsql-general
"David Blood" <david@matraex.com> writes:
> A "lazy vacuum" can hurt If you have lots of i/o.  If we try to run it
> during the day it kills us. This is because to vacuum all the tables
> postgres has to read them from the disk. While it doesn't not lock rows
> it does block other rows from reading/writing to/from the disk.

On the other hand, I have watched people lazy-vacuum production
databases in 7.2.* and not seen any visible hit on system load
(as far as top or vmstat could show, anyway).

I think it may be a matter of whether you have disk bandwidth to
spare.  If the disk farm is marginal, the extra demand from a vacuum
may push you over the knee of the performance curve.  But that's just
a guess.  It would be interesting if some folks from the "it doesn't
hurt" and the "it does hurt" camps could compare notes and try to
understand the reason for the difference in their results.

            regards, tom lane

pgsql-general by date:

Previous
From: "scott.marlowe"
Date:
Subject: Re: Getting data from old data dir
Next
From: "Fernando Papa"
Date:
Subject: Table functions say "no destination for result data."