From patchwork Fri Apr 22 15:57:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Vernet X-Patchwork-Id: 12823691 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id DFFA5C433F5 for ; Fri, 22 Apr 2022 15:57:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 455616B0099; Fri, 22 Apr 2022 11:57:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 405266B009A; Fri, 22 Apr 2022 11:57:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2CC616B009B; Fri, 22 Apr 2022 11:57:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.25]) by kanga.kvack.org (Postfix) with ESMTP id 1D36B6B0099 for ; Fri, 22 Apr 2022 11:57:48 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay13.hostedemail.com (Postfix) with ESMTP id 0522B60984 for ; Fri, 22 Apr 2022 15:57:48 +0000 (UTC) X-FDA: 79384970574.17.2928C7F Received: from mail-qv1-f41.google.com (mail-qv1-f41.google.com [209.85.219.41]) by imf09.hostedemail.com (Postfix) with ESMTP id 6F20814001C for ; Fri, 22 Apr 2022 15:57:45 +0000 (UTC) Received: by mail-qv1-f41.google.com with SMTP id jt15so348140qvb.13 for ; Fri, 22 Apr 2022 08:57:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Xndd22pRCbxHKJgUFMYpySvXlLsTmNU6TAEv5LDON7Y=; b=FmcJ8r1USZDk955Nm85DbXinOfGEkm2jfGyHrGj9P2npdjGZzoJSK/L/YiN+PXL6sy uUSr1aC+jwUDktirSCE0P0zsK3f1C8J2O6sGGhZlbQrjC1hC+6Nl0dGaJhG4SGd2riNH oodcInDYzBFweb7hioqYrXTxgeGvLG98FxvvR/zHZfjBBkYcCILMxWD6An73l47T1d5x iupzKe7h//P/yOeYzs0HaeYs6Gu/ET9J8Qg9H9+T/fNp1U/THFYGqEIlq96hQL/hdAGX z7HH8ul+x7ckAFooDab3WkIG0FlccsgOwDwhhOC3pueU1uo9Zb6DdC3hQZxb/x43U2kI sIfw== X-Gm-Message-State: AOAM530ikcILHj3/bNc/29ZZ7/MyYeUCamOwQWnrFlwGElyugoLp32yU I/EOdxXrWTV4QnxWMEk2y+4= X-Google-Smtp-Source: ABdhPJz8vekvOIGYSvs4ljIiWGq3glYsC/ZEz2KOr8vJEqLWuuy+8QCTERQpL+9QQabTtDiEH93L8g== X-Received: by 2002:a05:6214:23cc:b0:44f:4974:4c1c with SMTP id hr12-20020a05621423cc00b0044f49744c1cmr4022837qvb.116.1650643066441; Fri, 22 Apr 2022 08:57:46 -0700 (PDT) Received: from localhost (fwdproxy-ash-020.fbsv.net. [2a03:2880:20ff:14::face:b00c]) by smtp.gmail.com with ESMTPSA id f11-20020ac859cb000000b002f3438493a5sm1382061qtf.27.2022.04.22.08.57.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 08:57:46 -0700 (PDT) From: David Vernet To: akpm@linux-foundation.org Cc: tj@kernel.org, roman.gushchin@linux.dev, 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, void@manifault.com Subject: [PATCH 0/5] Fix bugs in memcontroller cgroup tests Date: Fri, 22 Apr 2022 08:57:24 -0700 Message-Id: <20220422155728.3055914-1-void@manifault.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Authentication-Results: imf09.hostedemail.com; dkim=none; spf=pass (imf09.hostedemail.com: domain of dcvernet@gmail.com designates 209.85.219.41 as permitted sender) smtp.mailfrom=dcvernet@gmail.com; dmarc=none X-Stat-Signature: hm67m55g7degmejyd1skuskhxregtz4o X-Rspamd-Queue-Id: 6F20814001C X-Rspamd-Server: rspam04 X-Rspam-User: X-HE-Tag: 1650643065-590575 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tools/testing/selftests/cgroup/test_memcontrol.c contains a set of testcases which validate expected behavior of the cgroup memory controller. Roman Gushchin recently sent out a patchset that fixed a few issues in the test. This patchset continues that effort by fixing a few more issues that were causing non-deterministic failures in the suite. With this patchset, I'm unable to reproduce any more errors after running the tests in a continuous loop for many iterations. Before, I was able to reproduce at least one of the errors fixed in this patchset with just one or two runs. David Vernet (5): cgroups: Refactor children cgroups in memcg tests cgroup: Account for memory_recursiveprot in test_memcg_low() cgroup: Account for memory_localevents in test_memcg_oom_group_leaf_events() cgroup: Removing racy check in test_memcg_sock() cgroup: Fix racy check in alloc_pagecache_max_30M() helper function tools/testing/selftests/cgroup/cgroup_util.c | 12 ++++ tools/testing/selftests/cgroup/cgroup_util.h | 1 + .../selftests/cgroup/test_memcontrol.c | 69 +++++++++++++------ 3 files changed, 61 insertions(+), 21 deletions(-)