Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 5DE8162E706 for ; Mon, 26 Jul 2010 06:21:15 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 98733-02 for ; Mon, 26 Jul 2010 09:21:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ey0-f174.google.com (mail-ey0-f174.google.com [209.85.215.174]) by mail.postgresql.org (Postfix) with ESMTP id 211296327BE for ; Mon, 26 Jul 2010 06:21:06 -0300 (ADT) Received: by eya25 with SMTP id 25so411735eya.19 for ; Mon, 26 Jul 2010 02:21:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=URFCfKerS/bm5VM4aIeofVClVq2SrvBSx4OQ/kAJQNo=; b=lGLc8dkj+lbyIXO31j+88tGU0t6WN37XvwsJmlXoMe8A750yD9G+Znn9i2PDBG+4T8 bGkcURaii4LrvWmtHxmKnhcUMmXD1poqriO53Eg0NQ6HF/7kH4OuTqmju0ko+sWHaYZe LL81TZqGGw+yz+BIZlHwN8HMrjO5oW4zkIHeE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=Xg77fyZ69tGs4QH38neTrkFTHWVHWPVPHQ5DT0jXnu1UhPU2WnI/wokeySJU2fm3fn lzNDsOEfGGUEP2Edld5iZNO8USB7ltQnHDXdJrxoIzwCKE6xGo1fgyWmRa/LkoB96LCd GBDNOkN1cgwRt5MmdQs1Ohug68wUFIhDUPsdM= Received: by 10.213.25.130 with SMTP id z2mr3452533ebb.55.1280136065063; Mon, 26 Jul 2010 02:21:05 -0700 (PDT) Received: from [0.0.0.0] (5357DA75.cable.casema.nl [83.87.218.117]) by mx.google.com with ESMTPS id v59sm5365404eeh.4.2010.07.26.02.21.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 26 Jul 2010 02:21:04 -0700 (PDT) Message-ID: <4C4D53DA.3070909@gmail.com> Date: Mon, 26 Jul 2010 11:22:34 +0200 From: Yeb Havinga User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Greg Smith CC: pgsql-performance@postgresql.org Subject: Re: Testing Sandforce SSD References: <4C4A9452.9070100@gmail.com> <4C4B1F84.5030306@2ndquadrant.com> <4C4C83DF.3010703@gmail.com> In-Reply-To: <4C4C83DF.3010703@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.622 tagged_above=-10 required=5 tests=BAYES_20=-0.001, URIBL_SBL=1.623 X-Spam-Level: * X-Archive-Number: 201007/373 X-Sequence-Number: 39762 Yeb Havinga wrote: > Greg Smith wrote: >> Put it on ext3, toggle on noatime, and move on to testing. The >> overhead of the metadata writes is the least of the problems when >> doing write-heavy stuff on Linux. > I ran a pgbench run and power failure test during pgbench with a 3 > year old computer > On the same config more tests. scale 10 read only and read/write tests. note: only 240 s. starting vacuum...end. transaction type: SELECT only scaling factor: 10 query mode: prepared number of clients: 10 duration: 240 s number of transactions actually processed: 8208115 tps = 34197.109896 (including connections establishing) tps = 34200.658720 (excluding connections establishing) yeb@client45:~$ pgbench -c 10 -l -M prepared -T 240 test starting vacuum...end. transaction type: TPC-B (sort of) scaling factor: 10 query mode: prepared number of clients: 10 duration: 240 s number of transactions actually processed: 809271 tps = 3371.147020 (including connections establishing) tps = 3371.518611 (excluding connections establishing) ---------- scale 300 (just fits in RAM) read only and read/write tests pgbench -c 10 -M prepared -T 300 -S test starting vacuum...end. transaction type: SELECT only scaling factor: 300 query mode: prepared number of clients: 10 duration: 300 s number of transactions actually processed: 9219279 tps = 30726.931095 (including connections establishing) tps = 30729.692823 (excluding connections establishing) The test above doesn't really test the drive but shows the CPU/RAM limit. pgbench -c 10 -l -M prepared -T 3600 test starting vacuum...end. transaction type: TPC-B (sort of) scaling factor: 300 query mode: prepared number of clients: 10 duration: 3600 s number of transactions actually processed: 8838200 tps = 2454.994217 (including connections establishing) tps = 2455.012480 (excluding connections establishing) ------ scale 2000 pgbench -c 10 -M prepared -T 300 -S test starting vacuum...end. transaction type: SELECT only scaling factor: 2000 query mode: prepared number of clients: 10 duration: 300 s number of transactions actually processed: 755772 tps = 2518.547576 (including connections establishing) tps = 2518.762476 (excluding connections establishing) So the test above tests the random seek performance. Iostat on the drive showed a steady just over 4000 read io's/s: avg-cpu: %user %nice %system %iowait %steal %idle 11.39 0.00 13.37 60.40 0.00 14.85 Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util sda 0.00 0.00 4171.00 0.00 60624.00 0.00 29.07 11.81 2.83 0.24 100.00 sdb 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 pgbench -c 10 -l -M prepared -T 24000 test starting vacuum...end. transaction type: TPC-B (sort of) scaling factor: 2000 query mode: prepared number of clients: 10 duration: 24000 s number of transactions actually processed: 30815691 tps = 1283.979098 (including connections establishing) tps = 1283.980446 (excluding connections establishing) Note the duration of several hours. No long waits occurred - of this last test the latency png is at http://yfrog.com/f/0vlatencywp/ and the TPS graph at http://yfrog.com/f/b5tpsp/ regards, Yeb Havinga