Skip site navigation (1) Skip section navigation (2)

Re: Memory question

From: "Patrick Hatcher" <PHatcher(at)macys(dot)com>
To: josh(at)agliodbs(dot)com
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Memory question
Date: 2003-06-27 19:58:22
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
Shared buffer is now set to 20,000 as suggested.  So far so good.
As far as shmmax, it really is my ignorance of Linux.  We are going to play
around with this number.  Is there a suggested amount since I have
my effective_cache_size = 625000 (or does one have nothing to do with the
Thanks again

Patrick Hatcher

                    Josh Berkus                                                                                                        
                    <josh(at)agliodbs       To:     "Patrick Hatcher" <PHatcher(at)macys(dot)com>, pgsql-performance(at)postgresql(dot)org              
                    .com>                cc:                                                                                           
                                         Subject:     Re: [PERFORM] Memory question                                                    
                    12:54 PM                                                                                                           
                    Please respond                                                                                                     
                    to josh                                                                                                            


> Sorry for posting an obvious Linux question, but have any of you
> encountered this and how have you fixed it.
> I have 6gig Ram box.  I've set my shmmax  to 3072000000.  The database
> starts up fine without any issues.  As soon as a query is ran
> or a FTP process to the server  is done, the used memory shoots up and
> appears to never be released.

What's you shared_buffers set to after our talk?  Do you actually need 3gb

> My fear is that this may cause problems for my database if this number
> continues to grow.  Below is my TOP after running a query, and shutting
> down PgAdmin.  While not low now, the amount of free memory has dropped
> around 11mg.  I'll admit I'm not that Linux savvy, but am I reading this
> correct?


> Mem:  6711564K av, 6517776K used,  193788K free,       0K shrd,   25168K

The "used" figure in Top doesn't really tell you anything, since it
the kernel buffer which tries to take up all available memory.  If you
actually look at the list of processes, I think you'll find that you're
using 1-2% of memory for applications.

I'm not sure what app would show your "real" free memory.

-Josh Berkus
 Aglio Database Solutions
 San Francisco

In response to

pgsql-performance by date

Next:From: Patrick HatcherDate: 2003-06-27 19:59:23
Subject: Re: Memory question
Previous:From: Josh BerkusDate: 2003-06-27 19:54:51
Subject: Re: Memory question

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group