From:
Stephen Frost <sfrost(at)snowman(dot)net>
To:
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc:
Alex Hunsaker <badalex(at)gmail(dot)com>,Magnus Hagander <magnus(at)hagander(dot)net>,Alvaro Herrera <alvherre(at)commandprompt(dot)com>,Andrew Dunstan <andrew(at)dunslane(dot)net>,PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject:
Re: Setting oom_adj on linux?
Date:
2010-01-08 22:24:06
Message-ID:
20100108222406.GW17756@tamriel.snowman.net (view raw or flat )
Thread:
2010-01-04 15:39:14 from Magnus Hagander <magnus(at)hagander(dot)net>
2010-01-04 15:45:41 from Alvaro Herrera <alvherre(at)commandprompt(dot)com>
2010-01-04 15:57:28 from Magnus Hagander <magnus(at)hagander(dot)net>
2010-01-04 16:03:47 from "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
2010-01-04 16:07:31 from Andrew Dunstan <andrew(at)dunslane(dot)net>
2010-01-04 16:10:54 from Magnus Hagander <magnus(at)hagander(dot)net>
2010-01-04 16:40:02 from Andrew Dunstan <andrew(at)dunslane(dot)net>
2010-01-04 16:41:42 from Magnus Hagander <magnus(at)hagander(dot)net>
2010-01-04 16:55:15 from Alvaro Herrera <alvherre(at)commandprompt(dot)com>
2010-01-04 16:59:00 from Magnus Hagander <magnus(at)hagander(dot)net>
2010-01-04 17:00:28 from Alvaro Herrera <alvherre(at)commandprompt(dot)com>
2010-01-04 16:59:46 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2010-01-07 23:58:16 from Alex Hunsaker <badalex(at)gmail(dot)com>
2010-01-08 03:26:14 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2010-01-08 03:46:23 from Alex Hunsaker <badalex(at)gmail(dot)com>
2010-01-08 12:07:21 from Magnus Hagander <magnus(at)hagander(dot)net>
2010-01-08 14:27:53 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2010-01-08 16:01:31 from Alex Hunsaker <badalex(at)gmail(dot)com>
2010-01-08 16:37:10 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2010-01-08 16:45:50 from Bruce Momjian <bruce(at)momjian(dot)us>
2010-01-08 17:12:13 from Stephen Frost <sfrost(at)snowman(dot)net>
2010-01-09 21:06:59 from Peter Eisentraut <peter_e(at)gmx(dot)net>
2010-01-09 21:53:24 from Alex Hunsaker <badalex(at)gmail(dot)com>
2010-01-09 22:07:29 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2010-01-09 22:04:34 from Andrew Dunstan <andrew(at)dunslane(dot)net>
2010-01-11 18:43:27 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2010-01-08 17:07:14 from Stephen Frost <sfrost(at)snowman(dot)net>
2010-01-08 17:11:00 from Alex Hunsaker <badalex(at)gmail(dot)com>
2010-01-08 17:24:39 from Stephen Frost <sfrost(at)snowman(dot)net>
2010-01-08 19:30:44 from Alex Hunsaker <badalex(at)gmail(dot)com>
2010-01-08 19:45:05 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2010-01-08 20:22:38 from Alex Hunsaker <badalex(at)gmail(dot)com>
2010-01-08 22:24:06 from Stephen Frost <sfrost(at)snowman(dot)net>
2010-01-08 22:38:22 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2010-01-09 03:46:10 from Alex Hunsaker <badalex(at)gmail(dot)com>
2010-01-09 03:57:07 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2010-01-08 17:24:18 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2010-01-08 17:37:11 from Robert Haas <robertmhaas(at)gmail(dot)com>
2010-01-08 17:56:28 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2010-01-08 17:45:46 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2010-01-08 17:34:29 from Andrew Dunstan <andrew(at)dunslane(dot)net>
2010-01-08 17:03:36 from Stephen Frost <sfrost(at)snowman(dot)net>
2010-01-08 14:53:59 from Bruce Momjian <bruce(at)momjian(dot)us>
2010-01-08 15:24:05 from Alex Hunsaker <badalex(at)gmail(dot)com>
2010-01-04 16:17:19 from Greg Smith <greg(at)2ndquadrant(dot)com>
2010-01-04 16:49:26 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2010-01-04 18:09:43 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2010-01-04 18:32:36 from "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
2010-01-04 21:34:45 from Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
Lists:
pgsql-hackers
* Tom Lane (tgl(at)sss(dot)pgh(dot)pa(dot)us) wrote:
> Alex Hunsaker <badalex(at)gmail(dot)com> writes:
> > Sure this was openssh? I just looked through the entire cvs history
> > for opensshp and found 0 references to 'oom' let alone 'oom_adj'.
> > Maybe something distro specific?
>
> FWIW, I see no evidence that sshd on Fedora does anything to change its
> oom score --- the oom_adj file reads as zero for both the parent daemon
> and its children. Kinda scary to realize the OOM killer could easily
> lock me out of boxes I run headless.
There were a few issues, as it turns out, the particularly annoying one
was in the init script which caused upgrades to fail due to sshd not
being restarted, bug report here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=473573
The other issue was with a Debian-specific patch which was applied to
OpenSSH which basically just created noise in the log file, bug report
here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487325
In the end, the problem was with errors being returned from attempts to
modify oom_adj. As long as we can just ignore those hopefully there
won't be any issues.
Thanks,
Stephen
In response to
Responses
pgsql-hackers by date
Next :From: Tom LaneDate: 2010-01-08 22:38:22
Subject : Re: Setting oom_adj on linux?
Previous :From : Guillaume LelargeDate : 2010-01-08 22:22:34
Subject : Re: Application name patch - v3