Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp522610pxa; Fri, 21 Aug 2020 13:24:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0kUdxOCcTigfnUjt8ve5Q2UHzQmAMn1d2A2S1z2jhTm8ccTqbbBJYbo3GU0OExKreXWWc X-Received: by 2002:a17:906:71d3:: with SMTP id i19mr4535403ejk.459.1598041478342; Fri, 21 Aug 2020 13:24:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598041478; cv=none; d=google.com; s=arc-20160816; b=kChPORMFO6Uv5yQaDXzKHC+fjj4AMt0uVNuQ971xwGsQH1IKWqI5kNH+SLE8OGmWWl RDrQjJVq74e9VS6rZxCYkCnMnO9p1sxL7MI51ZgZMajq0cpPBYon3W5QBzJ8mVK4AXy9 Ksn7rDVQYUK80kMulyI1XSTNqOHg+vBwSv3J9204a5DYeY0f3cJkgITkqC034vXfDcsO gXhoE8muQlqt4ErjZT7bitIwRaTnFLxqjJ81mOBjiui3yRmrVTYBmNncEjjSsfc1w8PD RZ2vvtLKx6NkC3M/jJT1A84aBUm3UEhDGqN4DImr4x8u92S2sxHiFpYV4qab2z46GNFA vhLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=3D+TqH2GckoXVS0G3AVPPpXHl/Ts1q0PzrQAkDG5DxU=; b=pm3vZpy6f9Co9IPZEFJEuDPCk41MABatBcqC7vbV86/Jpf7OXveL4LxAaEDaN5cA4z H0h7VgrxX2EHkA8qDxOljsR1WW2k0JKycld/7U8yGWEq0+3FIV+vFVvdHWLlcqwDM8VT fP9aoQOg7TTOR02V8TIVH/VvYm2te7pKYOI58WMhww8OzRXvjuk8E4DfVSMX6seD+zDo wajoQphitJicPbUWivm036TwDFE4hY4Dd6FXQx7APxX2I2CZ5fHbHVD8j6cnl7uU7EWL WRyWMsfAJUCvokefgpqWdGw9TStbslyzLSrGUGsWNLAbZTDq3Aistf1KSgg7YYt/A5R1 fnlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Iaf2NJFc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c67si2034631edf.421.2020.08.21.13.24.14; Fri, 21 Aug 2020 13:24:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Iaf2NJFc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726473AbgHUUXi (ORCPT + 99 others); Fri, 21 Aug 2020 16:23:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725804AbgHUUXh (ORCPT ); Fri, 21 Aug 2020 16:23:37 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 552B5C061573 for ; Fri, 21 Aug 2020 13:23:36 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id v4so3247047ljd.0 for ; Fri, 21 Aug 2020 13:23:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3D+TqH2GckoXVS0G3AVPPpXHl/Ts1q0PzrQAkDG5DxU=; b=Iaf2NJFcLLPjJhCFY4NPJilmEIWG1EFZPPdHf4a8cj0cg5EIjHpega0AiSsQdtW2bk gfJ+fc6kt7IQS7SnbVWnC7nVl1NCVvIvAYMA+W7ZX4lygUpP1+w1ZAYWXppaTBAf8FnJ HLiubgJccGNPYTJixoFrXXnbWGuO3t08zDeHSeMZCXjnotaLbkFq91VPkpSg8AOzFma2 6iZ7V4Oefj3vBgGenVmlNikMMYEnqUWK1a+A4pNOYTR11AA0IqAS6HeY4XIaHwSMRWmH w3QNtXRLNxeUZuRdcDTgKqZ6ih6/11rJX2eAqK4u7o5a+KWL4L4g4AZjl5yls4ZEKP7/ G2Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3D+TqH2GckoXVS0G3AVPPpXHl/Ts1q0PzrQAkDG5DxU=; b=dAiW7Ocwu1U57lhPszO3oFsaAQAvMprQ7ZamfHwlym5HQzh1kXT8pa/scbwi9po/Pa PdaGC2vhhdAg4Wg8IAzJzdmKor7LH91PgD80eMAgUOisLCp4MkkNpLcrVUCxqdihkiwm BeE7157/5ovtmon9xLPt6Thyf35oWSwAisT2WaZ3keblpOW48RftQ2tvOO193aWvVHYq UxhtvrRMFKq3vHyjJI+ccbog7zBE7vwHnlyVO51Nwh4ziY8I5EF/qIOHfu7xECQG2caY KUjFo90RZ+KL+jsvgjllzm5eLwQ90BaGTWnKujAEuehh5RD4Sz2vpT3mxPOiQtJjqcmq EQRQ== X-Gm-Message-State: AOAM533Of5cVemjrlxIkedZqdCIXfvzEhwBgWrrTF5pLxq/TUE7r0n1p V5qU+1Krjeu8SqLsoIwxL1uohBdBa8VaU/qX7290lw== X-Received: by 2002:a05:651c:330:: with SMTP id b16mr2290021ljp.77.1598041411383; Fri, 21 Aug 2020 13:23:31 -0700 (PDT) MIME-Version: 1.0 References: <20200528135444.11508-1-schatzberg.dan@gmail.com> <20200821150405.GA4137@dschatzberg-fedora-PC0Y6AEN.dhcp.thefacebook.com> <20200821160128.GA2233370@carbon.dhcp.thefacebook.com> <20200821200530.GA2250889@carbon.dhcp.thefacebook.com> In-Reply-To: <20200821200530.GA2250889@carbon.dhcp.thefacebook.com> From: Shakeel Butt Date: Fri, 21 Aug 2020 13:23:20 -0700 Message-ID: Subject: Re: [PATCH v6 0/4] Charge loop device i/o to issuing cgroup To: Roman Gushchin Cc: Dan Schatzberg , Jens Axboe , Alexander Viro , Jan Kara , Amir Goldstein , Tejun Heo , Li Zefan , Johannes Weiner , Michal Hocko , Vladimir Davydov , Andrew Morton , Hugh Dickins , Chris Down , Yang Shi , Thomas Gleixner , "Peter Zijlstra (Intel)" , Ingo Molnar , Mathieu Desnoyers , Andrea Arcangeli , "open list:BLOCK LAYER" , open list , "open list:FILESYSTEMS (VFS and infrastructure)" , "open list:CONTROL GROUP (CGROUP)" , "open list:CONTROL GROUP - MEMORY RESOURCE CONTROLLER (MEMCG)" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 21, 2020 at 1:05 PM Roman Gushchin wrote: > > On Fri, Aug 21, 2020 at 09:27:56AM -0700, Shakeel Butt wrote: > > On Fri, Aug 21, 2020 at 9:02 AM Roman Gushchin wrote: > > > > > > On Fri, Aug 21, 2020 at 11:04:05AM -0400, Dan Schatzberg wrote: > > > > On Thu, Aug 20, 2020 at 10:06:44AM -0700, Shakeel Butt wrote: > > > > > On Thu, May 28, 2020 at 6:55 AM Dan Schatzberg wrote: > > > > > > > > > > > > Much of the discussion about this has died down. There's been a > > > > > > concern raised that we could generalize infrastructure across loop, > > > > > > md, etc. This may be possible, in the future, but it isn't clear to me > > > > > > how this would look like. I'm inclined to fix the existing issue with > > > > > > loop devices now (this is a problem we hit at FB) and address > > > > > > consolidation with other cases if and when those need to be addressed. > > > > > > > > > > > > > > > > What's the status of this series? > > > > > > > > Thanks for reminding me about this. I haven't got any further > > > > feedback. I'll bug Jens to take a look and see if he has any concerns > > > > and if not send a rebased version. > > > > > > Just as a note, I stole a patch from this series called > > > "mm: support nesting memalloc_use_memcg()" to use for the bpf memory accounting. > > > I rewrote the commit log and rebased to the tot with some trivial changes. > > > > > > I just sent it upstream: > > > https://lore.kernel.org/bpf/20200821150134.2581465-1-guro@fb.com/T/#md7edb6b5b940cee1c4d15e3cef17aa8b07328c2e > > > > > > It looks like we need it for two independent sub-systems, so I wonder > > > if we want to route it first through the mm tree as a standalone patch? > > > > > > > Another way is to push that patch to 5.9-rc2 linus tree, so both block > > and mm branches for 5.10 will have it. (Not sure if that's ok.) > > Ok, it looks like the patch provides a generally useful API enhancement. > And we do have at least two potential use cases for it. > Let me send it as a standalone patch to linux-mm@. > > Btw, Shakeel, what do you think of s/memalloc_use_memcg()/set_active_memcg() ? > I am fine with it.