From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alfranio Correia Junior <alfranio@lsd.di.uminho.pt>
Cc: pgsql-performance@postgresql.org
Subject: Re: Performance problems with a higher number of clients
Date: Thu, 11 Dec 2003 09:54:17 -0500
Message-ID: <13178.1071154457@sss.pgh.pa.us> (raw)
In-Reply-To: <3FD7EEE8.4080904@lsd.di.uminho.pt>
References: <3FD7EEE8.4080904@lsd.di.uminho.pt>
Alfranio Correia Junior <alfranio@lsd.di.uminho.pt> writes:
> I am facing a problem trying to put 500 concurrent users accessing
> a postgresql instance.
I think you're going to need to buy more RAM. 1Gb of RAM means there
is a maximum of 2Mb available per Postgres process before you start
to go into swap hell --- in practice a lot less, since you have to allow
for other things like the kernel and other applications.
AFAIR TPC-C doesn't involve any complex queries, so it's possible you
could run it with only 1Mb of workspace per process, but not when
you've configured
> sort_mem = 10240
That's ten times more than your configuration can possibly support.
(I don't recall whether TPC-C uses any queries that would sort, so
it's possible this setting isn't affecting you; but if you are doing
any sorts then it's killing you.)
Bottom line is you probably need more RAM.
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, alfranio@lsd.di.uminho.pt
Subject: Re: Performance problems with a higher number of clients
In-Reply-To: <13178.1071154457@sss.pgh.pa.us>
* 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