Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp498423rdg; Tue, 10 Oct 2023 17:37:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFLAY7fVEYRwIRSRmYw2DRt6apF2tj65UlllyUd3jFVQG4/PKSe54hcKXVmDNqVr3iymy7F X-Received: by 2002:a05:6870:c1d3:b0:1d6:51aa:139b with SMTP id i19-20020a056870c1d300b001d651aa139bmr22339144oad.19.1696984622105; Tue, 10 Oct 2023 17:37:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696984622; cv=none; d=google.com; s=arc-20160816; b=MJxLC+/fHM88tyoKnBWTv9ifHriFkyty+n3gkuzAvvM2HCAz77Vb3CZQRR+sOgNXGP 0TVH38VyvMJBW7hRiXkzkvmKS7SnYW3DAWq7bFp2i2CNud+0TvuU4dTo0JzG2CwdDMIo BULt4I2Wv0x+Obt/saEuDCsirtwgZndTcqKkakwGRPwVExc7DzojssE62zQAaTn+CEn5 DKUIiSSwoE9Q03LJC8vrviB9OABfbYOc69g44/0tg/+F4GLX2ebva2yu5+t64ZLn/u8J UtlZJBUNys/NKreW/Jcr3SNgMtCJCruUN9LiLudOfoWnpP3Y+d0J0HLKlBefdAQdenjZ pRPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=ZhPeCxvioG75cIV47i0mJdVPOUMQNjsIUo5SWKluyZ8=; fh=Z2NYwUhvm/iWGBe/vTEuhVBQeanfufGZUDqBigQZIgw=; b=gCw14dPlrBxNPcnO/6drKXZkQqKcQXUVuTonBTIMqzw7/9DiBszE9dr9uksLHCa7/4 NHLjWdMO5yi/IGcQ2tuJcAat2w0l8tvE3mUilfX2FjgJN2ULYIDCTT7JgZFEGYQC67rH UvlGzVGH3toIrzWqIFACvKBHY253K3DT5UjlbZZjMOz8aDm8IV8nmGmUexi3SWHQeaOO 8I8AOKF3vtTlPkTNCY8HuNLPWjhdKwNmZcPzngm8bQvqL7QSTp3Slb0yRQFJfRzqgz0E a3SGo5IKmZauSNwlSG1slHJ+pFWkEtGn736tI3AB2GQJOqYNXiTmz2Nxxw3Vk1kEwQWY AB6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=htvGbVmC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id i11-20020a636d0b000000b0059f0cebd051si673322pgc.724.2023.10.10.17.37.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 17:37:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=htvGbVmC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 68B9B832A073; Tue, 10 Oct 2023 17:36:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344453AbjJKAgx (ORCPT + 99 others); Tue, 10 Oct 2023 20:36:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344327AbjJKAgw (ORCPT ); Tue, 10 Oct 2023 20:36:52 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE8B992 for ; Tue, 10 Oct 2023 17:36:49 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-d84acda47aeso8396793276.3 for ; Tue, 10 Oct 2023 17:36:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696984609; x=1697589409; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=ZhPeCxvioG75cIV47i0mJdVPOUMQNjsIUo5SWKluyZ8=; b=htvGbVmCNoVXyQXFJi0lqAvfyeeCe44SwqFB02tic1KUk+8Vm0/RvL/3hTBRtuJX0J F5G7CuqTHVuJhFB4KQEf9KAdQEaDu3ztl9PCqbRn1QmmGmnmuhoEOSBJUeoucsgMlqtW AbIHcJiv/Axyo3KNLTgXGO9muA2MbCsl/VZtnV5dGmguKFWzVrwamoctUp/EDH98MHs2 qPzVWiYlomNOPyoqDtfgfiiUBokIKDB1KC7usfIQK4Z5F19Rnslc5OZnK3KCFZzggmI2 KbGVOSjL9Z0CXd5savtRW6Nyr3eOUsGytUxJzPvvhrffghQVIaxRlWBOBYbJoVHxkBg+ k6Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696984609; x=1697589409; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZhPeCxvioG75cIV47i0mJdVPOUMQNjsIUo5SWKluyZ8=; b=rohaa4i8VZ1HoI31JIpS6c4TRyecZWxin6RwOSzzgmRzOMVO9WWq7eKz2Rt4V3RgYo NPQHV8AVRAhnLeFZazIpmbegFyqNPmMR2i3YBeG+kXY7DjwCKJRGfpCIpJbjYoKrSeYI 3cqWBG+1a3T5mnpxNpghKaoVuyga9XLhtTs806ISDyR8gSKVxiyU4GD6zHxFQgnYnTNp QmgrBrCs9f3x50onbxK5gMo0RTLz3aakhl/qyeCHf9yXeXA7uokZDCP/tqRwQWLinTqU XM2sHdllSaLCv8tPfqoWX6g3wcVU+rPm3jwVsTDFSEvihoUruvTKt7PRz+WOzaWXKc0o LBHQ== X-Gm-Message-State: AOJu0YxuIYkMRadLtwM3gAZ3Ry0uUbxEEE9WOMdJgInn92NMPjStzCCs QE+jI4iQuq1QMbh9RcKpb1rv21GY+m9EZw== X-Received: from shakeelb.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:262e]) (user=shakeelb job=sendgmr) by 2002:a25:5f01:0:b0:d77:f7c3:37db with SMTP id t1-20020a255f01000000b00d77f7c337dbmr356863ybb.8.1696984609065; Tue, 10 Oct 2023 17:36:49 -0700 (PDT) Date: Wed, 11 Oct 2023 00:36:46 +0000 In-Reply-To: Mime-Version: 1.0 References: <20231010032117.1577496-1-yosryahmed@google.com> <20231010032117.1577496-4-yosryahmed@google.com> Message-ID: <20231011003646.dt5rlqmnq6ybrlnd@google.com> Subject: Re: [PATCH v2 3/5] mm: memcg: make stats flushing threshold per-memcg From: Shakeel Butt To: Yosry Ahmed Cc: Andrew Morton , Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song , Ivan Babrou , Tejun Heo , "Michal =?utf-8?Q?Koutn=C3=BD?=" , Waiman Long , kernel-team@cloudflare.com, Wei Xu , Greg Thelen , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-4.8 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 10 Oct 2023 17:36:59 -0700 (PDT) On Tue, Oct 10, 2023 at 03:21:47PM -0700, Yosry Ahmed wrote: [...] > > I tried this on a machine with 72 cpus (also ixion), running both > netserver and netperf in /sys/fs/cgroup/a/b/c/d as follows: > # echo "+memory" > /sys/fs/cgroup/cgroup.subtree_control > # mkdir /sys/fs/cgroup/a > # echo "+memory" > /sys/fs/cgroup/a/cgroup.subtree_control > # mkdir /sys/fs/cgroup/a/b > # echo "+memory" > /sys/fs/cgroup/a/b/cgroup.subtree_control > # mkdir /sys/fs/cgroup/a/b/c > # echo "+memory" > /sys/fs/cgroup/a/b/c/cgroup.subtree_control > # mkdir /sys/fs/cgroup/a/b/c/d > # echo 0 > /sys/fs/cgroup/a/b/c/d/cgroup.procs > # ./netserver -6 > > # echo 0 > /sys/fs/cgroup/a/b/c/d/cgroup.procs > # for i in $(seq 10); do ./netperf -6 -H ::1 -l 60 -t TCP_SENDFILE -- > -m 10K; done You are missing '&' at the end. Use something like below: #!/bin/bash for i in {1..22} do /data/tmp/netperf -6 -H ::1 -l 60 -t TCP_SENDFILE -- -m 10K & done wait