Re: [PERFORM] shared_buffers vs Linux file cache

2015-01-15 Thread Roman Konoval
Huan, Residential memory is part of the process memory that is now swapped and is in RAM. This includes also memory shared with other processes so sum of RES for all processes may be greater that total physical memory. I recommend this article http://www.depesz.com/2012/06/09/how-much-ram-is-post

Re: [PERFORM] shared_buffers vs Linux file cache

2015-01-15 Thread Huan Ruan
Thanks very much, Glyn, Jeff, and Tom. That was very clearly explained. A related case, see the following top dump. The Postgres process is using 87g residential memory, which I thought was the physical memory consumed by a process that can't be shared with others. While, the free+cached is about

Re: [PERFORM] shared_buffers vs Linux file cache

2015-01-15 Thread Tom Lane
Jeff Janes writes: > On Thu, Jan 15, 2015 at 3:30 AM, Huan Ruan wrote: >> I thought 'shared_buffers' sets how much memory that is dedicated to >> PostgreSQL to use for caching data, therefore not available to other >> applications. > While PostgreSQL has reserves the right to use 32GB, as long a

Re: [PERFORM] shared_buffers vs Linux file cache

2015-01-15 Thread Jeff Janes
On Thu, Jan 15, 2015 at 3:30 AM, Huan Ruan wrote: > Hi All > > I thought 'shared_buffers' sets how much memory that is dedicated to > PostgreSQL to use for caching data, therefore not available to other > applications. > > However, as shown in the following screenshots, The server (CentOS 6.6 > 6

Re: [PERFORM] shared_buffers vs Linux file cache

2015-01-15 Thread Glyn Astill
> From: Huan Ruan >To: pgsql-performance@postgresql.org >Sent: Thursday, 15 January 2015, 11:30 >Subject: [PERFORM] shared_buffers vs Linux file cache > > > >Hi All > > >I thought 'shared_buffers' sets how much memory that is dedicated to >Pos

[PERFORM] shared_buffers vs Linux file cache

2015-01-15 Thread Huan Ruan
Hi All I thought 'shared_buffers' sets how much memory that is dedicated to PostgreSQL to use for caching data, therefore not available to other applications. However, as shown in the following screenshots, The server (CentOS 6.6 64bit) has 64GB of RAM, and 'shared_buffer' is set to 32GB, but the