Search Postgresql Archives

Re: vacuum output question

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

 



Scott Marlowe wrote:
On Thu, Nov 13, 2008 at 4:08 PM, Dan Armbrust
<daniel.armbrust.list@xxxxxxxxx> 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

--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux