pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Merlin Moncure <mmoncure@gmail.com>
To: Антон Степаненко <zlobnynigga@yandex.ru>
Cc: Kevin Grittner <kevin.grittner@wicourts.gov>
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, 17 Jun 2011 15:53:18 -0500
Message-ID: <BANLkTim0MowfkwKgVm_WrLfKJ5Q5Fi4tyA@mail.gmail.com> (raw)
In-Reply-To: <1245841308343644@web94.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>

2011/6/17 Антон Степаненко <zlobnynigga@yandex.ru>:
>>
>> I wonder if you are oversubscribing your memory, and are getting weird
>> errors when reading data into memory because the pages can't be
>> reserved to do that.  What happens when you enable overcommit and
>> attempt to start the server?
>>
>> merlin
>
> In my first post I wrote: "I tried to set vm.overcommit_memory=2 and vm.overcommit_ratio=90 - no sense. Then I tried vm.overcommit_memory=1 - no sense."
> "No sense" means that server starts, works for about 3 hours, and then dies with signal 7 and almost all buffers filled. Just as with vm.overcommit_memory=0.
> I copypasted vmstat log, that shows that there were 5Gb of free memory when postgresql died. In one of my experiments postgresql worked for about half an hour with 0k free memory (at least top and vmstat said so). Abscence of free memory was caused by the fact that replica had been down for 12 hours or so, and when started wal writer procees took much resources. But it was woking! With no free memory.
> But this is not important. As I noticed the thing is not how much free memory I have. The thing is how shared buffers are filled. And shared buffers fillings makes sense only when they are set to 12Gb. When they set to less - everything works fine.
> If I am oversubcribing memory - then I expect to get some "out of memory error" and see 0k free in top output.
> Memory for shared buffers can not be ovesubscribed - because if kernel did not provide enough shared memory postgres will not start.
> If I am wrong - please, explain why and where.

No, that's all correct, but I smell a rat.  Could be the
virtualization software, not sure.  But the problem looks not to be
with postgres...the server is just reporting o/s calls that are
returning with error.

merlin



view thread (13+ messages)  latest in thread

Message-ID: <BANLkTim0MowfkwKgVm_WrLfKJ5Q5Fi4tyA@mail.gmail.com>
Permalink:  ../BANLkTim0MowfkwKgVm_WrLfKJ5Q5Fi4tyA@mail.gmail.com/
Also on:    postgresql.org/message-id/BANLkTim0MowfkwKgVm_WrLfKJ5Q5Fi4tyA@mail.gmail.com

 · 

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: mmoncure@gmail.com, zlobnynigga@yandex.ru, kevin.grittner@wicourts.gov
  Subject: Re: could not read block XXXXX in file "base/YYYYY/ZZZZZZ": read only 160 of 8192 bytes
  In-Reply-To: <BANLkTim0MowfkwKgVm_WrLfKJ5Q5Fi4tyA@mail.gmail.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> <BANLkTim0MowfkwKgVm_WrLfKJ5Q5Fi4tyA@mail.gmail.com>

* 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