pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Autovacuum Problem
Date: Tue, 3 Apr 2018 11:39:12 +0300
Message-ID: <01f04a0e-5013-605d-418c-acba834c3609@matrix.gatewaynet.com> (raw)
In-Reply-To: <CA+XgNjLUp6xvX=2M_sNPZ4e_zoz8E5TRiGm=dck4i1yhTRQ-ew@mail.gmail.com>
References: <CA+XgNjKrPgQGq=DY+ixXMuCqn7dN01OXak=+dHnA7Y=+zmqbEg@mail.gmail.com>
	<b473807b-cfbf-b24b-459a-48a1c7f46d58@matrix.gatewaynet.com>
	<CA+XgNjLD8SdsKRzDxVy936N93ijy42jhvgyR0H6zxJgdESq_Pw@mail.gmail.com>
	<70a9e2ce-15cc-0ec2-8190-1de1860de51d@matrix.gatewaynet.com>
	<CA+XgNjLUp6xvX=2M_sNPZ4e_zoz8E5TRiGm=dck4i1yhTRQ-ew@mail.gmail.com>

On 03/04/2018 10:54, Kein Name wrote:
> > Why would you want that? Do you have any control over the application? Any "special" patterns used in the app?
>
> Drive is running full :/
> Sadly I have no control and knowledge whatsoever over/about the application.
>
> I tuned the autovacuum parameters now for the critical tables, to have it run more often and using greater ressources while doing so.... but I am unsure if this helps with the bloating.

You could try to setting log_statement=all for a (short) period with a typical "heavy-ish" write activity to know what the app is doing.
IMHO you must prepare for a larger storage. After that you should monitor disk usage periodically to see if usage is stabilized or at least if the increase rate drops.

>
> 2018-04-03 9:39 GMT+02:00 Achilleas Mantzios <achill@matrix.gatewaynet.com <mailto:achill@matrix.gatewaynet.com>>:
>
>     On 03/04/2018 10:00, Kein Name wrote:
>>     > VACUUM <> VACUUM FULL
>>     > Normally running VACUUM via autovacuum should help reuse free space but not actually return it to the filesystem / OS (unless it happens to be the last blocks in the data file(s)).
>>     > Ppl in normal/average type of installations/workloads no longer (since 8.2) run VACUUM (or VACUUM FULL) by hand, except in extra ordinary cases where e.g. need for free space is urgent.
>>
>>     Hmmmm then when is the space released to the system when the manual VACUUM FULL run is not done? Any way to "force" this?
>     Why would you want that? Do you have any control over the application? Any "special" patterns used in the app?
>>
>>     2018-04-03 8:49 GMT+02:00 Achilleas Mantzios <achill@matrix.gatewaynet.com <mailto:achill@matrix.gatewaynet.com>>:
>>
>>         On 03/04/2018 09:36, Kein Name wrote:
>>
>>             However no space seems to be freed to the system.
>>
>>             Is there any way a bloody newbie can debug this behaviour?
>>
>>
>>         VACUUM <> VACUUM FULL
>>         Normally running VACUUM via autovacuum should help reuse free space but not actually return it to the filesystem / OS (unless it happens to be the last blocks in the data file(s)).
>>         Ppl in normal/average type of installations/workloads no longer (since 8.2) run VACUUM (or VACUUM FULL) by hand, except in extra ordinary cases where e.g. need for free space is urgent.
>>
>>
>>             Any help is appreciated!
>>
>>             Thanks
>>             Stefan
>>
>>
>>         -- 
>>         Achilleas Mantzios
>>         IT DEV Lead
>>         IT DEPT
>>         Dynacom Tankers Mgmt
>>
>>
>>
>
>     -- 
>     Achilleas Mantzios
>     IT DEV Lead
>     IT DEPT
>     Dynacom Tankers Mgmt
>
>

-- 
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt

view thread (7+ messages)  latest in thread

Message-ID: <01f04a0e-5013-605d-418c-acba834c3609@matrix.gatewaynet.com>
Permalink:  ../01f04a0e-5013-605d-418c-acba834c3609@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/01f04a0e-5013-605d-418c-acba834c3609@matrix.gatewaynet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: achill@matrix.gatewaynet.com
  Subject: Re: Autovacuum Problem
  In-Reply-To: <01f04a0e-5013-605d-418c-acba834c3609@matrix.gatewaynet.com>
  References: <CA+XgNjKrPgQGq=DY+ixXMuCqn7dN01OXak=+dHnA7Y=+zmqbEg@mail.gmail.com> <b473807b-cfbf-b24b-459a-48a1c7f46d58@matrix.gatewaynet.com> <CA+XgNjLD8SdsKRzDxVy936N93ijy42jhvgyR0H6zxJgdESq_Pw@mail.gmail.com> <70a9e2ce-15cc-0ec2-8190-1de1860de51d@matrix.gatewaynet.com> <CA+XgNjLUp6xvX=2M_sNPZ4e_zoz8E5TRiGm=dck4i1yhTRQ-ew@mail.gmail.com> <01f04a0e-5013-605d-418c-acba834c3609@matrix.gatewaynet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox