Re: vacuum output question - Mailing list pgsql-general

From Craig Ringer
Subject Re: vacuum output question
Date
Msg-id 491D4605.9010604@postnewspapers.com.au
Whole thread Raw
In response to Re: vacuum output question  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Responses Re: vacuum output question  ("Dan Armbrust" <daniel.armbrust.list@gmail.com>)
List pgsql-general
Scott Marlowe wrote:
> On Thu, Nov 13, 2008 at 4:08 PM, Dan Armbrust
> <daniel.armbrust.list@gmail.com> wrote:

>> Why did those particular tables and indexes take _so_ long to vacuum?
>> Perhaps we have a disk level IO problem on this system?
>
> Assuming pagesize is 8k, then we're talking about scanning 1303*8192
> bytes or 10 Megabytes.  My laptop can scan that in less than a second.
>
> So, either the hard drive is incredibly fragmented, or there's
> something wrong with that machine.

If you're using a system with RAID storage, I'd check to make sure
there's no high priority background rebuild or RAID scrubbing going on.
I've had issues in the past where RAID issues have crippled a server to
the point where it's barely able to handle ssh logins.

[Assuming a Linux server:] Naturally it's also worth checking for
processes doing absurd amounts of I/O. See pidstat -d, iostat, vmstat.
Also look for processes constantly in the `D' state in `ps aux' or `top'
which is usually due to heavy I/O. dmesg may also contain useful
information if it's a low level issue.

--
Craig Ringer

pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Archive files growth!!!
Next
From: tv@fuzzy.cz
Date:
Subject: Re: Fwd: Tweaking PG (again)