Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 7B8B39F9BDA for ; Tue, 11 Sep 2007 20:49:50 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 14373-06-2 for ; Tue, 11 Sep 2007 20:49:38 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id 9F4D29FA107 for ; Tue, 11 Sep 2007 20:49:45 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id E295D56447; Tue, 11 Sep 2007 23:49:43 +0000 (UTC) Received: (hashcash-sendmail, from uid 1001); Tue, 11 Sep 2007 18:49:41 -0500 Date: Tue, 11 Sep 2007 18:49:41 -0500 From: Decibel! To: Gregory Stark Cc: Jean-David Beyer , pgsql-performance@postgresql.org Subject: Re: random_page_costs - are defaults of 4.0 realistic for SCSI RAID 1 Message-ID: <20070911234941.GN38801@decibel.org> References: <87lkbdlkxw.fsf@oxford.xeocode.com> <46E676D6.70807@verizon.net> <87zlzt9ifw.fsf@oxford.xeocode.com> <46E6E338.5050403@verizon.net> <20070911213105.GF38801@decibel.org> <87r6l4ajqh.fsf@oxford.xeocode.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HwhNeuQNjiIvT81f" Content-Disposition: inline In-Reply-To: <87r6l4ajqh.fsf@oxford.xeocode.com> X-Operating-System: FreeBSD 6.1-RELEASE-p10 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.13 (2006-08-11) X-Hashcash: 1:20:070911:stark@enterprisedb.com::uYJdAyjQ78dTM0UX:000000000000000 0000000000000000000000000B3r X-Hashcash: 1:20:070911:jeandavid8@verizon.net::vEjrW6+3XPbzxfcT:000000000000000 0000000000000000000000006m6I X-Hashcash: 1:20:070911:pgsql-performance@postgresql.org::6ikw0TS1GuHYPuKT:00000 00000000000000000000000005Ey X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/210 X-Sequence-Number: 26755 --HwhNeuQNjiIvT81f Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 12, 2007 at 12:02:46AM +0100, Gregory Stark wrote: > "Decibel!" writes: >=20 > > On Tue, Sep 11, 2007 at 02:49:28PM -0400, Jean-David Beyer wrote: > >> It is tricky for me to find a big enough file to test. I tried one of = the > > > > dd if=3D/dev/zero of=3Dbigfile bs=3D8192 count=3D1000000 >=20 > On linux another useful trick is: >=20 > echo 1 > /proc/sys/vm/drop_caches The following C code should have similar effect... /* * $Id: clearmem.c,v 1.1 2003/06/29 20:41:33 decibel Exp $ * * Utility to clear out a chunk of memory and zero it. Useful for flushing = disk buffers */ int main(int argc, char *argv[]) { if (!calloc(atoi(argv[1]), 1024*1024)) { printf("Error allocating memor= y.\n"); } } --=20 Decibel!, aka Jim Nasby decibel@decibel.org EnterpriseDB http://enterprisedb.com 512.569.9461 (cell) --HwhNeuQNjiIvT81f Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQFG5ymUdO30qud8SkgRArQeAKCui/o6dEEQlUVZL47c4LWyVBUNHgCeLsK0 ovhFBYp5FQzR13Q6hZoOFqY= =S0IV -----END PGP SIGNATURE----- --HwhNeuQNjiIvT81f--