Re: Re: Red Hat to support PostgreSQL - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Re: Red Hat to support PostgreSQL
Date
Msg-id 200106272258.f5RMwIb26959@candle.pha.pa.us
Whole thread Raw
In response to Re: Re: Red Hat to support PostgreSQL  (Philip Molter <philip@datafoundry.net>)
Responses Re: Re: Red Hat to support PostgreSQL  (Philip Molter <philip@datafoundry.net>)
Process weight (was:Re: Re: Red Hat to support PostgreSQL)  (Lamar Owen <lamar.owen@wgcr.org>)
Re: Slower on Solaris (NOT that Red Hat thread anymore)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
> I had almost given up on using Postgres for this system because under
> Solaris, it just couldn't cut it (MySQL could do the work with one CPU
> while Postgres took up even more CPU and required *both* CPUs to be
> enabled), but when we moved the system to a Linux box, things worked
> much better.

Ah, back to a PostgreSQL topic.  :-)

My guess on this one is that Solaris is slower for PostgreSQL because
process switching is _much_ heavier on Solaris than other OS's.  This is
because of the way they implemented processes in SVr4.  They got quite
heavy, almost requiring kernel threads so you weren't switching
processes all the time.

In a sense threads were a solution to a process bloating problem.
Linux/BSD have much lighter processes and hence work better for
PostgreSQL.  Again, this is only a guess.

MySQL does more stuff with threads while PostgreSQL switches process
because each backend is a process.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-general by date:

Previous
From: Alex Knight
Date:
Subject: Re: Re: Red Hat to support PostgreSQL
Next
From: teg@redhat.com (Trond Eivind Glomsrød)
Date:
Subject: Re: Re: Red Hat to support PostgreSQL