Re: Memory exhausted in AllocSetReAlloc

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Eric Cholet <cholet(at)logilune(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: Memory exhausted in AllocSetReAlloc
Date: 2001-11-14 17:05:05
Message-ID: 200111141705.fAEH55f17952@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> That's it, trying to make postgres use more memory I cranked up SORT_MEM
> to a much too high value. I just reduced it back to 1024 and it's working
> fine now.
>
> Thanks to the other posters who replied, I found out FreeBSD's default
> kernel limits the data segment size to 128M, so I raised that as well.
>
> I certainly didn't understand SORT_MEM's semantics. Any pointers, hints
> on how to tune postgres to make best use of all the memory I've got
> would be appreciated. My largest table is going to have ~ 200 million
> rows. The docs are a little terse on how to tune for that kind of volume.

There is a performance paper I wrote on techdocs site:

http://techdocs.postgresql.org

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2001-11-14 17:07:04 Re: hash-join
Previous Message Jason Earl 2001-11-14 17:01:38 Re: transitioning from MS SQL Server to Postgres