Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3724142ioo; Wed, 25 May 2022 07:00:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjDwzex2qy68phwvFzFhA80tBHuhvAMiyVXRXHT96VrDZWNIllfwy4Ec6Dtd+EV9aktnkQ X-Received: by 2002:a17:902:d48d:b0:162:4d82:dd82 with SMTP id c13-20020a170902d48d00b001624d82dd82mr7108955plg.50.1653487202101; Wed, 25 May 2022 07:00:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653487202; cv=none; d=google.com; s=arc-20160816; b=H4vOEMX2ZVwggMaihkbOIA2ysyaCc68ZW11V9euTRjKcp5Cqy8b+1B2E4wwVopHRXs zg/2pRi/7THuabpT1ExdHXSlO1+UPdPUvuRHrwu+pD4AAfEx8mneJ4MV6qGzJhLRf5YI uR/oSNSgRiRpgGIPxWzrAViV/Jm5/rnLJ6p/hb6wXBf0hUD+xSujKMdSDu6LP7xVtvJO L/4MrFzU7A39Q1NIyvTGjIUHh6QoDWkAHNTidmyjZ6tIiJ07wPiG0uRbxtORYrkOd40h 5yGy81EBR907X5ItRuL0k+k55wfNmBolf7HW3piAEiW15/268uSPJIqBOQvuZUIc7HDU ifZQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:date; bh=eXx4F9wUjqDqnxItlogKlV+6bSU2C37UciSDkRX2OcU=; b=JsK8YDXn7B4SA6L17j+FSEIrfa+7AGMor/Tf3AYfAFlfXrXhsqJ62G+x2OgWIGCTV+ KnJ3WUm/P9V+RP4bFZcan6/ruOAbGr4mvKjYIhY8gCXlvUeM0G4/QLCPjfr5oZn3I1nT TpqpAwv8Wb4pZ9LXyL22bJxYQrhmNc2DyrM5S3KB3GuvP5QcuPafThJ/9+BlL+7cenwb F/9OsZccSXJVHxLHE56+v1utInLRERqXjZ4IHXxs+8exEf4Ae3nLMRZSfrcFW6SzrPEG 0xLlZXw7xrFyHVtU9I+1BgRRwvMbNvhDgxfY69h6DbkjHSnqgwS/eFulr4zDHsnhX5qW gLiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=cltERvpd; 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 j191-20020a638bc8000000b003f9ee52b958si17760867pge.401.2022.05.25.06.59.48; Wed, 25 May 2022 07:00:01 -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=cltERvpd; 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 S241819AbiEYC14 (ORCPT + 99 others); Tue, 24 May 2022 22:27:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243631AbiEYC0O (ORCPT ); Tue, 24 May 2022 22:26:14 -0400 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAECE22BF3; Tue, 24 May 2022 19:26:13 -0700 (PDT) Date: Tue, 24 May 2022 19:26:05 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1653445571; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eXx4F9wUjqDqnxItlogKlV+6bSU2C37UciSDkRX2OcU=; b=cltERvpd9/BsbbrUHUBYK9fauukniigpOChcjUlKIHJPRgAc6yjyz3akEdweV6Xi4OJZyj xwcrNb/oUv0hkOCAg+rPrlPKRX6J+lb11T+AN+CraLePT67cbn9CIDG/2th4mL0KM4KPah 4gjfewLE7dCTdZVEzTWN+toba5BPeQ0= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Michal =?iso-8859-1?Q?Koutn=FD?= Cc: cgroups@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Johannes Weiner , Michal Hocko , Shakeel Butt , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Richard Palethorpe , Muhammad Usama Anjum Subject: Re: [PATCH v3 5/5] selftests: memcg: Factor out common parts of memory.{low,min} tests Message-ID: References: <20220524162955.8635-1-mkoutny@suse.com> <20220524162955.8635-6-mkoutny@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220524162955.8635-6-mkoutny@suse.com> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Tue, May 24, 2022 at 06:29:55PM +0200, Michal Koutny wrote: > The memory protection test setup and runtime is almost equal for > memory.low and memory.min cases. > It makes modification of the common parts prone to mistakes, since the > protections are similar not only in setup but also in principle, factor > the common part out. > > Past exceptions between the tests: > - missing memory.min is fine (kept), > - test_memcg_low protected orphaned pagecache (adapted like > test_memcg_min and we keep the processes of protected memory running). > > The evaluation in two tests is different (OOM of allocator vs low events > of prot?g?s), this is kept different. > > Signed-off-by: Michal Koutn? Acked-by: Roman Gushchin