Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4567004rwl; Tue, 28 Mar 2023 08:29:14 -0700 (PDT) X-Google-Smtp-Source: AKy350a0DAmrL5olO/abpb37tzLawQwF+SsEiWeCnCAez43lt2W6iZk6vlzaFEXgQogk1PqDon1y X-Received: by 2002:a17:902:d153:b0:1a0:5d0b:c31e with SMTP id t19-20020a170902d15300b001a05d0bc31emr11447079plt.44.1680017354234; Tue, 28 Mar 2023 08:29:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680017354; cv=none; d=google.com; s=arc-20160816; b=S7gZYuaO8Jeyslqzu2Mjv1dC6xOMDvo+Bg7DbZwtNVoIpM3IpZbYVVtSgBvp9335Sl TEaoVyZLYkfjQsqkQFvfKbrfudElat5LgUIWxXIsVxsDpuqruVCpcaa+VM1zsNxRjDGH 5hsUfoi0hnhV0mcgD36ciP+RveUWlMS7VKxPUFSrh5y1fuidKNqa8w6KviWmpQ6kB8mo kerS8Yb0wHvZeG7TY6rHKjPkBOyr8EP7FRf9tdU+Z3RQeiDA5b0yoGjAO4F7AFeEEjNi 2wYEo1RdBcxpMO7rv8bZaCTJpxOJspuKXVWOoZJmHSV1Cmtw+SLnLB9YQ2tvy6M6rG2y bqgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ONZYLiGDk21RMFgMpaXH7s4UWxHkNsJ+wUGHRFEkuCc=; b=ZQL0ww6xnLqIs8wIiqYavb5699FEQ6eZxnKbhvX/trvpnR0Y6AG1bySWaVpNINusb9 6nMd+qAzV296R6/HxHzfyVb1WGKtHcm7ydlnqhj3RoWH02A9aiP2F7LiwcfTiCyG9w6M g1o5xwiFqRSDvPJJVaDBrL2gXhntRIjkVJrgKOQ0iWS0N2/z6ywf48YRUUCitSjsSOPr CYpymutOAdwGpa6hUxM1BOLjZVX1UEcaGtuy/dl9H4+O0hEv4jNEZ3Cc2X2DOKKf0//G p4y4MlJDdK/4h67WTj8ZSLl79Zll6fiFx5KRL/6+FrDRJlPl/NA+1vkgdn0WOTq7WsYN OQfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=c8ynwXPs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z14-20020a170903018e00b001990a6daf9fsi24606083plg.535.2023.03.28.08.29.02; Tue, 28 Mar 2023 08:29:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=c8ynwXPs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233193AbjC1PWr (ORCPT + 99 others); Tue, 28 Mar 2023 11:22:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233373AbjC1PW3 (ORCPT ); Tue, 28 Mar 2023 11:22:29 -0400 Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CF46FF1B for ; Tue, 28 Mar 2023 08:20:52 -0700 (PDT) Received: by mail-yb1-xb34.google.com with SMTP id r187so15528702ybr.6 for ; Tue, 28 Mar 2023 08:20:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1680016826; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ONZYLiGDk21RMFgMpaXH7s4UWxHkNsJ+wUGHRFEkuCc=; b=c8ynwXPsqcK1BZ6E1vrYfDJcqWTKC225pVcmZQQIcGa+4WzKkC/FwoXCPTIZP0uqNW jalQxGai5+TUgtreV4lGVmixYr6hAEF97bJP6udFm1yicUDr3KPFXDmLE2aJHchJhqAj 7J4XebvBwK691HXXFYm5J21xAY8msOd5k/OOZSjNYpGC2QnLfu+09Jc4Pbhux+Hpz5l/ 35fyjYPGGFQ/WwDLWWO9LuBpYSShrGA9j+zLmlaXc44UkvAaGsRQX8zqrH4aOojgeFnH DBkes4tXkEWXNeFd/n9ARofjF5njrlz0PZjoz9j8BGF67LqPGhfa7EH16H69NZfFsNx5 Xcaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680016826; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ONZYLiGDk21RMFgMpaXH7s4UWxHkNsJ+wUGHRFEkuCc=; b=Z04gITWSKym/WFPRlK3aTb2kx4pOBMbV7jD4H+AP/0cabuKKD1yUgWbLiMGOJhd6/o ualkmtz7pVrFANI7p4GTJM1FnZhNjFp0NRVhmZyXCNSlroV9Tt0tJ6jz2VUeXRjJcv8x 0UaCvGvpxVRmgyjqxYmjZKcltKr/sCDTZhVAqI1wBe1Yx2KVj47atBnqD6vt4Ihxf8UX KrUAI7mRFZRzT6JyQqZzyyMEE/0P7nR9STWI6b7ey0N+hpfSHDV5hbbxHqpg22sE5uRq HwqqyJUwpv9GkRiga0Ndezh1cXBS0dFzrCdCCSc6By1IdmDbW9sRZPRdev+vlvqL/K7+ 3GJg== X-Gm-Message-State: AAQBX9enkBRok2xy8h+DvEpZXzHqk2HQr6BVFgglGuGUJthFd6o3jPmL nohsXWULjNiIRVgBo9VcEcVaWpCIu9kTAVMqeXtWmQ== X-Received: by 2002:a05:6902:154e:b0:b77:d2db:5f8f with SMTP id r14-20020a056902154e00b00b77d2db5f8fmr9838517ybu.12.1680016826025; Tue, 28 Mar 2023 08:20:26 -0700 (PDT) MIME-Version: 1.0 References: <20230328061638.203420-1-yosryahmed@google.com> <20230328061638.203420-10-yosryahmed@google.com> In-Reply-To: <20230328061638.203420-10-yosryahmed@google.com> From: Shakeel Butt Date: Tue, 28 Mar 2023 08:20:15 -0700 Message-ID: Subject: Re: [PATCH v1 9/9] memcg: do not modify rstat tree for zero updates To: Yosry Ahmed Cc: Tejun Heo , Josef Bacik , Jens Axboe , Zefan Li , Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song , Andrew Morton , =?UTF-8?Q?Michal_Koutn=C3=BD?= , Vasily Averin , cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-15.7 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 27, 2023 at 11:17=E2=80=AFPM Yosry Ahmed wrote: > > In some situations, we may end up calling memcg_rstat_updated() with a > value of 0, which means the stat was not actually updated. An example is > if we fail to reclaim any pages in shrink_folio_list(). > > Do not add the cgroup to the rstat updated tree in this case, to avoid > unnecessarily flushing it. > > Signed-off-by: Yosry Ahmed Acked-by: Shakeel Butt