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

From Stephen Frost
Subject Re: Setting oom_adj on linux?
Date
Msg-id 20100108170336.GR17756@tamriel.snowman.net
Whole thread Raw
In response to Re: Setting oom_adj on linux?  (Magnus Hagander <magnus@hagander.net>)
List pgsql-hackers
* Magnus Hagander (magnus@hagander.net) wrote:
> Do we need to make the value configurable? I'd certainly find it
> interesting to set backends to say 5 or something like that, that
> makes them less likely to be killed than any old "oops opened too big
> file in an editor"-process, but still possible to kill if the system
> is *really* running out of memory.

We do need to make it configurable, in at least the sense of being able
to control if it's done or not.  There are some environments where you
won't be able to set it.  Perhaps just handling failure gracefully would
work, but I'd be happier if you could just disable it in the config
file.
Thanks,
    Stephen

pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: damage control mode
Next
From: Greg Stark
Date:
Subject: Re: true serializability and predicate locking