Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1410136lqh; Mon, 6 May 2024 07:04:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7xbVIEkguacKv42O0vnOYIAsa7AGzOJcoBRgWhKGCWRa5pdX29N4gpE8EeLyoTExCygxk+t8uyQikW33CerCdn7R/OyqwpCBUIefiwQ== X-Google-Smtp-Source: AGHT+IG2yw9k9PT0YrRgRkc9pNe94cTCCXmjHUY+88pewt61bHqzM/vqFvoJy7rCXS5XTp+GM2ow X-Received: by 2002:a50:ab1b:0:b0:572:a198:49c5 with SMTP id s27-20020a50ab1b000000b00572a19849c5mr5735372edc.16.1715004268576; Mon, 06 May 2024 07:04:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715004268; cv=pass; d=google.com; s=arc-20160816; b=iKnQ6/XPXvIevnfBq2qr1ZLCjOmP0/stjth7zzTzBSkogXO/0KZOcboPa/hjeYFBAK XPrlr1MYy3a1rS6uAPW+FbLw5wZik6NK+IG8IMxDQv48GEK80D1jYZ6zjwtqhNkFqMWj nRarNRLbn9b5tcxEq+TdtuYSDlXyKKFWtUac44HlXdZF17DNRwrnZw3Rr7vihTPNqWX+ TLXDhno/BvcnE3BWyAIazhUDYC3WEl0v9VSUNerXSZQBfseWJ5CJszduiGFH9q3rnodd FGRWO6G185aSkYY4OB6FV2RGQHYbAyj0ccot24IXzUq9o0meu0AkXHoaCKwurYEj/G9y pMfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=0UjED61Jh9Jzm1bpuRCl2fNikOVYlkHF8HPiOiEvdWk=; fh=GI2dnAC/2ndi7XHSurVGzV5uuy/4CZazI5KkitrH+7A=; b=EqXalCPnZHUgWRTwTAFr3vlFdr0BxxdTIHsyQi6NmalMaWh4i/tWQtWH/bQo4u/Hjy yYzifNJwjwdKBh0zuU/FAmb5qLrqiq++x9gyJSaYeM1w0SBhuyE8LKhmAFylOvixrbzV mQBI9zK91cTzj1o6haS+ukLpLKt1rXbLLtqfY2pp9/hEsURXiOF7QNVYJs2+KgKQ4vac zYbYsL7h7HZB9yghxFWwvww52Nw22Fj2nRSmxrRHCT1xaCdp6EoGn/pJw0p8PaShhW1n Mh937vrZfWgKSOm+lqNmBfZJ8NppELD9XfPO5ieGWViV6ieqlpbRpTlUSBsZJRoPUYC1 yhRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XONi0HQd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-169942-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169942-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l22-20020aa7cad6000000b00572babb466fsi4779709edt.526.2024.05.06.07.04.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 07:04:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169942-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XONi0HQd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-169942-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169942-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5054A1F22C52 for ; Mon, 6 May 2024 14:04:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C54A4824A1; Mon, 6 May 2024 14:04:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XONi0HQd" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 EBAB881721 for ; Mon, 6 May 2024 14:04:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715004246; cv=none; b=hxQVcsv3ppOxzS+yE5r919dop42pIg/2bedA0FufxxQnjbS8ZdU2owJYOgE5GkpJo2LRCJejBXe8z2Vm9oHb0mjfrfa1fXnP5MVV+495l73RJ6ZpjxFCDleqPggnM9/RizDbTohEJKiauZX/Hko3PtgXCTl/NJtsQ49+e0SqaEY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715004246; c=relaxed/simple; bh=0UjED61Jh9Jzm1bpuRCl2fNikOVYlkHF8HPiOiEvdWk=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Vb4jznpjdVIcBZo+3LBvuBeoWmweqWmWV7OTKxexmHywV1Cp/h3MQ/5Zul7pESvYNJ6DmgHWdvEYzM2im7N3KUvpLPr/CPMLNgkVC3ohkms5RU03prKDBTWav1ijP8ogwECG5fXZUPluncgRFE/lg6quC+fpBS65zLnb1fTxkAA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XONi0HQd; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AEB19C116B1; Mon, 6 May 2024 14:04:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715004245; bh=0UjED61Jh9Jzm1bpuRCl2fNikOVYlkHF8HPiOiEvdWk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XONi0HQdeIQmXfSfKA/QgR6eTkmp6g2oJIuNXqWYbA7zAQFdC0DD3hMcSvd8ScxlT FQBwoRSdwIUH9e/bqqlWAov7b0GeSlq4ZWGIzHfC81mbeIHB8zxvuNQM7d5n5Nacr5 eJRVzfgTwDlXF0e9MopOX3sCj37Gj9wTMe9e5N2KahrQxEaGbNrTnPnYjYw38Lf7A0 2MjZ/RJ2z00vJEfK1Zh0HgdY9TB5AIBDAmPwIcyudMJJDCB9eNXMr9N9s7Y8j/YGYq VTtnpsftx1ezrgJKsTOYKTqnB+PoHH9cPT5ZSO0dZCMzBN0/LkVHnRVPwgaIlmCXG7 NowbiHQa/27tw== Date: Mon, 6 May 2024 07:04:03 -0700 From: Jakub Kicinski To: fuyuanli Cc: , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH] sched: Introduce task_struct::latency_sensi_flag. Message-ID: <20240506070403.181b574d@kernel.org> In-Reply-To: <20240505030615.GA5131@didi-ThinkCentre-M920t-N000> References: <20240505030615.GA5131@didi-ThinkCentre-M920t-N000> 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-Transfer-Encoding: 7bit On Sun, 5 May 2024 11:06:15 +0800 fuyuanli wrote: > A test has been made in two hosts named A and B. In A, several clients > sent udp packets to a single server in B concurrently as fast as > possible. In B, the IRQs of these flows were bound to CPU 0 by flow > director, so there was always a triggered net_rx softirq on CPU 0. Then > a test program was started in B, which was also bound to CPU 0, and > keeped calling sendto() in a loop. Sampling with perf, results showed > that about 25% of running time of test program was spent executing > local_bh_enable() contained in syscall sendto(), but after setting > latency_sensi_flag to 1, this proportion had been reduced to 0.5%. Enable threaded NAPI, it will have the same effect.