Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 4930D1337C73 for ; Fri, 8 Apr 2011 11:24:48 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 48235-07 for ; Fri, 8 Apr 2011 14:24:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-px0-f174.google.com (mail-px0-f174.google.com [209.85.212.174]) by mail.postgresql.org (Postfix) with ESMTP id 66C0D1337CD6 for ; Fri, 8 Apr 2011 10:33:17 -0300 (ADT) Received: by pxi15 with SMTP id 15so1759215pxi.33 for ; Fri, 08 Apr 2011 06:33:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=/IDMKxo6x+rUiPPv/3eRzyy9Cx0VLPYd1QTct6e/ZVM=; b=GRTKyL0diYraEhDyU8NaWAocLT8j52GyL9dCz4qFbSer9Hp3kxD8ZVkBvvN2BWWvo1 2Q4D+uOTZmaiG7eFPJcdBsSFXyQRTkCn6+UATUd68sTExnySEfeBJSyzt6UfUkoX9aRo ChmYjrMazUl/bodz1BTeBsj2KQPiThD+Nok7I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=x4il1St8asdY3ARBd1MTtEHBT6lqGylyy+XjwhEjfzCOq5VDEb+fQ1KbvSV1DnmJpQ /BH9/h61lfQepvC6w88R13ybDA73LupLECJSw5Cy0RIi4msX2tlVQ5TmJHwvNssmzNNP 7G1NLsDoH1Mo8Uxj9o35IFTErdOXdgH3YQuzo= MIME-Version: 1.0 Received: by 10.142.253.20 with SMTP id a20mr1910490wfi.190.1302269597511; Fri, 08 Apr 2011 06:33:17 -0700 (PDT) Received: by 10.68.51.161 with HTTP; Fri, 8 Apr 2011 06:33:17 -0700 (PDT) In-Reply-To: <1302266587288-4290723.post@n5.nabble.com> References: <1302208932097-4289407.post@n5.nabble.com> <1302215437402-4289630.post@n5.nabble.com> <1302266587288-4290723.post@n5.nabble.com> Date: Fri, 8 Apr 2011 08:33:17 -0500 Message-ID: Subject: Re: PostgreSQL backend process high memory usage issue From: Merlin Moncure To: Shianmiin Cc: pgsql-general@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.777 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201104/302 X-Sequence-Number: 174658 On Fri, Apr 8, 2011 at 7:43 AM, Shianmiin wrote: > Hi Merlin, > > I revised the test code with attached files and use pgbench to send the test > queries. > > http://postgresql.1045698.n5.nabble.com/file/n4290723/dotest dotest > http://postgresql.1045698.n5.nabble.com/file/n4290723/initialize.sql > initialize.sql > http://postgresql.1045698.n5.nabble.com/file/n4290723/test.sql test.sql Not to beat on your test some more, but spamming count(*) is probably not a good real world indicator of application performance (but it might be). I'm assuming your memory usage problem has gone away? merlin