From: Stephen Robert Norris <srn@commsecure.com.au>
To: scott.marlowe <scott.marlowe@ihs.com>
Cc: Stefan Sturm <mailling@anrath.info>
Cc: pgsql-general@postgresql.org
Subject: Re: Performance Problem
Date: 13 Mar 2003 10:21:49 +1100
Message-ID: <1047511310.9664.2.camel@ws12.commsecure.com.au> (raw)
In-Reply-To: <Pine.LNX.4.33.0303121023440.18960-100000@css120.ihs.com>
References: <Pine.LNX.4.33.0303121023440.18960-100000@css120.ihs.com>
On Thu, 2003-03-13 at 04:28, scott.marlowe wrote:
> On Wed, 12 Mar 2003, Stefan Sturm wrote:
>
> > Hello,
> >
> > we have a performance problem with PostgreSQL 7.2.4. But first I try to
> > explain our situation:
> >
> > We have an online game. This game is a fantasy game, where you can buy
> > and sell players for your team.
> > All players for the teams are stored in one table. So in this table we
> > have just one primary key and to foreign keys.
> > When we have around 500 Users at one time on the maschine, the game is
> > slowing down(Time for one spage up to 1minute and more). And I think
> > the problem is this table. There are a lot of reading and writing
> > connections to this table.
> >
> > So now my question: What can I do to increase the performance?
>
> Hi Stefan, the first step to increasing performance is surveying the
> current situation. When the machine starts to slow down, what does the
> output of top look like? Is the machine running out of any resources like
> file handles or memory? Note that most flavors of unix will not show a
> lot of memory free they will show it being used as cache. If your machine
> shows 400 megs of system cache and postgresql is using 4 megs of shared
> memory, you aren't giving enough to postgresql. It'll go slow.
To add to what Scott says, what does vmstat report (are you swapping?).
If you're not already, install sar and see how much I/O and CPU you're
consuming - one important issue is whether you're running out of I/O
capacity or CPU or RAM.
Stephen
Attachments:
signature.asc (application/pgp-signature, 188B) download
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: srn@commsecure.com.au, scott.marlowe@ihs.com, mailling@anrath.info
Subject: Re: Performance Problem
In-Reply-To: <1047511310.9664.2.camel@ws12.commsecure.com.au>
References: <Pine.LNX.4.33.0303121023440.18960-100000@css120.ihs.com> <1047511310.9664.2.camel@ws12.commsecure.com.au>
* 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