Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 7EE5A63267C for ; Mon, 11 Jan 2010 12:42:16 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 96195-06 for ; Mon, 11 Jan 2010 16:42:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f220.google.com (mail-fx0-f220.google.com [209.85.220.220]) by mail.postgresql.org (Postfix) with ESMTP id 15B2F632483 for ; Mon, 11 Jan 2010 12:42:04 -0400 (AST) Received: by fxm20 with SMTP id 20so20823691fxm.35 for ; Mon, 11 Jan 2010 08:42:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=RcB8yjfTrEbu686MGd/5qChVudi/PMlOcefN84xnECs=; b=tw6/5z+Qfkr+gkwrH2CWHYBF2/UUWnuMuls9RmL5x7OeSM6x7bM8C0PIe6mcTm3Nng gic72oKpAx6Jlh0wO8M1QHPGU0Qoji3pNMQ09oJS04ruh6hhczQKfzSa+iulg+fRmeL+ oX3ucOoWTZJTqR5YV7LnI/nYHfNyjiWPuKR9o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Qj/1h8TSB2mbRXcG8qeEatcMarK7txrJlKKnFDVvViFEmVqCmFtQwz1aUSwokViAzY DDP+JWeiCmIqUKoRX/NEGtkEyWDHOcPNwfzO/ig8/vuZ4orXs5Z5p+j1dB5XWEFsEeKs BjDcxMqtfGxKMSxXEUXmfjfMK5JM8kuK3yaZU= MIME-Version: 1.0 Received: by 10.216.87.203 with SMTP id y53mr2589771wee.177.1263228123509; Mon, 11 Jan 2010 08:42:03 -0800 (PST) In-Reply-To: References: <61039b861001110544o2c352763q13dcf9d78a156714@mail.gmail.com> Date: Mon, 11 Jan 2010 11:42:03 -0500 Message-ID: <61039b861001110842g15bb1f26jc50b6e6762e01427@mail.gmail.com> Subject: Re: performance config help From: Bob Dusek To: pgsql-performance@postgresql.org Content-Type: multipart/alternative; boundary=0016e6d9a329927630047ce637ad X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=3.19 tagged_above=-10 required=5 tests=BAYES_50=0.001, FH_DATE_PAST_20XX=3.188, HTML_MESSAGE=0.001 X-Spam-Level: *** X-Archive-Number: 201001/191 X-Sequence-Number: 37071 --0016e6d9a329927630047ce637ad Content-Type: text/plain; charset=ISO-8859-1 On Mon, Jan 11, 2010 at 8:50 AM, Scott Marlowe wrote: > On Mon, Jan 11, 2010 at 6:44 AM, Bob Dusek wrote: > > Hello, > > > > We're running Postgres 8.4.2 on Red Hat 5, on pretty hefty hardware... > > > > 4X E7420 Xeon, Four cores (for a total of 16 cores) > > 2.13 GHz, 8M Cache, 1066 Mhz FSB > > 32 Gigs of RAM > > 15 K RPM drives in striped raid > > What method of striped RAID? RAID-5? RAID-10? RAID-4? RAID-0? > RAID-0 > > > Things run fine, but when we get a lot of concurrent queries running, we > see > > a pretty good slow down. > > Definte "a lot". > > We have an application server that is processing requests. Each request consists of a combination of selects, inserts, and deletes. We actually see degredation when we get more than 40 concurrent requests. The exact number of queries executed by each request isn't known. It varies per request. But, an example request would be about 16 inserts and 113 selects. Any given request can't execute more than a single query at a time. To be more specific about the degradation, we've set the "log_min_duration_statement=200", and when we run with 40 concurrent requests, we don't see queries showing up in there. When we run with 60 concurrent requests, we start seeing queries show up, and when we run 200+ requests, we see multi-second queries. This is to be expected, to some extent, as we would expect some perfromance degradation with higher utilization. But, the hardware doesn't appear to be very busy, and that's where we're hoping for some help. We want to have Postgres eating up as many resources as possible to chug through our queries faster. Right now, it's running slower with more utilization, but there's still too much idle time for the CPUs. > We don't have much experience with this sort of hardware. Does anyone > have > > an example config file we could use as a good starting point for this > sort > > of hardware? > > > > We have a fair amount of row-level inserts and deletes going on (probably > as > > much data is inserted and deleted in a day than permanently resides in > the > > db). > > What do the following commands tell you? > > iostat -x 10 (first iteration doesn't count) > Here's some iostat output (from the 3rd data point from iostat -x 10)... this was taken while we were processing 256 simultaneous requests. avg-cpu: %user %nice %system %iowait %steal %idle 34.29 0.00 7.09 0.03 0.00 58.58 Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util sda 0.00 112.20 0.00 133.40 0.00 1964.80 14.73 0.42 3.17 0.04 0.48 sda1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sda2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sda3 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sda4 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sda5 0.00 112.20 0.00 133.40 0.00 1964.80 14.73 0.42 3.17 0.04 0.48 sdb 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 dm-0 0.00 0.00 0.00 0.40 0.00 3.20 8.00 0.00 0.00 0.00 0.00 dm-1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 dm-2 0.00 0.00 0.00 99.90 0.00 799.20 8.00 0.15 1.50 0.01 0.12 dm-3 0.00 0.00 0.00 0.60 0.00 4.80 8.00 0.00 0.33 0.17 0.01 dm-4 0.00 0.00 0.00 144.70 0.00 1157.60 8.00 0.46 3.17 0.02 0.35 dm-5 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 The iowait seems pretty low, doesn't it? vmstat 10 (again, first iteration doesn't count) > Here's the vmstat output, with the 6th data element clipped out, which seems representative of the whole... (also taken during 256 simultaneous request) [root@ecpe1 pg_log]# vmstat 10 procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------ r b swpd free buff cache si so bi bo in cs us sy id wa st 8 0 0 21818136 696692 3871172 0 0 0 1042 2261 48418 34 7 59 0 0 That's a lot of free mem, which is to be expected. Our database is not very large. top > (taken during 256 simultaneous requests) top - 10:11:43 up 12 days, 20:48, 6 users, load average: 10.48, 4.16, 2.83 Tasks: 798 total, 8 running, 790 sleeping, 0 stopped, 0 zombie Cpu0 : 33.3%us, 7.6%sy, 0.0%ni, 59.1%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu1 : 31.6%us, 5.9%sy, 0.0%ni, 62.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu2 : 33.0%us, 6.6%sy, 0.0%ni, 60.4%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu3 : 35.4%us, 6.2%sy, 0.0%ni, 58.0%id, 0.0%wa, 0.0%hi, 0.3%si, 0.0%st Cpu4 : 36.3%us, 5.6%sy, 0.0%ni, 58.1%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu5 : 37.4%us, 6.2%sy, 0.0%ni, 56.1%id, 0.0%wa, 0.0%hi, 0.3%si, 0.0%st Cpu6 : 38.1%us, 6.0%sy, 0.0%ni, 56.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu7 : 39.2%us, 7.5%sy, 0.0%ni, 52.9%id, 0.0%wa, 0.0%hi, 0.3%si, 0.0%st Cpu8 : 35.5%us, 7.2%sy, 0.0%ni, 56.9%id, 0.0%wa, 0.0%hi, 0.3%si, 0.0%st Cpu9 : 37.8%us, 7.6%sy, 0.0%ni, 54.3%id, 0.0%wa, 0.0%hi, 0.3%si, 0.0%st Cpu10 : 39.5%us, 5.9%sy, 0.0%ni, 54.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu11 : 34.5%us, 7.2%sy, 0.0%ni, 58.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu12 : 41.1%us, 6.9%sy, 0.0%ni, 50.3%id, 0.0%wa, 0.0%hi, 1.6%si, 0.0%st Cpu13 : 38.0%us, 7.3%sy, 0.0%ni, 54.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu14 : 36.2%us, 6.2%sy, 0.0%ni, 57.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu15 : 36.8%us, 8.2%sy, 0.0%ni, 54.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 28817004k total, 8008372k used, 20808632k free, 705772k buffers Swap: 30867448k total, 0k used, 30867448k free, 4848376k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2641 postgres 16 0 8524m 21m 16m S 3.3 0.1 0:00.25 postmaster 2650 postgres 15 0 8524m 21m 16m S 3.3 0.1 0:00.25 postmaster 2706 postgres 16 0 8524m 21m 15m S 3.3 0.1 0:00.20 postmaster 2814 postgres 15 0 8523m 18m 14m S 3.3 0.1 0:00.10 postmaster 2829 postgres 15 0 8523m 18m 14m S 3.3 0.1 0:00.10 postmaster 2618 postgres 15 0 8524m 21m 16m S 3.0 0.1 0:00.25 postmaster 2639 postgres 15 0 8524m 21m 16m R 3.0 0.1 0:00.25 postmaster 2671 postgres 15 0 8524m 21m 16m S 3.0 0.1 0:00.23 postmaster 2675 postgres 16 0 8524m 21m 16m S 3.0 0.1 0:00.23 postmaster 2694 postgres 15 0 8524m 21m 15m S 3.0 0.1 0:00.23 postmaster 2698 postgres 15 0 8524m 21m 15m S 3.0 0.1 0:00.21 postmaster 2702 postgres 15 0 8524m 21m 15m S 3.0 0.1 0:00.19 postmaster 2767 postgres 15 0 8524m 20m 14m S 3.0 0.1 0:00.13 postmaster 2776 postgres 15 0 8524m 20m 14m S 3.0 0.1 0:00.14 postmaster 2812 postgres 15 0 8523m 18m 14m S 3.0 0.1 0:00.11 postmaster 2819 postgres 15 0 8523m 18m 14m S 3.0 0.1 0:00.09 postmaster 2823 postgres 16 0 8523m 18m 14m S 3.0 0.1 0:00.09 postmaster 2828 postgres 15 0 8523m 18m 14m S 3.0 0.1 0:00.09 postmaster 2631 postgres 15 0 8524m 21m 15m S 2.6 0.1 0:00.24 postmaster 2643 postgres 15 0 8524m 21m 15m S 2.6 0.1 0:00.23 postmaster 2656 postgres 15 0 8524m 21m 15m S 2.6 0.1 0:00.22 postmaster 2658 postgres 16 0 8524m 21m 15m S 2.6 0.1 0:00.22 postmaster 2664 postgres 16 0 8524m 21m 16m S 2.6 0.1 0:00.24 postmaster 2674 postgres 15 0 8524m 21m 15m S 2.6 0.1 0:00.23 postmaster 2679 postgres 15 0 8524m 21m 15m S 2.6 0.1 0:00.22 postmaster 2684 postgres 15 0 8524m 21m 15m S 2.6 0.1 0:00.21 postmaster 2695 postgres 15 0 8524m 20m 15m S 2.6 0.1 0:00.18 postmaster 2699 postgres 15 0 8524m 20m 15m S 2.6 0.1 0:00.18 postmaster 2703 postgres 15 0 8524m 20m 15m S 2.6 0.1 0:00.18 postmaster 2704 postgres 15 0 8524m 20m 15m R 2.6 0.1 0:00.17 postmaster 2713 postgres 15 0 8524m 20m 15m S 2.6 0.1 0:00.18 postmaster 2734 postgres 15 0 8524m 20m 14m S 2.6 0.1 0:00.14 postmaster 2738 postgres 15 0 8524m 20m 15m S 2.6 0.1 0:00.14 postmaster > What you're looking for is iowait / utilization. > --0016e6d9a329927630047ce637ad Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Mon, Jan 11, 2010 at 8:50 AM, Scott Marlowe <= span dir=3D"ltr"><scott.marlowe@gmail.com> wrote:
On Mon, Jan 11, 2010 at 6:44 AM, Bob Dusek <redusek@gmail.com> wrote:
> Hello,
>
> We're running Postgres 8.4.2 on Red Hat 5, on pretty hefty hardwar= e...
>
> 4X E7420 Xeon, Four cores (for a total of 16 cores)
> 2.13 GHz, 8M Cache, 1066 Mhz FSB
> 32 Gigs of RAM
> 15 K RPM drives in striped raid

What method of striped RAID? =A0RAID-5? =A0RAID-10? =A0RAID-4? =A0RAI= D-0?

RAID-0
=A0

> Things run fine, but when we get a lot of concurrent queries running, = we see
> a pretty good slow down.

Definte "a lot".


We have an application server that is = processing requests.=A0 Each request consists of a combination of selects, = inserts, and deletes.=A0 We actually see degredation when we get more than = 40 concurrent requests.=A0 The exact number of queries executed by each req= uest isn't known.=A0 It varies per request.=A0 But, an example request = would be about 16 inserts and 113 selects.=A0 Any given request can't e= xecute more than a single query at a time. =A0

To be more specific about the degradation, we've set the "log_= min_duration_statement=3D200", and when we run with 40 concurrent requ= ests, we don't see queries showing up in there.=A0 When we run with 60 = concurrent requests, we start seeing queries show up, and when we run 200+ = requests, we see multi-second queries.

This is to be expected, to some extent, as we would expect some perfrom= ance degradation with higher utilization.=A0 But, the hardware doesn't = appear to be very busy, and that's where we're hoping for some help= .

We want to have Postgres eating up as many resources as possible to chu= g through our queries faster.=A0 Right now, it's running slower with mo= re utilization, but there's still too much idle time for the CPUs.=A0 <= br>
> We don't have much experience with this sort of hardware.=A0=A0 Do= es anyone have
> an example config file we could use as a good starting point for this = sort
> of hardware?
>
> We have a fair amount of row-level inserts and deletes going on (proba= bly as
> much data is inserted and deleted in a day than permanently resides in= the
> db).

What do the following commands tell you?

iostat -x 10 (first iteration doesn't count)

H= ere's some iostat output (from the 3rd data point from iostat -x 10)...= this was taken while we were processing 256 simultaneous requests.

=A0avg-cpu:=A0 %user=A0=A0 %nice %system %iowait=A0 %steal=A0=A0 %idle<= br>=A0=A0=A0=A0=A0=A0=A0=A0=A0 34.29=A0=A0=A0 0.00=A0=A0=A0 7.09=A0=A0=A0 0= .03=A0=A0=A0 0.00=A0=A0 58.58

Device:=A0=A0=A0=A0=A0=A0=A0=A0 rrqm/s= =A0=A0 wrqm/s=A0=A0 r/s=A0=A0 w/s=A0=A0 rsec/s=A0=A0 wsec/s avgrq-sz avgqu-= sz=A0=A0 await=A0 svctm=A0 %util
sda=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0.00=A0=A0 112.20=A0 0.00 133= .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A0=A0 0.00=A0=A0=A0=A0 0.00=A0 0.00= =A0 0.00=A0=A0=A0=A0 0.00=A0=A0=A0=A0 0.00=A0=A0=A0=A0 0.00=A0=A0=A0=A0 0.0= 0=A0=A0=A0 0.00=A0=A0 0.00=A0=A0 0.00

The iowait seems pretty low, d= oesn't it?

vmstat 10 (again, first iteration doesn't count)
<= br>Here's the vmstat output, with the 6th data element clipped out, whi= ch seems representative of the whole... (also taken during 256 simultaneous= request)

[root@ecpe1 pg_log]# vmstat 10
procs -----------memory---------- ---= swap-- -----io---- --system-- -----cpu------
r=A0 b=A0=A0 swpd=A0=A0 fre= e=A0=A0 buff=A0 cache=A0=A0 si=A0=A0 so=A0=A0=A0 bi=A0=A0=A0 bo=A0=A0 in=A0= =A0 cs us sy id wa st
8=A0 0=A0=A0=A0=A0=A0 0 21818136 696692 3871172=A0= =A0=A0 0=A0=A0=A0 0=A0=A0=A0=A0 0=A0 1042 2261 48418 34=A0 7 59=A0 0=A0 0 =A0
That's a lot of free mem, which is to be expected.=A0 Our databa= se is not very large.

top

(taken during 256 simultaneous requests)
top - 10:11:43 up 12 days, 20:48,=A0 6 users,=A0 load average: 10.48, 4.1= 6, 2.83
Tasks: 798 total,=A0=A0 8 running, 790 sleeping,=A0=A0 0 stopped= ,=A0=A0 0 zombie
Cpu0=A0 : 33.3%us,=A0 7.6%sy,=A0 0.0%ni, 59.1%id,=A0 0.0%wa,=A0 0.0%hi,=A0 = 0.0%si,=A0 0.0%st
Cpu1=A0 : 31.6%us,=A0 5.9%sy,=A0 0.0%ni, 62.5%id,=A0 0= .0%wa,=A0 0.0%hi,=A0 0.0%si,=A0 0.0%st
Cpu2=A0 : 33.0%us,=A0 6.6%sy,=A0 = 0.0%ni, 60.4%id,=A0 0.0%wa,=A0 0.0%hi,=A0 0.0%si,=A0 0.0%st
Cpu3=A0 : 35.4%us,=A0 6.2%sy,=A0 0.0%ni, 58.0%id,=A0 0.0%wa,=A0 0.0%hi,=A0 = 0.3%si,=A0 0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%wa,=A0 0.0%hi,=A0 0.= 0%si,=A0 0.0%st
Mem:=A0 28817004k total,=A0 8008372k used, 20808632k fre= e,=A0=A0 705772k buffers=A0=A0=A0
Swap: 30867448k total,=A0=A0=A0=A0=A0= =A0=A0 0k used, 30867448k free,=A0 4848376k cached=A0=A0=A0

PID USER=A0=A0=A0=A0=A0 PR=A0 NI=A0 VIRT=A0 RES=A0 SHR S %CPU %MEM=A0= =A0=A0 TIME+=A0 COMMAND
2641 postgres=A0 16=A0=A0 0 8524m=A0 21m=A0 16m = S=A0 3.3=A0 0.1=A0=A0 0:00.25 postmaster
2650 postgres=A0 15=A0=A0 0 852= 4m=A0 21m=A0 16m S=A0 3.3=A0 0.1=A0=A0 0:00.25 postmaster
2706 postgres=A0 16=A0=A0 0 8524m=A0 21m=A0 15m S=A0 3.3=A0 0.1=A0=A0 0:00.= 20 postmaster
2814 postgres=A0 15=A0=A0 0 8523m=A0 18m=A0 14m S=A0 3.3= =A0 0.1=A0=A0 0:00.10 postmaster
2829 postgres=A0 15=A0=A0 0 8523m=A0 18= m=A0 14m S=A0 3.3=A0 0.1=A0=A0 0:00.10 postmaster
2618 postgres=A0 15=A0=A0 0 8524m=A0 21m=A0 16m S=A0 3.0=A0 0.1=A0=A0 0:00.= 25 postmaster
2639 postgres=A0 15=A0=A0 0 8524m=A0 21m=A0 16m R=A0 3.0= =A0 0.1=A0=A0 0:00.25 postmaster
2671 postgres=A0 15=A0=A0 0 8524m=A0 21= m=A0 16m S=A0 3.0=A0 0.1=A0=A0 0:00.23 postmaster
2675 postgres=A0 16=A0=A0 0 8524m=A0 21m=A0 16m S=A0 3.0=A0 0.1=A0=A0 0:00.= 23 postmaster
2694 postgres=A0 15=A0=A0 0 8524m=A0 21m=A0 15m S=A0 3.0= =A0 0.1=A0=A0 0:00.23 postmaster
2698 postgres=A0 15=A0=A0 0 8524m=A0 21= m=A0 15m S=A0 3.0=A0 0.1=A0=A0 0:00.21 postmaster
2702 postgres=A0 15=A0=A0 0 8524m=A0 21m=A0 15m S=A0 3.0=A0 0.1=A0=A0 0:00.= 19 postmaster
2767 postgres=A0 15=A0=A0 0 8524m=A0 20m=A0 14m S=A0 3.0= =A0 0.1=A0=A0 0:00.13 postmaster
2776 postgres=A0 15=A0=A0 0 8524m=A0 20= m=A0 14m S=A0 3.0=A0 0.1=A0=A0 0:00.14 postmaster
2812 postgres=A0 15=A0=A0 0 8523m=A0 18m=A0 14m S=A0 3.0=A0 0.1=A0=A0 0:00.= 11 postmaster
2819 postgres=A0 15=A0=A0 0 8523m=A0 18m=A0 14m S=A0 3.0= =A0 0.1=A0=A0 0:00.09 postmaster
2823 postgres=A0 16=A0=A0 0 8523m=A0 18= m=A0 14m S=A0 3.0=A0 0.1=A0=A0 0:00.09 postmaster
2828 postgres=A0 15=A0=A0 0 8523m=A0 18m=A0 14m S=A0 3.0=A0 0.1=A0=A0 0:00.= 09 postmaster=A0
2631 postgres=A0 15=A0=A0 0 8524m=A0 21m=A0 15m S=A0 2= .6=A0 0.1=A0=A0 0:00.24 postmaster=A0=A0
2643 postgres=A0 15=A0=A0 0 85= 24m=A0 21m=A0 15m S=A0 2.6=A0 0.1=A0=A0 0:00.23 postmaster
2656 postgres=A0 15=A0=A0 0 8524m=A0 21m=A0 15m S=A0 2.6=A0 0.1=A0=A0 0:00.= 22 postmaster
2658 postgres=A0 16=A0=A0 0 8524m=A0 21m=A0 15m S=A0 2.6= =A0 0.1=A0=A0 0:00.22 postmaster
2664 postgres=A0 16=A0=A0 0 8524m=A0 21= m=A0 16m S=A0 2.6=A0 0.1=A0=A0 0:00.24 postmaster
2674 postgres=A0 15=A0=A0 0 8524m=A0 21m=A0 15m S=A0 2.6=A0 0.1=A0=A0 0:00.= 23 postmaster=A0
2679 postgres=A0 15=A0=A0 0 8524m=A0 21m=A0 15m S=A0 2= .6=A0 0.1=A0=A0 0:00.22 postmaster
2684 postgres=A0 15=A0=A0 0 8524m=A0 = 21m=A0 15m S=A0 2.6=A0 0.1=A0=A0 0:00.21 postmaster
2695 postgres=A0 15=A0=A0 0 8524m=A0 20m=A0 15m S=A0 2.6=A0 0.1=A0=A0 0:00.= 18 postmaster
2699 postgres=A0 15=A0=A0 0 8524m=A0 20m=A0 15m S=A0 2.6= =A0 0.1=A0=A0 0:00.18 postmaster
2703 postgres=A0 15=A0=A0 0 8524m=A0 2= 0m=A0 15m S=A0 2.6=A0 0.1=A0=A0 0:00.18 postmaster=A0
2704 postgres=A0 15=A0=A0 0 8524m=A0 20m=A0 15m R=A0 2.6=A0 0.1=A0=A0 0:00.= 17 postmaster
2713 postgres=A0 15=A0=A0 0 8524m=A0 20m=A0 15m S=A0 2.6= =A0 0.1=A0=A0 0:00.18 postmaster
2734 postgres=A0 15=A0=A0 0 8524m=A0 2= 0m=A0 14m S=A0 2.6=A0 0.1=A0=A0 0:00.14 postmaster
2738 postgres=A0 15=A0=A0 0 8524m=A0 20m=A0 15m S=A0 2.6=A0 0.1=A0=A0 0:00.= 14 postmaster

=A0
What you're looking for is iowait / utilization.

--0016e6d9a329927630047ce637ad--