Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (Postfix) with ESMTP id 4C150475BE1 for ; Wed, 10 Apr 2002 13:03:12 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g3AH33n24260; Wed, 10 Apr 2002 13:03:03 -0400 (EDT) From: Bruce Momjian Message-Id: <200204101703.g3AH33n24260@candle.pha.pa.us> Subject: Re: performance "tests" In-Reply-To: <5607.1018453023@sss.pgh.pa.us> To: Tom Lane Date: Wed, 10 Apr 2002 13:03:03 -0400 (EDT) Cc: Raphael Bauduin , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL97 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200204/90 X-Sequence-Number: 3978 Tom Lane wrote: > Raphael Bauduin writes: > > At some times, it seems to hang: it doesn't insert any rows for more > > than 10 seconds. At that time, the postmaster process takes 0%. Why is > > that? > > At a guess, you're seeing the syncer daemon flushing a lot of dirty > kernel disk buffers out to disk, and thereby monopolizing disk I/O. > I haven't experimented too much with Linux, but on HPUX it's not > difficult for a sync() call to bring the system to its knees for many > seconds, if you've got application programs that have written a whole > lot of pages since the last sync. Some BSD's implement trickle sync, for this very reason. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026