Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752192AbbESRKM (ORCPT ); Tue, 19 May 2015 13:10:12 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:39811 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751072AbbESRKJ (ORCPT ); Tue, 19 May 2015 13:10:09 -0400 Message-ID: <1432055392.12412.34.camel@decadent.org.uk> Subject: Re: [PATCH] mm, memcg: Optionally disable memcg by default using Kconfig From: Ben Hutchings To: Michal Hocko Cc: Mel Gorman , Johannes Weiner , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Tejun Heo , cgroups@vger.kernel.org, Debian kernel maintainers Date: Tue, 19 May 2015 18:09:52 +0100 In-Reply-To: <20150519151541.GJ6203@dhcp22.suse.cz> References: <20150519104057.GC2462@suse.de> <20150519141807.GA9788@cmpxchg.org> <20150519144345.GF2462@suse.de> <20150519151541.GJ6203@dhcp22.suse.cz> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-jE7Fec7qAhbXZf0Hnv5Q" X-Mailer: Evolution 3.12.9-1+b1 Mime-Version: 1.0 X-SA-Exim-Connect-IP: 192.168.4.249 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3318 Lines: 78 --=-jE7Fec7qAhbXZf0Hnv5Q Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2015-05-19 at 17:15 +0200, Michal Hocko wrote: > [Let's CC Ben here - the email thread has started here: > http://marc.info/?l=3Dlinux-mm&m=3D143203206402073&w=3D2 and it seems Deb= ian > is disabling memcg controller already so this might be of your interest] >=20 > On Tue 19-05-15 15:43:45, Mel Gorman wrote: > [...] > > After I wrote the patch, I spotted that Debian apparently already > > does something like this and by coincidence they matched the > > parameter name and values. See the memory controller instructions on > > https://wiki.debian.org/LXC#Prepare_the_host . So in this case at least > > upstream would match something that at least one distro in the field > > already uses. >=20 > I've read through > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D534964 and it seems > that the primary motivation for the runtime disabling was the _memory_ > overhead of the struct page_cgroup > (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D534964#152). This is > no longer the case since 1306a85aed3e ("mm: embed the memcg pointer > directly into struct page") merged in 3.19. >=20 > I can see some point in disabling the memcg due to runtime overhead. I was also concerned about runtime overhead. > There will always be some, albeit hard to notice. If an user really need > this to happen there is a command line option for that. The question is > who would do CONFIG_MEMCG && !MEMCG_DEFAULT_ENABLED. Do you expect any > distributions go that way? > Ben, would you welcome such a change upstream or is there a reason to > change the Debian kernel runtime default now that the memory overhead is > mostly gone (for 3.19+ kernels of course)? I have been meaning to reevaluate this as I know the overhead has been reduced. Given Mel's benchmark results, I favour keeping it disabled by default in Debian. So I would welcome this change. Ben. --=20 Ben Hutchings I'm not a reverse psychological virus. Please don't copy me into your sig. --=-jE7Fec7qAhbXZf0Hnv5Q Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIVAwUAVVtuZee/yOyVhhEJAQoIMRAAlIH39TrYgnVzaO/Uycqy23LZpvz4el4d bsjUl6cZM78rlDZJSgcvsHxValZw/0SosW8kvo+S0xzQQLGJGnAFsyoCdtD4k4cj bxYW3k2yxJAOlzq7yBu6xf2s/rMAn/msyPmjqS9lU+ilvOrsxr38odYJMWY8plF2 MEJ2WTaDrspGDM/VeMQlJDw6nSzckJ7p12LodJbLre0souoxRjDzU+90fYJ5kd8a DLonrL+kL+HKxjY/jLtaQVTU8EAIRoxTPDSZaX5myTnxwOI6yLmFKg2N3kO7oB8C aY0pGWD6cjLSxdRwooVmk/Xenzwam1hHWc/12l6XOkaUs43/Xw096mYs9qv3Knhv UGNluf3Flbz+zMM7dg+UaK9jq1kPEWP/jqty4ICnRlKbSTTOtoTtLRKwAKL5bSj5 CAye+w2m77ipEJ2NxNweEsTCCxaniOvqX+IyDiPzkVTlYChaIWQfsD9hsW2Zc7T5 /2mia5f6iEeWjm/3R2MY697a1XXHj1rHAdVg5Yh0K3LE0nqNvnYZPN8pw0ab8ktz /PnVFA+ObAn+n+VBahoDdwdR/rwuXm3a5OnT32s0K9uJtOZRj+hrHkMlGVGX1II0 XLi/rBtNn9om3bvs64TX62+8HdD9v3XveeOOcvQEOAuX2MnGjjTAzg9gO4QM0uvL ZUAZvHEOCRs= =ZIn5 -----END PGP SIGNATURE----- --=-jE7Fec7qAhbXZf0Hnv5Q-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/