Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 9F375475B64 for ; Wed, 14 Aug 2002 12:48:46 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 182CF475A9B for ; Wed, 14 Aug 2002 12:48:46 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g7EGmWVk009257; Wed, 14 Aug 2002 12:48:32 -0400 (EDT) To: Wei Weng Cc: Richard Huxton , pgsql-sql@postgresql.org Subject: Re: concurrent connections is worse than serialization? In-reply-to: <1029338971.21470.9.camel@Monet> References: <1029271170.16828.7.camel@Monet> <200208141018.38875.dev@archonet.com> <1029334827.21470.2.camel@Monet> <200208141549.57646.dev@archonet.com> <1029338971.21470.9.camel@Monet> Comments: In-reply-to Wei Weng message dated "14 Aug 2002 11:29:26 -0400" Date: Wed, 14 Aug 2002 12:48:31 -0400 Message-ID: <9256.1029343711@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/237 X-Sequence-Number: 9083 Wei Weng writes: > On Wed, 2002-08-14 at 10:49, Richard Huxton wrote: >> If it's not CPU, is the system going into swap or are you seeing a >> lot of disk activity? > I did hear a lot of disk noise when I ran the test. How do I tell if the > "system is going into swap"? Try running "vmstat 1" while doing the test. If the "swap" columns show any activity then you're swapping. Watching free memory with "top" may also be insightful. I tend to agree with what I think Richard suspects: you haven't got enough RAM for thirty concurrent server processes, and so the system is wasting a lot of time swapping processes to disk. What are the hardware parameters, anyway? regards, tom lane