Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3939226imm; Mon, 4 Jun 2018 11:49:23 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIY7+ZR/RjP9jf2H5BZHB25YrAZ2GfJxSBRUdTKmTEiCxzZkfQhNr5x5y/7N5+zdBwJ8tTE X-Received: by 2002:a17:902:9b8f:: with SMTP id y15-v6mr23430982plp.187.1528138163629; Mon, 04 Jun 2018 11:49:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528138163; cv=none; d=google.com; s=arc-20160816; b=kZW6sBWuWoND/YPex3RLgyVDueZgysC7yRQvgaHLFhbRCPCKo5btIst/5VXKYmjiFD k8YBN8wtJUTcf31C4ywJTGw/Y1ABS6wVg9ZdlmChcal5fknScssmLoesmBqyl+C+1RSX DI2tVSyeBWbG5KL5xMjR/JJLd6UsBGrCn1PDkPSrsaK66jhCzzmySxNojNQIgJh6MsBz 5klS5ygpZyHFGlTKQJ2hku8d6dPW5TfzYP6HefQ9DxuV3cE9E2gOW9j/xtsQgorvif75 K45KmKvIyEXFWrSIlahk1v9O95dpmiSkSqFPRBNtx0YYHd4gNb0cNksCSI7GwpXDnAj7 V62w== 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:dkim-signature:arc-authentication-results; bh=tV6OL3hYOadJueNM6DnCmhsq6vIkv52DVDB29fLapTs=; b=axTClpwG4XxyHJt4kPqWzdOz4SLVx2uzb+rjf16xERnqK9AV62q4yW7soej07J2A/m Hl/0sQFttLuBHw6Rm+wTSYLCG6+KckoT3iB92eF0iIEihMbWEJNK1ss8TwZ0cVtjKgGb P+LRVhrfiXxsHy/ZSXMR+EJHgBsLNr8hL2SwYx1pGwKLR5608YCqLoDpio3DAa6GKiRL CQTuCWvn25hy64y95dbS9S9NoeTcRPuN8MlRXl+YS8tcysoExLGYAh/kM7fatSomQaBt Bi1oedd+TskFs1r4ZsZkQszQfo4e7tBNJ2C8V0E4rXQi3VtrJlw07zb8yb2FZN5+akL6 Xl/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=HFLA2hcC; 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 34-v6si47705320plz.66.2018.06.04.11.49.00; Mon, 04 Jun 2018 11:49:23 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=HFLA2hcC; 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 S1751203AbeFDSrn (ORCPT + 99 others); Mon, 4 Jun 2018 14:47:43 -0400 Received: from mail-yw0-f194.google.com ([209.85.161.194]:33450 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750915AbeFDSrm (ORCPT ); Mon, 4 Jun 2018 14:47:42 -0400 Received: by mail-yw0-f194.google.com with SMTP id u124-v6so9705692ywg.0 for ; Mon, 04 Jun 2018 11:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=tV6OL3hYOadJueNM6DnCmhsq6vIkv52DVDB29fLapTs=; b=HFLA2hcC8GrcbxMIagM58uMXa0DCRLabDzhIRUlqCS5uoIX4qYCgo8hfHhwgm1U716 UZbNW55WSq4KGMy8OJA8z9zIn9Vzh1P6zjFTEL3LXbZNzQeRokLh5H+UBLo9ZZfa5DTg 1FDw8qClRDNjJdjmIFiHFyW/exvUt7KEUM/p/O9cEdCt1+F9hmk3YSLr0nL66OkqPvKJ iFX6dGlXxeSz9rqfL6zb4UmNJ6YKR+iUpq4TT7U/rdTEXRs/0Qj8eIcVyV/HNmTaFJPr FVB9XH9FLiWG939pprDyguhVU3n941hdT+DKgh7XzG4Wce7tekLix7wV3YZs2ernhGEG QyMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=tV6OL3hYOadJueNM6DnCmhsq6vIkv52DVDB29fLapTs=; b=S96ybc0nkuCelWNUCjiJp8v8VBGjhZ5tdM2d7jIpfYzB6MS3RHRDoOsOFv2HC6oeke iUro2iFRDExnhjutWAYSUnDavlH7V/6/L5xT9kGKDcfn+aO5tKt8+MZ4irrt9Y0z3qPX EY60YfzNdHjZ2MxLlA1gyChPPhoki3mL3x7E8HEVDdgV5GPkYkcUUD4l4GKNU16FMtIX oB5HyJqNSm416ZxIqmtqcnFXwqiV7Y2PBhPmFPIDfEUrf2oyxph/cjC8VEehI3ICbLfg 1cEDY6U6vcclgqiyPH3HjJK0R3EPk34hVbIFRdaUkMFd2wuam+Axunh2WLO/dJFgjTWx ovwg== X-Gm-Message-State: ALKqPwcTjMLBtjGuo15du7LDZfYSnVxCaXDzD33fdMbFDVcI0rWA7PFg Yo/hyaZMl1xl7dDZmWzLwb73qBor X-Received: by 2002:a81:9212:: with SMTP id j18-v6mr11491763ywg.48.1528138061578; Mon, 04 Jun 2018 11:47:41 -0700 (PDT) Received: from localhost ([2620:10d:c091:180::1:da82]) by smtp.gmail.com with ESMTPSA id c125-v6sm18563027ywe.35.2018.06.04.11.47.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jun 2018 11:47:40 -0700 (PDT) Date: Mon, 4 Jun 2018 11:47:38 -0700 From: Tejun Heo To: Michal Hocko 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: <20180604184738.GB1351649@devbig577.frc2.facebook.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180604125934.GR19202@dhcp22.suse.cz> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Thanks. -- tejun