Re: PostgreSQL VACCUM killing CPU

From: Wu Fengguang <wfg(at)mail(dot)ustc(dot)edu(dot)cn>
To: blender(at)jaskom(dot)pl
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: PostgreSQL VACCUM killing CPU
Date: 2006-05-10 14:17:26
Message-ID: 347270640.30146@ustc.edu.cn
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Tue, May 09, 2006 at 03:19:08AM -0700, blender(at)jaskom(dot)pl wrote:
> I have got such problem.
> Im running Postgresql 7.3.2 on Linux 2.6.13.
> What is see when VACCUM is running and killing my CPU is:
>
> Cpu(s): 3.2% us, 0.0% sy, 0.0% ni, 0.0% id, 96.8% wa, 0.0% hi,
> 0.0% si
>
> what i am worry about is "96.8% wa" why is it like that?

It's killing your disk drives instead of CPU(which is mostly _idle_
waiting for I/O completion).

Run this command to get an idea of the I/O activities:
iostat -x 3 3

[AD]Running a kernel patched with adaptive read-ahead may help it:
http://www.vanheusden.com/ara/adaptive-readahead-11.1-2.6.16.5.patch.gz

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Bruce Momjian 2006-05-10 14:35:59 Re: [GENERAL] Arguments Pro/Contra Software Raid
Previous Message Vivek Khera 2006-05-10 14:16:14 Re: [GENERAL] Arguments Pro/Contra Software Raid