Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2580721rbb; Wed, 28 Feb 2024 06:23:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUHOJHddwCA1fujihmyVxCNKZKAjX7yLkooFofiBpSmA4To2dfzGo6QwSlHFtpcCbH/An6tdlP1+HLJw55NqFHnliNMCZIJW3ChzwiWVA== X-Google-Smtp-Source: AGHT+IHVWwvkQPnYelb9roOB1mT66Bs2kTaepp8JuIztE3IBTv04EfoypRtGiHMoJxZF9xSVePox X-Received: by 2002:a17:902:ce89:b0:1db:4419:e925 with SMTP id f9-20020a170902ce8900b001db4419e925mr15283388plg.1.1709130238567; Wed, 28 Feb 2024 06:23:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709130238; cv=pass; d=google.com; s=arc-20160816; b=Mt7cd/IlmuaGkc2KaPG16iEtnwj7e10Iw04ttltyRno9mJ4RZ1gbqlReJivba1RUc4 40dm/91IaDYah9Q8sVLXTagJEJQf+cfexZl+SU72ZQ2YwLwr18r/RuaE0zFm4+fV/YRb XIY3X0/GcTb2S1UR+jZuz5/n8Sweb/JbN+aMh2+DW+UbE1d2wXjGuZHbH0ngTUqdC79A 3ymZAKyaGXdSPK0FIbMfl+PDbawQGB1Xh3rsZfEEdL2fuE9jh2WWIgNLpC3Qd4HqjpK9 uAAX9jTHuz58RAuNTSKttge7fUG++vqXmNphdEkdSHbof7ec9v3Bl1gGd3QZ7tHQdPAn LiBA== 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:date:message-id:subject :references:in-reply-to:cc:to:from:dkim-signature; bh=ZjdeObJUnBqQu6HDkte6fjDlmS40A7iu/FBjW2fna/Y=; fh=zcYzyM1iYWoTwSGVqQfAm0XJ/5cws4ezXkHWkfbTmwM=; b=fCq+G5DzY40oQ2Zzy/74doMw61b0crKu6JWJfoOMo/EYe46eFSyKu5zxi1tiPiSeEV Xfg77mYWExn05xp/OB73lCjWLXEXsnSXoOzsl6n7/4mK1YegFH9uxFXhjRp2jnpJ2FL4 757X7IZiLrHiDBvk6RkPN8wUPZx8HAyAqrixIevtQG9RVcVBRL9RyEwUnLl4v5lLLF2a RxdWj3K7JYO97/Uljdb8XFEvhMGEzIzNIPq3tfGiIiR90d4j9qoPO2+4dXE66NUa957c bafmfjV8uAFjSsyg0EUL1r2MquMNkMjOByc+QpjokZlJZJGyxe3vs07I6U2FQwguRELV PK6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=QVkJQ6YQ; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-85177-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85177-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e13-20020a170902ef4d00b001dccc0ca2b0si1054761plx.169.2024.02.28.06.23.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 06:23:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85177-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=QVkJQ6YQ; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-85177-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85177-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 489F728A211 for ; Wed, 28 Feb 2024 14:23:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F4B2159567; Wed, 28 Feb 2024 14:23:51 +0000 (UTC) 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="QVkJQ6YQ" Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (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 63097157E9C for ; Wed, 28 Feb 2024 14:23:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709130230; cv=none; b=DUh5YsFH0JxjGmYZ0jLcBd+ZKAVXg03+PwPmTi+zOKxqdfcnTIyh+eUaTc9h2GqkpkF4QNIr14NBDrpB7I+n1jCVVymllht2byTCdELrz8SkEibQOmJCJrUBCEDJ04WJ5cvIvE/DGWGhP7KX3HtPMreNmmWkppwQTzR2rhwDzgc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709130230; c=relaxed/simple; bh=6eDB0S/OrI8Jim2nC1AIiSSV+moHRJ4iRBCSZE0fQXg=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=QHA8rGpk8DoU/dofNAvZCPgKFE+NsGbdfiOYGkolEB96jzgbcnSZPk9W47GHe5rvBF1ZZkQKw7vZzQh3A06WV4+/iFo1xBGQkA3agZnziK+KHsNbRvXxytzclVG3AephrJ4F2GkUDKQH4ZnGODLm1lokCqntfs7IrLAznBuZKDo= 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=QVkJQ6YQ; arc=none smtp.client-ip=209.85.214.176 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 Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1db9cb6dcb5so6474895ad.1 for ; Wed, 28 Feb 2024 06:23:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1709130229; x=1709735029; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZjdeObJUnBqQu6HDkte6fjDlmS40A7iu/FBjW2fna/Y=; b=QVkJQ6YQee9ByADQ2tM+7k2ek5J0J62O3mup8JyFYfL4VUnP/KLsd6Be3Ma4hMxsWR wGVZyQx9OibCkeGVlofB7W8iJEIHvCvCoG88GWK7BO1WzgmWFHwPia4WGLEMkYmIafBR 4dlRHRXzsv9sLcl1VY3QQPVejx5EXY8z+/J+2YECqWsDittaJzT/7gk5MjG4JAvd9xc4 i685JHyPZ4Z2+pZ4mttVGGv9TA4NP/b3YVu3FOwujBLffjAS8H+PIu24FL61RFmfPJQ7 Nk47PqfdQcKuETuXjHCIoVkz5pnG6Ng4io6GY5MciR/i594pULLSlHaD/afRPIgBxX4v F7FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709130229; x=1709735029; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZjdeObJUnBqQu6HDkte6fjDlmS40A7iu/FBjW2fna/Y=; b=IaEmamld5OgEKudiG6HkTZk1D++HRuzRwh5novFvpzM1fKATGY4kyIRCsLmByxRcgY SXfEm9B2g8ejZ4B7sKfjeQIUn652AhaXFXcslgBoYozuMdTu2i9m8keGPmX2fvAq7zr2 NXDRC8n9HgOoYxghjlJF9KZSwaiKA90MpbMIo2ISb56XdRZ8gNWGwjy8T6WRf8yvqD0K LGuKty6wJq8JJrNM8fM/ZC46g4nDvOXUMlwBDZPqROvnfIZbSFhcAp6pv80P402v/2Sl ttVM8aWZhpoYwVWSH1o8gXp8+P7FIiT2x+Q/cv1Svcjekk3+hdGN4R9jxRYiI4YPMC3V lqVQ== X-Gm-Message-State: AOJu0YzwC8udP8Ne+n7lN997RANzoqYeCXdhHSYj0dxImvNpbsxgsp4c oemCHJAbZd9rIEtaMg8BQzfUdhNOeDi3BgfGt3GXZ4KzHlQ+rt8VA9Ee7GPpCM0= X-Received: by 2002:a17:902:e98b:b0:1dc:82bc:c072 with SMTP id f11-20020a170902e98b00b001dc82bcc072mr12897760plb.1.1709130228686; Wed, 28 Feb 2024 06:23:48 -0800 (PST) Received: from [127.0.0.1] ([198.8.77.194]) by smtp.gmail.com with ESMTPSA id q6-20020a170902b10600b001dc96b19616sm3375375plr.66.2024.02.28.06.23.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 06:23:48 -0800 (PST) From: Jens Axboe To: asml.silence@gmail.com, Xiaobing Li Cc: linux-kernel@vger.kernel.org, io-uring@vger.kernel.org, kun.dou@samsung.com, peiwei.li@samsung.com, joshi.k@samsung.com, kundan.kumar@samsung.com, wenwen.chen@samsung.com, ruyi.zhang@samsung.com, cliang01.li@samsung.com, xue01.he@samsung.com In-Reply-To: <20240228091251.543383-1-xiaobing.li@samsung.com> References: <20240228091251.543383-1-xiaobing.li@samsung.com> Subject: Re: [PATCH v10] io_uring: Statistics of the true utilization of sq threads. Message-Id: <170913022728.171956.6622482281428725824.b4-ty@kernel.dk> Date: Wed, 28 Feb 2024 07:23:47 -0700 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="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.12.5-dev-2aabd On Wed, 28 Feb 2024 17:12:51 +0800, Xiaobing Li wrote: > Count the running time and actual IO processing time of the sqpoll > thread, and output the statistical data to fdinfo. > > Variable description: > "work_time" in the code represents the sum of the jiffies of the sq > thread actually processing IO, that is, how many milliseconds it > actually takes to process IO. "total_time" represents the total time > that the sq thread has elapsed from the beginning of the loop to the > current time point, that is, how many milliseconds it has spent in > total. > > [...] Applied, thanks! [1/1] io_uring: Statistics of the true utilization of sq threads. commit: 4c73fd7498f75e06462e94b907e9cc79e0726e0c Best regards, -- Jens Axboe