Re: requested shared memory size overflows size_t

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: requested shared memory size overflows size_t
Дата
Msg-id 1276721410-sup-6820@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: requested shared memory size overflows size_t  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: requested shared memory size overflows size_t
Список pgsql-performance
Excerpts from Tom Lane's message of lun jun 14 23:57:11 -0400 2010:
> Scott Carey <scott@richrelevance.com> writes:
> > Great points.  There is one other option that is decent for the WAL:
> > If splitting out a volume is not acceptable for the OS and WAL -- absolutely split those two out into their own
partitions. It is most important to make sure that WAL and data are not on the same filesystem, especially if ext3 is
involved.
>
> Uh, no, WAL really needs to be on its own *spindle*.  The whole point
> here is to have one disk head sitting on the WAL and not doing anything
> else except writing to that file.

However, there's another point here -- probably what Scott is on about:
on Linux (at least ext3), an fsync of any file does not limit to
flushing that file's blocks -- it flushes *ALL* blocks on *ALL* files in
the filesystem.  This is particularly problematic if you have pgsql_tmp
in the same filesystem and do lots of disk-based sorts.

So if you have it in the same spindle but on a different filesystem, at
least you'll avoid that extra fsync work, even if you have to live with
the extra seeking.

--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Balkrishna Sharma
Дата:
Сообщение: Parallel queries for a web-application |performance testing
Следующее
От: "jgardner@jonathangardner.net"
Дата:
Сообщение: PostgreSQL as a local in-memory cache