From: Dave Jones <davej@codemonkey.org.uk>
To: David Rientjes <rientjes@google.com>
Cc: "Michal Hocko" <mhocko@kernel.org>,
"Hongjie Fang (方洪杰)" <Hongjie.Fang@spreadtrum.com>,
"Eric W. Biederman" <ebiederm@xmission.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: 答复: [PATCHv2 4.3-rc6] proc: fix convert from oom_score_adj to oom_adj
Date: Mon, 2 Nov 2015 12:18:50 -0500 [thread overview]
Message-ID: <20151102171850.GA4258@codemonkey.org.uk> (raw)
In-Reply-To: <alpine.DEB.2.10.1510312131160.10406@chino.kir.corp.google.com>
On Sat, Oct 31, 2015 at 09:38:31PM -0700, David Rientjes wrote:
> On Fri, 30 Oct 2015, Michal Hocko wrote:
>
> > > I will hunt for other projects still using the deprecated
> > > file exclusively. Hopefully there won't be too many of them.
> >
> > It doesn't look that bad afterall:
> > $ curl -s http://codesearch.debian.net/results/7223e657af3f2ad0/packages.json
> > {"Packages":["tgt","ggobi","hurd","linux","condor","wine-gecko-2.21","android-platform-frameworks-native","nautilus","procps","wireshark","intel-gpu-tools","iceweasel","icedove","ardour","linux-tools","kde4libs","nss-pam-ldapd","chromium-browser","passenger","archipel-agent-virtualmachine-oomkiller","bleachbit","tilestache","slurm-llnl","ns3","nbd","open-iscsi","mhwaveedit","nilfs-tools","stress-ng","lvm2","gradm2","audit","postgresql-common","zfs-fuse","ocfs2-tools","gimp","advene","lldpad","reniced","pitivi","trinity","petri-foo","rtai","postgresql-9.4","procenv","multipath-tools","percona-toolkit","apparmor","upstart","watchdog","boinc","fusil","util-vserver","booth","geeqie","openssh","oar","android-platform-system-core","kinit","xournal","player","gimp-gap","android-tools"]}
>>
> I did the same type of searching and fixing back then for things like
> udev, chromium, openssh, etc to convert them to oom_score_adj. It was
> mostly trivial because people either set it to -17 to disable from the oom
> killer or to 0 to nullify an oom-disabled process.
>
> I'd love to be able to remove oom_adj. I'm not sure if we can get to that
> point if the instance is that "all userspace" must not write to it and it
> would require users to rebuild their binaries. If we could show that all
> the major open source users of oom_adj (there can't be _that_ many that
> would be significantly impacted since you needed CAP_SYS_RESOURCE to
> reduce it) were converted, maybe Linus would accept it.
FWIW, you can probably remove trinity from that list.
It only uses oom_adj as "don't write to this file if it exists".
It's absense would be silently ignored. The child processes have
been using oom_score_adj for a long time.
Dave
next prev parent reply other threads:[~2015-11-02 17:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-22 6:49 [PATCHv2 4.3-rc6] proc: fix convert from oom_score_adj to oom_adj Hongjie Fang (方洪杰)
2015-10-22 9:47 ` Michal Hocko
2015-10-26 21:42 ` David Rientjes
2015-10-27 12:37 ` Michal Hocko
[not found] ` <5eff586de266418090f792077fcff993@SHMBX01.spreadtrum.com>
2015-10-28 23:54 ` 答复: " David Rientjes
2015-10-29 3:47 ` Eric W. Biederman
2015-11-01 4:30 ` David Rientjes
2015-10-29 17:04 ` Michal Hocko
2015-10-30 12:59 ` Michal Hocko
2015-10-30 14:46 ` Michal Hocko
2015-11-01 4:38 ` David Rientjes
2015-11-02 13:08 ` Michal Hocko
2015-11-02 17:18 ` Dave Jones [this message]
2015-11-02 20:24 ` Michal Hocko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151102171850.GA4258@codemonkey.org.uk \
--to=davej@codemonkey.org.uk \
--cc=Hongjie.Fang@spreadtrum.com \
--cc=ebiederm@xmission.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mhocko@kernel.org \
--cc=rientjes@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox