From patchwork Tue Feb 6 16:30:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 13547610 Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) (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 D9A8B137E for ; Tue, 6 Feb 2024 16:34:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707237268; cv=none; b=dlTnOBiYnXH5tsGmBsAs+iuvvAR53DfWcuBCCGBr84wWaGHoFXBnkCbHAEG5M87jHVx7JjeWEfbCy9IZz8JWeiknC7ktwvEpqdMHGvajNuHsPy26+SNvxrfH0/PSmHpxSBMZebB8I+5bLBtVYzdCZ4YTkVniODKg3DR7p4GK6LQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707237268; c=relaxed/simple; bh=cZbEmAvgGvMMpb1K68GW9CVJS6dB30J+uuRsKHlN0Zk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KWCK8aQYqbLSRc+TIBgo0IkqxrK4j8SrOKCHtAj3QG2obEXB0MFrIC4dLfUMpXAddQ/D6/bkkdOBwmyGlxWPqK0bxq9kZJQ8EzEHbSg9I8Y14M1Bn8Fk7KnAscaf3ijZ6CmLMXKiaKpH4onNZ6ICmZkxvE1awweiUqGV7eN2S2c= 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=IHY3Qip8; arc=none smtp.client-ip=209.85.166.50 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="IHY3Qip8" Received: by mail-io1-f50.google.com with SMTP id ca18e2360f4ac-7bbdd28a52aso98778339f.1 for ; Tue, 06 Feb 2024 08:34:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1707237266; x=1707842066; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZjNMAuZWWCVVxs1GmQKOGXD3osRqvyMUPn6iplEeZI4=; b=IHY3Qip8VcwS7c2stbTjE0C/PCtUXws5wYhPt7OzvJCNaUZ8Ds3xK7a9G/7ZunEY00 qtGTfyUFu203bsJVUciEyTGjDUKzCBmAZYkZRYMqknmOo0ilFMcfx1qtWbKHJ123HkED nn+gjT61LfpY2cCeIyksxYcg/6XYY5ZYTK5AtwHxFXfmdF5IaC6etfi3ZHtOIfc4l9kM zt/07LVQniCiNccRohNs3dggFKPTRsN87cw1FBJWVhNe00mZd6nmHY7yBrZW7LnZymMX 0/s5yXjNyNivTGpprTlhg9uxdexEdVS9qJS44pZecby0mX14fVXJLC/kdzqg4mRh5sHZ sYTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707237266; x=1707842066; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZjNMAuZWWCVVxs1GmQKOGXD3osRqvyMUPn6iplEeZI4=; b=XmYqYvRdRPL+TK41PXgQeliNoGFNh0NKFVBizg4LdTaqIAMy0NqeTGfUeQEQk+ox6f gyt0KocpsLZpVSJ4vmiIvNBlje50CSlugLjaVBqfnVrncnenIzc9q+jKpX3A+GFzEBaX gs2zfWSfK45vfWrDWReSYSJRgEg4ZtR7HE31KE41uOx28CT1DkqpZpbhlrKOnpL5S89j WVq3GOZECoChWT6qHLTxjKpn5kL1LNcQs71MeB5aBAfrdaJlChOqwf/MDe6ppSuyeYj9 1fM6npN2AErIrEgv/EnT/t5UQIYDoWyvVti1HWOARQPcChMoP/JY8QuZs5nAM+Td6JN8 Iu4Q== X-Forwarded-Encrypted: i=1; AJvYcCXv6vSANb4DkKZi1NFZ4LLguo0u1LMhOY69GrW066R73iVxOpFjpibXlBXjNvMi8gS4lLirPXCob5Zb/1/PfefQp7DMAqwQ X-Gm-Message-State: AOJu0Yzo0Qj4Qan4hk8jL7PehuJgN+3jR0/5rZI439voam2V/tbdLSr/ hEXsD2PgZQTvZpcVRLZwmyMElVwB1O6Sa5x5P0Bzp5mXsLdTVMljiGLFydgU6Ms= X-Google-Smtp-Source: AGHT+IHGvrIrQaojR68Jd0wcVBZXGZJRB4JZovQnrrrTWesXNF83ySXKt0wyJ/0TahYnJUOIgPHG2Q== X-Received: by 2002:a05:6602:70c:b0:7c2:caa4:561a with SMTP id f12-20020a056602070c00b007c2caa4561amr3331085iox.2.1707237265834; Tue, 06 Feb 2024 08:34:25 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVqPyiSaPqUSE/OBqlytKGZa3frMjiLcEmsm6uAAUN0VZ2UFEV42HaFvfcbH/ziYoGkE+x01gQHQcAkx6w1LJ6sqS6tOgIg0KzgrUD1xt9M6n1bceCkk5fWvrUFkNIO Received: from localhost.localdomain ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id u8-20020a02aa88000000b00471337ff774sm573316jai.113.2024.02.06.08.34.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 08:34:25 -0800 (PST) From: Jens Axboe To: io-uring@vger.kernel.org, netdev@vger.kernel.org Cc: kuba@kernel.org, olivier@trillion01.com Subject: [PATCHSET v16 0/7] io_uring: add napi busy polling support Date: Tue, 6 Feb 2024 09:30:02 -0700 Message-ID: <20240206163422.646218-1-axboe@kernel.dk> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi, I finally got around to testing this patchset in its current form, and results look fine to me. It Works. Using the basic ping/pong test that's part of the liburing addition, without enabling NAPI I get: Stock settings, no NAPI, 100k packets: rtt(us) min/avg/max/mdev = 31.730/37.006/87.960/0.497 and with -t10 -b enabled: rtt(us) min/avg/max/mdev = 23.250/29.795/63.511/1.203 In short, this patchset enables per io_uring NAPI enablement, rather than need to enable that globally. This allows targeted NAPI usage with io_uring. Here's Stefan's v15 posting, which predates this one: https://lore.kernel.org/io-uring/20230608163839.2891748-1-shr@devkernel.io/ Patches are on top of the current 6.9 io_uring branch. Changes since v15 - Rebase on current tree - Various cleanups - Rename NAPI_F_NO_SCHED to NAPI_F_END_ON_RESCHED