Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 4161B633577 for ; Thu, 24 Jun 2010 15:58:57 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 34738-01-2 for ; Thu, 24 Jun 2010 18:58:49 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 8937F633E04 for ; Thu, 24 Jun 2010 15:58:35 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id F30BF34C211; Thu, 24 Jun 2010 11:58:28 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lbRtKydo1py9; Thu, 24 Jun 2010 11:58:26 -0700 (PDT) Received: from perhan.alvh.no-ip.org (190-95-17-80.bk17-dsl.surnet.cl [190.95.17.80]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 8391934C210; Thu, 24 Jun 2010 11:58:26 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 05A9C6E7F2; Thu, 24 Jun 2010 14:58:24 -0400 (CLT) Content-Type: text/plain; charset=UTF-8 Cc: Kevin Grittner , pgsql-performance Subject: Re: cpu bound postgresql setup. From: Alvaro Herrera To: Rajesh Kumar Mallah In-reply-to: References: <4C220163020000250003291B@gw.wicourts.gov> <4C22096E020000250003292B@gw.wicourts.gov> <4C220C2C0200002500032930@gw.wicourts.gov> <4C23332E0200002500032A1C@gw.wicourts.gov> Date: Thu, 24 Jun 2010 14:58:23 -0400 Message-Id: <1277405847-sup-5188@alvh.no-ip.org> User-Agent: Sup/0.11 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-10 required=5 tests=BAYES_40=-0.001 X-Spam-Level: X-Archive-Number: 201006/440 X-Sequence-Number: 39296 Excerpts from Rajesh Kumar Mallah's message of jue jun 24 13:25:32 -0400 2010: > What prompted me to post to list is that the server transitioned from > being IO bound to CPU bound and 90% of syscalls being > lseek(XXX, 0, SEEK_END) = YYYYYYY It could be useful to find out what file is being seeked. Correlate the XXX with files in /proc//fd (at least on Linux) to find out more. -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support