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.2 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 35AAAC41621 for ; Tue, 2 Mar 2021 08:50:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0B10D64DE8 for ; Tue, 2 Mar 2021 08:50:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381958AbhCBIrk (ORCPT ); Tue, 2 Mar 2021 03:47:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242009AbhCBDni (ORCPT ); Mon, 1 Mar 2021 22:43:38 -0500 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E305FC061793 for ; Mon, 1 Mar 2021 19:43:40 -0800 (PST) Received: by mail-lj1-x232.google.com with SMTP id u4so22173715ljh.6 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=ZXNWriBDIoivCqclT0kM4wcxrMiBsDCeDuZI8ygdSk6Py6oPzoLGh1ebp4lzL4Jk3e e73JWDUVyG1OcNSwu4sZT8jEIwPq9tCZlY//iZDfJEMS9FLUz4Lc0SDgSDcFpHnTJlAF nP/ZwOz33AzpoRjC66SYSkpYdprfG+N4llTxehBIne17wGLHcoClNFgycMyzmFG3JDwZ mj38daqvmlSzM2KXpWKXsgTlSYvJOHdaQ4vazqaAYHwOZEFYKFR2u79t4KyghAFk7Cpq wcLABlhP5YB0btG1tp8tzeX8jpolw3phRfSpiIWD451hZSHq/L4Qs1DIHAghKeyo0hYc P78g== X-Gm-Message-State: AOAM531TJ7Ovk3owJX7CxBRyFJYibOSANc7FKUv8KykD/88sn3+K26kl s957H37tp+RGyqWXOZQVn3jd2puCFpHxkwtlLF9LMQ== 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" Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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.