pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: Matthew Wakeling <matthew@flymine.org>
Cc: PostgreSQL Performance <pgsql-performance@postgresql.org>
Subject: Re: select on 22 GB table causes "An I/O error occured while sending to the backend." exception
Date: Thu, 28 Aug 2008 16:42:47 -0600
Message-ID: <dcc563d10808281542u383808bci4874713a31bd1cc6@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.1.10.0808282110140.4454@aragorn.flymine.org>
References: <BAY124-W57D3654AF1159CAF8EAC19F5660@phx.gbl>
	<82bpze3ou8.fsf@mid.bfk.de>
	<alpine.DEB.1.10.0808271436210.907@asgard.lang.hm>
	<alpine.DEB.1.10.0808281411220.4454@aragorn.flymine.org>
	<EADBB336-A14E-492C-A8CA-105C8F77A43A@blighty.com>
	<alpine.DEB.1.10.0808281702450.4454@aragorn.flymine.org>
	<48B6EA7E.2090707@emolecules.com>
	<alpine.DEB.1.10.0808282110140.4454@aragorn.flymine.org>

On Thu, Aug 28, 2008 at 2:29 PM, Matthew Wakeling <matthew@flymine.org> wrote:

> Another point is that from a business perspective, a database that has
> stopped responding is equally bad regardless of whether that is because the
> OOM killer has appeared or because the machine is thrashing. In both cases,
> there is a maximum throughput that the machine can handle, and if requests
> appear quicker than that the system will collapse, especially if the
> requests start timing out and being retried.

But there's a HUGE difference between a machine that has bogged down
under load so badly that you have to reset it and a machine that's had
the postmaster slaughtered by the OOM killer.  In the first situation,
while the machine is unresponsive, it should come right back up with a
coherent database after the restart.

OTOH, a machine with a dead postmaster is far more likely to have a
corrupted database when it gets restarted.

> Likewise, I would be all for Postgres managing its memory better. It would
> be very nice to be able to set a maximum amount of work-memory, rather than
> a maximum amount per backend. Each backend could then make do with however
> much is left of the work-memory pool when it actually executes queries. As
> it is, the server admin has no idea how many multiples of work-mem are going
> to be actually used, even knowing the maximum number of backends.

Agreed.  It would be useful to have a cap on all work_mem, but it
might be an issue that causes all the backends to talk to each other,
which can be really slow if you're running a thousand or so
connections.



view thread (65+ messages)  latest in thread

Message-ID: <dcc563d10808281542u383808bci4874713a31bd1cc6@mail.gmail.com>
Permalink:  ../dcc563d10808281542u383808bci4874713a31bd1cc6@mail.gmail.com/
Also on:    postgresql.org/message-id/dcc563d10808281542u383808bci4874713a31bd1cc6@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-performance@postgresql.org
  Cc: scott.marlowe@gmail.com, matthew@flymine.org
  Subject: Re: select on 22 GB table causes "An I/O error occured while sending to the backend." exception
  In-Reply-To: <dcc563d10808281542u383808bci4874713a31bd1cc6@mail.gmail.com>
  References: <BAY124-W57D3654AF1159CAF8EAC19F5660@phx.gbl> <82bpze3ou8.fsf@mid.bfk.de> <alpine.DEB.1.10.0808271436210.907@asgard.lang.hm> <alpine.DEB.1.10.0808281411220.4454@aragorn.flymine.org> <EADBB336-A14E-492C-A8CA-105C8F77A43A@blighty.com> <alpine.DEB.1.10.0808281702450.4454@aragorn.flymine.org> <48B6EA7E.2090707@emolecules.com> <alpine.DEB.1.10.0808282110140.4454@aragorn.flymine.org> <dcc563d10808281542u383808bci4874713a31bd1cc6@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