Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 6A5371A8BC81 for ; Fri, 27 Jul 2012 02:52:50 -0300 (ADT) Received: from mail-pb0-f46.google.com ([209.85.160.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SudTl-0003B8-Bd for pgsql-bugs@postgresql.org; Fri, 27 Jul 2012 05:52:50 +0000 Received: by pbbrp8 with SMTP id rp8so4458579pbb.19 for ; Thu, 26 Jul 2012 22:52:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=8Ar6boS+Fbj/5Sz3yL4tszvQkvp5AHTuMu4pUykH2BY=; b=j3bf5I6mUc8tHtPY8Jz9nM629fhyVlsX2JtRnb+3s+Ls6FpoJXfWHhwl6vU89MFtqU u+kbgHYg7TBjAJwaI7GjSv8hUTrd+DPYhDFqvLxblnNMIFaWrSUWe2QLLNCUgseCpgrU XqaFsoG/g2pUyZ/7H9EMZlU+DlYnlsSe9zDnymIzB+VdsPGOxwVR/5vLQdP4BZIZxciV iFf3/MSoJKdsrS1mBtzS34uTX5PpKJMCrRPcc7/fa0Rp9Aqyu9ypWDOpJip5L5O/knHY tg9Rf9kQAaiEV0cCQ3metfi78DEHXO2ftRS5twTcf4eaXIGKLIUJ8Tw1kO+ULE9ZF6pt ZA2g== Received: by 10.68.226.73 with SMTP id rq9mr10663581pbc.145.1343368354882; Thu, 26 Jul 2012 22:52:34 -0700 (PDT) Received: from ayaki.localdomain (124-169-186-146.dyn.iinet.net.au. [124.169.186.146]) by mx.google.com with ESMTPS id mr1sm1208929pbb.62.2012.07.26.22.52.32 (version=SSLv3 cipher=OTHER); Thu, 26 Jul 2012 22:52:33 -0700 (PDT) Message-ID: <50122C9D.1070602@ringerc.id.au> Date: Fri, 27 Jul 2012 13:52:29 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Tom Lane CC: luben karavelov , pgsql-bugs@postgresql.org Subject: Re: BUG #6763: Severe memory leak with arrays and hstore References: <5010FD0F.4020400@ringerc.id.au> <10398EEF-03DE-405E-B276-06F73ABF9E3A@mail.bg> <5011FD5D.3040503@ringerc.id.au> <5011FDEE.1010008@ringerc.id.au> <50120966.4030903@ringerc.id.au> <25326.1343368025@sss.pgh.pa.us> In-Reply-To: <25326.1343368025@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmbafJmMV2+PIX7ksiC98CDfqRe2n22zcnWpWuM6mWECm38vJOZ0VRtm6U1gXfFnU4+v21Y X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/218 X-Sequence-Number: 33694 On 07/27/2012 01:47 PM, Tom Lane wrote: > Craig Ringer writes: >> OK, it's certainly leaking, but not in the same drastic way I was able >> to reproduce manually a couple of times earlier. Self-contained test >> case attached. > Using HEAD with stock parameters, I don't see any significant change in > allocated address space (VSZ): it sits right around 170MB. The reported > resident set size (RSS) starts from very little and rises to about > 140MB, but I think that's just an artifact of the process touching more > and more of the shared-buffers array as it runs. Gah. I should know better than that. Sorry. This makes me wonder if the "leak-like" pattern I saw earlier was just a similar growth in shared_buffers, and carried on more steeply rather than tapering off because I was working with a smaller data set. -- Craig Ringer