Re: concurrent connections is worse than serialization? - Mailing list pgsql-sql

From Tom Lane
Subject Re: concurrent connections is worse than serialization?
Date
Msg-id 9256.1029343711@sss.pgh.pa.us
Whole thread Raw
In response to Re: concurrent connections is worse than serialization?  (Wei Weng <wweng@kencast.com>)
List pgsql-sql
Wei Weng <wweng@kencast.com> 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


pgsql-sql by date:

Previous
From: Sue Humphrey
Date:
Subject: sql function examples requested (! select)
Next
From: Tom Lane
Date:
Subject: Re: sql function examples requested (! select)