Re: Shared memory usage in PostgreSQL 9.1

From: Tomas Vondra <tv(at)fuzzy(dot)cz>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Shared memory usage in PostgreSQL 9.1
Date: 2011-12-04 14:33:47
Message-ID: 4EDB84CB.8090000@fuzzy.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 4.12.2011 15:06, Stephen Frost wrote:
> * Christoph Zwerschke (cito(at)online(dot)de) wrote:
>> (Btw, what negative consequences - if any - does it have if I set
>> kernel.shmmax higher as necessary, like all available memory? Does
>> this limit serve only as a protection against greedy applications?)
>
> Didn't see this get answered... The long-and-short of that there aren't
> any negative consequences of having it higher, as I understand it
> anyway, except the risk of greedy apps. In some cases, shared memory
> can't be swapped out, which makes it a bit more risky than 'regular'
> memory getting sucked up by some app.

AFAIK it's "just" a protection. It simply allows more memory to be
allocated as shared segments. If you care about swapping, you should
tune vm.swappiness kernel parameter (and vm.overcommit is your friend too).

Tomas

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Christoph Zwerschke 2011-12-04 15:20:18 Re: Shared memory usage in PostgreSQL 9.1
Previous Message sfrost 2011-12-04 14:17:13 Re: Shared memory usage in PostgreSQL 9.1