Re: CPU bound

Поиск
Список
Период
Сортировка
Искать
От
Josh Berkus
Тема
Re: CPU bound
Дата
Msg-id
4D066D0E.6070405@agliodbs.com
Ответ на
CPU bound (Royce Ausburn)
Список
Дерево обсуждения
CPU bound Royce Ausburn <royce@inomial.com>
Re: CPU bound Craig Ringer <craig@postnewspapers.com.au>
Re: CPU bound Josh Berkus <josh@agliodbs.com>
Re: CPU bound Royce Ausburn <royce@inomial.com>
Re: CPU bound James Cloos <cloos@jhcloos.com>
Re: CPU bound Mladen Gogala <mladen.gogala@vmsinfo.com>
Re: CPU bound Jim Nasby <Jim@Nasby.net>
Re: CPU bound Mladen Gogala <mladen.gogala@vmsinfo.com>
Question: BlockSize > 8192 with FusionIO "Strange, John W" <john.w.strange@jpmchase.com>
Re: Question: BlockSize > 8192 with FusionIO Greg Smith <greg@2ndquadrant.com>
Re: Question: BlockSize > 8192 with FusionIO Merlin Moncure <mmoncure@gmail.com>
Re: Question: BlockSize > 8192 with FusionIO Scott Carey <scott@richrelevance.com>
Re: Question: BlockSize > 8192 with FusionIO Ben Chobot <bench@silentmedia.com>
Re: Question: BlockSize > 8192 with FusionIO "Strange, John W" <john.w.strange@jpmchase.com>
Re: Question: BlockSize > 8192 with FusionIO "Strange, John W" <john.w.strange@jpmchase.com>
Re: CPU bound James Cloos <cloos@jhcloos.com>
Re: CPU bound Kenneth Marshall <ktm@rice.edu>
Re: CPU bound Jeremy Harris <jgh@wizmail.org>
Re: CPU bound Mladen Gogala <mladen.gogala@vmsinfo.com>
On 12/12/10 6:43 PM, Royce Ausburn wrote:
> Hi all,
> 
> I notice that when restoring a DB on a laptop with an SDD, typically postgres is maxing out a CPU - even during a COPY.  I wonder, what is postgres usually doing with the CPU?  I would have thought the disk would usually be the bottleneck in the DB, but occasionally it's not.  We're embarking on a new DB server project and it'd be helpful to understand where the CPU is likely to be the bottleneck.

That's pretty normal; as soon as you get decent disk, especially
something like an SSD with a RAM cache, you become CPU-bound.  COPY does
a LOT of parsing and data manipulation.  Index building, of course, is
almost pure CPU if you have a decent amount of RAM available.

If you're restoring from a pg_dump file, and have several cores
available, I suggest using parallel pg_restore.


-- 
                                  -- Josh Berkus
                                     PostgreSQL Experts Inc.
                                     http://www.pgexperts.com
В списке pgsql-performance по дате отправления
От: Craig Ringer
Дата:
Сообщение: Re: CPU bound
От: Benjamin Krajmalnik
Дата:
Сообщение: Re: Hardware recommendations
FAQ