Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 7FDB5476123 for ; Wed, 10 Apr 2002 11:37:27 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g3AFb3F05610; Wed, 10 Apr 2002 11:37:03 -0400 (EDT) To: Raphael Bauduin Cc: pgsql-admin@postgresql.org Subject: Re: performance "tests" In-reply-to: <20020410130046.GB8153@raphael> References: <20020410130046.GB8153@raphael> Comments: In-reply-to Raphael Bauduin message dated "Wed, 10 Apr 2002 15:00:46 +0200" Date: Wed, 10 Apr 2002 11:37:03 -0400 Message-ID: <5607.1018453023@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200204/87 X-Sequence-Number: 3975 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. > What's strange is that everything else hangs also! Would that be due > to the CPU?? The CPU is free, but everything that wants to access disk is starved for disk bandwidth ... > ii postgresql 7.1.3-7 Object-relational SQL database, descended fr If you're going to run tests on foreign-key performance, please use 7.2.*. regards, tom lane