Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YLLDD-0001FO-17 for pgsql-performance@arkaria.postgresql.org; Wed, 11 Feb 2015 00:31:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YLLDB-0003zi-MS for pgsql-performance@arkaria.postgresql.org; Wed, 11 Feb 2015 00:31:25 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YLLDA-0003zb-Hc for pgsql-performance@postgresql.org; Wed, 11 Feb 2015 00:31:24 +0000 Received: from mail.catalyst.net.nz ([2404:130:0:10::40:0]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YLLD6-0001HF-F2 for pgsql-performance@postgresql.org; Wed, 11 Feb 2015 00:31:22 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.catalyst.net.nz (Postfix) with ESMTP id 54BB731C76; Wed, 11 Feb 2015 13:31:17 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at catalyst.net.nz Received: from mail.catalyst.net.nz ([127.0.0.1]) by localhost (bertrand.catalyst.net.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1Slbn3vlUNrh; Wed, 11 Feb 2015 13:31:16 +1300 (NZDT) Received: from [192.168.1.64] (122-61-19-133.jetstream.xtra.co.nz [122.61.19.133]) (Authenticated sender: mark.kirkwood) by mail.catalyst.net.nz (Postfix) with ESMTPSA id EDFB332305; Wed, 11 Feb 2015 13:31:15 +1300 (NZDT) Message-ID: <54DAA2D3.1000605@catalyst.net.nz> Date: Wed, 11 Feb 2015 13:31:15 +1300 From: Mark Kirkwood User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Gavin Flower , pgsql-performance@postgresql.org Subject: Re: Survey: Max TPS you've ever seen References: <54D9269C.9080808@archidevsys.co.nz> In-Reply-To: <54D9269C.9080808@archidevsys.co.nz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 10/02/15 10:29, Gavin Flower wrote: > On 10/02/15 08:30, Luis Antonio Dias de Sá Junior wrote: >> Hi, >> >> A survay: with pgbench using TPS-B, what is the maximum TPS you're >> ever seen? >> >> For me: 12000 TPS. >> >> -- >> Luis Antonio Dias de Sá Junior > Important to specify: > > 1. O/S > 2. version of PostgreSQL > 3. PostgreSQL configuration > 4. hardware configuration > 5. anything else that might affect performance > > I suspect that Linux will out perform Microsoft on the same hardware, > and optimum configuration for both O/S's... > Yes, exactly - and also the pgbench parameters: - scale - number of clients - number of threads - statement options (prepared or simple etc) - length of test We've managed to get 40000 to 60000 TPS on some pretty serious hardware: - 60 core, 1 TB ram - 16 SSD + 4 PCIe SSD storage - Ubuntu 14.04 - Postgres 9.4 (beta and rc) ...with Postgres parameters customized: - checkpoint_segments 1920 - checkpoint_completion_target 0.8 - wal_buffers 256MB - wal_sync_method open_datasync - shared_buffers 10GB - max_connections 600 - effective_io_concurrency 10 ..and finally pgbench parameters - scale 2000 - clients 32, 64, 128, 256 (best results at 32 and 64 generally) - threads = 1/2 client number - prepared option - 10 minute test run time Points to note, we did *not* disable fsync or prevent buffers being actually written (common dirty tricks in benchmarks). However, as others have remarked - raw numbers mean little. Pgbench is very useful for testing how tuning configurations are helping (or not) for a particular hardware and software setup, but is less useful for answering the question "how many TPS can postgres do"... Regards Mark -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance