Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp622188iob; Wed, 18 May 2022 09:19:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZhSRqZVXO9S7I+I/lUXbJ96D3fweajJUCN8j9jA6g8n3/iKRydcQM9z1voxHX2k7wx1QH X-Received: by 2002:a17:90b:1b0d:b0:1dc:672e:c913 with SMTP id nu13-20020a17090b1b0d00b001dc672ec913mr823164pjb.102.1652890778929; Wed, 18 May 2022 09:19:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652890778; cv=none; d=google.com; s=arc-20160816; b=fAHxDUiFxn/7Wm3KY9sTuNifHszVvYnaTy36OnmkNMtscyCxjpz/DqZjTwBWTrr3XY HSuNcP2wRxC1ajL7MMntBmVTN4MO/giGmNVIN6GR22mQXRz8pv8sJLA2eXK0HfWRNk1h XhUoYfIdrTqStauPpYCe9/sVs9dC87QalY2ZMNTP1AU1A3DovGtWbrvT+zXbL+mKCtZZ EapwezFlQ1GV6Tkp2zK1NtzRA+f+vZ05+aslU9r/QdZCdVIWbGUO1Qt2aNFK4p5nGDe/ 4V8vDL4CYItT4QvlGNzkWJrud4zKotDCnJMY2GYaiE2a1Lv8mXu7bqbL4xVzbMAUzPJ6 Kr7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=MA/TGEKVPxKbLeu24UuN4Wl1Ug0/+Zeg7Z8sjXvszlQ=; b=eDdonsV9jRudKt5VC2PE1+nMgclq1EwW1F8re5HhLGwioJMPtuZ+ynA78P3goKQ8PQ d/q54iZSWcGiLF9jLu8rQTsBhGYD88VIY5wuTULNkHXh0wBLle0SPfyz1pzDblLTwPHV kKlKSOx1pyZNimHkP5An0n0UNaJ5pCj2bu+nzGnN7c1Zg+rXzOixlElaf5MUTFe0SE38 uLuexDetbMAc8qngQdiHolN4VcGNTbxbzhcf/YXqWi8utUnbdwB8JZdiV6Fpyeua5Xmj tRIzjcgFlrTSCsZSuSamF8CeMRnTuO6v6+jN/s2yYM59shGBdw7u4g3mBp4eIgeDTy1o Mzwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=T85gBeJq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n19-20020a62e513000000b0050d5174ec09si3624161pff.332.2022.05.18.09.19.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 09:19:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=T85gBeJq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 915D11EE0BA; Wed, 18 May 2022 09:19:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240019AbiERQTZ (ORCPT + 99 others); Wed, 18 May 2022 12:19:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239910AbiERQTO (ORCPT ); Wed, 18 May 2022 12:19:14 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DE3C1E3EF5; Wed, 18 May 2022 09:19:13 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1523C21B69; Wed, 18 May 2022 16:19:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1652890752; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MA/TGEKVPxKbLeu24UuN4Wl1Ug0/+Zeg7Z8sjXvszlQ=; b=T85gBeJqRK7xR4vfqE2zMJJ0HcOS1Oi0LQBMKaORbDWklcTCaU6N0C+f/+G32E1UIaG2pf uN7mFG3ut+AnHRXV4hElSGMXOe4Z3ksjgrCJsuNXmcgZNR7l7Mt3ecWR4ZUOijndkH1n6F pdEZxqpGuYJi3qbHxvEon2tXxQjwnS8= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id D94E313A6D; Wed, 18 May 2022 16:19:11 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id PXsQNH8chWLqZAAAMHmgww (envelope-from ); Wed, 18 May 2022 16:19:11 +0000 From: =?UTF-8?q?Michal=20Koutn=C3=BD?= To: cgroups@vger.kernel.org, linux-mm@kvack.org Cc: Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Richard Palethorpe Subject: Date: Wed, 18 May 2022 18:18:54 +0200 Message-Id: <20220518161859.21565-1-mkoutny@suse.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Subject: [PATCH v2 0/5] memcontrol selftests fixups Hello. I'm just flushing the patches to make memcontrol selftests check the events behavior we had consensus about (test_memcg_low fails). (test_memcg_reclaim, test_memcg_swap_max fail for me now but it's present even before the refactoring.) The two bigger changes are: - adjustment of the protected values to make tests succeed with the given tolerance, - both test_memcg_low and test_memcg_min check protection of memory in populated cgroups (actually as per Documentation/admin-guide/cgroup-v2.rst memory.min should not apply to empty cgroups, which is not the case currently. Therefore I unified tests with the populated case in order to to bring more broken tests). Thanks, Michal Changes from v1 (https://lore.kernel.org/r/20220513171811.730-1-mkoutny@suse.com/) - fixed mis-rebase in compilation fix patch, - added review, ack tags from v1, - applied feedback from v1 (Octave script in git tree), - added one more patch extracting common parts, - rebased on mm-stable bbe832b9db2e. Michal Koutný (5): selftests: memcg: Fix compilation selftests: memcg: Expect no low events in unprotected sibling selftests: memcg: Adjust expected reclaim values of protected cgroups selftests: memcg: Remove protection from top level memcg selftests: memcg: Factor out common parts of memory.{low,min} tests MAINTAINERS | 1 + .../selftests/cgroup/memcg_protection.m | 89 +++++++ .../selftests/cgroup/test_memcontrol.c | 247 +++++------------- 3 files changed, 152 insertions(+), 185 deletions(-) create mode 100644 tools/testing/selftests/cgroup/memcg_protection.m -- 2.35.3