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 BE56552825 for ; Fri, 29 Jul 2005 02:50:25 -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 40532-02 for ; Fri, 29 Jul 2005 05:50:15 +0000 (GMT) Received: from mail1.catalyst.net.nz (godel.catalyst.net.nz [202.78.240.40]) by svr1.postgresql.org (Postfix) with ESMTP id 79D035282E for ; Fri, 29 Jul 2005 02:50:13 -0300 (ADT) Received: from leibniz.catalyst.net.nz ([202.78.240.7] 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 1DyNl6-0004VQ-Ho; Fri, 29 Jul 2005 17:50:12 +1200 Received: from lamb.mcmillan.net.nz (lamb.mcmillan.net.nz [127.0.0.1]) by lamb.mcmillan.net.nz (Postfix) with ESMTP id 2200D5B8006; Fri, 29 Jul 2005 17:50:12 +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: <42E9749F.6000709@aptalaska.net> References: <42E80C28.2040608@aptalaska.net> <1122532023.25574.1.camel@localhost.localdomain> <42E9749F.6000709@aptalaska.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-91YWh4BVVTMDV4QRW/zg" Date: Fri, 29 Jul 2005 17:50:11 +1200 Message-Id: <1122616211.5691.340.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/463 X-Sequence-Number: 13704 --=-91YWh4BVVTMDV4QRW/zg Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2005-07-28 at 16:13 -0800, Matthew Schumacher wrote: >=20 > Ok, I finally got some test data together so that others can test > without installing SA. >=20 > The schema and test dataset is over at > http://www.aptalaska.net/~matt.s/bayes/bayesBenchmark.tar.gz >=20 > I have a pretty fast machine with a tuned postgres and it takes it about > 2 minutes 30 seconds to load the test data. Since the test data is the > bayes information on 616 spam messages than comes out to be about 250ms > per message. While that is doable, it does add quite a bit of overhead > to the email system. On my laptop this takes: real 1m33.758s user 0m4.285s sys 0m1.181s 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. Regards, Andrew. ------------------------------------------------------------------------- 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 I don't do it for the money. -- Donald Trump, Art of the Deal ------------------------------------------------------------------------- --=-91YWh4BVVTMDV4QRW/zg 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) iD8DBQBC6cOTjJA0f48GgBIRAoDGAJ46aWRNT5DpkFeA0vPBOfn6CPcesACeLj4T v51QgQ+CZI5hJVrtZsm39IY= =VAB8 -----END PGP SIGNATURE----- --=-91YWh4BVVTMDV4QRW/zg--