X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id B185DEFFB0 for ; Fri, 6 Jun 2003 21:36:20 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 98480-04 for ; Fri, 6 Jun 2003 21:36:19 +0000 (GMT) Received: from irko.smoothcorp.com (unknown [208.49.241.41]) by svr1.postgresql.org (Postfix) with ESMTP id EAF5CEFF9C for ; Fri, 6 Jun 2003 21:36:18 +0000 (GMT) Received: from jgardner.ifloor.com ([10.0.1.63]) by irko.smoothcorp.com with esmtp (Exim 4.12) id 19OOsl-0004uH-00; Fri, 06 Jun 2003 14:36:19 -0700 Received: from jgardner.ifloor.com (localhost.localdomain [127.0.0.1]) by jgardner.ifloor.com (8.12.8/8.12.8) with ESMTP id h56LaLrW022653; Fri, 6 Jun 2003 14:36:21 -0700 Received: from localhost (localhost [[UNIX: localhost]]) by jgardner.ifloor.com (8.12.8/8.12.8/Submit) id h56LaKHQ022651; Fri, 6 Jun 2003 14:36:20 -0700 From: Jonathan Gardner To: "Lending, Rune" , "'pgsql-admin@postgresql.org'" Subject: Re: Shared_buffers and kernel parameters, tuning Date: Fri, 6 Jun 2003 14:36:18 -0700 User-Agent: KMail/1.5 References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline Message-Id: <200306061436.19798.jgardner@jonathangardner.net> X-SA-Exim-Rcpt-To: rune.lending@inpoc.com, pgsql-admin@postgresql.org X-SA-Exim-Scanned: No; SAEximRunCond expanded to false X-Archive-Number: 200306/39 X-Sequence-Number: 9030 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 05 June 2003 01:10, Lending, Rune wrote: > It is very difficult to test > the actual performance since there is a hugh difference in traffic on dev > and prod. I would resolve this problem as well. How can you know any of your changes= =20 won't cause severe problems? Using your favorite scripting language, and your knowledge of what statemen= ts=20 are being executed, you should devise some test processes that mimic the=20 statements being run on production. Then, have a computer (or several, if= =20 need be) launch a whole bunch of processes that run these statements agains= t=20 the dev server. It isn't too hard to generate appropriate traffic on the de= v=20 server. And you will be very pleased with the ability to experiment with mo= re=20 load and various settings. Plus, you can measure how long each statement=20 takes to run, and track how indexes and variations on statements will affec= t=20 performance. I think this is fundamental to any performance tweaks. If you have no way t= o=20 control the traffic to the server, and you have no way of measuring the=20 performance, how can you tell if what you did helped or hurt? - --=20 Jonathan Gardner (was jgardn@alumni.washington.edu) Live Free, Use Linux! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+4QlSWgwF3QvpWNwRApJxAKC1XU/h2ypAcCf0ewJU+xuD14powQCgqMOT LKUWPrHPEugf5r7C+kP3eSM=3D =3DXkNs -----END PGP SIGNATURE-----