Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VHIcI-0006Nq-8g for pgsql-performance@arkaria.postgresql.org; Wed, 04 Sep 2013 19:19:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VHIcH-0001Q4-PQ for pgsql-performance@arkaria.postgresql.org; Wed, 04 Sep 2013 19:19:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VHIcH-0001Py-2N for pgsql-performance@postgresql.org; Wed, 04 Sep 2013 19:19:49 +0000 Received: from mail.gransy.com ([2001:1528:137::f1]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VHIcD-0000YP-7E for pgsql-performance@postgresql.org; Wed, 04 Sep 2013 19:19:48 +0000 Received: from antispam.gransy.com (antispam.gransy.com [77.78.104.124]) by mail.gransy.com (Postfix) with ESMTP id C7212508C09 for ; Wed, 4 Sep 2013 21:19:43 +0200 (CEST) X-Virus-Scanned: G-Hosting.cz + Station.cz + Klenot.cz + Subreg.cz amavisd-new at antispam.gransy.com Received: from mail.gransy.com ([82.208.44.189]) by antispam.gransy.com (antispam.gransy.com [77.78.104.124]) (amavisd-new, port 10024) with ESMTP id NzBTcW_u-Pnp for ; Wed, 4 Sep 2013 21:19:55 +0200 (CEST) Received: by mail.gransy.com (Postfix, from userid 5000) id 77269508C14; Wed, 4 Sep 2013 21:19:43 +0200 (CEST) Received: from [192.168.1.237] (ip-78-45-139-138.net.upcbroadband.cz [78.45.139.138]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.gransy.com (Postfix) with ESMTPSA id 45793508C09 for ; Wed, 4 Sep 2013 21:19:43 +0200 (CEST) Message-ID: <522787CF.7050201@fuzzy.cz> Date: Wed, 04 Sep 2013 21:19:43 +0200 From: Tomas Vondra User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: higth performance write to disk References: <52275046.3040508@audifarma.com.co> <52278150.9080501@audifarma.com.co> In-Reply-To: <52278150.9080501@audifarma.com.co> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) 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 On 4.9.2013 20:52, Jeison Bedoya Delgado wrote: > Hi merlin, Thanks for your interest, I'm using version 9.2.2, I have > a machine with 128GB RAM, 32 cores, and my BD weighs 400GB. When I > say slow I meant that while consultations take or failing a copy with > pgdump, this taking the same time before had 10K disks in raid 10 and > now that I have SSDs in Raid 10. > > That behavior is normal, or you can improve writing and reading. SSDs are great random I/O, not that great for sequential I/O (better than spinning drives, but you'll often run into other bottlenecks, for example CPU). I'd bet this is what you're seeing. pg_dump is a heavily sequential workload (read the whole table from start to end, write a huge dump to the disk). A good RAID array with 10k SAS drives can give you very good performance (I'd say ~500MB/s reads and writes for 6 drives in RAID10). I don't think the pg_dump will produce the data much faster. Have you done any tests (e.g. using fio) to test the performance of the two configurations? There might be some hw issue but if you have no benchmarks it's difficult to judge. Can you run the fio tests now? The code is here: http://freecode.com/projects/fio and there are even a basic example: http://git.kernel.dk/?p=fio.git;a=blob_plain;f=examples/ssd-test.fio And how exactly are you running the pg_dump? And collect some basic stats next time it's running, for example a few samples from vmstat 5 iostat -x -k 5 and watch top how much CPU it's using. Tomas -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance