Skip site navigation (1) Skip section navigation (2)

Re: pg_database_size() and actual disk space usage

From: Alexander Fortin <alexander(dot)fortin(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_database_size() and actual disk space usage
Date: 2012-04-20 11:04:32
Message-ID: 4F9142C0.80008@gmail.com (view raw or flat)
Thread:
Lists: pgsql-admin
On 3/30/12 12:14 PM, Bernhard Schrader wrote:
> 
> Ok, well with Kernel 2.6.38 xfs introduced a new "feature" (i think it
> was dynamic preallocation) which caused some strange behaviour for me
> also, i discussed it on xfs mailinglist, maybe this gives you some hints
> of solving your different diskusages.
> 
> http://old.nabble.com/Problems-with-filesizes-on-different-Kernels-td33342207.html#a33342207
> 
> 
> At the end was the solution for me, but you can first check what i
> posted in the first message - testing base directory with du -sh and du
> --apparent-size -h
> 
> i hope this will help you.

Hi Bernhard,
just to say thank you to have pointed this out, it actually seems to be
related to this "dynamic speculative EOF preallocation" feature of XFS.

For the records, I've done a couple of checks and I can see clearly that
it's definitely unrelated to Postgres (apparently seems that I can
reproduce the change of data occupation on the XFS file system just
accessing those files).

Talk soon,

-- 
Alexander Fortin
http://about.me/alexanderfortin/

In response to

pgsql-admin by date

Next:From: Walter HurryDate: 2012-04-20 23:21:00
Subject: Re: Unending DB migration
Previous:From: Albe LaurenzDate: 2012-04-20 09:06:14
Subject: Re: ERROR: invalid input syntax for type timestamp: ""

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group