Re: [ADMIN]openvz and shared memory trouble

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Willy-Bas Loos <willybas(at)gmail(dot)com>, lst_hoe02(at)kwsoft(dot)de, pgsql-admin <pgsql-admin(at)postgresql(dot)org>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: [ADMIN]openvz and shared memory trouble
Date: 2014-03-31 19:21:03
Message-ID: 5339C01F.5000301@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

On 03/31/2014 08:28 AM, Tom Lane wrote:
> Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> writes:
>> At this point the memory allocation as a problem is as much conjecture
>> as anything else, at least to me. So what is causing SIGBUS is an open
>> question in my mind.
>
> Agreed, it's unproven what's causing the SIGBUS in the case at hand.
> However, in the case I investigated for Josh Kupershmidt, it was provably
> the fault of the kernel for failing to supply memory to back the shared
> memory segment that it had previously agreed to allocate. The fact that
> both users are trying to run their standby server under OpenVZ is, shall
> we say, merely suggestive.

Yes, the fact that the problem seems to go away with a change in
shared_buffers seems to point in that direction also. To get through the
smoke to the fire, there are more questions to be answered:

1) The OP says the shared_buffered setting that failed was 4GB and that
'tuning' down the setting solved the problem. So it would be nice to
know what setting worked?

2) In hand with 1), the memory settings for the virtualization host and
the container(s) involved are?

3) What is the host OS?

4) What version of OpenVZ?

5) What is the layout?
Are the primary and standby on the same container, different containers
or some other arrangement?
In other words could there be some other resource conflict going on, say
network?

6) Are the crashes random or do they follow some pattern?

>
> regards, tom lane
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Venkata Balaji Nagothi 2014-04-01 00:49:50 Re: PostgreSQL 9.3 logging: separate log messages
Previous Message Tom Lane 2014-03-31 15:28:13 Re: [GENERAL] openvz and shared memory trouble

Browse pgsql-general by date

  From Date Subject
Next Message Leonardo M. Ramé 2014-03-31 19:22:42 Re: Complex query
Previous Message David Johnston 2014-03-31 19:16:53 Re: Complex query