Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5832355pxv; Wed, 28 Jul 2021 22:43:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb2pWrKb/UWtUktamganVjTc8PqYmMIaK0DHU4+z0kWrIppyI0wYcH8DAt926E6UxuZpCy X-Received: by 2002:a17:907:62a5:: with SMTP id nd37mr2926812ejc.148.1627537413195; Wed, 28 Jul 2021 22:43:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627537413; cv=none; d=google.com; s=arc-20160816; b=bXvOiDZkBXWZ9DJZXI0HUMnzZoVtMQkpQyE/0N0voDPoJCLHCTITRvcT8kjG66hGk6 YtUDMvJbu62VXQ4lcV4hc9eH59VEEYfmQGSXF1acmkts0fEAySZbxPJ9zeTSIcuIi8PR kpMnBR5nU36/LcvkePZr7BdkWmMnToYSqmI0UMZL9p4lIkXKNUjbgnWm7NjbpZqsxAS+ JDsSp+LWL2tHAbEEtVdwRnVD/FF8gjKF+y53s/KVdeRPKp8XYzTzkDvSvGYGPUgXIY1W Bs4uImEbFA36bE2R6lNxIDatDZKDnpRbUmTL6LdSCuPLIYpJA9OEjQurYr9Vd6n2xwpE Yd+w== 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=+HcpLcsh3CNoV+plaqHbpcChysjrZ/XdusYt6GxVw9c=; b=l9xBRS3AnQeC6GoXxWH0ISUvQJIrAJRZUMU55QMPMXS1dkQqqpc5dLYgI01aGh1PYs D23JURH4hEXECEPP+QPa72yJG6QEv2I7paW5GILzZdaHhQ6ZjmppmIPrHGlAAJQvv1mn V6PBn8m/I8+tYoMdAlG7igeGs7DNEkZh5Ka+FDjfvUcFMAGcDBTX1YFrlGTPhE8GzGIW I5b7ww+hGDoMsK33rpYapv4yxxTb5nvts1jczmn2FbbSLz4Da8nVfiE1/NSXj5XVrUKC wHOe+tlyCGYnbzCpxdjtuUsDyRmJ7NWfblxQ2DzqwWvNFj6hOlCk3wK53lDMcMF4oRwM HpGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=DcIJNfrf; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p16si1947269ejf.217.2021.07.28.22.43.10; Wed, 28 Jul 2021 22:43:33 -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=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=DcIJNfrf; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233966AbhG2FlW (ORCPT + 99 others); Thu, 29 Jul 2021 01:41:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230300AbhG2FlU (ORCPT ); Thu, 29 Jul 2021 01:41:20 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8B2EC061757 for ; Wed, 28 Jul 2021 22:41:17 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id u9-20020a17090a1f09b029017554809f35so13805568pja.5 for ; Wed, 28 Jul 2021 22:41:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+HcpLcsh3CNoV+plaqHbpcChysjrZ/XdusYt6GxVw9c=; b=DcIJNfrfd9acLnz+K8zFDe8LrcphOUGZZBq5aI6EbzPV4L6yHCZBeg1Rw7ApJaCO4X HWfwLpABI1tGiw7g3IelNruyBKpK5WgwIrpxo3p/2bTitSDU2ef7Sunmcz2GA21O2me6 SyRYFQFvp62zsqWo9VpE8BWa6sLniiXXzkixlsYKgAxUFUef6lZFVrafwg46MxYI0Yl8 q+ilXoXQ9Fh4HacyntUfd9FEI3LiDg24dusH1D0C8KgT1RjN8+seFzZKXssTZ4wfPP8m VpL3X+NwcDOrO2Bh7OEPL8/dpwbxxXA684mSsmxQKBxPqdJtUNdXLA3gkGGg28hwHao3 fvLw== 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=+HcpLcsh3CNoV+plaqHbpcChysjrZ/XdusYt6GxVw9c=; b=S3Y/IOPIqZ0MMssB+CsJSNIBWS6W5T+BHlGRqfrokit8coY8pVQnRRU/8hbHUuJaP0 tufWigWmY3QK/wWS89DaxycPWVS0gMC6QB1W9/2xeuLbYnv+jgxZJA97pbOODtwKGTew wiZZlMDe6g14iUoz4DhSn+DVZW45xgJGSs9/eyK8b2YKDHJy37hvrADm/2PAkfNN+fav h1h35JA6EMqwTZh6yzszXdiKzBF87QHiOLv28ted+qP5v2PHGLvhSfEx6YR9xGilX8q6 KMbpFuTohyxl61VCqdWVwnJuCP1aHVYwJpK5FloJ64Q+MzdOfVDffARxvBZ9GbESa/DZ BYkw== X-Gm-Message-State: AOAM531mkIpmi7pFfeHepmDuoQeAO3uZWvLAIFMhfSsFcIzGgcvmrH/M mW+rgQaLmOdPaLkq0fa7DEgYAUK5aKr/xxmZDLO00g== X-Received: by 2002:a17:902:e742:b029:12b:5431:24fe with SMTP id p2-20020a170902e742b029012b543124femr3215224plf.20.1627537277324; Wed, 28 Jul 2021 22:41:17 -0700 (PDT) MIME-Version: 1.0 References: <20210728155354.3440560-1-shakeelb@google.com> In-Reply-To: <20210728155354.3440560-1-shakeelb@google.com> From: Muchun Song Date: Thu, 29 Jul 2021 13:40:37 +0800 Message-ID: Subject: Re: [PATCH] slub: fix unreclaimable slab stat for bulk free To: Shakeel Butt Cc: Christoph Lameter , Pekka Enberg , David Rientjes , Vlastimil Babka , Michal Hocko , Roman Gushchin , Wang Hai , Andrew Morton , Linux Memory Management List , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 28, 2021 at 11:54 PM Shakeel Butt wrote: > > SLUB uses page allocator for higher order allocations and update > unreclaimable slab stat for such allocations. At the moment, the bulk > free for SLUB does not share code with normal free code path for these > type of allocations and have missed the stat update. So, fix the stat > update by common code. The user visible impact of the bug is the > potential of inconsistent unreclaimable slab stat visible through > meminfo and vmstat. > > Fixes: 6a486c0ad4dc ("mm, sl[ou]b: improve memory accounting") > Signed-off-by: Shakeel Butt Reviewed-by: Muchun Song