Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 6C18EB5DBD9 for ; Fri, 17 Jun 2011 12:57:04 -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 40571-03 for ; Fri, 17 Jun 2011 15:56:57 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 2A304B5DBCE for ; Fri, 17 Jun 2011 12:56:57 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Fri, 17 Jun 2011 10:56:53 -0500 Message-Id: <4DFB32F4020000250003E7E2@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Fri, 17 Jun 2011 10:56:52 -0500 From: "Kevin Grittner" To: "=?ISO-8859-15?B?KioqKiogKioqKioqKioqKg==?=" Cc: Subject: Re: could not read block XXXXX in file "base/YYYYY/ZZZZZZ": read only 160 of 8192 bytes References: <1208551308255001@web137.yandex.ru> <4DFA2130020000250003E76A@gw.wicourts.gov> <438511308318660@web144.yandex.ru> In-Reply-To: <438511308318660@web144.yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.361 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FSL_RU_URL=2.271, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/150 X-Sequence-Number: 30529 ***** ********** wrote: > 17.06.2011, 00:28, "Kevin Grittner" : >> ***** **********; wrote: >> >>> [4-1] 2011-06-16 17:40:27 UTC LOG: startup process (PID 15292) >>> was terminated by signal 7: Bus error >>> Signal 7 means hardware problems. But all 10 replicas crashed >>> within 10 minutes, say from 13:35 to 13:45. >>> One important thing - all replicas and master are running on >>> openvz >> On the face of it, the most likely cause would seem to be >> hardware or the virtual environment. > I noticed that crash takes place when shared buffers are almost > full, i.e. SELECT SUM(size) FROM adm.buffercache() returns 11670 > at about one minute before crash. Furthermore, last night I set > buffers to 11Gb, at it is working, no crash, all buffers are used > (11120). Well then, in a pinch you could always fall back to using what works. > I still do not believe that this is hardware problem. How would an application cause a bus error? > Each replica and master runs on dedicated server, no hardware is > shared. OK. If they had been on the same blade chassis or something I would have suspected hardware. > There is only postgresql on each server, no any other > software(just crond, zabbix, atop). Actually openvz is used only > for portability(easily add new replicas or migrate one of them to > new server). Still, it emulates hardware, so you have to consider it a suspect for any hardware problem -- at least if you want to solve that problem. > Master did not crash Ah, that wasn't clear from the earlier post. I'm not sure how significant it is, but it's good to know. > I think because it processes less SELECT queries, therefore his > buffers do not reach limit. In your shoes I would now be trying to construct a test program to exercise progressively larger allocations of shared memory, and test them both under openvz and without it. Well, first I would probably try loading the master with queries to drive it to use the full shared_buffers space, *then* move on to the test program. The relevant question here is why others can successfully use large shared_buffers settings while you can't. Something is different in your environment. What? -Kevin