pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Evgeny Gridasov <eugrid@fpm.kubsu.ru>
To: pgsql-performance@postgresql.org
Subject: Re: DB responce during DB dump
Date: Wed, 25 Jan 2006 19:43:09 +0300
Message-ID: <20060125194309.8cb6e5c8.eugrid@fpm.kubsu.ru> (raw)
In-Reply-To: <1459.1138206118@sss.pgh.pa.us>
References: <GJEAKHIALCNFPPGBGEKNEEBDDGAA.dan@centrifugesolutions.com>
	<20060125150134.55589806.eugrid@fpm.kubsu.ru>
	<43D772BD.8080809@archonet.com>
	<1459.1138206118@sss.pgh.pa.us>

All I was trying to achieve is to limit I/O rate done by pg_dump.
The script is a very simple pipe rate limitter and nothing more:
it reads input, but outputs data no more than at rate specified.

I guess it helps because even if pg_dump outputs data at 20 mb/sec,
the script won't be able to read it at rate higher than output rate. Pipe
buffer is not infinitive, so pg_dump output rate and hard disk reads become
almost equal the input rate of my perl script.

On Wed, 25 Jan 2006 11:21:58 -0500
Tom Lane <tgl@sss.pgh.pa.us> wrote:

> Years ago there was some experimentation with dump-rate throttling logic
> inside pg_dump itself --- there's still a comment about it in pg_dump.c.
> The experiment didn't seem very successful, which is why it never got to
> be a permanent feature.  I'm curious to know why this perl script is
> doing a better job than we were able to do inside pg_dump.

-- 
Evgeny Gridasov
Software Engineer 
I-Free, Russia



view thread (5+ messages)  latest in thread

Message-ID: <20060125194309.8cb6e5c8.eugrid@fpm.kubsu.ru>
Permalink:  ../20060125194309.8cb6e5c8.eugrid@fpm.kubsu.ru/
Also on:    postgresql.org/message-id/20060125194309.8cb6e5c8.eugrid@fpm.kubsu.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-performance@postgresql.org
  Cc: eugrid@fpm.kubsu.ru
  Subject: Re: DB responce during DB dump
  In-Reply-To: <20060125194309.8cb6e5c8.eugrid@fpm.kubsu.ru>
  References: <GJEAKHIALCNFPPGBGEKNEEBDDGAA.dan@centrifugesolutions.com> <20060125150134.55589806.eugrid@fpm.kubsu.ru> <43D772BD.8080809@archonet.com> <1459.1138206118@sss.pgh.pa.us> <20060125194309.8cb6e5c8.eugrid@fpm.kubsu.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