Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YvRW0-0003bA-5j for pgsql-admin@arkaria.postgresql.org; Thu, 21 May 2015 14:32:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YvRVz-0001iv-HJ for pgsql-admin@arkaria.postgresql.org; Thu, 21 May 2015 14:32:03 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YvRVw-0001im-OF for pgsql-admin@postgresql.org; Thu, 21 May 2015 14:32:00 +0000 Received: from nm26-vm0.bullet.mail.bf1.yahoo.com ([98.139.213.74]) by makus.postgresql.org with esmtps (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1YvRVt-0006yJ-Oi for pgsql-admin@postgresql.org; Thu, 21 May 2015 14:31:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1432218715; bh=9fHeinPe6kDsQ2zrZc+Nz6MKn8KRCEASr5Y/X8u86wg=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=d5yf8d+QTN0zZCmTPM+oNG77phVJW2URSB4PU/1Un7Lh+XDu2YRDCq1YoaVCgfPZxmfX5O64EirVoY+inQmrM2dYs/LU5HxO40q9/M0kz85ycAjfbe8MSVj56mnAqi3dCiYe+fYwhJz/rs3druOJI9ns8wWOCQ3MUkFrruIYg663JINoW10mK2Wl5WF4EFII9JhMnjn7xwPvFBPwH1ICv5ZQPCAxLklhdlR9LrrmNQzgSZrR/VrSmEn3pbndjldodDOVLx/CQUHfXlL1c/xzsP+iV3iMTV3Q8CT3t++xtLzghEOsY38WdfJZnqkxo+5SMIgfAWTVoWunLfMqgHm8bQ== Received: from [98.139.215.143] by nm26.bullet.mail.bf1.yahoo.com with NNFMP; 21 May 2015 14:31:55 -0000 Received: from [212.82.98.66] by tm14.bullet.mail.bf1.yahoo.com with NNFMP; 21 May 2015 14:31:55 -0000 Received: from [127.0.0.1] by omp1003.mail.ir2.yahoo.com with NNFMP; 21 May 2015 14:31:55 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 591446.56358.bm@omp1003.mail.ir2.yahoo.com X-YMail-OSG: sMwrmdMVM1ni6L69dZPjZl6aZXI5PzY9wAK5n_5._rD7gVqjGlS0yuvC6.bwY9r edtYsB_zBtZOFLFDeLFqrmeofaUlWMeXBZC3Up5yaZN2SG6r70hthJlyc3X68XgIh1Ku_gCCF8.6 nceyzeRb2Ql0ygJKkh6mwcIPsIipHcC671D1CnZcPj4Vyplp.fdFB5PXJFbLUXe4T.uU5LbUkXXf v1IkUg2kwg_kUzfQuYiX6oItrsEmz1szumthvtTrd7aaKCQieGQtBAjIOCQS3k5iUz9knSIDymTr no_zcVy5tMs6zwDmwPc0J.P53g6xWLo8HHMRMtl3UXpl9.RJGFrkSXo4z4GbK6SzgZ9j1dtfncML Uxk0QrXxqjFAoRSVsS3syJgRCqWqHLP5Ir6cnaIzCTXaAH7IAuK4H6Ief35SQ.oNlHzZleLuIKmq 518Bl4UEVNfGmjKZCvkObSSH8FG7oyVx.gUJQCgkIVW7T_Yz7VWcS1CUy3S3W8wZ3e9.OqFDo7i8 ChkQtjfInK6o- Received: by 212.82.98.118; Thu, 21 May 2015 14:31:54 +0000 Date: Thu, 21 May 2015 14:30:55 +0000 (UTC) From: Glyn Astill Reply-To: Glyn Astill To: Thomas SIMON Cc: "pgsql-admin@postgresql.org" Message-ID: <1531490365.5920903.1432218656001.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <555DE32B.4000706@neteven.com> References: <555DE32B.4000706@neteven.com> Subject: Re: Performances issues with SSD volume ? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Length: 2104 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 >> I think at this point you could do with going back and trying to reproduce >> the issue, then trace back up to pg_stat_activity to see what activity could be >> causing the disk i/o. I assume you've tried to reproduce the 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 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 ? > Well the disk benchmarks are purely to see what your disks are capable of, and help with your initial tuning. You need to trace back which processes are causing most of the IO you're seeing, as well as the postgresql logs something like iotop, or dstat with the --top-bio option might help you there. You could also look at the pg_statio_user_tables view to narrow down which tables are being hit the hardest, which might give you some clues. Also see here: https://wiki.postgresql.org/wiki/Performance_Analysis_Tools https://wiki.postgresql.org/wiki/Monitoring > > I'm asking myself another question, about master/slave configuration. > For doing my test, I will put my ssd server as slave of hdd server. Unless you've got a mainly read-only worlkoad, you can't really test the slave properly that way as all it's doing is replaying the wal. > After that, I will promote him as master. > In case I still have performance issues and I must do a rollback, am I > necessarily forced to reconstruct completely my new slave (hdd) with > pg_basebackup (and wait some hours file are transferer), or can I > promote directly this old master as a slave without pending time to > reconstruct (as files should be the same on both servers) ? > Yes you will need to rebuild it or look at pg_rewind: https://github.com/vmware/pg_rewind -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin