Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UplWs-0002Ig-0Z for pgsql-performance@arkaria.postgresql.org; Thu, 20 Jun 2013 20:32:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UplWr-0001o4-Gb for pgsql-performance@arkaria.postgresql.org; Thu, 20 Jun 2013 20:32:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UplWq-0001nx-Db for pgsql-performance@postgresql.org; Thu, 20 Jun 2013 20:32:24 +0000 Received: from smtp.01.com ([199.36.142.181]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UplWl-00061N-Cw for pgsql-performance@postgresql.org; Thu, 20 Jun 2013 20:32:23 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id 54944390169; Thu, 20 Jun 2013 15:32:17 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-2.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-2.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28C79k10Yr74; Thu, 20 Jun 2013 15:32:17 -0500 (CDT) Received: from smtp.01.com (localhost [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id 28240390153; Thu, 20 Jun 2013 15:32:17 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id 0DCB0390169; Thu, 20 Jun 2013 15:32:17 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-2.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-2.01.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id H5Ew_yUID0Yy; Thu, 20 Jun 2013 15:32:16 -0500 (CDT) Received: from [172.47.23.103] (70-36-143-10.dsl.dynamic.sonic.net [70.36.143.10]) by smtp-out-2.01.com (Postfix) with ESMTPSA id 65981390153; Thu, 20 Jun 2013 15:32:15 -0500 (CDT) Message-ID: <51C366CE.10206@agliodbs.com> Date: Thu, 20 Jun 2013 13:32:14 -0700 From: Josh Berkus Organization: PostgreSQL Experts Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: pgsql-performance@postgresql.org CC: Greg Smith Subject: Re: PostgreSQL settings for running on an SSD drive References: <51C35E6C.1090705@consistentstate.com> <51C36256.6040502@optionshouse.com> In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 Folks, First, cc'ing Greg Smith to see if he can address this with the Fusion folks so that they stop giving out a bad guide. On 06/20/2013 01:13 PM, Shaun Thomas wrote: > On 06/20/2013 02:56 PM, CS DBA wrote: >=20 >> They have a PostgreSQL setup guide from Fusion recommending the >> following settings: >> effective_io_concurrency=3D0 >> bgwriter_lru_maxpages=3D0 >> random_page_cost=3D0.1 >> sequential_page_cost=3D0.1=E2=80=A8 >=20 > Well, since FusionIO drives have a limited write cycle (5PB?), I can > somewhat see why they would recommend turning off the background writer. > We were a bit more conservative in our settings, though: >=20 > seq_page_cost =3D 1.0 # Default > random_page_cost =3D 1.0 # Reduce to match seq_page_cost >=20 > Yep. That's it. Just the one setting. FusionIO drives are fast, but > they're not infinitely fast. My tests (and others) show they're about > 1/2 the speed of memory, regarding IOPS. And while they can serve very > aggressive sequential reads, they're not orders of magnitude faster than > spindles in anything but IOPS. >=20 > Knowing that, we reduced random page fetches to be the same speed as > sequential page fetches. This has served our heavy OLTP system (and its > FusionIO underpinnings) very well so far. Did you compare setting RPC to 1.0 vs. setting it to 1.1, or something else just slightly higher than SPC? --=20 Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com --=20 Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance