Re: concurrent IO in postgres?

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема Re: concurrent IO in postgres?
Дата
Msg-id AANLkTimhWg9b5uE6aeog0X2rurCieF6fFF4h61dm=fpq@mail.gmail.com
обсуждение исходный текст
Ответ на Re: concurrent IO in postgres?  (Przemek Wozniak <wozniak@lanl.gov>)
Ответы Re: concurrent IO in postgres?
Список pgsql-performance
On Thu, Dec 23, 2010 at 11:46 AM, Przemek Wozniak <wozniak@lanl.gov> wrote:

> In one test I was running between 1 and 32 clients simultaneously
> writing lots of data using copy binary.

Are you by-passing WAL?  If not, you are likely serializing on that.
Not so much the writing, but the lock.

> The problem is that with a large
> RAM buffer it all goes there, and then the background writer, a single
> postgres process, will issue write requests one at a time I suspect.

But those "writes" are probably just copies of 8K into kernel's RAM,
and so very fast.

> So the actual IO is effectively serialized by the backend.

If the background writer cannot keep up, then the individual backends
start doing writes as well, so it isn't really serialized..

Cheers,

Jeff

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

Предыдущее
От: "Pierre C"
Дата:
Сообщение: Re: concurrent IO in postgres?
Следующее
От: Mladen Gogala
Дата:
Сообщение: Re: concurrent IO in postgres?