pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Memory management
2+ messages / 2 participants
[nested] [flat]

* Memory management
@ 2000-07-05 19:17 Rémy Dufour <remy.tech@webnet.qc.ca>
  2000-07-07 00:51 ` Re: Memory management Prasanth A. Kumar <kumar1@home.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Rémy Dufour @ 2000-07-05 19:17 UTC (permalink / raw)
  To: pgsql-admin

Hi there,

Recently, I've installed postgres 6.5 on a P3 450 396 megs of RAM. I'm
running Linux RedHat 6.2. I got a few db on it and one has around 2 millions records. When I boot my server, I do a 'free' and it tells me that I got around 300 megs of RAM free.

After I do a couple of requests like "Select count(ID) from Store" the memory fills itself and my system swaps a bit.

So, is there a way to limit the memory postgresql is allowed to use?

And, if anyone can point me out some docs or references on how postgresql/linux
 manage its memory.

I would just add more memory to my machine, but it seems to me that it will always fills itself and swap some.

Regards,

Remy Dufour
IT Programmer
WebNet Inc - ISP
remy.tech@webnet.qc.ca

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Memory management
  2000-07-05 19:17 Memory management Rémy Dufour <remy.tech@webnet.qc.ca>
@ 2000-07-07 00:51 ` Prasanth A. Kumar <kumar1@home.com>
  0 siblings, 0 replies; 2+ messages in thread

From: kumar1@home.com @ 2000-07-07 00:51 UTC (permalink / raw)
  To: pgsql-admin

=?iso-8859-1?Q?R=E9my_Dufour?= <remy.tech@webnet.qc.ca> writes:
<snip> Recently, I've installed postgres 6.5 on a P3 450 396 megs of RAM. I'm
> running Linux RedHat 6.2. I got a few db on it and one has around 2 million=
> s records. When I boot my server, I do a 'free' and it tells me that I got =
> around 300 megs of RAM free.
> 
> After I do a couple of requests like "Select count(ID) from Store" the memo=
> ry fills itself and my system swaps a bit.
> 
> So, is there a way to limit the memory postgresql is allowed to use?
> 
> And, if anyone can point me out some docs or references on how postgresql/l=
> inux
>  manage its memory.
> 
> I would just add more memory to my machine, but it seems to me that it will=
>  always fills itself and swap some.
<snip>

You might be able to use the ulimit command to prevent a app running
from exceeding a particular amount of virtual memory but that is a
per process limit I think.

Also, a common mistake people make when they check free memory is they
look at the wrong column. In the example below, the free space is
24112K, not 3820K because buffers and caches are just otherwise unused
memory put to good use. See the sample below:

             total       used       free     shared    buffers     cached
Mem:        127720     123900       3820      45420       2984      17308
-/+ buffers/cache:     103608      24112
Swap:       539264      19988     519276                                  

-- 
Prasanth Kumar
kumar1@home.com



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2000-07-07 00:51 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-07-05 19:17 Memory management Rémy Dufour <remy.tech@webnet.qc.ca>
2000-07-07 00:51 ` Prasanth A. Kumar <kumar1@home.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox