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 E5ACB52840 for ; Fri, 29 Jul 2005 00:57:42 -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 14607-05 for ; Fri, 29 Jul 2005 03:57:31 +0000 (GMT) Received: from linuxworld.com.au (unknown [203.34.46.50]) by svr1.postgresql.org (Postfix) with ESMTP id 0788852816 for ; Fri, 29 Jul 2005 00:57:29 -0300 (ADT) Received: from linuxworld.com.au (IDENT:swm@localhost.localdomain [127.0.0.1]) by linuxworld.com.au (8.13.2/8.13.2) with ESMTP id j6T3vG6D010635; Fri, 29 Jul 2005 13:57:17 +1000 Received: from localhost (swm@localhost) by linuxworld.com.au (8.13.2/8.13.2/Submit) with ESMTP id j6T3vFZ9010632; Fri, 29 Jul 2005 13:57:16 +1000 X-Authentication-Warning: linuxworld.com.au: swm owned process doing -bs Date: Fri, 29 Jul 2005 13:57:15 +1000 (EST) From: Gavin Sherry X-X-Sender: swm@linuxworld.com.au To: Matthew Schumacher Cc: pgsql-performance@postgresql.org Subject: Re: Performance problems testing with Spamassassin 3.1.0 In-Reply-To: <42E9749F.6000709@aptalaska.net> Message-ID: References: <42E80C28.2040608@aptalaska.net> <1122532023.25574.1.camel@localhost.localdomain> <42E9749F.6000709@aptalaska.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.002 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/453 X-Sequence-Number: 13694 On Thu, 28 Jul 2005, Matthew Schumacher wrote: > Karim Nassar wrote: > > On Wed, 2005-07-27 at 14:35 -0800, Matthew Schumacher wrote: > > > > > >>I put the rest of the schema up at > >>http://www.aptalaska.net/~matt.s/bayes/bayes_pg.sql in case someone > >>needs to see it too. > > > > > > Do you have sample data too? > > > > Ok, I finally got some test data together so that others can test > without installing SA. > > The schema and test dataset is over at > http://www.aptalaska.net/~matt.s/bayes/bayesBenchmark.tar.gz > > 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. I had a look at your data -- thanks. I have a question though: put_token() is invoked 120596 times in your benchmark... for 616 messages. That's nearly 200 queries (not even counting the 1-8 (??) inside the function itself) per message. Something doesn't seem right there.... Gavin