Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1004096pxb; Fri, 22 Apr 2022 16:30:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYFrqA8asYs7i6lbXJFYm3aXlKpTCDY9BVd8ELC9UwQogvwqMeImNyLwGLQLFKmbYDqXgw X-Received: by 2002:a17:902:eb84:b0:158:8a72:bbdd with SMTP id q4-20020a170902eb8400b001588a72bbddmr6824064plg.117.1650670252878; Fri, 22 Apr 2022 16:30:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650670252; cv=none; d=google.com; s=arc-20160816; b=Hg9B2GcH4hzTUyO4LCv8X+eCNfdNj7pi/DOUCDg9T3Tvl/PEQ8nt2K1CV68tqWzbuD Skk9qW8TdYNyN+n69eVBn6J67wfhOBj1AqjwsFW+uLIf3Hx5PcbBySwdyCofEtHSH9NL N94U36qZbbGNxCOXqRkpYlxkOUORBTCT8PeBZAdakxWr4lPJoMqAZDEBtke2xWKRuSt9 iVi9lbvDgcXur4YH31E086Y4gdTZ6mBOFcVg35jZOkJAqI6P7ajDh3DaTSD1DVuYwWN5 QIfZGI5zCQzcQl0uf6mDurcnO5/E+r753RSAhp/95HEbG/12bmEIWV1mvJ0RIgn6Zesa 1SYQ== 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:dkim-signature:date; bh=eyRc0yPN+29xdi/4+xeUBzYJPfwPORZ6hJjRKnqdiww=; b=fYujjek76xyGZ/MB7S2ELKtEE3eLL58Aik7SmzgeSdD2mu1QaI5BehzoJnExld92J3 yrkNyZFwanoIhfJifkawJ1+6c2V6tf+u9gaPt53INidE4BmckxlLf+8/AG3AEl6SU4vp hd6e0ANujxRoYzTal3+LHe6SHh0AdT0jOS6L1t6zRW8FztlQX5ovCTswCB7Sc4GLlqW1 nlD/XV2b8VY2vwTjls8aurwO6RuKpHneOEK6vZQUURm9MFpziknseyYzMagMgbjEtk+A J55eD2RYLALRSzKeufxYLGKAXQlCFHS3ICLcjFzn5u3JuUP3LRDuGa65lxsrAf5mzVhO 2dIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=uaqc1QkU; 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=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t19-20020a056a00139300b0050cedb687e2si3512335pfg.260.2022.04.22.16.30.37; Fri, 22 Apr 2022 16:30:52 -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=@linux.dev header.s=key1 header.b=uaqc1QkU; 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=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229927AbiDVX05 (ORCPT + 99 others); Fri, 22 Apr 2022 19:26:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231232AbiDVX0s (ORCPT ); Fri, 22 Apr 2022 19:26:48 -0400 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46EE01044DC; Fri, 22 Apr 2022 16:04:23 -0700 (PDT) Date: Fri, 22 Apr 2022 16:04:15 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1650668661; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eyRc0yPN+29xdi/4+xeUBzYJPfwPORZ6hJjRKnqdiww=; b=uaqc1QkUHZNZt4aC2yiX1HThiAVJiYL+EOD4N27jmScBUS7pN79qWwsjm7s7NdNzokxpOp Od7DFH3byiUuMHSjm66Ms8dBsJG4NwuLfkq45/FYeU1Lcj8x9CQ6q4UtjsfeT/Y6WMHc2A 8HrFZRLJ9OXxSssElPnBVc6mBdCOPgQ= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: David Vernet Cc: akpm@linux-foundation.org, tj@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, cgroups@vger.kernel.org, hannes@cmpxchg.org, mhocko@kernel.org, shakeelb@google.com, kernel-team@fb.com Subject: Re: [PATCH 1/5] cgroups: Refactor children cgroups in memcg tests Message-ID: References: <20220422155728.3055914-1-void@manifault.com> <20220422155728.3055914-2-void@manifault.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220422155728.3055914-2-void@manifault.com> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 Fri, Apr 22, 2022 at 08:57:25AM -0700, David Vernet wrote: > In test_memcg_min() and test_memcg_low(), there is an array of four sibling > cgroups. All but one of these sibling groups does a 50MB allocation, and > the group that does no allocation is the third of four in the array. This > is not a problem per se, but makes it a bit tricky to do some assertions in > test_memcg_low(), as we want to make assertions on the siblings based on > whether or not they performed allocations. Having a static index before > which all groups have performed an allocation makes this cleaner. > > This patch therefore reorders the sibling groups so that the group that > performs no allocations is the last in the array. It makes the comment explaining the test just above the test_memcg_min() function obsolete. Please, fix it too. Thanks!