From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f53.google.com (mail-io1-f53.google.com [209.85.166.53]) (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 270981922EB for ; Wed, 9 Oct 2024 16:50:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728492659; cv=none; b=ZE9XEnXqqR2j0FyIgPBykhhtT95TGhjuWL8/kRcM7VRQOFd5/QP4kUrVK3IIaDgtR68cxpnmtvadeoD1qiXJ49r7eUb4muHjtFtbuFpmcT5CBvdfdUzTnNelv48gh2j1A0wL2XLRy8XPExB3SiOEubFIV9XZjtvlf1DBHwGofTY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728492659; c=relaxed/simple; bh=CQviehjtQ5nEQzFt58WbT2dVDLCdAJCkIVZbfOTz3sE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=FeRiRbbdhbLgG46HlwSSUQUlcpGG4F14nSNyCA5qLwI8pH3kLSMsP3c6MCke2r14HQQyD/+zvvmGIabIZUCFNIZaZyOpMLYs2o0fVY8gDKMmNjsJaZY7JolfTlS6k92ISaeqo20cTP0QEufbzuDbgKU5PMb4ewXUPWJN3yniRY8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=SsNFYJwZ; arc=none smtp.client-ip=209.85.166.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="SsNFYJwZ" Received: by mail-io1-f53.google.com with SMTP id ca18e2360f4ac-835426c0fefso781139f.1 for ; Wed, 09 Oct 2024 09:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1728492656; x=1729097456; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=bPL1Ys3vx6T6pnpmpv603BOiuuGPyjBegqS4Kd9aWbw=; b=SsNFYJwZvxnu4NJA15w2HC9r9piS/NU9/rn/c+71r1xE6/O8DWXGwlZ3DYu1ebIdFa Xlv8DbZko7SWHlETOAhbDlvlqYZ3AcDCoFXaQxIHtOwrefhNn9nHD/ugklRxNwdgQy9x bi5PxL+fQFpxA7GX1q+AslETlj0aHYS4l7J+Taq+gFrBpJXg4x4Rb3DewRCYVqP8FJ9M ml0fpY17eTcz8HjVAvyOwGRvdjaW4+AWXwlf5bP/3L5speURbR9jnIyG2szrqEmWtb0k LK4/jkbjgBevkrhD9LhruiqJBDnElJ17loLQeav9bbXyaisiVu1ERc9oU0wtsyT2sxFG DjJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728492656; x=1729097456; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bPL1Ys3vx6T6pnpmpv603BOiuuGPyjBegqS4Kd9aWbw=; b=NKOgBhy6FA0y9VsjhYavgrCO7VKD6sR3sEiHl/Yx6O2sqgwVFdWog6jBG77Yk+eFNK AW8kOrU47Y8fnpopR8fzd+V0yaLXwqhMHKZRdTmF03fJd+KNNJKLJoecLzO1SFQt/BfS 52ZumSJ+DxakBzf5h21icjPM7qe6b+jkrjtBVR7Pf4pNP3mCkZ8iE/LCLpjvH/B1AivW 4QJP/zaCq0o4PCfLRKgX1GqfoayBQmLM2VS6TUWV15kSM3c0/5yIMDvoAcra7ElRD43V maOfwbFk9AgOcqLWkc1tvteSCDsUxZ3Cd7CP6te4neHpLD+mOl7v/0AiDb0ENgJXYVOD ZfCQ== X-Forwarded-Encrypted: i=1; AJvYcCWJ+ahBIwGcU5Ydlz9Ndxx+vUjt5YamuyFzAyZWdMj3gAsYykR0EbyirLWUDGcfdoC1EtIX+/4=@vger.kernel.org X-Gm-Message-State: AOJu0Yy5iCo0v+dL57U3KGskvxUfRT+6YhPQNDNFwLVcLGXwsSuaBSxu W8c0BZV2DqIYwo36h8dq0aAzDKscU9ZdxA3XyTpi0m1zrM4VufJ3dYTfi10PWsI= X-Google-Smtp-Source: AGHT+IEI9ELr8BJEpGt8uuBM9sh/6If6LKEijwCEnE5nkrowIyU9/NFEHb08ujsx0PO7XoUyLdarmw== X-Received: by 2002:a5e:de42:0:b0:81f:8665:da0a with SMTP id ca18e2360f4ac-835485d9ed1mr23571739f.1.1728492656250; Wed, 09 Oct 2024 09:50:56 -0700 (PDT) Received: from [192.168.1.116] ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4db6eb557a6sm2118223173.50.2024.10.09.09.50.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Oct 2024 09:50:55 -0700 (PDT) Message-ID: <57391bd9-e56e-427c-9ff0-04cb49d2c6d8@kernel.dk> Date: Wed, 9 Oct 2024 10:50:54 -0600 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 00/15] io_uring zero copy rx To: David Ahern , David Wei , io-uring@vger.kernel.org, netdev@vger.kernel.org Cc: Pavel Begunkov , Jakub Kicinski , Paolo Abeni , "David S. Miller" , Eric Dumazet , Jesper Dangaard Brouer , Mina Almasry References: <20241007221603.1703699-1-dw@davidwei.uk> <2e475d9f-8d39-43f4-adc5-501897c951a8@kernel.dk> <93036b67-018a-44fb-8d12-7328c58be3c4@kernel.org> <2144827e-ad7e-4cea-8e38-05fb310a85f5@kernel.dk> <3b2646d6-6d52-4479-b082-eb6264e8d6f7@kernel.org> Content-Language: en-US From: Jens Axboe In-Reply-To: <3b2646d6-6d52-4479-b082-eb6264e8d6f7@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 10/9/24 10:35 AM, David Ahern wrote: > On 10/9/24 9:43 AM, Jens Axboe wrote: >> Yep basically line rate, I get 97-98Gbps. I originally used a slower box >> as the sender, but then you're capped on the non-zc sender being too >> slow. The intel box does better, but it's still basically maxing out the >> sender at this point. So yeah, with a faster (or more efficient sender), > > I am surprised by this comment. You should not see a Tx limited test > (including CPU bound sender). Tx with ZC has been the easy option for a > while now. I just set this up to test yesterday and just used default! I'm sure there is a zc option, just not the default and hence it wasn't used. I'll give it a spin, will be useful for 200G testing. >> I have no doubts this will go much higher per thread, if the link bw was >> there. When I looked at CPU usage for the receiver, the thread itself is >> using ~30% CPU. And then there's some softirq/irq time outside of that, >> but that should ammortize with higher bps rates too I'd expect. >> >> My nic does have 2 100G ports, so might warrant a bit more testing... >> > > It would be good to see what the next bottleneck is for io_uring with ZC > Rx path. My expectation is that a 200G link is a means to show you (ie., > you will not hit 200G so cpu monitoring, perf-top, etc will show the > limiter). I'm pretty familiar with profiling ;-) I'll see if I can get the 200G test setup and then I'll report back what I get. -- Jens Axboe