Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1636091pxj; Fri, 4 Jun 2021 21:52:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxGtZTVjfCFEC2MvPA1FY9/bLwMN/yUQUonMxKlCukHnbEFDaYbRJHa6NB4cmhmanaQqFx X-Received: by 2002:a05:6402:31f3:: with SMTP id dy19mr8368795edb.153.1622868727291; Fri, 04 Jun 2021 21:52:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622868727; cv=none; d=google.com; s=arc-20160816; b=aXpTt2ic2xRw8d1vBgHQPjbvQHcYT56CXkTRyB0QlheOvGDxjgRC+U+hFKH7l+wEiO mcTMifG+9CxBuji18seRRhyGfvvwnLs67sEvdxMh3n9LlNNNrySC/ecNtvJyCUgz1Anu TffZisnpdQEis3doehxBs+92WcTFpK42fG+8yNc61Jsmif4gAs3Qx/7KIkQitEN/AglJ idictq1SPOUBVmn7atb9muQf6o0rG7XxoagRN8rkTtElDMAMBhFPk3WGr4740vGiclbq 66c3bqnnlapezJ2Rf8GJSIOOUu1NDa3dMPOOuzgBaf+v3sUq9s+8WAMvuo2Ch3panJQv 0j3w== 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=Vow0w7T/H4Ok4yA/drin7CQKErICdzTcTT/vrNcM5Q4=; b=JTjyzKzj6jKntZTdCiJ+dU4KEXKQC2/07vuC2X6ttDgXl/Myk8fxAffHEbPH3fNwem 2u0C8IfAGtOEjzZfrFEhjVFMf4WPPs49SGODgU+fB34UYxKknY9IyRBhnyBzrwhOPAmh aSrjvKqIOI7MaVBWZ+Nma4AiRXbXH1k8Fy5nRiUZ/17I7cWHU+TtXe95KonxSBdIYdOm 5JEvPo6YMPEy5R+XDdTjj0TEpO9bgf6SeOyOqc62fTrcHqoX2cyKRwDPs/01twlLdSsu LpCHMuje8nrDwMXfXpx5dxFw5wl1Lcz+CzoFOzDTwcVLOnBQpArM86w395jecWPkRu/4 356A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=cQpKNyLM; 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 l23si7705743ejb.573.2021.06.04.21.51.33; Fri, 04 Jun 2021 21:52:07 -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=20161025 header.b=cQpKNyLM; 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 S230112AbhFEEr3 (ORCPT + 99 others); Sat, 5 Jun 2021 00:47:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230060AbhFEEr2 (ORCPT ); Sat, 5 Jun 2021 00:47:28 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 491D6C061767 for ; Fri, 4 Jun 2021 21:45:41 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id w33so17130557lfu.7 for ; Fri, 04 Jun 2021 21:45:41 -0700 (PDT) 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=Vow0w7T/H4Ok4yA/drin7CQKErICdzTcTT/vrNcM5Q4=; b=cQpKNyLMQiiglbrRjutBB1ddOTJ0H8uhnwCNG/LXy9JI6NoO9lzdOy1HZVNF2AUCgp +p+rCr2qv9jP3GKnpc3t1Irvf17uRHj9MpYhzTGpzCI39q9t/0ZbxDL/kzuO7O2OE07c QD0ofIbb5nPJaakITyoiShuR/SLGOVJC/BN/LDf4cID895GGCjl4AQqtCFK3HGIL5GOf lCrsT6FzE+7Rd18A1PE02wg0GVG+nqn/DWpMgA+f0ryLKukck/9GhajbiUt1BNUe9Wqe szncH+Or4xHWi9+JvrTkdXFEqbOrpxKFnGctU+/59p3/6PKIoRW6xmt7mxsIdmarHhOK c7ug== 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=Vow0w7T/H4Ok4yA/drin7CQKErICdzTcTT/vrNcM5Q4=; b=OeojzRqqYmuk88km41PLcoHcUFoEPr6o8+Ie1UtKC2pfjfja2/W918MDoI3UtT6MKr sXOApH/sL5FvrmIhNCFD0wWb4AQWdlIYBrtyQ5CG0l53bbwo8DWSH1BvIjNbCIX+G+dz Ly4jkJIXq5Mjpvb7Z0Ns6h7Kla/Y8R81JzYhdIUciZD5KPn/62b7a3kmJKRnd8OARL5h H+0yJhKuftNr8txa9vzqpKmo2UAsmiDtCEExNER6o1NBKMyNU5ogSVX6bWvy5IJi+hg+ Il0UEH8yq74czCVDuDujU3QVF+cWjBB35RQ0roLnFXXX1Uq3Q+mH5yPgeCfTtg68gYQg aVGQ== X-Gm-Message-State: AOAM530yjQ+/Ws0YzuE8nKlfEwmIYaXwP0FgfyAmbbl9CZgq1uRlKLN7 OIgdl+L0q0UfjLzKjRqeNN8BFgm/r6pGw78/tW+oPQ== X-Received: by 2002:a05:6512:952:: with SMTP id u18mr4785726lft.83.1622868339254; Fri, 04 Jun 2021 21:45:39 -0700 (PDT) MIME-Version: 1.0 References: <20210604015640.2586269-1-shakeelb@google.com> <20210604061816.3110-1-hdanton@sina.com> <20210605015421.5096-1-hdanton@sina.com> In-Reply-To: From: Shakeel Butt Date: Fri, 4 Jun 2021 21:45:28 -0700 Message-ID: Subject: Re: [PATCH 2/2] memcg: periodically flush the memcg stats To: Tejun Heo Cc: Hillf Danton , Johannes Weiner , Muchun Song , Michal Hocko , Roman Gushchin , =?UTF-8?Q?Michal_Koutn=C3=BD?= , Huang Ying , Andrew Morton , Cgroups , Linux MM , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 4, 2021 at 7:33 PM Tejun Heo wrote: > > On Sat, Jun 05, 2021 at 09:54:21AM +0800, Hillf Danton wrote: > > The cond_resched() in cgroup_rstat_flush_locked() matches its appearence in > > your post [1]. So does unbound IMHO. > > Ah yeah, this either needs CPU_INTENSIVE or UNBOUND, prolly the latter is > better. > I will change the next version to the system_unbound_wq.