Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3574282imm; Mon, 4 Jun 2018 06:02:05 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI8HYzEcCVSY40CmxXxX+O8hmtb5alQauKCDYoiWNDjFMOJUA5OuxiVw5RC+pO/GVMSdOZ2 X-Received: by 2002:a17:902:8c81:: with SMTP id t1-v6mr21496137plo.310.1528117325818; Mon, 04 Jun 2018 06:02:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528117325; cv=none; d=google.com; s=arc-20160816; b=saws0m1uXqkC+7/TcemsjR/SqIqSK1lnjehfP32kRIywXwlBiM2h4M2AWNBi/eWli9 lzstilZz8tcmtEXKg5WCtEIbJpTor/9gA4jkcN5wnJNII+CnDeSArbwl4M6ELZwon2tX gWdfGjjU7JguE/9u2YXKP05gQ2zyA/+okoLugdLY6z5Idzygu3rvHI7T+3PRs5WJAJ4h YXSNuxwpy4BLQ7pqCKZk0XRMztVWqb65rJc02jPC6R1388ZZe7TKYAhkHhdk/9aIml0m ct9B42/NS9TQ/hLxqr1N31xec4DB5F8GkhtbpyY/OVEeUHI7WWjoPPOa2dzbt3o5Fa2b DcTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=1C1w7JaUcnqdmtE1hAJJBUOr2qpIw4eoma7T+daRMHY=; b=dtUY24tQFsUUV7HchKp+8ZadmsrnbGsf55JaFOGTIo83kcUfSljyoc8ovVdlC4V0wt ASx3uvDQ0nTeCLcxigiMgD4vLNjtwFaBk6vYxOtjOCz52MenvORYpTv68+eM7dL1j3Ti 4sDfswhM9OKZgkBbHYhiUZwvserAbk11rUfHYe/ELMzU4qiCnpnEVyAZZ11Z+SYBPqW+ jG2YtiME20InTVHpWUJSmC8SbNbtNhcRgUcI5SkIw4XThz1tDgmwLLT0xL99idP82vpm NtLzzevhVqkE1cYS/arAP2B7mZFON8dPOwjWWcKiqr2VgPTn5bDX0AvZPUpOnBUO/sOZ nsWg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si45596914plm.428.2018.06.04.06.01.50; Mon, 04 Jun 2018 06:02:05 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753042AbeFDNBX (ORCPT + 99 others); Mon, 4 Jun 2018 09:01:23 -0400 Received: from mx2.suse.de ([195.135.220.15]:57255 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752453AbeFDNBW (ORCPT ); Mon, 4 Jun 2018 09:01:22 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id D7CF0ACA3; Mon, 4 Jun 2018 13:01:20 +0000 (UTC) Date: Mon, 4 Jun 2018 15:01:19 +0200 From: Michal Hocko To: Tejun Heo Cc: "Eric W. Biederman" , 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 Subject: Re: [RFC][PATCH 1/2] memcg: Ensure every task that uses an mm is in the same memory cgroup Message-ID: <20180604125934.GR19202@dhcp22.suse.cz> References: <20180524111002.GB20441@dhcp22.suse.cz> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180601191652.GZ1351649@devbig577.frc2.facebook.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [dropping Kirill Tkhai from the CC because I get rejection from the mail server] On Fri 01-06-18 12:16:52, Tejun Heo wrote: > Hello, > > 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? -- Michal Hocko SUSE Labs