pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feedInactive memory Grows unlimited
3+ messages / 3 participants
[nested] [flat]
* Inactive memory Grows unlimited
@ 2006-04-21 15:55 ALVARO ARCILA <arcila_alvaro@hotmail.com>
2006-04-21 16:38 ` Re: Inactive memory Grows unlimited Alvaro Herrera <alvherre@commandprompt.com>
0 siblings, 1 reply; 3+ messages in thread
From: ALVARO ARCILA @ 2006-04-21 15:55 UTC (permalink / raw)
To: pgsql-performance
Hi,
I hope you can help me...there's something wrong going on my db server (OS.
GNU/linux White box)... here's the problem...
The amount of Inactive memory Grows unlimited .... this happens only when
Postgresql (8.1.1) is running... after a few days it "eats" all the RAM
memory ... so I've have to restart the server to free RAM....
Here's the parametres actually active in then postgresql.conf file
max_connections = 100
authentication_timeout = 60
password_encryption = on
shared_buffers = 1000
work_mem = 131076
maintenance_work_mem = 262152
redirect_stderr = on
log_directory = 'pg_log'
log_truncate_on_rotation = on
log_rotation_age = 1440
log_rotation_size = 0
lc_messages = 'es_ES.UTF-8'
lc_monetary = 'es_ES.UTF-8'
lc_numeric = 'es_ES.UTF-8'
lc_time = 'es_ES.UTF-8'
Below you can find the content of meminfo file with 18 users connected
(average during working days) and the server has benn running during 2 days
2:19
#cat /proc/meminfo
MemTotal: 2074844 kB
MemFree: 1371660 kB
Buffers: 61748 kB
Cached: 555492 kB
SwapCached: 0 kB
Active: 348604 kB
Inactive: 305876 kB
HighTotal: 1179440 kB
HighFree: 579904 kB
LowTotal: 895404 kB
LowFree: 791756 kB
SwapTotal: 2048248 kB
SwapFree: 2048248 kB
Dirty: 260 kB
Writeback: 0 kB
Mapped: 54824 kB
Slab: 35756 kB
Committed_AS: 117624 kB
PageTables: 3404 kB
VmallocTotal: 106488 kB
VmallocUsed: 3356 kB
VmallocChunk: 102920 kB
HugePages_Total: 0
HugePages_Free: 0
Hugepagesize: 2048 kB
thanks in advance for your help,
Alvaro Arcila
pd: sorry for my english It's not very good, I hope I'm clear....
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Inactive memory Grows unlimited
2006-04-21 15:55 Inactive memory Grows unlimited ALVARO ARCILA <arcila_alvaro@hotmail.com>
@ 2006-04-21 16:38 ` Alvaro Herrera <alvherre@commandprompt.com>
2006-04-24 05:36 ` Re: Inactive memory Grows unlimited Matteo Beccati <php@beccati.com>
0 siblings, 1 reply; 3+ messages in thread
From: Alvaro Herrera @ 2006-04-21 16:38 UTC (permalink / raw)
To: ALVARO ARCILA <arcila_alvaro@hotmail.com>; +Cc: pgsql-performance
ALVARO ARCILA wrote:
> Hi,
>
> I hope you can help me...there's something wrong going on my db server (OS.
> GNU/linux White box)... here's the problem...
>
> The amount of Inactive memory Grows unlimited .... this happens only when
> Postgresql (8.1.1) is running... after a few days it "eats" all the RAM
> memory ... so I've have to restart the server to free RAM....
This is normal Unix behavior. Leave it running for a few more days and
you'll that nothing wrong happens. Why do you think you need "free"
memory?
Only if the swap memory start getting used a lot you need to worry about
memory consumption.
You should upgrade to 8.1.3 BTW.
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Inactive memory Grows unlimited
2006-04-21 15:55 Inactive memory Grows unlimited ALVARO ARCILA <arcila_alvaro@hotmail.com>
2006-04-21 16:38 ` Re: Inactive memory Grows unlimited Alvaro Herrera <alvherre@commandprompt.com>
@ 2006-04-24 05:36 ` Matteo Beccati <php@beccati.com>
0 siblings, 0 replies; 3+ messages in thread
From: Matteo Beccati @ 2006-04-24 05:36 UTC (permalink / raw)
To: ALVARO ARCILA <arcila_alvaro@hotmail.com>; pgsql-performance; +Cc: alvherre@commandprompt.com
Hi,
>> The amount of Inactive memory Grows unlimited .... this happens only when
>> Postgresql (8.1.1) is running... after a few days it "eats" all the RAM
>> memory ... so I've have to restart the server to free RAM....
>
> This is normal Unix behavior. Leave it running for a few more days and
> you'll that nothing wrong happens. Why do you think you need "free"
> memory?
>
> Only if the swap memory start getting used a lot you need to worry about
> memory consumption.
>
> You should upgrade to 8.1.3 BTW.
Also, shared_buffers seem too low and work_mem too much high for your setup:
> shared_buffers = 1000
> work_mem = 131076
You should really raise shared_buffers and decrease work_mem: 1000
shared_buffers is probably too conservative. On the other hand 128MB per
sort could be eating your RAM quickly with 18 users connected.
Best regards
--
Matteo Beccati
http://phpadsnew.com
http://phppgads.com
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2006-04-24 05:36 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-04-21 15:55 Inactive memory Grows unlimited ALVARO ARCILA <arcila_alvaro@hotmail.com>
2006-04-21 16:38 ` Alvaro Herrera <alvherre@commandprompt.com>
2006-04-24 05:36 ` Matteo Beccati <php@beccati.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