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

From Stephen Frost
Subject Re: Setting oom_adj on linux?
Date
Msg-id 20100108172439.GV17756@tamriel.snowman.net
Whole thread Raw
In response to Re: Setting oom_adj on linux?  (Alex Hunsaker <badalex@gmail.com>)
Responses Re: Setting oom_adj on linux?  (Alex Hunsaker <badalex@gmail.com>)
List pgsql-hackers
Alex,

* Alex Hunsaker (badalex@gmail.com) wrote:
> As long as the VM/container you are running under wont kill postmaster
> for trying to access proc-- the patch I posted should work fine.  It
> just ignores any error (I assumed you might be running in a chroot
> without proc or some such).

As I recall, oom_adj wasn't visible in the container because you
explicitly set what proc entries processes can have access to when using
VServers, and OpenSSH didn't handle that cleanly.  Guess what I'm just
saying is "don't just assume everything is as it would be on a 'normal'
system when dealing with /proc and friends", and, of course, test, test,
test when you're talking about back-porting things.
Thanks,
    Stephen

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Setting oom_adj on linux?
Next
From: Greg Stark
Date:
Subject: Re: true serializability and predicate locking