Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2897159rdb; Tue, 26 Dec 2023 08:32:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7odbjLSpyzez/yfifkE21LwR3xSXVQlWogRDwy4qZdk9sWajNMcB2rShC7wBzK2um+BO/ X-Received: by 2002:a05:6102:3d84:b0:467:2212:a42c with SMTP id h4-20020a0561023d8400b004672212a42cmr555484vsv.26.1703608346734; Tue, 26 Dec 2023 08:32:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703608346; cv=none; d=google.com; s=arc-20160816; b=qSJdN/UAmknQbIZKvD/37E/wqdDC+i8PeaADKMVHj6bDp7jpMhqKiALSveFV4MkFtb Mp2AfgZDpaxSa3JCcAGJMzF5WKs3AcjBuSBzH5ttp9j3xzVdk5U36cWgp2MxIFCzlosz 9MLgWAH0YzUyvCTupsAB5Zr9T4jfwidXIXxrdHMOl+KqXVOa53x0piknQ9F3BNDbAzX8 Qlky8rI8Yd2gfGge2Yx4chDRvVmvjHitUR7IGhvBX8dB3s2Fz49O9YpTI/yTwnPLgJS1 FWd0mNcsJHL0m6L5bnIZ8b4MjZo/6cTycaXUdTvsvpehK10I4cR9eZVZnRSOUXIhVUth VfSw== ARC-Message-Signature: i=1; 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=rnzU4WJmQxmkUC7bQNo5RhC0emWFKZu0JZ9NLV6mjrw=; fh=yzYlWbKs5kD+icYBzFHr3xMBlLpj5p8ssiyXIDCHvS4=; b=jwC0UpNPozzs7TjEvzsyL8sUZpoq9lnkG29vQazU9fW0Ag3UGuDQn9FxJ4EJ83LXO7 oTZM06Zhjp9omaKH5156nIvrjwwFfVOeFBnrrTsFucBrLSmY10zfj5uOqtWWRSRt2VkH KuklTnCdk5iFKbzliz5sK5di5L1ESe0nkaoU92iZIVuC2g2YShX1A8yfn33JP4j5rxRw qsyN5yf6JNvMlSXc3i5MvuyHtYOeEBSGN5dx1d7aPrJ/h0MDCZnPqS6x25az7xydhboH qbKbSlLaqxhNfbvbVbNryFqlyFEnIPFQRb/egIFxo1P7hYy8JimrYhP4QQFUboPOlLBT 5w8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=nNoDAqAr; spf=pass (google.com: domain of linux-kernel+bounces-11577-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11577-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jm16-20020a056102199000b0046704da97d5si393660vsb.712.2023.12.26.08.32.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 08:32:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11577-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=nNoDAqAr; spf=pass (google.com: domain of linux-kernel+bounces-11577-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11577-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5C7091C2209E for ; Tue, 26 Dec 2023 16:32:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84B564F606; Tue, 26 Dec 2023 16:32:19 +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="nNoDAqAr" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-io1-f51.google.com (mail-io1-f51.google.com [209.85.166.51]) (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 4948445009 for ; Tue, 26 Dec 2023 16:32:17 +0000 (UTC) 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-io1-f51.google.com with SMTP id ca18e2360f4ac-7ba9356f562so30715339f.1 for ; Tue, 26 Dec 2023 08:32:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1703608336; x=1704213136; 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=rnzU4WJmQxmkUC7bQNo5RhC0emWFKZu0JZ9NLV6mjrw=; b=nNoDAqArTCsBjQa8myfnZiluXBclw83OvSNqYUgvHtNm0Z3ZPCoDtq9x1LeOmyy80Z lUacv05wKoLoD4W2crAZd31whxR7p2zKo2XAV7p2HLVp2zdSjdbBh4hkqdSf2AQTRIBT erHtHBTnrsygHLzZavBAygOEzJXgbzC093NFKO46bG2+D5qPWlYTPC1OWE1NqfUUPxgL mAy5rU1dYtKIp0+bAnjJXpGeuEgWkg7GrZ6HVdBXntttFmZffPRsFMjk076jvymdbyNP 70UOmSrRaGylwRcDV1Fh98yTMfUpNS1vgfxn144FB9T0FRyzXsSiyctmIwyR9viPOFOe 0lbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703608336; x=1704213136; 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=rnzU4WJmQxmkUC7bQNo5RhC0emWFKZu0JZ9NLV6mjrw=; b=apRaZ2re2i+2SJJMx7cqQUxaWoh72tdd+gEXN1HeVkEzC4Wqamx3aSJP3hHD82JXC4 2Vb8yEOgaO5JTJaNqrLn2owT7OL0W9pzFft9RcW5WBRoqijASNoClhnAMQWKfwPCp/PH 0Iw653NnDlIRSgCSXvVX5o15KnuRlujPyeRTsys9da7kypfufJ//lfVj53obAtUralsu kl9Op+F9KLlzXYkYAC1IwVHxZ2twD7zDIqXhWrsaG/n75cxe4/kdjMhNXF474WgpcMaZ pGkaLXopzOrr86Vmv7OC5dFypnZ7tys4r2n+uPst/5ytJ30dhqdaPwvaCiyyu/nkGJzY Stlw== X-Gm-Message-State: AOJu0YxeBA1/M148b0/9hx1THQm2A0IPKjZ8Kav7RhRqkEl0Qwr1LDel W+FsH+Lk/fTHhgfGbid3MY0OyVEHz2tP/g== X-Received: by 2002:a05:6602:179e:b0:7ba:c855:9cf7 with SMTP id y30-20020a056602179e00b007bac8559cf7mr4948137iox.2.1703608336402; Tue, 26 Dec 2023 08:32:16 -0800 (PST) Received: from [127.0.0.1] ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id cq13-20020a056638478d00b0046923416e7asm3197603jab.175.2023.12.26.08.32.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 08:32:15 -0800 (PST) From: Jens Axboe To: Xiaobing Li Cc: asml.silence@gmail.com, 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: <20231225054438.44581-1-xiaobing.li@samsung.com> References: <20231225054438.44581-1-xiaobing.li@samsung.com> Subject: Re: [PATCH v6] io_uring: Statistics of the true utilization of sq threads. Message-Id: <170360833542.1229482.7687326255574388809.b4-ty@kernel.dk> Date: Tue, 26 Dec 2023 09:32:15 -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.13-dev-7edf1 On Mon, 25 Dec 2023 13:44:38 +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: 9f7e5872eca81d7341e3ec222ebdc202ff536655 Best regards, -- Jens Axboe