Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2097341pxb; Fri, 17 Sep 2021 02:01:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHPzd5kDv/W7mOzxj/1rG13kfkmjcmYHkwzyaVeNKdfkHUKgN1kMRY76IBbDSQOBujCUj/ X-Received: by 2002:a05:6638:2109:: with SMTP id n9mr7962867jaj.17.1631869287283; Fri, 17 Sep 2021 02:01:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631869287; cv=none; d=google.com; s=arc-20160816; b=Lbcd0YoSVZ5US/yaj8CDt0bYSosBsDHra6Ptd6mhiMV9/8lm8ssn+4dJWBrLBeKKLK SQ1gDp5hrF7y5rRqwCVaLPEPM8wGUdhY0EKCSK1NGUq2BZTnmlegzP29I4oY12qf/Hf3 S9Qs2EClR0Haq5LmMirxKgrfxLX6/4WWjpTwmZ3akHc7EtjqFtRrhnsosPH1Y0hm7uMR XAfGW0yNKSAVnTUBEh/n89MBLpu9nvLm5cF40CZL5I+AuH9Dk9ro2Z6z9evAzoKUYdY/ lfhFoOufFG6rRBhDEXq6qnBUQ9U6vm4lvNl3FQoDbB1r+QfeG9KwhYWcuhvJANPjBFqq BOAw== 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=23HNxgixZz7HROjNjlGvcSmaUCblTGeHOsIAJ8Co38s=; b=eXAITHpz++d/4lzNOwrZ6AIj7TN/bV/Xkwl54yMnQI6j/WHgLc6+I2KUsd2El1XYz3 AGV59w+mAjhssIjyqhaawQBXeBhDfmQRrYMIaMcdsL3Ml4OFSD0nUQJ2t9aiqmzURU3P OLmzo5GIAPoLfdMADvJrrv6sgYy4iE0BQ5wQAKVVqnjWlQHqGvEsV/2w9MJ5YjuJOCx4 EIXTtQN1sl6OeMAciYOYFn85XTMtHB57gRgwI64+vXfLlZ+siC/kHNWF4gbm5UVQxVPP AdRch47MUizcWVNYuHRJXIQy+nicA+THosMMwsKFFnOm8UlJ8XK3/su7k/jlLYzk5ZLm WZ1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=iDY2xncG; 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 13si5767246jan.43.2021.09.17.02.01.15; Fri, 17 Sep 2021 02:01:27 -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=20210112 header.b=iDY2xncG; 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 S233941AbhIPVGZ (ORCPT + 99 others); Thu, 16 Sep 2021 17:06:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232910AbhIPVGY (ORCPT ); Thu, 16 Sep 2021 17:06:24 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D362C061574 for ; Thu, 16 Sep 2021 14:05:03 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id b15so5257406lfe.7 for ; Thu, 16 Sep 2021 14:05:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=23HNxgixZz7HROjNjlGvcSmaUCblTGeHOsIAJ8Co38s=; b=iDY2xncG8BV1STCUKqiHq9fAWVQ7uxUoGme0MVCBxmh0aeyhBCf4QisYop1+EzjZiX JjchHn4ne/4IhtARj18LA568/XiZdt4l6zVCrqpGkeQYafx6Xgb/1KqQuyA8PxpRWTqf sXWiyC06t52sI02f1Xa+skdlNHN06dBwScnhizH1tsPyTfWgY/UUXu7kblbx0w8Q8sS5 KfcoSjEAUHx19x0avJSMHFmkBTMRzcoYeqTeWG7To6tj9p3zVZJzTHliHZq8KrNPzm/J G6vVuoVisa4WrkOoXs4o9llycKGwVEY80vsvzzkEyvL2IFokW+c+/NVjnuuXol2J2kNi jFvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=23HNxgixZz7HROjNjlGvcSmaUCblTGeHOsIAJ8Co38s=; b=zrOe9K4tDm9tjb3gekry8ISMNUvDb1+NwdS84AbD6VaobkboxHXAWfjbkbvBPw2qjM QeoeHXwZA96m2l1B8lPULy/9zB+og8+LlC0d+vAWsEPPvss4napRb6oTQAp1JX2gWZIt QEIO19KvrhR4tdHc6Apb0da6FtxWLxR7+kw4Ul3xeOH7yQtwg5Hnnsd0JP37E5Zpkx2T pRsHQREm9Bg8mnnMe/OfaZDBTGjJnJa8fv2D1kVSXtcz4Da0kq4zP55KWknQeKK5CYCJ cTGqHc0GMc7tZegFXGgq3GKt82Xrg3TgnmU0jYgejFufgVwXixmIER9AXuR5Pd1i/nXj Zlow== X-Gm-Message-State: AOAM532B/TD98i4CTyVLhUZjSVAZkJaIPnk/Q01y4rhrgekRRZ6E4hq4 07OQjD5QcOJX1lN/A2V4zrLda3z/vDR8wdIjz95VoA== X-Received: by 2002:a2e:9ed9:: with SMTP id h25mr6435874ljk.40.1631826301732; Thu, 16 Sep 2021 14:05:01 -0700 (PDT) MIME-Version: 1.0 References: <64b88941-9ec0-8552-d05d-6503497f6f9d@MichaelLarabel.com> In-Reply-To: From: Shakeel Butt Date: Thu, 16 Sep 2021 14:04:50 -0700 Message-ID: Subject: Re: memcg: infrastructure to flush memcg stats To: Linus Torvalds Cc: Marek Szyprowski , Andrew Morton , Feng Tang , Michael Larabel , Linux MM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 16, 2021 at 1:45 PM Linus Torvalds wrote: > > So the kernel test robot complained about this commit back when it was > in the -mm tree: > > https://lore.kernel.org/all/20210726022421.GB21872@xsang-OptiPlex-9020/ > > but I never really saw anything else about it, and left it alone. > > However, now Michael Larabel (of phoronix) points to this commit too, > and says it regresses several of his benchmarks too. > > Shakeel, are you looking at this? Based on previous experience, > Michael is great at running benchmarks on patches that you come up > with. > Yes, I am actively looking into this and the discussion is happening at https://lore.kernel.org/all/20210905124439.GA15026@xsang-OptiPlex-9020/T/#u I would definitely take up with Michael on helping with running the benchmarks. We know the source of the regression which is queue_work() in __mod_memcg_lruvec_state(). Previously we were doing atomic addition up the memcg tree. I have to come up with an approach to reduce the calls to queue_work() in that path. thanks, Shakeel