Re: Waiting on ExclusiveLock on extension - Mailing list pgsql-general

From Qingqing Zhou
Subject Re: Waiting on ExclusiveLock on extension
Date
Msg-id CAJjS0u3fRyY9mZrX139pmCfR32DqpWWCBWVDwjCM8MtkgShM_Q@mail.gmail.com
Whole thread Raw
In response to Re: Waiting on ExclusiveLock on extension  (Andomar <andomar@aule.net>)
Responses Re: Waiting on ExclusiveLock on extension  (Andomar <andomar@aule.net>)
List pgsql-general
On Thu, Apr 16, 2015 at 2:39 PM, Andomar <andomar@aule.net> wrote:
> That post is about a server with huge shared_buffers, but ours is just 8GB.
> Total memory 48GB memory on a dedicated server. Checkpoints write around 2%
> of the buffers.
Are you able to take some 'perf top' during high CPU spike and see
what's burning CPU there? Though the issue is related to blocking, but
high CPU spikes may hint some spinning to acquire behavior.

> With holes in pages, I suppose you mean the fill factor? Is there a way to
> see the current fillfactor of a table and its indices?
>
Yes, holes meaning free space within a page. It can come from <100%
fillfactor or vacuum collected dead tuples. You can see fillfactor
value in pg_class.reloptions. If you nothing there, that's 100% and
90% for heap and btree by default respectively.

If your previous relation size is smaller than after upgrade, that's a
signal that you do have holes in relation, thus extension can be
avoided sometimes for new tuples.

Regards,
Qingqing


pgsql-general by date:

Previous
From: Andreas Joseph Krogh
Date:
Subject: Re: Where does vacuum FULL write temp-files?
Next
From: Octavi Fors
Date:
Subject: Re: database migration question between different ubuntus and different postgresql server versions