Re: Setting oom_adj on linux? - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: Setting oom_adj on linux?
Date
Msg-id 9837222c1001040810t5e10fcf0scc432965e0609598@mail.gmail.com
Whole thread Raw
In response to Re: Setting oom_adj on linux?  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: Setting oom_adj on linux?  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Mon, Jan 4, 2010 at 17:07, Andrew Dunstan <andrew@dunslane.net> wrote:
>
>
> Magnus Hagander wrote:
>>
>> On Mon, Jan 4, 2010 at 16:45, Alvaro Herrera <alvherre@commandprompt.com>
>> wrote:
>>
>>>
>>> Magnus Hagander wrote:
>>>
>>>>
>>>> I realize this is a very platform-specific thing, but should we
>>>> consider setting the value of /proc/<pid>/oom_adj when running on
>>>> linux? See:
>>>>
>>>
>>>
>>> http://archives.postgresql.org/message-id/20080201223336.GC24780%40alvh.no-ip.org
>>>
>>
>> Grr. I had zero recollectoin of that :S
>>
>> Can't find a useful consensus though?
>>
>>
>
> It is probably worth trying to protect the postmaster in the init script.
> Beyond that things probably start to get fairly difficult.

Right. But AFAICS (though I haven't tested with -17), it will become
inherited to children, which is something we'd want to *undo*, no?


-- Magnus HaganderMe: http://www.hagander.net/Work: http://www.redpill-linpro.com/


pgsql-hackers by date:

Previous
From: Csaba Nagy
Date:
Subject: Re: Thoughts on statistics for continuously advancing columns
Next
From: Greg Smith
Date:
Subject: Re: Setting oom_adj on linux?