From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta0.migadu.com (out-158.mta0.migadu.com [91.218.175.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AEFD423645D for ; Tue, 15 Sep 2026 17:33:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.158 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789493637; cv=none; b=FJQK1D0Ea+5jbGp0WYPswGuKg9KTmupFDrZJZT0/69jiW8MQuv5+Bf2HaAqInjP0pdPE6Kp5g9D7SV2zNUDUdy0fDr24cMI5/+D5YQleP8+vZrqgdTRYevV/tiJ0dvyMSf1QVevB/y+xBx8nb+AyBlWgxGuj3jxusi0a9YpeI4Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789493637; c=relaxed/simple; bh=Ny8gsx/+aib1LL/z4GtATlgXdDqmpbtNu+AdXrRe4y8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VlWPrF2hJRBwWLjM3kfcZudn3eKeoiYSF3NbSXnK83razozsWPwr55PIGYpdL2BdS74dSs1D6Uzs55iI+Em5KkK4IcEU3qkOieUX8c2HrM++rLkHWxYcd+Bkox+bFbpgs2vmW3s+ZcSEBG6cg2IPo66tIbDNaze0vzEVM87wXZw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=qa7KHdCj; arc=none smtp.client-ip=91.218.175.158 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="qa7KHdCj" X-Envelope-To: linux-kselftest@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=Ny8gsx/+aib1LL/z4GtATlgXdDqmpbtNu+AdXrRe4y8=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1789493633; v=1; x=1790098433; b=qa7KHdCjTus4Q6zh4PYLh0sL8slocGInAKQxixfWT0YDs4aULfvWXEEwrLq/zr744GZn5mPO dU7Le1QaOwCcLer9kemyDqu6Ri+7y8MEqL4v2r2Wt9m1nomtGKqRbr1jBmyaqWw/KKsB6EQ+eoA 76CzpG6/zHWiRnAmCzsuNypM= X-Envelope-To: linux-kselftest@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 70d28aa2d60e653d; Tue, 15 Sep 2026 17:33:53 +0000 X-Mizu-Trace-ID: 70d28aa2d60e653d X-Migadu-Flow: FLOW_OUT Date: Tue, 15 Sep 2026 10:33:47 -0700 From: Shakeel Butt To: Hui Zhu Cc: Roman Gushchin , JP Kobryn , Andrew Morton , Andrii Nakryiko , Eduard Zingerman , Ihor Solodrai , Alexei Starovoitov , Daniel Borkmann , Kumar Kartikeya Dwivedi , Martin KaFai Lau , Song Liu , Yonghong Song , Jiri Olsa , Emil Tsalapatis , Shuah Khan , Barry Song , Geliang Tang , linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, Hui Zhu Subject: Re: [PATCH bpf-next v11 2/2] selftests/bpf: Add memcg async reclaim test Message-ID: References: <93289af4317b57caa4e393d73fe6c786b24a4c2a.1789475073.git.zhuhui@kylinos.cn> Precedence: bulk X-Mailing-List: linux-kselftest@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: <93289af4317b57caa4e393d73fe6c786b24a4c2a.1789475073.git.zhuhui@kylinos.cn> On Tue, Sep 15, 2026 at 08:29:36PM +0800, Hui Zhu wrote: > From: Hui Zhu > > Add a test for BPF-driven async proactive reclaim: a BPF program > watches the refault stats of a memory-pressured cgroup and, once they > grow, reclaims another cgroup from a bpf_wq callback through > bpf_proactive_reclaim(). Reclaim is verified through the reclaim_calls > and reclaimed_bytes counters; the workload timings are only logged, as > they are a benchmark rather than a pass/fail criterion. Setting > TEST_MEMCG_ASYNC_RECLAIM_BENCH=1 adds a baseline run without the BPF > program. > > A second test covers a dying target: bpf_cgroup_from_id() keeps > returning a cgroup until its last reference is dropped, so the program > checks the css flags and skips reclaim once the target is offlined or > dying, and the test removes the target while reclaim is in flight and > verifies that reclaim stops. Each attempt reports its outcome through > a ringbuf, so the test waits for events rather than polling counters. > > Signed-off-by: Hui Zhu Comments from bpf-bots seems serious. Let's address those and then I think we are good with this series.