Re: random slow query

From: Sean Ma <seanxma(at)gmail(dot)com>
To: Mike Ivanov <mikei(at)activestate(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: random slow query
Date: 2009-06-30 14:21:14
Message-ID: 8c38075e0906300721w4d04e4aekf487247444186ef4@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

top - 10:18:58 up 224 days, 15:10, 2 users, load average: 6.27, 7.33, 6
Tasks: 239 total, 1 running, 238 sleeping, 0 stopped, 0 zombie
Cpu(s): 5.0%us, 0.7%sy, 0.0%ni, 61.5%id, 32.7%wa, 0.0%hi, 0.1%si, 0
Mem: 32962804k total, 32802612k used, 160192k free, 325360k buffers
Swap: 8193140k total, 224916k used, 7968224k free, 30829456k cached

Didn't really see the pattern, typical the cpu load is only about 40%

On Mon, Jun 29, 2009 at 7:26 PM, Mike Ivanov<mikei(at)activestate(dot)com> wrote:
> Hi Sean,
>
> Sean Ma wrote:
>>
>> One months ago, this type of slow query happened about a few time per
>> day. But recently, the slow query happens more frequent at the rate of
>> once every 10 minutes or less. There seesm not relation to th
>
> What is your hardware (memory, CPU type and such)?
>
> This seems like a cache issue to me, but I can't tell for sure without some
> additional information on your system:
>
> 1) What is the amount of a) available memory b) free memory and c) memory
> available to i/o buffers?
>
> 2) What is the swap usage if any?
>
> 3) What is the CPU load? Any noticeable patterns in CPU load?
>
> You can use /usr/bin/top to obtain most of this information.
>
> Mike
>
>
>

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Mike Ivanov 2009-06-30 17:23:35 Re: random slow query
Previous Message Hartman, Matthew 2009-06-30 13:29:32 Re: Utilizing multiple cores in a function call.