From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95424C433E0 for ; Tue, 2 Mar 2021 03:43:42 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 29F0E64DDD for ; Tue, 2 Mar 2021 03:43:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 29F0E64DDD Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id C42D68D00D2; Mon, 1 Mar 2021 22:43:41 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BCBF88D0063; Mon, 1 Mar 2021 22:43:41 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A92AF8D00D2; Mon, 1 Mar 2021 22:43:41 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0233.hostedemail.com [216.40.44.233]) by kanga.kvack.org (Postfix) with ESMTP id 90A348D0063 for ; Mon, 1 Mar 2021 22:43:41 -0500 (EST) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 5E58881CF for ; Tue, 2 Mar 2021 03:43:41 +0000 (UTC) X-FDA: 77873539842.18.890AB0E Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) by imf17.hostedemail.com (Postfix) with ESMTP id E1A63407F8EB for ; Tue, 2 Mar 2021 03:43:40 +0000 (UTC) Received: by mail-lj1-f171.google.com with SMTP id p15so13251012ljc.13 for ; Mon, 01 Mar 2021 19:43:40 -0800 (PST) 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=3B0Sx20A1r9upf4Kb0C/kpU0MZoTOmOraXVoNYgXq+0=; b=vhnQXwzEG4fSKT+nNG8JUDOp8WuwtYyM9Vz5u8UuMP5J6E6kOng7zABNCZkGIvqO/Z lF4txvkAhYVRIOspQwJRhpV/pfvlYUWQ8uOzwdf7klS7QjLw4GNL+ZBCxj7jb1kaXaWW 2EVpdc+nUpLUFYKejU4N1/NkqXpsK+iNO2iUhOD5PzWkGPjRXlFH5Vq9hI5nweviVxJ0 NpiRLjezGtQ6dFxliVjEln5wPhPJNrZsZ1EAFlEqOtxnHA3L0FT4PBwuk8yR82LJKP06 vMlaRaiuezL4cMfKgC2gSDIA/EiixC0Hmd9+1A8bYAQyOZYqpDyERlYiqDTLSGk7L7Vd 2HCw== 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=3B0Sx20A1r9upf4Kb0C/kpU0MZoTOmOraXVoNYgXq+0=; b=sTHa4M8CcY872E8i6mlSRLOVjdBPwkSKDp/JdA4B1fv9EVz441uWYTMWZpDZI5WAWk 9Gd+x7qzo7NreURSGWB2gwDiJ6lLPCpiYXZ4OJEot+3aX2uHoV/t0ki4rDqvevoW7WdH amtAYCEuAAbNqbJzSFAUpKVgCL731/C3c/w2SVIxkvpNRiVRMN2TW9yTsUURs7BTDrxN x7TsHsaW4QKONIEdzjR/E/Lck3+zJvN/mscJxUl/of2Kz0kYUplqtuyPO18vg7PSDE78 1WWCEgiSgXsD5FPa+KoVId8Joy6oAbtdNNou4xrq+wWoQyuor3cxEnx5BBUiVB38S4WL pQvA== X-Gm-Message-State: AOAM533axr2dtjrgCHghmbboQflz80lshbOzZSxWm59eOp8SlEHgG08x KfE0tNUDO6eL/omGQevPxqypRaCtS/w4d1PGkJI+Dw== X-Google-Smtp-Source: ABdhPJyC5KTWWfJMUVQrljO6hX8iwyh7wkZlnr5yI6GC2wySp0634pLrU6si7GQKQAf9+DCrxQr24mvnkUGVPNVCw6o= X-Received: by 2002:a2e:7d03:: with SMTP id y3mr9224356ljc.0.1614656619239; Mon, 01 Mar 2021 19:43:39 -0800 (PST) MIME-Version: 1.0 References: <20210301062227.59292-1-songmuchun@bytedance.com> <20210301062227.59292-5-songmuchun@bytedance.com> In-Reply-To: From: Shakeel Butt Date: Mon, 1 Mar 2021 19:43:27 -0800 Message-ID: Subject: Re: [PATCH 4/5] mm: memcontrol: move remote memcg charging APIs to CONFIG_MEMCG_KMEM To: Roman Gushchin , Dan Schatzberg Cc: Muchun Song , Johannes Weiner , Michal Hocko , Andrew Morton , esyr@redhat.com, linux-fsdevel , LKML , netdev , bpf , Cgroups , Linux MM Content-Type: text/plain; charset="UTF-8" X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: E1A63407F8EB X-Stat-Signature: 4tkd4epmx1e8fhm6wdq64anfuhwtjrj6 Received-SPF: none (google.com>: No applicable sender policy available) receiver=imf17; identity=mailfrom; envelope-from=""; helo=mail-lj1-f171.google.com; client-ip=209.85.208.171 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1614656620-530518 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, Mar 1, 2021 at 5:16 PM Roman Gushchin wrote: > > On Mon, Mar 01, 2021 at 02:22:26PM +0800, Muchun Song wrote: > > The remote memcg charing APIs is a mechanism to charge kernel memory > > to a given memcg. So we can move the infrastructure to the scope of > > the CONFIG_MEMCG_KMEM. > > This is not a good idea, because there is nothing kmem-specific > in the idea of remote charging, and we definitely will see cases > when user memory is charged to the process different from the current. > Indeed and which remind me: what happened to the "Charge loop device i/o to issuing cgroup" series? That series was doing remote charging for user pages.