From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-183.mta1.migadu.com (out-183.mta1.migadu.com [95.215.58.183]) (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 50F2623CB for ; Thu, 28 Aug 2025 00:14:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.183 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756340058; cv=none; b=SrMqGFN1Jki9Hm9lnVEqo4kwVqbfhqIPFV5XVhismBZKQhccwtixPFiCdbLg7JD76Jv6WHE+XyFj0VWKqLzQ1lYHZcUJUKjGxo6bJJJ2CGr5QqXXdf9eQbyg7//ls4+j8wXUC55DRUQoBvBslD1fnM7ZVP7imWuyFOqik+2Mp3U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756340058; c=relaxed/simple; bh=wwxJdyzi/OPxE3jLAJgSAI7KEudj/m+iNjD472rVvLA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=cd4w2zvQk4sbH+KmBmWIuUCjhx5r3X1L9yw2l8h2WgJ2ad9nmQq02Vw+s7ozxsjh/EY3xvGbBez/cE4LBBFccAEq/vhAmTSa9WT0BGk3FHFuNVq9KVsMemXlwjWtD/E5Qwmqcq1JRmjncZQpb5O0t46mXbUthSOc2p61srV5jbU= 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=hJvFvBW5; arc=none smtp.client-ip=95.215.58.183 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="hJvFvBW5" Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1756340044; 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=1Nioa5Xk16+HQdcRt9MGwBFxVkEF38M/TDMpMffC87Q=; b=hJvFvBW55g5b6OCq3J2rTOLvZVHKbP1Vx7g8GPR53S3wuLoPiwEig8mw+nNlGNm6LQgG7D dy/WLXmMFERNduUHu2OdXRi0BFlGbWZyX9dbJOjNcbLrLj7A1joH1LLJplEqv7hY9K8FMu leEnGshUT0zN0MJ60KPFgBiBdRQNre0= Date: Wed, 27 Aug 2025 17:13:57 -0700 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v3 bpf-next/net 5/5] selftest: bpf: Add test for SK_BPF_MEMCG_SOCK_ISOLATED. To: Kuniyuki Iwashima Cc: Alexei Starovoitov , Andrii Nakryiko , Daniel Borkmann , John Fastabend , Stanislav Fomichev , Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Neal Cardwell , Willem de Bruijn , Mina Almasry , Kuniyuki Iwashima , bpf@vger.kernel.org, netdev@vger.kernel.org References: <20250826183940.3310118-1-kuniyu@google.com> <20250826183940.3310118-6-kuniyu@google.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau Content-Language: en-US In-Reply-To: <20250826183940.3310118-6-kuniyu@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 8/26/25 11:38 AM, Kuniyuki Iwashima wrote: > The test does the following for IPv4/IPv6 x TCP/UDP sockets > with/without BPF prog. > > 1. Create socket pairs > 2. Send a bunch of data that require more than 1000 pages > 3. Read memory_allocated from the 3rd column in /proc/net/protocols > 4. Check if unread data is charged to memory_allocated > > If BPF prog is attached, memory_allocated should not be changed, > but we allow a small error (up to 10 pages) in case the test is ran > concurrently with other tests using TCP/UDP sockets. hmm... there is a "./test_progs -j" that multiple tests can run in parallel. Will it be reliable enough or it needs the "serial_" prefix in the test function? Beside, the test took ~20s in my qemu. Is it feasible to shorten the test?