Memory Errors...

From: "Ian Harding" <ianh(at)tpchd(dot)org>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Memory Errors...
Date: 2002-09-19 14:10:50
Message-ID: sd8978d5.095@mail.tpchd.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Can someone tell me what these mean? They happen when running big ugly pgtcl functions that delete, insert and update lots of stuff in the database.

ERROR: Memory exhausted in AllocSetContextCreate(8192)
ERROR: Memory exhausted in AllocSetAlloc(88)
ERROR: Memory exhausted in AllocSetAlloc(60)

Seems pretty straightforward, "You ran out of memory, dummy!" But the functions that are running here used to work fine. The only thing I changed was recompiling my kernel to change the following line:

options SHMMAXPGS=8192 # 1024 pages is the default

which I thing brings my maximum amount of shared memory from about 4 MB to about 32 MB. (256 MB is installed) I then changed the line in postgresql.conf like this:

shared_buffers = 3000 # 2*max_connections, min 16

which I think says "PostgreSQL, there is about 24 MB of shared memory available to you."

You would think this would be better, not worse, than the defaults.

The machine has 256 MB of RAM. It is running both PostgreSQL and AOLServer. It is NetBSD 1.5.2 and PostgreSQL 7.2.1:

PostgreSQL 7.2.1 on i386--netbsdelf, compiled by GCC egcs-1.1.2

Since I don't know what I am doing, I tried to be conservative in bumping up the numbers having to do with memory.

Should I be looking at my function, or did I botch the memory configuration so badly that it is breaking stuff?

Thanks!

Ian

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-09-19 14:21:17 Re: Adding to a date/time?
Previous Message Johnson, Shaunn 2002-09-19 14:09:09 killing process question