Re: [GENERAL] openvz and shared memory trouble - Mailing list pgsql-admin

From Willy-Bas Loos
Subject Re: [GENERAL] openvz and shared memory trouble
Date
Msg-id CAHnozTgD6eQ620oB1Hu7oDnrLnVng1gHR_2u40WB3fb+DdXGQA@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] openvz and shared memory trouble  (lst_hoe02@kwsoft.de)
List pgsql-admin

On Mon, Mar 31, 2014 at 3:02 PM, <lst_hoe02@kwsoft.de> wrote:
So what does your "shmpages" and your sysctl inside the container claim to be the max shared memory available. If you set the shmmax, but the shmpages in your container config is to short Postgres maybe has no way to find out beside crashing (http://openvz.org/Postgresql_and_shared_memory).


shmpages is "unlimited" in the container

What is did do is just set the the shmmax really high on the container sysctl. That way it wouldn't matter that there is less shared memory than there's supposed to be.

I have not yet been able to reproduce the error.
Though this does make me feel a little stupid, it seems to make sense and work too.
I'll post back if the error does come up again.

Thanks a lot for all the help,

WBL


--
"Quality comes from focus and clarity of purpose" -- Mark Shuttleworth

pgsql-admin by date:

Previous
From: Sergey Arlashin
Date:
Subject: PostgreSQL 9.3 logging: separate log messages
Next
From: Adrian Klaver
Date:
Subject: Re: [GENERAL] openvz and shared memory trouble