From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752173AbbCICee (ORCPT ); Sun, 8 Mar 2015 22:34:34 -0400 Received: from mail-qc0-f173.google.com ([209.85.216.173]:35251 "EHLO mail-qc0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751454AbbCICeb (ORCPT ); Sun, 8 Mar 2015 22:34:31 -0400 Date: Sun, 8 Mar 2015 22:34:27 -0400 From: Tejun Heo To: Zefan Li Cc: Aleksa Sarai , mingo@redhat.com, peterz@infradead.org, richard@nod.at, fweisbec@gmail.com, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Subject: Re: [PATCH v2 2/2] cgroups: add an nproc subsystem Message-ID: <20150309023427.GB13283@htj.duckdns.org> References: <1424660891-12719-1-git-send-email-cyphar@cyphar.com> <1425010639-16492-1-git-send-email-cyphar@cyphar.com> <1425010639-16492-3-git-send-email-cyphar@cyphar.com> <20150302152205.GC17694@htj.duckdns.org> <54FCFC39.6050900@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54FCFC39.6050900@huawei.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Li. On Mon, Mar 09, 2015 at 09:49:45AM +0800, Zefan Li wrote: > Seems we are going to accept this feature. Is it because kmemcg won't be able > to fullfill this requirement? And that's because kmemcg can only and will only Yeah, pretty much. > be able to control global kernel memory usage? I'm not sure what you mean by global kernel memory usage. > I thought there will be some control file like kmem.pids.max, which will > translate the number of processes to the kernel memory needed, and fail memory > allocation if we reach the limit, for example make task_struct slab return > NULL. Hmm... I don't think so. memcg will only be concerned with actual memory in bytes. Thanks. -- tejun