Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YvjP4-0008Vx-Os for pgsql-admin@arkaria.postgresql.org; Fri, 22 May 2015 09:38:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YvjP4-0007fz-8v for pgsql-admin@arkaria.postgresql.org; Fri, 22 May 2015 09:38:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YvjP2-0007dj-65 for pgsql-admin@postgresql.org; Fri, 22 May 2015 09:38:04 +0000 Received: from nm23-vm0.bullet.mail.ne1.yahoo.com ([98.138.91.57]) by magus.postgresql.org with esmtps (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1YvjOy-0003BR-BG for pgsql-admin@postgresql.org; Fri, 22 May 2015 09:38:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1432287477; bh=M3cyoAyq7/C0x+zPAX9h3nVmFUnLP1EgOJEq7rVUAb0=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=FTUFvldxu6ziDvvTIWYaqyLVsCKZMLrtuNF+cQTXdnO53l+vqfaFGSC3oZkGCKxzQYkrBvTs8MUIZnOI9HpCOacg8uVVTlSTeUeIaJ8mGyl4DHh6KTxxjYJcYklhMkBv9nf6+d2BGIOLRlbcyKXakWGsLRTTsqy6noH9kltJdxuAHZBTaUxO5mWmiLfC9zD6WE/57cd3cNYlqtAEWUvgm4+OHIr+UNNGOUSexTBTx7glJHTIwkBpIuTMpbc1GYbBWAVaU+gXvAcEDCrpSnehVncjvOabNrcG0+j36vtt7atQfvBrOM69Cmx7pQY5e8siZ69pr3NaG7HPFKGpPjKo0w== Received: from [98.138.226.177] by nm23.bullet.mail.ne1.yahoo.com with NNFMP; 22 May 2015 09:37:57 -0000 Received: from [212.82.98.75] by tm12.bullet.mail.ne1.yahoo.com with NNFMP; 22 May 2015 09:37:57 -0000 Received: from [127.0.0.1] by omp1012.mail.ir2.yahoo.com with NNFMP; 22 May 2015 09:37:56 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 841726.31029.bm@omp1012.mail.ir2.yahoo.com X-YMail-OSG: frQ8nzcVM1mQGGfTXK8859CRivZ7a0PD9G5SGD2Jm_DqrDCMd0OE4ch3sn0VX6o DCl2FQUI_BpsyAA1PFv7_n0sFZbIRIGRgskIs9BrGIdtDTzRmbfNq4RBKqbe4dXiT1ENwg7Kc4kM RqK_ZDbpEjJS6i8AM_yfLH28NJoJQ.ZjqPxA5YnSVoiTgRLg5ko3PXMBFbtpJbm3C0uZA7Rw3KNY o6vIT8R2OZSZlBQbmlhwxZTmzIvVnp573Ap31pf4hqZrKdmVAJ2qwu1sim4huzdJWsvniU27MC4b 1lBWZnP8D46ZVrB6ahlpYfqN7qZjGKC6_3MWCmobnYlAUxprPuliie7xQDivVacpIehM.xKcU7Jq kuELj58p9eyG3Conp47SE.eKjz3WLYpi08cjiRJ.TsSt1LBZsfi.T._YILuXbxBxWSdMPq8iMH_Z MMJr74avakeGpoWteSjeCy0ysVYnKfxV1AZIUIVqyrMRGYYHvEm1Zj8IjXMfIo.SXyw37RYGC7QB 3Uiz5 Received: by 212.82.98.116; Fri, 22 May 2015 09:37:56 +0000 Date: Fri, 22 May 2015 09:37:36 +0000 (UTC) From: Glyn Astill Reply-To: Glyn Astill To: Thomas SIMON Cc: "pgsql-admin@postgresql.org" Message-ID: <339846919.317679.1432287456484.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <555E0E29.4030100@neteven.com> References: <555E0E29.4030100@neteven.com> Subject: Re: Performances issues with SSD volume ? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Length: 2325 X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org > From: Thomas SIMON > To: Glyn Astill > Cc: "pgsql-admin@postgresql.org" > Sent: Thursday, 21 May 2015, 17:56 > Subject: Re: [ADMIN] Performances issues with SSD volume ? >=20 > Le 21/05/2015 16:30, Glyn Astill a =C3=A9crit : >>=20 >>>> I think at this point you could do with going back and trying to=20 > reproduce >>>> the issue, then trace back up to pg_stat_activity to see what=20 > activity could be >>>> causing the disk i/o. I assume you've tried to reproduce the=20 > disk issues >>>> with a simple disk benchmark like bonnie++? >>> Yes, I think the same thing. Probably I will doing this tomorrow early >>> in the morning. >>> I tried to reproduce disk issues with different stress tests like >>> bonnie, fio, tsung, and I use a more realistic scenario with pgreplay= =20 > to >>> reproduce my production trafic from postgresql logfile. >>> However, I'm note sure how to diagnostic performance issues. >>> I mean, if I see ssd are 100% full, how can I figure out why their >>> behavior changes ? >>>=20 >> Well the disk benchmarks are purely to see what your disks are capable = of,=20 > and help with your initial tuning. >>=20 >>=20 >> You need to trace back which processes are causing most of the IO=20 > you're seeing, as well as the postgresql logs something like iotop, or ds= tat=20 > with the --top-bio option might help you there. >>=20 >>=20 >> You could also look at the pg_statio_user_tables view to narrow down wh= ich=20 > tables are being hit the hardest, which might give you some clues. > Is there something to activate for seeing something in this table ? > Because its empty on my production server >=20 > postgres=3D# select * from pg_statio_user_tables; > relid | schemaname | relname | heap_blks_read | heap_blks_hit |=20 > idx_blks_read | idx_blks_hit | toast_blks_read | toast_blks_hit |=20 > tidx_blks_read | tidx_blks_hit > -------+------------+---------+----------------+---------------+---------= ------+--------------+-----------------+----------------+----------------+-= -------------- > (0 rows) >=20 Looks like you need to set track_counts=3Don then. Infact if you've got tr= ack_counts off then you're also not running autovacuum, that's a warning fl= ag unless it's intentional. --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin