Re: Win32 Backend Cash - pre-existing shared memory block is still in use

Поиск
Список
Период
Сортировка
От Jeremy Palmer
Тема Re: Win32 Backend Cash - pre-existing shared memory block is still in use
Дата
Msg-id 666FB8D75E95AE42965A0E76A5E5337E065C455F3E@prdlsmmsg01.ad.linz.govt.nz
обсуждение исходный текст
Ответ на Re: Win32 Backend Cash - pre-existing shared memory block is still in use  (Scott Marlowe <scott.marlowe@gmail.com>)
Ответы Re: Win32 Backend Cash - pre-existing shared memory block is still in use  (Scott Marlowe <scott.marlowe@gmail.com>)
Список pgsql-general
Thanks. So can you explain why 512mb is bad decision here given that I only have 3.7GB of RAM?

The reason why I want the temp_buffers set so high is because this server is used for large data warehousing type
queries.The server has very few sessions simultaneously running on it, but each session can create large temp tables. 

Thanks
Jeremy

-----Original Message-----
From: Scott Marlowe [mailto:scott.marlowe@gmail.com]
Sent: Wednesday, August 25, 2010 5:11 PM
To: Jeremy Palmer
Cc: Magnus Hagander; Tom Lane; pgsql-general@postgresql.org; Alvaro Herrera
Subject: Re: [GENERAL] Win32 Backend Cash - pre-existing shared memory block is still in use

512M is still REALLY high for a 32 bit postgresql.  Have you tried
something in the 16Meg range?

On Tue, Aug 24, 2010 at 10:31 PM, Jeremy Palmer <JPalmer@linz.govt.nz> wrote:
> Bugger I got another crash on the server today even after setting the temp_buffers to 512MB. Has anyone got any
suggestionsto fix this issue? 
>
> Should I just compile the source using MS visual studio, then debug and get a stack trace for someone to diagnose on
thislist? 
>
> Thanks
> Jeremy
>
> -----Original Message-----
> From: Jeremy Palmer
> Sent: Friday, August 20, 2010 1:52 PM
> To: 'Magnus Hagander'; Tom Lane
> Cc: pgsql-general@postgresql.org; Alvaro Herrera; Chris Crook
> Subject: RE: [GENERAL] Win32 Backend Cash - pre-existing shared memory block is still in use
>
> Yes I do realise that temp_buffers is per backend. I set it like this because we only have a few simultaneous clients
connecting,and these clients generally run large analysis queries that usually create big temp tables. 
>
> I turned on extra logging and I have tracked down the query that is crashing the backend. The query was making a
reallybig temp table. By setting the temp_buffers to 512MB the queries no longer crashes the backend. 
>
> My question is what is a safe value for the temp_buffers parameter on a win32 system? Also how can we stop PostgreSQL
crashingbecause of this issue? I'm willing provide more information to help diagnose this. 
>
> Regards,
> Jeremy
>
> -----Original Message-----
> From: Magnus Hagander [mailto:magnus@hagander.net]
> Sent: Friday, August 20, 2010 1:46 AM
> To: Tom Lane
> Cc: Jeremy Palmer; pgsql-general@postgresql.org; Alvaro Herrera
> Subject: Re: [GENERAL] Win32 Backend Cash - pre-existing shared memory block is still in use
>
> On Thu, Aug 19, 2010 at 15:42, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Jeremy Palmer <JPalmer@linz.govt.nz> writes:
>>> Could it be that I have too much memory allocated for postgresql? My resource settings are:
>>> shared_buffers = 94952
>>> temp_buffers = 1GB
>>> work_mem = 19339
>>> maintenance_work_mem = 191845
>>> max_stack_depth = 2MB
>>
>> 1GB for temp_buffers is a *LOT*.  You do realize that's per backend?
>> Those other settings don't look too unreasonable.
>
> Definitely - particularly since this is a 32-bit version, that's
> getting very close to the address space limits...
>
> --
>  Magnus Hagander
>  Me: http://www.hagander.net/
>  Work: http://www.redpill-linpro.com/
> ______________________________________________________________________________________________________
>
> This message contains information, which is confidential and may be subject to legal privilege.
> If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message.
> If you have received this message in error, please notify us immediately (Phone 0800 665 463 or info@linz.govt.nz)
anddestroy the original message. 
> LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ.
>
> Thank you.
> ______________________________________________________________________________________________________
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>



--
To understand recursion, one must first understand recursion.
______________________________________________________________________________________________________

This message contains information, which is confidential and may be subject to legal privilege.
If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message.
If you have received this message in error, please notify us immediately (Phone 0800 665 463 or info@linz.govt.nz) and
destroythe original message. 
LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ.

Thank you.
______________________________________________________________________________________________________

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Win32 Backend Cash - pre-existing shared memory block is still in use
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Win32 Backend Cash - pre-existing shared memory block is still in use