Re: [PERFORM] Debugging shared memory issues on CentOS

2013-12-19 Thread Mack Talcott
> There's quite a lot of stuff that a PG process will cache in local memory > once it's acquired the info, for example: > - relcache (relation descriptors) > - catcache (system catalog entries) > - compiled trees for plpgsql functions > > 300mb worth of that stuff seems on the high side, but perhap

Re: [PERFORM] Debugging shared memory issues on CentOS

2013-12-12 Thread Tom Lane
Merlin Moncure writes: > It's tempting to say, "there should be a limit to backend local cache" > but it's not clear if the extra tracking is really worth it all things > considered. There was some discussion about this (see the archives). Yeah --- there actually was a limit on total catcache si

Re: [PERFORM] Debugging shared memory issues on CentOS

2013-12-12 Thread Merlin Moncure
On Wed, Dec 11, 2013 at 9:39 PM, Tom Lane wrote: > Mack Talcott writes: >> The pattern I am seeing is that postgres processes keep growing in >> shared (this makes sense as they access more of the shared memory, as >> you've pointed out) but also process-specific memory as they run more >> querie

Re: [PERFORM] Debugging shared memory issues on CentOS

2013-12-11 Thread Tom Lane
Mack Talcott writes: > The pattern I am seeing is that postgres processes keep growing in > shared (this makes sense as they access more of the shared memory, as > you've pointed out) but also process-specific memory as they run more > queries. The largest ones are using around 300mb of process-s

Re: [PERFORM] Debugging shared memory issues on CentOS

2013-12-11 Thread Mack Talcott
On Tue, Dec 10, 2013 at 8:54 PM, Tom Lane wrote: > Mack Talcott writes: >> I am trying to debug some shared memory issues with Postgres 9.3.1 and >> CentOS release 6.3 (Final). I have a database machine that probably has >> some misconfigured shared memory settings. It's getting into 2+ GB of >

Re: [PERFORM] Debugging shared memory issues on CentOS

2013-12-10 Thread Tom Lane
Mack Talcott writes: > I am trying to debug some shared memory issues with Postgres 9.3.1 and > CentOS release 6.3 (Final). I have a database machine that probably has > some misconfigured shared memory settings. It's getting into 2+ GB of > swap. Restarting postgres frees all of the memory, bu

[PERFORM] Debugging shared memory issues on CentOS

2013-12-10 Thread Mack Talcott
I am trying to debug some shared memory issues with Postgres 9.3.1 and CentOS release 6.3 (Final). I have a database machine that probably has some misconfigured shared memory settings. It's getting into 2+ GB of swap. Restarting postgres frees all of the memory, but after a few hours of normal