Memory Errors...

Поиск
Список
Период
Сортировка
От Ian Harding
Тема Memory Errors...
Дата
Msg-id sd8978d5.095@mail.tpchd.org
обсуждение исходный текст
Ответы Re: Memory Errors...  ("Shridhar Daithankar" <shridhar_daithankar@persistent.co.in>)
Re: Memory Errors...  (Karel Zak <zakkr@zf.jcu.cz>)
Список pgsql-general
Can someone tell me what these mean?  They happen when running big ugly pgtcl functions that delete, insert and update
lotsof 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
changedthe 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


В списке pgsql-general по дате отправления:

Предыдущее
От: Jean-Christian Imbeault
Дата:
Сообщение: Re: IN vs EXIIST
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Adding to a date/time?