Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XSQwO-0001h8-0U for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Sep 2014 13:31:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XSQwM-0002B4-OD for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Sep 2014 13:31:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XSQwK-0002Au-Qv for pgsql-bugs@postgresql.org; Fri, 12 Sep 2014 13:31:04 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XSQwD-0006Pn-J7 for pgsql-bugs@postgresql.org; Fri, 12 Sep 2014 13:31:03 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s8CDUlqP029658; Fri, 12 Sep 2014 09:30:47 -0400 From: Tom Lane To: Roman Konoval cc: pgsql-bugs@postgresql.org Subject: Re: Memory leak during delete with sequential scan In-reply-to: References: <30254.1410488277@sss.pgh.pa.us> Comments: In-reply-to Roman Konoval message dated "Fri, 12 Sep 2014 12:15:26 +0300" Date: Fri, 12 Sep 2014 09:30:47 -0400 Message-ID: <29657.1410528647@sss.pgh.pa.us> X-Pg-Spam-Score: -4.1 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Roman Konoval writes: > On Fri, Sep 12, 2014 at 5:17 AM, Tom Lane wrote: >> In Linux systems you should generally be looking at RES minus SHR >> not just RES to determine a process' private memory. > By private memory here I mean the sum of Private_Dirty and Private_Clean > values for every memory segment in /proc//smaps. Hm. I'm not terribly familiar with that API, but the notion that it *ever* counts shared memory as "Private" sounds pretty bogus from here. I'd suggest filing a bug against whichever kernel you're using. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs