Re: Auto Vacuum question?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Charles.Hou wrote:
> On 6 4 ,   10 49 , alvhe...@xxxxxxxxxxxxxxxxx (Alvaro Herrera) wrote:

> > It is normal that the tables grow a bit to a stationary state of dead
> > space (generated by UPDATE and DELETE).  However it is not normal if it
> > loses track of that dead space.  One thing you can and should do is
> > adjust the autovacuum settings (for example lowering the vacuum scale
> > factor and threshold values).  Another is to correctly set the FSM
> > values.

> autovacuum_vacuum_scale_factor = 1      # fraction of rel size before
> autovacuum_analyze_scale_factor = 1     # fraction of rel size before

These values are rather strange; they mean it would wait until the table
is populated by as many dead tuples as there are live tuples, before
vacuuming it.  This is probably too much.  Try decreasing the vacuum
scale factor to 0.2 or maybe 0.1 and see how it goes.

-- 
Alvaro Herrera                 http://www.amazon.com/gp/registry/DXLWNGRJD34J
"La fuerza no está en los medios físicos
sino que reside en una voluntad indomable" (Gandhi)


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux