On 05/22/2015 02:38 PM, Tom H wrote: > On Fri, May 22, 2015 at 5:13 PM, walt <w41...@gmail.com> wrote: >> On 05/22/2015 06:32 AM, Mick wrote: >>> >>> Did you also enable CONFIG_MEMCG & MEMCG_KMEM in your kernel? >> >> When I use the search function in "make menuconfig" I don't see any mention >> of MEMCG, so I suspect that particular config item must be enabled by some >> other config option that I didn't enable (though I don't remember making >> that decision one way or the other). >> >> I'm running gentoo-sources-3.14.42. > > You must've mistype your search: > > $ grep MEMCG init/Kconfig > config MEMCG > config MEMCG_SWAP > depends on MEMCG && SWAP > config MEMCG_SWAP_ENABLED > depends on MEMCG_SWAP > config MEMCG_KMEM > depends on MEMCG > recommended that the MEMCG and MEMCG_KMEM options also be > > The above was from 4.1.0-rc4 but AFAIK it's existed for 2 or 3 years > so you should have it in 3.14.
Yes, I agree that MEMCG has been in the kernel source code for years. I want to emphasize (for any future googlers) that the selection (or de-selection) of kernel config options can change what you can find or can't find when configuring kernel options in "make menuconfig". This is important, and I want to drill this concept home in your (collective) brains. Configuring the linux kernel is *not* simple. The kernel devs have been struggling with this idea for years, and I am certainly no smarter than they are. Please, just understand that the kernel config scripts are fallible, just like the people who write them.