Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp17771imm; Mon, 4 Jun 2018 12:12:22 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKGj92uAHs1hzvJaYqmCLmaRbFef2jYgZIzgEbWmTzIYoX2w/ceYTkPIMY2P2g1lK1JyrRu X-Received: by 2002:a63:7c0b:: with SMTP id x11-v6mr17911158pgc.384.1528139542105; Mon, 04 Jun 2018 12:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528139542; cv=none; d=google.com; s=arc-20160816; b=sGnhRuiDydCOm1UmBwoiccdxOC5aHHLzNalwH/dfrAQqrkTg4ADCw+VX5afE1I/EV6 txDyJ7uiuXht95bl3vi7LLV369QWv/nrD/8giUtJdawQuPqHCyW4n6DiyaUgFZxZFYeq OnFZUvq4x4ckZ3K/ZoQHhvJo4wl0zI/jpOzboPFjqdN8WeXY/IKqrQvLZjvF66h0aZoB 88cGrUwtu6FHwfImcMxXiUqxwqIg8syCrJkDpRv68pI8jS46p0P//Dfn8fZanb/58X+t +HB6j1F1RF7B5dDbZkNQzYQXkZYiUlB393uRNH3twMy9CIQ5vgzTB89diMHuDTsoUx0T qE9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:mime-version:user-agent :message-id:in-reply-to:date:references:cc:to:from :arc-authentication-results; bh=b8xEllpsxM8oAXmSHpI35Nv3kYJ+O5T+z8j/ZpunC1Y=; b=OoIMs1FGhU3J9y4LLCD3P6XgVS/Mdn2KIgMQLqnQ3Tf6QhvQLmDb54ry84ZHWk7tsO /u7pvRh0/UMVmIPXzTruKHSeOciMmnAEhIiWlpoXy1hCnjoGctSQfcCUt0r7wAjBorI/ YjLCmAU3HgsmIqppB7wgCrNF+rxiS5ikTq/EcetDZOXZin2POJPnCx0gEg9zei4stZfT jQuU6MayHFIAPJhqhSjZSpjWJPz9rlo15gGFjr2vyIZTrUiOGYh3NGi4y5nZsOZ7zx86 JJcK8MA6uAuEnTz96lGfpbEHyUE6vWLu8o8Q1AxaQeHxMrB0tCNnflla9RoNPHf1EmN8 x3UQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p23-v6si23856220plr.384.2018.06.04.12.12.07; Mon, 04 Jun 2018 12:12:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751193AbeFDTLh (ORCPT + 99 others); Mon, 4 Jun 2018 15:11:37 -0400 Received: from out01.mta.xmission.com ([166.70.13.231]:41956 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751042AbeFDTLg (ORCPT ); Mon, 4 Jun 2018 15:11:36 -0400 Received: from in02.mta.xmission.com ([166.70.13.52]) by out01.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1fPutC-00019o-Ha; Mon, 04 Jun 2018 13:11:34 -0600 Received: from 97-119-124-205.omah.qwest.net ([97.119.124.205] helo=x220.xmission.com) by in02.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1fPusw-0000yA-Vj; Mon, 04 Jun 2018 13:11:34 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Tejun Heo Cc: Michal Hocko , Andrew Morton , Johannes Weiner , peterz@infradead.org, viro@zeniv.linux.org.uk, mingo@kernel.org, paulmck@linux.vnet.ibm.com, keescook@chromium.org, riel@redhat.com, tglx@linutronix.de, kirill.shutemov@linux.intel.com, marcos.souza.org@gmail.com, hoeun.ryu@gmail.com, pasha.tatashin@oracle.com, gs051095@gmail.com, dhowells@redhat.com, rppt@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, Balbir Singh , Oleg Nesterov References: <20180524141635.c99b7025a73a709e179f92a2@linux-foundation.org> <20180530121721.GD27180@dhcp22.suse.cz> <87wovjacrh.fsf@xmission.com> <87wovj8e1d.fsf_-_@xmission.com> <87y3fywodn.fsf_-_@xmission.com> <87sh66wobu.fsf_-_@xmission.com> <20180601165034.GX1351649@devbig577.frc2.facebook.com> <87bmcuv0k0.fsf@xmission.com> <20180601191652.GZ1351649@devbig577.frc2.facebook.com> <20180604125934.GR19202@dhcp22.suse.cz> <20180604184738.GB1351649@devbig577.frc2.facebook.com> Date: Mon, 04 Jun 2018 14:11:11 -0500 In-Reply-To: <20180604184738.GB1351649@devbig577.frc2.facebook.com> (Tejun Heo's message of "Mon, 4 Jun 2018 11:47:38 -0700") Message-ID: <87d0x6jrjk.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1fPusw-0000yA-Vj;;;mid=<87d0x6jrjk.fsf@xmission.com>;;;hst=in02.mta.xmission.com;;;ip=97.119.124.205;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX1/Dtt2oFikayIh5E07/Jp3/AJXTlccI/48= X-SA-Exim-Connect-IP: 97.119.124.205 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa07.xmission.com X-Spam-Level: *** X-Spam-Status: No, score=3.5 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,TR_Symld_Words,TVD_RCVD_IP,T_TM2_M_HEADER_IN_MSG, XMNoVowels,XMSubLong autolearn=disabled version=3.4.1 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.0 TVD_RCVD_IP Message was received from an IP address * 1.5 TR_Symld_Words too many words that have symbols inside * 0.7 XMSubLong Long Subject * 1.5 XMNoVowels Alpha-numberic number with no vowels * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.5000] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa07 1397; Body=1 Fuz1=1 Fuz2=1] X-Spam-DCC: XMission; sa07 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ***;Tejun Heo X-Spam-Relay-Country: X-Spam-Timing: total 15022 ms - load_scoreonly_sql: 0.04 (0.0%), signal_user_changed: 2.9 (0.0%), b_tie_ro: 2.0 (0.0%), parse: 1.07 (0.0%), extract_message_metadata: 3.3 (0.0%), get_uri_detail_list: 1.22 (0.0%), tests_pri_-1000: 3.2 (0.0%), tests_pri_-950: 1.14 (0.0%), tests_pri_-900: 1.02 (0.0%), tests_pri_-400: 21 (0.1%), check_bayes: 20 (0.1%), b_tokenize: 6 (0.0%), b_tok_get_all: 7 (0.0%), b_comp_prob: 1.97 (0.0%), b_tok_touch_all: 2.9 (0.0%), b_finish: 0.62 (0.0%), tests_pri_0: 173 (1.2%), check_dkim_signature: 0.45 (0.0%), check_dkim_adsp: 3.0 (0.0%), tests_pri_500: 14807 (98.6%), poll_dns_idle: 14799 (98.5%), rewrite_mail: 0.00 (0.0%) Subject: Re: [RFC][PATCH 1/2] memcg: Ensure every task that uses an mm is in the same memory cgroup X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tejun Heo writes: > Hello, Michal. > > On Mon, Jun 04, 2018 at 03:01:19PM +0200, Michal Hocko wrote: >> > On Fri, Jun 01, 2018 at 01:11:59PM -0500, Eric W. Biederman wrote: >> > > Widening the definition of a process sounds good. The memory control >> > > group code would still need a way to forbid these in cgroup v1 mode, >> > > when someone uses the task file. >> > >> > Yeap, you're right. We'll need memcg's can_attach rejecting for v1. >> >> Do we really need? I mean, do we know about any existing usecase that >> would need this weird threading concept and depend on memory migration >> which doesn't really work? > > I thought the requirement is from the ->owner change so that the > association doesn't become 1:N, right? Yes. We need not the existing can_attach, but my new mem_cgroup_mm_can_attach. Even if the cgroup notion of a process is extended to be any set of tasks that shares an mm. We still need to fail cgroup migration through the tasks file for processes that are not single threaded for cgroup v1. Eric