Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 957791337C11 for ; Fri, 8 Apr 2011 19:09:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 78585-03-5 for ; Fri, 8 Apr 2011 22:08:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id 29DF21337C3D for ; Fri, 8 Apr 2011 19:07:43 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1Q8JqB-0001p4-0b for pgsql-general@postgresql.org; Fri, 08 Apr 2011 15:07:43 -0700 Date: Fri, 8 Apr 2011 15:07:43 -0700 (PDT) From: Shianmiin To: pgsql-general@postgresql.org Message-ID: <1302300463012-4292010.post@n5.nabble.com> In-Reply-To: References: <1302208932097-4289407.post@n5.nabble.com> <1302215437402-4289630.post@n5.nabble.com> <1302266587288-4290723.post@n5.nabble.com> <1302276600400-4291173.post@n5.nabble.com> <1302289242961-4291699.post@n5.nabble.com> Subject: Re: PostgreSQL backend process high memory usage issue MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.767 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201104/338 X-Sequence-Number: 174694 Merlin Moncure-2 wrote: > > On Fri, Apr 8, 2011 at 2:00 PM, Shianmiin <Shianmiin@gmail.com> > wrote: >> Further clarification, >> >> if I run two concurrent threads >> >> pgbench memoryusagetest -c 2 -j 2 -T180 -f test.sql >> >> both backend processes uses 1.5GB and result in 3GB in total. > > yes. could you please post a capture of top after running the modified > test that does not run in single transaction. > > merlin > > -- > Sent via pgsql-general mailing list (pgsql-general@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-general > Here you are. http://postgresql.1045698.n5.nabble.com/file/n4292010/PostgreSQLBackendMemoryUsage.gif PostgreSQLBackendMemoryUsage.gif The screen shot was taken with running the following command pgbench memoryusagetest -c 2 -j 2 -T1800 -f test.sql I have to set the test time longer so that I got the chance to take the snapshot because if pgbench finishes, the connection will be gone. The snapshot was taken when I wait until the memory usage stable at 1.5GB. Please note in this tests, there are two PostgreSQL backend processes, each use 1.5GB of memory. Samuel -- View this message in context: http://postgresql.1045698.n5.nabble.com/PostgreSQL-backend-process-high-memory-usage-issue-tp4289407p4292010.html Sent from the PostgreSQL - general mailing list archive at Nabble.com.