Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 11304BBDD49 for ; Fri, 18 Nov 2011 05:56:12 -0400 (AST) Received: from mail.morefoo.com ([207.99.53.222]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RRLB4-0001Ga-76 for pgsql-performance@postgresql.org; Fri, 18 Nov 2011 09:56:11 +0000 Received: from nac.morefoo.com (mail.morefoo.com [207.99.53.222]) by mail.morefoo.com (Postfix) with ESMTP id E2B602DECB2 for ; Fri, 18 Nov 2011 04:55:56 -0500 (EST) X-Virus-Scanned: amavisd-new at morefoo.com Received: from mail.morefoo.com ([207.99.53.222]) by nac.morefoo.com (nac.morefoo.com [207.99.53.222]) (amavisd-new, port 10024) with ESMTP id Gi+huNthmvrD for ; Fri, 18 Nov 2011 04:55:55 -0500 (EST) Received: from [10.3.2.41] (unknown [96.57.144.66]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: css@morefoo.com) by mail.morefoo.com (Postfix) with ESMTPSA id 5169E2DAAC6 for ; Fri, 18 Nov 2011 04:55:55 -0500 (EST) Subject: Benchmarking tools, methods From: CSS Content-Type: text/plain; charset=us-ascii Message-Id: <22E8DA4D-5D07-4B2B-920A-DA29650C1909@morefoo.com> Date: Fri, 18 Nov 2011 04:55:54 -0500 To: pgsql-performance@postgresql.org Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) X-Archive-Number: 201111/234 X-Sequence-Number: 45745 Hello, I'm going to be testing some new hardware (see = http://archives.postgresql.org/pgsql-performance/2011-11/msg00230.php) = and while I've done some very rudimentary before/after tests with = pgbench, I'm looking to pull more info than I have in the past, and I'd = really like to automate things further. I'll be starting with basic disk benchmarks (bonnie++ and iozone) and = then moving on to pgbench. I'm running FreeBSD and I'm interested in getting some baseline info on = UFS2 single disk (SATA 7200/WD RE4), gmirror, zfs mirror, zfs raidz1, = zfs set of two mirrors (ie: two mirrored vdevs in a mirror). Then I'm = repeating that with the 4 Intel 320 SSDs, and just to satisfy my = curiosity, a zfs mirror with two of the SSDs mirrored as the ZIL. Once that's narrowed down to a few practical choices, I'm moving on to = pgbench. I've found some good info here regarding pgbench that is = unfortunately a bit dated: = http://www.westnet.com/~gsmith/content/postgresql/ A few questions: -Any favorite automation or graphing tools beyond what's on Greg's site? -Any detailed information on creating "custom" pgbench tests? -Any other postgres benchmarking tools? I'm also curious about benchmarking using my own data. I tried = something long ago that at least gave the illusion of working, but = didn't seem quite right to me. I enabled basic query logging on one of = our busier servers, dumped the db, and let it run for 24 hours. That = gave me the normal random data from users throughout the day as well as = our batch jobs that run overnight. I had to grep out and reformat the = actual queries from the logfile, but that was not difficult. I then = loaded the dump into the test server and basically fed the saved queries = into it and timed the result. I also hacked together a script to sample = cpu and disk stats every 2S and had that feeding into an rrd database so = I could see how "busy" things were. In theory, this sounded good (to me), but I'm not sure I trust the = results. Any suggestions on the general concept? Is it sound? Is = there a better way to do it? I really like the idea of using (our) real = data. Lastly, any general suggestions on tools to collect system data during = tests and graph it are more than welcome. I can homebrew, but I'm sure = I'd be reinventing the wheel. Oh, and if anyone wants any tests run that would not take an insane = amount of time and would be valuable to those on this list, please let = me know. Since SSDs have been a hot topic lately and not everyone has a = 4 SSDs laying around, I'd like to sort of focus on anything that would = shed some light on the whole SSD craze. The box under test ultimately will have 32GB RAM, 2 quad core 2.13GHz = Xeon 5506 cpus and 4 Intel 320 160GB SSDs. I'm recycling some older = boxes as well, so I have much more RAM on hand until those are finished. Thanks, Charles ps - considering the new PostgreSQL Performance book that Packt has, any = strong feelings about that one way or the other? Does it go very far = beyond what's on the wiki?=