pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Антон Степаненко <zlobnynigga@yandex.ru>
To: Greg Smith <greg@2ndquadrant.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: could not read block XXXXX in file "base/YYYYY/ZZZZZZ": read only 160 of 8192 bytes
Date: Fri, 24 Jun 2011 20:55:31 +0400
Message-ID: <1431308934531@web58.yandex.ru> (raw)
In-Reply-To: <4DFC3E7B.9060300@2ndQuadrant.com>
References: <1208551308255001@web137.yandex.ru>
	<4DFA2130020000250003E76A@gw.wicourts.gov>
	<438511308318660@web144.yandex.ru>
	<4DFB32F4020000250003E7E2@gw.wicourts.gov>
	<BANLkTin8otck1rxoGcBE1wi8PZ1dEt-9fA@mail.gmail.com>
	<1202541308329125@web105.yandex.ru>
	<BANLkTim0hL_VkkU7=ozYzRP5+Ruw-BcDuQ@mail.gmail.com>
	<56961308340142@web152.yandex.ru>
	<BANLkTimvQDj8H6Vt4CvE84i5N8VsxzYUVA@mail.gmail.com>
	<1245841308343644@web94.yandex.ru>
	<4DFC3E7B.9060300@2ndQuadrant.com>



18.06.2011, 09:58, "Greg Smith" <greg@2ndQuadrant.com>:
> I suspect you're running into some sort of OpenVZ shared memory handling
> bug.  The way it handles this is one of the more complicated, and
> therefore likely to have odd failure cases, part of the design.  There's
> notes at http://wiki.openvz.org/Postgresql_and_shared_memory about
> container-specific things to tune here, so maybe there's just a setting
> to tweak you've missed so far.  I'm guessing you already went through
> that though.
>
> A quick look around shows there are far more regularly reported bugs
> like this in OpenVZ than there are in PostgreSQL, and Ubuntu is not
> known for bug-free release practices either.  You're probably chasing
> after the wrong thing trying to find a database problem here.  Likely to
> end up in the same situation as the last one of these I remember:
>
> http://archives.postgresql.org/pgsql-general/2009-10/msg00125.php
> http://lists.debian.org/debian-kernel/2010/03/msg00401.html
>
> ...waiting for the OpenVZ problem that's the real cause to get fixed and
> make its way to your distribution.
>

Finally I finded out that problem is in OpenVZ, you were right. I've managed to set up one replica on "pure" Linux without OpenVZ. And it works for about a week already with 12Gb shared buffers.
I'm not sure what exactly is wrong with OpenVZ, but one thing that annoys me is that I have not the last stable OpenVZ kernel. I will try to compile the last one(unfortunately it requires new vzctl), and then run some tests on it. And if it won't help - I'll go to OpenVZ community mailing lists and brainfuck them =)
Thank you very much for your help, I appreciate it a lot. And sorry again for my bad english.



view thread (13+ messages)

Message-ID: <1431308934531@web58.yandex.ru>
Permalink:  ../1431308934531@web58.yandex.ru/
Also on:    postgresql.org/message-id/1431308934531@web58.yandex.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: zlobnynigga@yandex.ru, greg@2ndquadrant.com
  Subject: Re: could not read block XXXXX in file "base/YYYYY/ZZZZZZ": read only 160 of 8192 bytes
  In-Reply-To: <1431308934531@web58.yandex.ru>
  References: <1208551308255001@web137.yandex.ru> <4DFA2130020000250003E76A@gw.wicourts.gov> <438511308318660@web144.yandex.ru> <4DFB32F4020000250003E7E2@gw.wicourts.gov> <BANLkTin8otck1rxoGcBE1wi8PZ1dEt-9fA@mail.gmail.com> <1202541308329125@web105.yandex.ru> <BANLkTim0hL_VkkU7=ozYzRP5+Ruw-BcDuQ@mail.gmail.com> <56961308340142@web152.yandex.ru> <BANLkTimvQDj8H6Vt4CvE84i5N8VsxzYUVA@mail.gmail.com> <1245841308343644@web94.yandex.ru> <4DFC3E7B.9060300@2ndQuadrant.com> <1431308934531@web58.yandex.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox