Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6hvz-0001Ut-Da for pgsql-bugs@arkaria.postgresql.org; Sat, 28 May 2016 17:21:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b6hvy-0003J7-Gf for pgsql-bugs@arkaria.postgresql.org; Sat, 28 May 2016 17:21:58 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b6hsw-0003D5-Hz for pgsql-bugs@postgresql.org; Sat, 28 May 2016 17:18:51 +0000 Received: from smarthost1.orion.rs ([77.105.0.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b6hst-0006x6-LY for pgsql-bugs@postgresql.org; Sat, 28 May 2016 17:18:49 +0000 Received: from cpanel35.orion.rs ([77.105.36.145]) by smarthost1.orion.rs with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b6hsq-0001jb-6O for pgsql-bugs@postgresql.org; Sat, 28 May 2016 19:18:44 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cbs.co.rs; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version :Date:Message-ID:From:Cc:References:To:Subject:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Ge4syT8oEAz6heloMIy3kKZOK1sLEMLvbUCCgjrU51Y=; b=a8C8zG6DFvhXR1zZHibTQLjXbC QcRqwdHaEIq4822wkD4UwUwOgM9WeJfcwIiKPOgpyceCVUGBhFU3DjEPWvzbDeTGyVCA+wkoMQUtO D7GzZfj7RCdfhQd6c4NffDEYOD4pAMf7YTKegSUAgYuFw0Wp06gae8+onCT4mYs8CAfE=; Received: from [82.117.193.134] (port=61323 helo=[192.168.0.101]) by cpanel35.orion.rs with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1b6hsi-0002qE-IF; Sat, 28 May 2016 19:18:37 +0200 Subject: Re: ram consumption To: Tom Lane References: <4b07781a-6b9d-454a-2cf2-356098cd1ce8@cbs.co.rs> <516.1464454323@sss.pgh.pa.us> Cc: pgsql-bugs@postgresql.org From: Petar Djurkovic Message-ID: <62ae0550-501f-cd12-9720-d76e5410d201@cbs.co.rs> Date: Sat, 28 May 2016 19:18:29 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <516.1464454323@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel35.orion.rs X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - cbs.co.rs X-Get-Message-Sender-Via: cpanel35.orion.rs: authenticated_id: petar.djurkovic@cbs.co.rs X-Authenticated-Sender: cpanel35.orion.rs: petar.djurkovic@cbs.co.rs X-Spam-Score: -2.0 (--) X-Pg-Spam-Score: -2.0 (--) 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 I stop postgresql with "service postgresql stop" when I stop my web application, postgresql running on Ubuntu 15. Example, while running Postgresql he use 78 GB I see that on htop or top also same state with free mem and when I stop Postgresql ram consumption stay on 78 GB. I every day run VACUUM(ANALYSE) and use pg_repack also autovacuum is on This is part of my postgresql.conf: checkpoint_timeout = 10min max_connections = 200 shared_buffers = 12GB effective_cache_size = 100GB work_mem = 167772kB maintenance_work_mem = 2GB checkpoint_segments = 64 checkpoint_completion_target = 0.9 wal_buffers = 16MB Best Regards, Petar Djurkovic On 5/28/2016 6:52 PM, Tom Lane wrote: > Petar Djurkovic writes: >> When I stop postgresql instance ram mem which postgres used stay >> uncleared and I must restart host machine, why is that happen and how >> can I solve this problem? > It's unlikely that this is a bug, but: how are you stopping Postgres > exactly? What observation convinces you that memory is not being > reclaimed? What's the operating system? > >> Version of my Postgresql is 9.4. > 9.4.which exactly? > > 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