Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V4V4q-0003EJ-Ob for pgsql-performance@arkaria.postgresql.org; Wed, 31 Jul 2013 12:00:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V4V4p-0003ux-Qo for pgsql-performance@arkaria.postgresql.org; Wed, 31 Jul 2013 12:00:23 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V4V4o-0003uq-I6 for pgsql-performance@postgresql.org; Wed, 31 Jul 2013 12:00:22 +0000 Received: from mail-we0-f175.google.com ([74.125.82.175]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V4V4k-0007y4-On for pgsql-performance@postgresql.org; Wed, 31 Jul 2013 12:00:21 +0000 Received: by mail-we0-f175.google.com with SMTP id q58so513294wes.20 for ; Wed, 31 Jul 2013 05:00:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:mime-version:x-mailer:thread-index:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=QMnRHU9VawP16PHBwuAqcMS7SLaqLxuz7VcOEAPNu/s=; b=dIe9GGdJ5W+mUk6CKTdCHbg4KBe3YFM+zjkNsVRVAJ53zf00KPEua4GBARQRdtSjWP eVgGpPWAFI4I114cT42xE7RefeAJkVKtvJnpuk7zshblj5wL328vcDK/7uK8RP/7smG4 9gXug9DBHtyHdReYLxUH3C8UXLFKUAZkEbCmHu9F/M3sd7Oo1blMN/YISUseU6PBGZJH +T+Toq8JCT7Zlpi/EGcXRMYJdURnDrBzPl7rYi01AXXGIdBRKFtfdHM4YC71X8Kd7JTI aMAhbnCgIm1Bw587cQ/usCd3Ov07vpOYPIf1s5tYmysHmZPQS4wJEbsxlsP97r6MY3mq AV7A== X-Received: by 10.180.11.146 with SMTP id q18mr4017023wib.50.1375272016896; Wed, 31 Jul 2013 05:00:16 -0700 (PDT) From: Tasos Petalas MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: Ac6N5S7pPP1voSEtSOOM3L9cX/Qm8g== Date: Wed, 31 Jul 2013 14:58:53 +0300 Message-ID: <21cb334b6ca0c09c4faa60bdd46179eb@mail.gmail.com> Subject: PG performance issues related to storage I/O waits To: pgsql-performance@postgresql.org Cc: Tasos Petalas Content-Type: multipart/alternative; boundary=001a11c24d16097e0304e2cd7887 X-Gm-Message-State: ALoCoQnYtCeWCkwQ5wZMYUaEHzc4Bbii5gEOKLx0oURuO9ZArP0pr9JdrSH2EQJICA2fMRdMnb+s X-Pg-Spam-Score: 0.1 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org --001a11c24d16097e0304e2cd7887 Content-Type: text/plain; charset=ISO-8859-1 Hello team, We have serious performance issues with a production EDB 9.2AS installation The issue is mostly related to storage I/O bottlenecks during peak hours and we are looking for tunables on any level that could reduce the I/O spikes on SAN and improve overall DB performance. Our storage array consists of 16 disks in RAID-10 topology (device 253-2 on our OS configuration). We are also using RAID-5 for archive_log storage (also presented by SAN to the same machine - device 253-3) We have set synchronous_commit to off but since almost all of application queries are using prepared statements we don't get any real benefit. We are using VMware , VMFS and LVM so we need your feedback on any kind of tunable that could remove load from storage during peak hours (FYI application peak hours are 13:00-23:00 UTC, during night (04:00-06:00 UTC) there are some heavy reporting activity + backups) Archive logs are rsync-ed to a remote backup server every 20 minutes. Also please advise on any postgres.conf modification that could significantly affect storage load (WAL-checkpoint configuration etc.) (we have not tried to move pg_xlog to a separate LUN since this is not an option - any other LUN would be using the same storage pool as the rest of the /pgdata files) We had some issues in the past with autovaccum deamon failing to work efficiently under high load so we have already applied your instructions for a more aggressive auto-vacumm policy (changes already applied on postgresql.conf) Let me know if you want me to attach all the usual info for tickets regarding (OS, disks, PG conf, etc) plus the sar output and server logs from the last 3 days (24,25,26 June). Thanks, Tasos --001a11c24d16097e0304e2cd7887 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Hello team,

We have se= rious performance issues with a production EDB 9.2AS installation

Th= e issue is mostly related to storage I/O bottlenecks during peak hours and = we are looking for tunables on any level that could reduce the I/O spikes o= n SAN and improve overall DB performance.

Our storage array consists of 16 disks in RAID-10 topology (device 253-= 2 on our OS configuration). We are also using RAID-5 for archive_log storag= e (also presented by SAN to the same machine - device 253-3)

We have= set synchronous_commit to off but since almost all of application queries = are using prepared statements we don't get any real benefit.

We are using VMware , VMFS and LVM so we need your feedback on any kind= of tunable that could remove load from storage during peak hours (FYI appl= ication peak hours are 13:00-23:00 UTC, during night (04:00-06:00 UTC) ther= e are some heavy reporting activity + backups)
Archive logs are rsync-ed to a remote backup server every 20 minutes.
Also please advise on any postgres.conf modification that could significa= ntly affect storage load (WAL-checkpoint configuration etc.) (we have not t= ried to move pg_xlog to a separate LUN since this is not an option - any ot= her LUN would be using the same storage pool as the rest of the /pgdata fil= es)
We had some issues in the past with autovaccum deamon failing to work effic= iently under high load so we have already applied your instructions for a m= ore aggressive auto-vacumm policy (changes already applied on postgresql.co= nf)

Let me know if you want me to attach all the usual info for tickets reg= arding (OS, disks, PG conf, etc) plus the sar output and server logs from t= he last 3 days (24,25,26 June).

Thanks,
Tasos

--001a11c24d16097e0304e2cd7887--