Re: Re: Red Hat to support PostgreSQL

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Re: Red Hat to support PostgreSQL
Дата
Msg-id 200106272258.f5RMwIb26959@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Re: Red Hat to support PostgreSQL  (Philip Molter <philip@datafoundry.net>)
Ответы 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>)
Список 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 по дате отправления:

Предыдущее
От: Alex Knight
Дата:
Сообщение: Re: Re: Red Hat to support PostgreSQL
Следующее
От: teg@redhat.com (Trond Eivind Glomsrød)
Дата:
Сообщение: Re: Re: Red Hat to support PostgreSQL