X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DEA02529F3 for ; Fri, 29 Jul 2005 17:20:10 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 34528-09 for ; Fri, 29 Jul 2005 20:20:05 +0000 (GMT) Received: from mail1.catalyst.net.nz (godel.catalyst.net.nz [202.78.240.40]) by svr1.postgresql.org (Postfix) with ESMTP id 808D7529FA for ; Fri, 29 Jul 2005 17:20:03 -0300 (ADT) Received: from 222-152-153-141.jetstream.xtra.co.nz ([222.152.153.141] helo=lamb.mcmillan.net.nz) by mail1.catalyst.net.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1DybKt-0004Kk-4e; Sat, 30 Jul 2005 08:20:03 +1200 Received: from lamb.mcmillan.net.nz (lamb.mcmillan.net.nz [127.0.0.1]) by lamb.mcmillan.net.nz (Postfix) with ESMTP id 0B4387A0056; Sat, 30 Jul 2005 08:19:31 +1200 (NZST) Subject: Re: Performance problems testing with Spamassassin 3.1.0 From: Andrew McMillan To: Matthew Schumacher Cc: pgsql-performance@postgresql.org In-Reply-To: <42EA6966.8090402@aptalaska.net> References: <42E80C28.2040608@aptalaska.net> <1122532023.25574.1.camel@localhost.localdomain> <42E9749F.6000709@aptalaska.net> <1122616211.5691.340.camel@lamb.mcmillan.net.nz> <42EA6966.8090402@aptalaska.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-DNVOu4hRQ9hQ5n4gHR3j" Date: Sat, 30 Jul 2005 08:19:31 +1200 Message-Id: <1122668371.5691.352.camel@lamb.mcmillan.net.nz> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200507/486 X-Sequence-Number: 13727 --=-DNVOu4hRQ9hQ5n4gHR3j Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2005-07-29 at 09:37 -0800, Matthew Schumacher wrote: > >=20 > > On my laptop this takes: > >=20 > > real 1m33.758s > > user 0m4.285s > > sys 0m1.181s > >=20 > > One interesting effect is the data in bayes_vars has a huge number of > > updates and needs vacuum _frequently_. After the run a vacuum full > > compacts it down from 461 pages to 1 page. > >=20 >=20 > I wonder why your laptop is so much faster. My 2 min 30 sec test was > done on a dual xeon with a LSI megaraid with 128MB cache and writeback > caching turned on. I only do development stuff on my laptop, and all of my databases are reconstructable from copies, etc... so I turn off fsync in this case. > How often should this table be vacuumed, every 5 minutes? I would be tempted to vacuum after each e-mail, in this case. > Also, this test goes a bit faster with sync turned off, if mysql isn't > using sync that would be why it's so much faster. Anyone know what the > default for mysql is? It depends on your table type for MySQL. For the data in question (i.e. bayes scoring) it would seem that not much would be lost if you did have to restore your data from a day old backup, so perhaps fsync=3Dfalse is OK for this particular application. Regards, Andrew McMillan. ------------------------------------------------------------------------- Andrew @ Catalyst .Net .NZ Ltd, PO Box 11-053, Manners St, Wellington WEB: http://catalyst.net.nz/ PHYS: Level 2, 150-154 Willis St DDI: +64(4)803-2201 MOB: +64(272)DEBIAN OFFICE: +64(4)499-2267 What we wish, that we readily believe. -- Demosthenes ------------------------------------------------------------------------- --=-DNVOu4hRQ9hQ5n4gHR3j Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBC6o9TjJA0f48GgBIRAvYxAJ0bPLVgHixIXfve5oiOg+k2aFv0+QCfTqh6 4bza1zu2EkvnPnd0PAJFz+c= =ICIU -----END PGP SIGNATURE----- --=-DNVOu4hRQ9hQ5n4gHR3j--