Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 10, 2010 at 1:50 PM, Kelly Burkhart
<kelly.burkhart@xxxxxxxxx> 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.

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux