Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4839364rwl; Tue, 28 Mar 2023 12:03:08 -0700 (PDT) X-Google-Smtp-Source: AKy350YA5spOicQEQF96suJNDbtm2PSGvjh22Xt2/QGoYRF/iO+1S+TY877O5E6eR53YJkSlAJ3i X-Received: by 2002:a17:906:2bc9:b0:939:e870:2b37 with SMTP id n9-20020a1709062bc900b00939e8702b37mr18111767ejg.70.1680030187791; Tue, 28 Mar 2023 12:03:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680030187; cv=none; d=google.com; s=arc-20160816; b=xo6H8bF84SwAYfcAqGVZNuEFopUoKZImIikW/KZy/GdJc19mLbagvuyUVZ524tsqlJ FvD9k8wUyG80Fa/7DRp382rQi1Se2g8BfEp7p6ve1PMxRNSZZjhjUYkU3GtqyRjjSEYk Nzmfj1wIFQg9m2DMejm4nuqoJ2Dg3iYq0d+bpANJz224q0JfpM1q0gSlI+YzFWHFh1h/ A2MD4+UhaJ5ljeKPZyueFnf1oCMRw4dVbozdsqxd60DDaY1I7luJ2QbJ7oQO1dKbekDW IFVvx4K0AW5OV3GlQLoG2aiuCJow3dqRcfMSt7T/0Vkit3+FDJiaADvV+34rmTOUk+Dd 2Phw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MHTXhpf5WdLfr15cViMQdFbTg30x0rT0B0hTFtHLctQ=; b=ulV8hdogjpeXrkOZQcfIX1piMIKoouSAl4TeTlzn6qa/8ZU4lQ+lqkuYs8/taov7B3 SeG3luevgfM5I2lNnL+Vr7zrvk9bS9+EV8ADKG2bxOe46G9W2rviF0YDYAqAL9sXmb5W urmtXA23uzLqkSnSKCzIQIbakRpJt4zZ3DryuLCFHzUGL5GE/b2oOyaNTDTfKTE+Zrr3 zulnVaHLhSEm4HJTElhgn2ZyqFlol9wWHrsE114mKB4E/VRQ4qPhe0Vv0AkwXDUgnOxd 7rwCnAWvOUKcqcowY0iEqwBJk6xzONuFAesdj/lVhpftIG0jHpoPwr7RFvxP8e/J9eE/ Ml9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=A+bhfvmq; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd12-20020a170907628c00b00933d7a0e4e7si29549209ejc.441.2023.03.28.12.02.42; Tue, 28 Mar 2023 12:03:07 -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=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=A+bhfvmq; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229772AbjC1StO (ORCPT + 99 others); Tue, 28 Mar 2023 14:49:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229831AbjC1StM (ORCPT ); Tue, 28 Mar 2023 14:49:12 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61A40212E for ; Tue, 28 Mar 2023 11:49:10 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id w9so53738714edc.3 for ; Tue, 28 Mar 2023 11:49:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20210112.gappssmtp.com; s=20210112; t=1680029349; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=MHTXhpf5WdLfr15cViMQdFbTg30x0rT0B0hTFtHLctQ=; b=A+bhfvmqTQqrdmC67+EygQyWGShN3KOSkBIckR39BPvNI8GfURZ1gozY1+nQ8g2e0m jwALDtiRqqvy7Dl6sjQAE+x4uZOoeCwvcdvpQMAFmHxFO9KQeg/CqH4tpOYfL1gF7py3 B+n9C6BMcKyPaz7fjY1oMPBMIPiwkgZJD2o1gtyoR0aVn76NuZ3ODcG/dQlbntZyKyq6 Xp7hkl1M8VCln1cL+sIq11V/s6ekKJ+lkdBoRdQoAwlxN14hlHAny4tZFSms6XFgMKTS V06rgFWRb/PQ2lg3EQ2mbe6dpaAnFDwTh6qWLNe59V5mvbJ8uoQwqImOyZBKI4BAmbGJ bMTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680029349; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=MHTXhpf5WdLfr15cViMQdFbTg30x0rT0B0hTFtHLctQ=; b=gSF2ktOo+wE1ev5/Ci+qocIf+neR8XJREMkQ8IkyN88n7T4Gf90lscp1yUPcyfqlJX lr8p/QE/NU4rLJE+ZJCRoJB9LAcPW50AlfTrWSrc4QJtUUb8ZuIeW9W8fRsem6koW6RN pw9IzDJGAoXaKPT7VcMiQjoTyspthOlbu3HEtnI6YLECvRjEDwCtRyFx+9Gpesm4ve7/ AV348KTtOimovbajDeDeZM0sS6KS1g38f3FKwxuFUbTGSdvQPwtxxj4XQ+KTTS5YvrZg Fu96iim+ABcoFqe86gi0NAUuqm07Jb/A8iDW+6xOdkjMmZ7nYDwmu8sYhOlZHDgj4mJc a92g== X-Gm-Message-State: AAQBX9fhpdIXftz+85hG4nPuP8EbGzKVDBr+HtFTR3cCjuOx6lFmNo2D Inw/OwC/+dRZhm1i1HD9YxZ+xg== X-Received: by 2002:a17:906:9bdb:b0:93c:81b9:a2b1 with SMTP id de27-20020a1709069bdb00b0093c81b9a2b1mr17059102ejc.62.1680029348943; Tue, 28 Mar 2023 11:49:08 -0700 (PDT) Received: from localhost ([2a02:8070:6387:ab20:5139:4abd:1194:8f0e]) by smtp.gmail.com with ESMTPSA id a21-20020a170906191500b009339e2e36e4sm12932534eje.81.2023.03.28.11.49.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 11:49:08 -0700 (PDT) Date: Tue, 28 Mar 2023 14:49:07 -0400 From: Johannes Weiner To: Yosry Ahmed Cc: Tejun Heo , Josef Bacik , Jens Axboe , Zefan Li , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , Andrew Morton , Michal =?iso-8859-1?Q?Koutn=FD?= , Vasily Averin , cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, bpf@vger.kernel.org Subject: Re: [PATCH v1 8/9] vmscan: memcg: sleep when flushing stats during reclaim Message-ID: References: <20230328061638.203420-1-yosryahmed@google.com> <20230328061638.203420-9-yosryahmed@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230328061638.203420-9-yosryahmed@google.com> X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Tue, Mar 28, 2023 at 06:16:37AM +0000, Yosry Ahmed wrote: > Memory reclaim is a sleepable context. Allow sleeping when flushing > memcg stats to avoid unnecessarily performing a lot of work without > sleeping. This can slow down reclaim code if flushing stats is taking > too long, but there is already multiple cond_resched()'s in reclaim > code. > > Signed-off-by: Yosry Ahmed Forget what I said about this in the previous patch. :) Acked-by: Johannes Weiner