Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp942205imm; Fri, 1 Jun 2018 12:18:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK1EgXnHic1Z8o0BryCVao7jK/ZCTm3XSdSSJAR23Rh6yXd1+dpx73DQQkNVNnXU3Z4RPPb X-Received: by 2002:a62:ccdc:: with SMTP id j89-v6mr12011086pfk.232.1527880726838; Fri, 01 Jun 2018 12:18:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527880726; cv=none; d=google.com; s=arc-20160816; b=CdqpIrIx8kOjE8ptCL72RAmjOPnQ4S5PYGhQR3XYUKhYYTKuu0e4fr1sTSbF6uW31V 8/Vd5ffihd9y3JTE6tRzQ8QZ1Nk7Q4SLrEXplxFU8QGyhTuLQABdY4Iqv/PgGH9Ora+d jL2WiwJitl7CdLxgv0ajTDNbFdZmjeOXOh4Z6/pqct2Ds56YExGhHNuM4KziwHwMTwF0 j0tsGMOMwD4onDVUUjFrgxlnyiKjXv97ZjKUyflNYkT4612bLxvgj6bdAOy0QFTJfwER +aZmqW1y9NDwRHQ1Pz1aMXRuHVUwOUaPwRBCZb7fRulOlr6E0GoMHCWhfivyOwszs9FC B7FQ== 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=hX0MhEqSP9wuoY12v5FwO4l2zBoga9N3tWD5IDA65Kw=; b=SzzcqkLEquLL8xBl7/M/nErL9nMd9i1CqEjgJfU9D/U7OacbfGSut1yCTDpi+THTkM xtPEwzkt83CKBXwj3Ott6neJo+f8mcD/1XEbjhMHg1nmEIovGR1T2DoZ3lUtTG0Y+mAQ tyQ/vkzWV4sOil88YDiN0YNwRDHDK/wQBEM1LJrAnHKYcNYErgjmz9WMD7b7KrJ3TGHF eqAC8oaq7wA2xfgamj3WX1FJw+mG4/AJI/N+FThaGIaP/A7NrqENT0Ozn4ddpAn4Iy8u +p1+/CTuvQL60YaxI88dGfd1GWa9kf7voQNZyizAhb8q0KDsqv6/TyT/g+iDyNaIZJP/ f+0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=o0+6j2qQ; 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 p1-v6si40796882plb.204.2018.06.01.12.18.32; Fri, 01 Jun 2018 12:18:46 -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=o0+6j2qQ; 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 S1753427AbeFATQ5 (ORCPT + 99 others); Fri, 1 Jun 2018 15:16:57 -0400 Received: from mail-yw0-f195.google.com ([209.85.161.195]:45392 "EHLO mail-yw0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753135AbeFATQz (ORCPT ); Fri, 1 Jun 2018 15:16:55 -0400 Received: by mail-yw0-f195.google.com with SMTP id v190-v6so6251629ywa.12 for ; Fri, 01 Jun 2018 12:16:54 -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=hX0MhEqSP9wuoY12v5FwO4l2zBoga9N3tWD5IDA65Kw=; b=o0+6j2qQd3KwvEgZu/OAFh8mTrdhwT/Hv640zTc8Fmzyi2cXiS+W2fiu8IKv3EzUR1 2DcetkHDt/Qh42apMovWfvtRNeRmMcUTAw0lMt/Ek7uvjpZfyoGKOAwdR/4H27/J08pE sIuBwiJeMOJ83e12jZpdxVrq5qRoW8WMEnHeTZxST7yd4Zo3ZlaWD/nLFue3pQ4mU2K0 MBujWuk+g4Io9goKTVuRt7hjVDXM+yyyaJAhTDvx1PF45Cm/V4EbADYvrK4w9GizVOIA oLO61dtvOsvShjsAL+YBXeMWiaAyd3X52SWMT5YMrrbl3dwZJX1bbadvXN/J75d9Pw8U yJwA== 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=hX0MhEqSP9wuoY12v5FwO4l2zBoga9N3tWD5IDA65Kw=; b=hrQEphKcHOOipQVIfY2WeFDSV6+dlwyCxSWC67rYbj/wI5zUzWwvbAI4iKjKwA5BW2 W2vwEmUIrSxxe+ZtLPZ+ewAnug8iiHzf0hFrgCVdLS5ZG7IR7O4HU5IRtMHmiQWuuhIr Q4pP16umIo1rO9TWxCd6WoTdxZ/twfAMFNGBwHCQRZFt5DqeJKhNv1UBazVZlmoCBcA9 WWBJHwb7X3gyFKCBxiGlIMwLIZBQnVfEMxNDYMQ0HZVOqOVPgeucI/Wq4R/irfGMZEbI V5qd3VzLgwzbgEDWmY277Nrct8uOk+BJdGv3ngmDfy+ubTmYLtFQvlVlioo+6rV5Fz/m eDqQ== X-Gm-Message-State: ALKqPwdlOf6euUDJJP1UGYYTOaya0/RH8eRC3CMukrrJVbbYsevkmZ/p 3TLcOvWAN+PAzJ7lZ2WKuCZbGj5q X-Received: by 2002:a81:1e51:: with SMTP id e78-v6mr6463545ywe.398.1527880614460; Fri, 01 Jun 2018 12:16:54 -0700 (PDT) Received: from localhost ([2620:10d:c091:200::e2e0]) by smtp.gmail.com with ESMTPSA id o184-v6sm18205003ywb.81.2018.06.01.12.16.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Jun 2018 12:16:53 -0700 (PDT) Date: Fri, 1 Jun 2018 12:16:52 -0700 From: Tejun Heo To: "Eric W. Biederman" Cc: Michal Hocko , Andrew Morton , Johannes Weiner , Kirill Tkhai , 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: <20180601191652.GZ1351649@devbig577.frc2.facebook.com> References: <87wovu889o.fsf@xmission.com> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87bmcuv0k0.fsf@xmission.com> 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, 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. > Using widening instead of denying should reduce the risk of introducing > a regression. > > The only reason I support the crazy case in my earlier patch is so that > we can have this discussion and in case we do cause a regression with > this change the previous algorithmic cleanup won't have to be reverted > as well. Yeah, sure thing. Thanks a lot. -- tejun