Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id E6F211336FA7 for ; Fri, 8 Apr 2011 18:27:27 -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 94881-01 for ; Fri, 8 Apr 2011 21:27:05 +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 DC2641337B9C for ; Fri, 8 Apr 2011 18:27:04 -0300 (ADT) Received: by pxi15 with SMTP id 15so1939121pxi.33 for ; Fri, 08 Apr 2011 14:27:04 -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=thbIgSN8TU7nKw68LyNLK3+GUZCmM+K7pewgVRQgLSs=; b=LOO64sr8R4KuByhHK3+aMZUQdVyrXk1O1zmdtTT9VpU+6FT1/dUL8SttFYN6ph0EsC JBrnUh2QE49GE7LVJI0hj1qDZsz/pamyaX/T6uUFWh2T00HmvUPeLk1h0i8Ki6LXWuj1 ZVhcwbX5euZ0jXnms2sid7wM+UlKAvV+VYHcg= 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=TlRBVM9v0cq13fHTZevHi1/q07imecQbbfl+ROf2mBfvteDndmhYzwwUYnOWuIHqc/ 1MbbU+cNORZ4VOCB/pwtLc/Msjji6kSFh88fwy8IC/C7sCiIj2H03xRY+g2jcUJiB2Uk 4INQIM2FDqvXQmNAJc4UASoKsPpwsa1HOrxmM= MIME-Version: 1.0 Received: by 10.142.218.21 with SMTP id q21mr2380066wfg.247.1302298024408; Fri, 08 Apr 2011 14:27:04 -0700 (PDT) Received: by 10.68.51.161 with HTTP; Fri, 8 Apr 2011 14:27:04 -0700 (PDT) In-Reply-To: <1302289242961-4291699.post@n5.nabble.com> 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> Date: Fri, 8 Apr 2011 16:27:04 -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=-1.899 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201104/336 X-Sequence-Number: 174692 On Fri, Apr 8, 2011 at 2:00 PM, Shianmiin 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