Re: pg/linux How much swap relative to physical memory is needed?

Поиск
Список
Период
Сортировка
От Vick Khera
Тема Re: pg/linux How much swap relative to physical memory is needed?
Дата
Msg-id AANLkTilRfG3nYwH7y9S1J0soZiAPlmIjjSMEHVXgRJ1e@mail.gmail.com
обсуждение исходный текст
Ответ на pg/linux How much swap relative to physical memory is needed?  (Kelly Burkhart <kelly.burkhart@gmail.com>)
Список pgsql-general
On Thu, Jun 10, 2010 at 1:50 PM, Kelly Burkhart
<kelly.burkhart@gmail.com> wrote:
> Is there some minimum proportion of swap to physical memory that linux
> or postgresql likes to have?  Is it OK for all
>

Dunno about linux, but the BSD types like to have swap = physical mem
+ delta.  If a machine crashes and you want crashdumps, it writes the
content of memory to the swap partition.  The crashdump is recreated
from the data in swap at the next boot.  For this to work you need as
much swap as RAM plus a bit more.

If you don't care for crashdumps, then what you have is plenty.  If
you run out of memory then you're probably overloading that machine
given that much RAM.  Having swap will not save you much.

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

Предыдущее
От: Kelly Burkhart
Дата:
Сообщение: pg/linux How much swap relative to physical memory is needed?
Следующее
От: Alan Hodgson
Дата:
Сообщение: Re: pg/linux How much swap relative to physical memory is needed?