Re: Options for growth

From: Daniel Kalchev <daniel(at)digsys(dot)bg>
To: "D'Arcy J(dot)M(dot) Cain" <darcy(at)druid(dot)net>
Cc: "Adrian 'Dagurashibanipal' von Bidder" <avbidder(at)fortytwo(dot)ch>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Options for growth
Date: 2003-01-20 09:31:56
Message-ID: 200301200931.h0K9VvY00518@dcave.digsys.bg
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>>>"D'Arcy J.M. Cain" said:
> On Thursday 16 January 2003 11:59, Adrian 'Dagurashibanipal' von Bidder wrot
e:
> > On Thu, 2003-01-16 at 17:42, D'Arcy J.M. Cain wrote:
> > > We are also looking at hardware solutions, multi-CPU PCs with tons (24GB
)
> > > of memory. I know that memory will improve access if it prevents
> > > swapping but how well does PostgreSQL utilize multiple CPUs?
> >
> > At most one CPU is used for any single postgres backend (that means for
> > any single database connection). So, if your load problem is single
> > queries being too slow, thee's nothing you can do with adding more CPUs.
> > If your problem is many connections maxing out the db, PostgreSQL can
> > take full advantage of multiple CPUs.
>
> I most definitely have multiple queries running at once. My main issue is
> whether PostgreSQL scales up properly or does it get bogged down with too
> many locked queries.

That would depend on the OS. Not many 'pc-based unix' support over 4 GB of
memory, some don't even go that far.

If memory is an issue, have you considered going to 64bit CPU?

Memory is indeed an issue for a complex database setup, especially if you want
to give the backends enough shared and sort memory.

As already said, PostgreSQL will utilize multiple CPUs - as effectively as
your OS can do this of course. PostgreSQL is not an OS by itself and does not
really control these resources.

I have also found it very helpful to split database from application servers
(wish I do it as often as I recommend it :) - thus you can optimize the part
that needs most resources.. In many cases the requirements are quite
different. With todays gigabit LANs, bandwidth between machines shouldn't be
an issue.

By the way, I too wonder which supported OS platform would support over 4GB of
memory on a PC..

Daniel

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave Page 2003-01-20 10:18:07 Foreign key wierdness
Previous Message Emmanuel Charpentier 2003-01-20 06:13:00 Re: default to WITHOUT OIDS? Possible related problem