pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Laszlo Nagy <gandalf@designaproduct.biz>
Cc: pgsql-performance@postgresql.org
Subject: Re: Poor performance on seq scan
Date: Tue, 12 Sep 2006 12:52:06 -0400
Message-ID: <17034.1158079926@sss.pgh.pa.us> (raw)
In-Reply-To: <450684EC.4090304@designaproduct.biz>
References: <450684EC.4090304@designaproduct.biz>

Laszlo Nagy <gandalf@designaproduct.biz> writes:
> Meanwhile, "iostat 5" gives something like this:

>  tin tout  KB/t tps  MB/s   KB/t   tps  MB/s  us ni sy in id
>    1   14 128.00   1  0.10  128.00   1  0.10   5  0 94  1  0
>    0   12 123.98 104 12.56  123.74 104 12.56   8  0 90  2  0
>    0   12 125.66 128 15.75  125.26 128 15.68  10  0 85  6  0
>    0   12 124.66 129 15.67  124.39 129 15.64  12  0 85  3  0
>    0   12 117.13 121 13.87  117.95 121 13.96  12  0 84  5  0
>    0   12 104.84 118 12.05  105.84 118 12.19  10  0 87  2  0

Why is that showing 85+ percent *system* CPU time??  I could believe a
lot of idle CPU if the query is I/O bound, or a lot of user time if PG
was being a hog about doing the ~~ comparisons (not too unlikely BTW).
But if the kernel is eating all the CPU, there's something very wrong,
and I don't think it's Postgres' fault.

			regards, tom lane



view thread (26+ messages)  latest in thread

Message-ID: <17034.1158079926@sss.pgh.pa.us>
Permalink:  ../17034.1158079926@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17034.1158079926@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, gandalf@designaproduct.biz
  Subject: Re: Poor performance on seq scan
  In-Reply-To: <17034.1158079926@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox