From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 38850382F14 for ; Mon, 23 Mar 2026 08:54:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774256042; cv=none; b=g4JyThVmbkCIyq5X/xQoxxDJ3zo8mVJ3iEj/xdIq+K3w6+ojoNZ7xSShoQNlxh3e6I7euLSLDk4tUb5GUzMLpJkiJA1jim3F/mjo4KSXSJ6daOnO4CzoknmiebAQZnh1GhuEv4GWCJz8oxAJF/X5K85hVQ0YjR5BC/ap5HGUh0k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774256042; c=relaxed/simple; bh=hThO1A1C8Xur/ZEGkwiOiLhsaE2lKnkvWmC7Eh4azQY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mLTJQkREgXxwuNA8MxVPCk4snmPq5dbwlXfQ3WL+L319ztH5cwyLMFP432qUhMds+tHh5bUBmuJMQUVyHlPF+XsbfrMXdOFoXiklVsi8SSe9qzi3+81rlvYz6gPgTYAN9SNw7kvOuhnINDr62fh1pjlu/eGKpBYSaoTzj5Hh/gI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Ah06bRTP; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=mPCSK96q; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Ah06bRTP"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="mPCSK96q" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1774256040; 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=Ogcl2ZAquuYNoAzauwvXFFTaynrHJWtFRV3iycnT4gM=; b=Ah06bRTPeq9tYMrEWY7cW9aXKxEN2qN1RkXo1cdEUDHZ1YqvEzvDA6MKdccqLiBNw8q5fv wAF+LPD50cXbSGgJPtY2lWrgWViHwF08NPvDj8N58fK+A9Hypnc3/798q6tgRQQ+ZdQ/n7 LbjYPQOklIDhLbV34617J8r2RLTnhBc= Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-280-gPTdNISjOWue6X-raGGYpg-1; Mon, 23 Mar 2026 04:53:58 -0400 X-MC-Unique: gPTdNISjOWue6X-raGGYpg-1 X-Mimecast-MFC-AGG-ID: gPTdNISjOWue6X-raGGYpg_1774256037 Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-35a0337930eso3886769a91.3 for ; Mon, 23 Mar 2026 01:53:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1774256037; x=1774860837; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Ogcl2ZAquuYNoAzauwvXFFTaynrHJWtFRV3iycnT4gM=; b=mPCSK96qYFs307uVXfmXc2YWal8UYRqhCsgm780ZuH+wG749Ke6GcOs+vG4NwMXzyn j8/s22LJqxVdN9xrPIrwoCjpmOeZvHma6n4xk8Eha20A1mx4Zxl5WYN64tCO6Julgdfr VwsXRcBwN0gmjNNeknBgMwFzjgLYnSBSxxbamExjTCXvcCJEBI17snT7HsPYWjSQp9dw h84pIPYi6rd0fRhmYeUlaRjyoO0LevwyOXUU/4B6AOrXmT28Orj2vWv13TfdlbqurV/P MFYovqwBJSlhFzPppUiwySvxE9CTZgQ3ooUMIeBJ1KnljisHjWLHzLe+Bq+YMAO3OIOA RQVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774256037; x=1774860837; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ogcl2ZAquuYNoAzauwvXFFTaynrHJWtFRV3iycnT4gM=; b=Ax0c9xruHh0I8ubCFajvAkLliFQ/VyKsSLm3nMzCwYieYEYpMcZZ1WKFqIzKdYWJQk jAKPxpL1GhvgeBbpJTD2oKK6XakRKy5UndyW2I5OR9gZZCEoh0amU6wxnDPaYHOqWiaC M0Q4peysM9yU/W3dXz7vmh3MkdvKT5+loEglY/Cakl6rrS4wp2L1F5dOVWQ9MFtEt8AC K5TyPHhg3ax4HIDzmqAdnUVjROgdOrzuXWvHoUAPiSyw5Ro0u7o0jqFHiCi6KfqwB/dq pzgaE0AgjgbzBEKP6GQajUaYBg6EqNyxlJt4dxTM3hLikje0Kzpy11xDd7LBtTdKUJ+6 4LXA== X-Forwarded-Encrypted: i=1; AJvYcCUfraxBN74ac+RsKDAThQ97C4zz6772wM+ZFZVI1AB6rAqZYhUg9Z1tRqkIjaAPCqQdi+l7W7NzPTXVcao=@vger.kernel.org X-Gm-Message-State: AOJu0Yycc2dD/imBHJzbT87/H0TmQv/VJVFRMs3m9WCi53lXKz6b5k5S K7OvhAO6CauJLB2QiTD5b5zz9kkosRfj9bUeHg5yMUj2b/kXQqrAGh744lGtqb9s8aEDtsT3Dh7 q4eG6Af5vzCXtvOzdsMbPF019c0DjxAqtRWYs0PDGmq8sVt77awGoBsBCp80whdVgkQ== X-Gm-Gg: ATEYQzw24KKIpDc93FtbXApQLXLdJU1lYpK96gKxhev878nPoraUEv6scSwUeWkC7hk dKG6Pjrqv5uLYRmRiYKbRHkQNlixung7DmME362tojfJN43zdoUwyfKWbDIIwE+ozhuFqEBAf7y AUyql4XcW+MjzTZQ+UdEgaW1BvA3GHOyI/gD8ZRcT00qXo1yOnlBm7Ko4ic1R9OQ03s03JDuxRX zMpTOcH5R2J1Kp5bKMScHtXI1/WnRkzeIcG3lGNOgKkPCEM13d8Sl02cnmpoqCN2mDEHz38YX/n a5U6z3YGA76uHXQ+fExNGF9JpDDK0a+TiEls+3QycdGPW1s0YlMotLzzAdkO4wI1emIEwxQ5MUo Z6h8EKSce8gFSHQ5hoA== X-Received: by 2002:a17:90b:28c8:b0:340:4abf:391d with SMTP id 98e67ed59e1d1-35bd2cb1ea5mr8848400a91.16.1774256037076; Mon, 23 Mar 2026 01:53:57 -0700 (PDT) X-Received: by 2002:a17:90b:28c8:b0:340:4abf:391d with SMTP id 98e67ed59e1d1-35bd2cb1ea5mr8848368a91.16.1774256036672; Mon, 23 Mar 2026 01:53:56 -0700 (PDT) Received: from redhat.com ([209.132.188.88]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c743a7ff529sm7219812a12.2.2026.03.23.01.53.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Mar 2026 01:53:56 -0700 (PDT) Date: Mon, 23 Mar 2026 16:53:53 +0800 From: Li Wang To: Waiman Long Cc: Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , Andrew Morton , Tejun Heo , Michal =?utf-8?Q?Koutn=C3=BD?= , Shuah Khan , Mike Rapoport , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, Sean Christopherson , James Houghton , Sebastian Chlad , Guopeng Zhang , Li Wang Subject: Re: [PATCH v2 6/7] selftests: memcg: Don't call reclaim_until() if already in target Message-ID: References: <20260320204241.1613861-1-longman@redhat.com> <20260320204241.1613861-7-longman@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260320204241.1613861-7-longman@redhat.com> On Fri, Mar 20, 2026 at 04:42:40PM -0400, Waiman Long wrote: > Near the end of test_memcg_protection(), reclaim_until() is called > to reduce memory.current of children[0] to 10M. It was found that > with larger page size (e.g. 64k) the various memory cgroups in > test_memcg_protection() would deviate further from the expected values > especially for the test_memcg_low test. As a result, children[0] might > have reached the target already without reclamation. The will cause the > reclaim_until() function to report failure as no reclamation is needed. > > Avoid this unexpected failure by skipping the reclaim_until() call if > memory.current of children[0] has already reached the target size for > kernel with non-4k page size. > > Signed-off-by: Waiman Long Reviewed-by: Li Wang -- Regards, Li Wang