Re: Postgres refusing to use >1 core

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Postgres refusing to use >1 core
Дата
Msg-id 4DC9E7C5.9080309@postnewspapers.com.au
обсуждение исходный текст
Ответ на Postgres refusing to use >1 core  (Aren Cambre <aren@arencambre.com>)
Ответы Re: Postgres refusing to use >1 core  (Scott Marlowe <scott.marlowe@gmail.com>)
Re: Postgres refusing to use >1 core  (Aren Cambre <aren@arencambre.com>)
Список pgsql-performance
On 11/05/11 05:34, Aren Cambre wrote:

> Using one thread, the app can do about 111 rows per second, and it's
> only exercising 1.5 of 8 CPU cores while doing this. 12,000,000 rows /
> 111 rows per second ~= 30 hours.

I don't know how I missed that. You ARE maxing out one cpu core, so
you're quite right that you need more threads unless you can make your
single worker more efficient.

Why not just spawn more copies of your program and have them work on
ranges of the data, though? Might that not be simpler than juggling
threading schemes?

--
Craig Ringer

В списке pgsql-performance по дате отправления:

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Postgres refusing to use >1 core
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: Postgres NoSQL emulation