Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2452990pxb; Tue, 23 Feb 2021 07:25:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJx04ZeuBM+PJYbArouB+AAX5OD2ACZ5BJG2prLoBiLMRZeHOCJ7Y06yaAATDFqp3BK9jJr1 X-Received: by 2002:a17:906:b214:: with SMTP id p20mr18424513ejz.22.1614093953291; Tue, 23 Feb 2021 07:25:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614093953; cv=none; d=google.com; s=arc-20160816; b=d4JDQijx6sRD+Wd8fjXOuzPChGG3kDdHEN+qQqP7nWqh1LgjdLXX7LTbI0llv8SHup u083OK5lVf8+V3GJHGwBvlyBXj3Gd0eJEEWhLQV1P2d/Sv70fu79fkcJY8P7CI78vb5Z MJAy4eS5I0YgekdNdYHJs8lfdHW6EwtqMvUTtVl6TwarAEmRvL3rYgo/atYP17V1OmJL LpL+AvbW4CW/IRmemi2AcDJ+4KdGmz+xeWg8i8noWiJGw6/wHQFGU103yki5ns2Me6OY zNPXo18/Ac1VLwuWvZnRkPnrgCROqbBHp4JLEHP6J84YE6AUiMSll03Lf1spKGD2SUOc ZWig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=XGL+ZEl1VxWchCvh5LCCnMOsswk/yP/QAWF1B7tp0PE=; b=NswFdhLHAYtPPzLrJSY/EVSX5hSpZsZueZXrlbeLwviVlIEXYS8EhjnUyU2y+DIXmJ 5hJuPXpp8rwZXKAgLsspHB7+0PM4tr/TfnlSjV8iJd0dC9eij6rWCrTvv1gwEuJjHHTH j1AlkzHfEMcnZvIin3GN1bXLflhKp5WWxP3Oj5vBmUsmAvR/TlPkRDU80xlJRvEsj5Il P8be+P3f4fcpdz9yd1hU8pplBKHlzpH6WdKcBJDKGhYSbf3xEPXCjqkOdO3d64FOLgca 2rMhrw4tguCgQoN2kmj87d9qUPfbzYSG8gRQLeKNUo3vA6xXA7H5AW7YPix88qZmIahX Pmhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Wy4BbxDE; 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 d17si2954064edp.404.2021.02.23.07.25.28; Tue, 23 Feb 2021 07:25:53 -0800 (PST) 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=Wy4BbxDE; 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 S233195AbhBWPWz (ORCPT + 99 others); Tue, 23 Feb 2021 10:22:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233175AbhBWPWx (ORCPT ); Tue, 23 Feb 2021 10:22:53 -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 9B115C061574 for ; Tue, 23 Feb 2021 07:22:10 -0800 (PST) Received: by mail-lj1-x232.google.com with SMTP id u4so17982778lja.3 for ; Tue, 23 Feb 2021 07:22:10 -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=XGL+ZEl1VxWchCvh5LCCnMOsswk/yP/QAWF1B7tp0PE=; b=Wy4BbxDEhgR4O7gMewi35UNKdoIq+5jPJHkEkUPI4l+zHkf/xvB3AtgtOh0iXos53O Zk5wGQPK48Zhpdf64dMiDAILYpmCATxqBwyi0OlNqSYSwz+hK+/9WNhp8lMNLJqBX99c wK4rGFVCouTcrfF/JOUpofuiPJ8fF49tqSkBBrTFMUmEw9nAgfPYyBuuln6d8YW5I8Vc keqpKNlB6pCw7G2BICq8n+GOkqOstBrhwKcOBIXQybErStqxgPXeiIgiNLY1VeybMdgO kzt0LAl78laUJAX1afg+UQPm4iS7baqN1P55qK5me5WGklMBebxv6wW+nN/50r8akgA1 a/dQ== 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=XGL+ZEl1VxWchCvh5LCCnMOsswk/yP/QAWF1B7tp0PE=; b=fgh2tGwaf8cP4lsQi8l4WCPCRm7gPT3tisIn5D409nmLLzAkqNq2Da11tRNVReDJJz qEqJEpaj63bJLT42G+NTMo9Y+R7Mw8dPau1l1UsqbTSuDeVZviknqh94GESq3kzUK3kk GVkdPv08iOTKEP0cOQK8dodx3pvcQrbzMl4VMOsqD7VE9Te0+5DBL+P4AqfJKkAhKAKK 4dp4ax2qFI/hk6iqt7BepTfgxXeaAbYwSGWUFkDKgbRvj/eCk2gwm4MvJXLs82g32y8X ImqNleSIl5XJbKYh0buEjWfwFoltBBqVHqtAfJnbmuZTLH5Us6pkWOXmwiMX9lioZF22 eCDw== X-Gm-Message-State: AOAM532p//XM26ePrWK/hkaKuMV+SeCy/0Wqr0OM0zQv1x1ezgO/IdV3 bzIvfika6D8Jb5hhis6tWDQIglT2OuRTK/MzkukgvA== X-Received: by 2002:a2e:b4e8:: with SMTP id s8mr17816849ljm.34.1614093728978; Tue, 23 Feb 2021 07:22:08 -0800 (PST) MIME-Version: 1.0 References: <20210223092423.42420-1-songmuchun@bytedance.com> In-Reply-To: <20210223092423.42420-1-songmuchun@bytedance.com> From: Shakeel Butt Date: Tue, 23 Feb 2021 07:21:58 -0800 Message-ID: Subject: Re: [PATCH] mm: memcontrol: fix slub memory accounting To: Muchun Song Cc: Johannes Weiner , Michal Hocko , Vladimir Davydov , Andrew Morton , Roman Gushchin , Cgroups , Linux MM , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 23, 2021 at 1:25 AM Muchun Song wrote: > > SLUB currently account kmalloc() and kmalloc_node() allocations larger > than order-1 page per-node. But it forget to update the per-memcg > vmstats. So it can lead to inaccurate statistics of "slab_unreclaimable" > which is from memory.stat. Fix it by using mod_lruvec_page_state instead > of mod_node_page_state. > > Fixes: 6a486c0ad4dc ("mm, sl[ou]b: improve memory accounting") > Signed-off-by: Muchun Song Reviewed-by: Shakeel Butt