Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id B3922B5D803 for ; Fri, 24 Jun 2011 14:03:10 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 40506-09 for ; Fri, 24 Jun 2011 17:03:04 +0000 (UTC) X-Greylist: delayed 00:07:28.814213 by SQLgrey-1.7.6 Received: from forward1.mail.yandex.net (forward1.mail.yandex.net [77.88.46.6]) by mail.postgresql.org (Postfix) with ESMTP id BCA18B5DC07 for ; Fri, 24 Jun 2011 14:03:03 -0300 (ADT) Received: from web58.yandex.ru (web58.yandex.ru [77.88.47.164]) by forward1.mail.yandex.net (Yandex) with ESMTP id 2358912430A4; Fri, 24 Jun 2011 20:55:32 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1308934532; bh=i92UR5g+dJ6HUAksQnjI360gm32ImDET0txc04xXBb8=; h=From:To:Cc:In-Reply-To:References:Subject:MIME-Version:Message-Id: Date:Content-Transfer-Encoding:Content-Type; b=tVTKyd9S3Ik4lu9FVaL8v71C5wZTDBZciNiORUz4dl4oKI+OQNgwo92vWgnceweKQ Xk68R6Ps1GTr4j2nq0waFYZuotIFmRaPSBVOvYMrgkxLPv20WSK8xQjRZOsu9BoMAQ 8TPobr5uLD26qq2sZPb+YLRg8jXRZ4EqgbPSlxPA= Received: from localhost (localhost.localdomain [127.0.0.1]) by web58.yandex.ru (Yandex) with ESMTP id 049EB728003; Fri, 24 Jun 2011 20:55:31 +0400 (MSD) X-Yandex-Spam: 1 Received: from dhcp174-219-red.yandex.net (dhcp174-219-red.yandex.net [95.108.174.219]) by web58.yandex.ru with HTTP; Fri, 24 Jun 2011 20:55:31 +0400 From: =?koi8-r?B?4c7Uz84g89TF0MHOxc7Lzw==?= To: Greg Smith Cc: pgsql-bugs@postgresql.org In-Reply-To: <4DFC3E7B.9060300@2ndQuadrant.com> References: <1208551308255001@web137.yandex.ru> <4DFA2130020000250003E76A@gw.wicourts.gov> <438511308318660@web144.yandex.ru> <4DFB32F4020000250003E7E2@gw.wicourts.gov> <1202541308329125@web105.yandex.ru> <56961308340142@web152.yandex.ru> <1245841308343644@web94.yandex.ru> <4DFC3E7B.9060300@2ndQuadrant.com> Subject: Re: could not read block XXXXX in file "base/YYYYY/ZZZZZZ": read only 160 of 8192 bytes MIME-Version: 1.0 Message-Id: <1431308934531@web58.yandex.ru> Date: Fri, 24 Jun 2011 20:55:31 +0400 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=koi8-r X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.372 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, FSL_RU_URL=2.271, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201106/201 X-Sequence-Number: 30580 18.06.2011, 09:58, "Greg Smith" : > 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.