Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id EC3159FB5D2 for ; Tue, 23 Jan 2007 12:11:15 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 94833-07 for ; Tue, 23 Jan 2007 12:11:12 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from web60714.mail.yahoo.com (web60714.mail.yahoo.com [209.73.178.217]) by postgresql.org (Postfix) with SMTP id 30CF39FB5CD for ; Tue, 23 Jan 2007 12:11:12 -0400 (AST) Received: (qmail 22705 invoked by uid 60001); 23 Jan 2007 16:11:11 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=1dTdN+8QXZ83SyRq+fwFsDVk7ayrZrNqTPAWnCyn7wbILhuMSpohQ4s27TWiuD4XcIUF2ICznAdKVZ6Xh5mluxClP+cxJVd2UFuL4Fo3ucMK4ksY3TsBF8aC0Tj4N7jBfh35YAQUGiPFf0B36GCQ5IyY1FBxzIPYBBYkgJ5S9Do=; X-YMail-OSG: 9WqYUlMVM1nfzUog7Kxm21Kw.bP6EXW.fq.7cIC9fbBwBQaWrOxdRodC8ak4nxK4OUDaXbA4nkzxrrERqv4Eu95y8k8.1lr_NdpXr1WwhzU4iFQNn.hZzGCL1bkju8jQC8mK5MEDbQFCtcDTrsIsprkQiuCRZ7XQL4bfK5ryx4qFYRbgApg8tiNZLGdiEEDnF2INYhFl Received: from [66.152.238.10] by web60714.mail.yahoo.com via HTTP; Tue, 23 Jan 2007 08:11:11 PST Date: Tue, 23 Jan 2007 08:11:11 -0800 (PST) From: Subramaniam Aiylam Subject: Postgres processes have a burst of CPU usage To: pgsql-performance@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <519784.22637.qm@web60714.mail.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.592 tagged_above=0 required=5 tests=AWL, BAYES_50, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, DNS_FROM_RFC_WHOIS X-Spam-Level: ** X-Archive-Number: 200701/351 X-Sequence-Number: 22952 Hello all, I have a setup in which four client machines access a Postgres database (8.1.1) (on a Linux box). So, there are connections from each machine to the database; hence, the Linux box has about 2 postgres processes associated with each machine. I am using the JDBC driver (postgresql-8.1-404.jdbc3.jar) to talk to the database. I am also using the Spring framework(1.2.2) and Hibernate (3.0.5) on top of JDBC. I use Apache's DBCP database connection pool (1.2.1). Now, there is one particular update that I make from one of the client machines - this involves a reasonably large object graph (from the Java point of view). It deletes a bunch of rows (around 20 rows in all) in 4-5 tables and inserts another bunch into the same tables. When I do this, I see a big spike in the CPU usage of postgres processes that are associated with ALL the client machines, not just the one I executed the delete/insert operation on. The spike seems to happen a second or two AFTER the original update completes and last for a few seconds. Is it that this operation is forcibly clearing some client cache on ALL the postgres processes? Why is there such an interdependency? Can I set some parameter to turn this off? Regards and thanks, S.Aiylam ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com