Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp85881rdb; Wed, 17 Jan 2024 18:34:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6NxCgkGB8ny2DUAfQUOh1YHdsDmdgTwPqv2gkkuqs/k8QEslMZwfq5ASxzjkYLgkrTALK X-Received: by 2002:a05:6512:3281:b0:50e:69cd:6427 with SMTP id p1-20020a056512328100b0050e69cd6427mr63966lfe.38.1705545254229; Wed, 17 Jan 2024 18:34:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705545254; cv=pass; d=google.com; s=arc-20160816; b=dH01jPyW9ETW88UzHboGEE31K7yPoZ4svHCo4YcQEuf7hEnkDOU5bscMrnx7jnHjh6 aROQrX/cI0sCGpkIsKU1oa/zfpCfsKWulDfd/SvpvC5y8TBmkNyB7319XjiJZqT7sibX nBcqUOp7KqAv1DNnF+9ZEx/5MSag6LOfvxYShWYPFoUql0QocLnYr64tDhBPVeULyF8n /phOfqilp0NR6YooJQAi8tqwWefTglSthRDkvTpcxaprP6IYuWGp2xIGEDMpEqTpC4tJ mi40BHjT+jlFnKdSa1hJ4eUeRKhT56ILeD2aFpr6o1OZcvUoOl63wsitOllilDY6C7rU t7tA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:dlp-filter:cms-type:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :dkim-filter; bh=DQfoLNWaA63ZoCrCqffGiOmeHADirwGYGc3fxuPM4qk=; fh=aY7BzdyKm4Nm0M/uAtUmk2wfKPqEr2Dp62eUaXsSvjg=; b=FIdxzojmDrMrBr6tVEcAZtlHkuxFOo326OkE9VzfpiIRwDVV6mibcmoOtk+1Z2WYDh G645pC5gsJg/8NS3DCZkAZPr/EFk9hQw9AL7EAadFddJnERIyzlCFbAEiDq59+Z7PROz ndYU1rwS4xy9ip3o4nt+uyJVpuQUJcuRO3k0J94Xyf8cDbbpEHMU00ARJqkc/o6BQK+5 QWLpNBdBt83DQ4SuvbC1QtpT+zmiyYvbDHiiIRMYKopXoskxZGDV/ELFANTJUpo2QrUF WQdtVnHs0rC410H0tnB2RKpIuSrTUgJoRU1Y2i8WtxbjTIibYvMwBGVRzcfkA/DBUDZq qVgQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=PVvoeYUS; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-29663-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29663-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a8-20020a170906684800b00a2c3d26de57si6255951ejs.50.2024.01.17.18.34.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 18:34:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29663-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=@samsung.com header.s=mail20170921 header.b=PVvoeYUS; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-29663-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29663-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com 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 C4F561F2572F for ; Thu, 18 Jan 2024 02:34:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 412EB8F60; Thu, 18 Jan 2024 02:34:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="PVvoeYUS" Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) (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 C4D648C00 for ; Thu, 18 Jan 2024 02:33:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.25 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705545242; cv=none; b=KOevlStY2oSUJQIhO1DABm4tizJ8KpsddsJostsn7n3H2F1hd6WbqubsWSbhOThQ4Ja/p4tK9qQi7bQIa/jhOR+92Sm1Ez4OLE+Mb+oDj5R9kQup/gPHULhoLrj3+td9ajztNlJEyaWxcSZTeTmrfGiV1c08v6/DrpK1F+Rd838= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705545242; c=relaxed/simple; bh=DQfoLNWaA63ZoCrCqffGiOmeHADirwGYGc3fxuPM4qk=; h=Received:DKIM-Filter:DKIM-Signature:Received:Received:Received: Received:Received:X-AuditID:Received:Received:From:To:Cc:Subject: Date:Message-Id:X-Mailer:In-Reply-To:MIME-Version: Content-Transfer-Encoding:X-Brightmail-Tracker: X-Brightmail-Tracker:X-CMS-MailID:X-Msg-Generator:Content-Type: X-Sendblock-Type:CMS-TYPE:DLP-Filter:X-CFilter-Loop: X-CMS-RootMailID:References; b=VjMa1m2rZ0vSbidZIOvp4065Uqi/xAjrdg9XrG7a0TEYUCYQVT95zdQN4X3YVA7XdmT3Hs4fjNZefIhvAs/EqGlAHe4IbfrTN+YRlfvSqungk4RoIGNBPgT72B4Bg81O0JC8yO5/rgRkl/4Xll68jVRqa3+WvrJioROhxGHes4g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=PVvoeYUS; arc=none smtp.client-ip=203.254.224.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20240118023357epoutp028a994c0015f6a9c9ec23b40c56d4945d~rUFt3yb-G2168421684epoutp02i for ; Thu, 18 Jan 2024 02:33:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20240118023357epoutp028a994c0015f6a9c9ec23b40c56d4945d~rUFt3yb-G2168421684epoutp02i DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1705545237; bh=DQfoLNWaA63ZoCrCqffGiOmeHADirwGYGc3fxuPM4qk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PVvoeYUSzCjG6MNHGst86mAWSVKUE64P7QATDxrXHL9GNq8SHYpgn3GO2BVYAuVHN ECUaH+eivNdJEFH8HtZTUh3Kt4knRLXCB5LIxQlq8X7C9Ayv1tlJRBwlcGB31CI8sv 0yOrT1n4tn9B95gHfE06jXK5LhNvfhjw+6pvEoFU= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20240118023356epcas5p47d72a536f48e935d090439ee022141cf~rUFtD1GPg0168001680epcas5p4b; Thu, 18 Jan 2024 02:33:56 +0000 (GMT) Received: from epsmgec5p1new.samsung.com (unknown [182.195.38.175]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4TFmyq1m9Nz4x9Q3; Thu, 18 Jan 2024 02:33:55 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmgec5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 72.49.08567.31E88A56; Thu, 18 Jan 2024 11:33:55 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20240118023341epcas5p37b8c206d763fd56f8a9cfb3193744124~rUFevWpeG2267822678epcas5p31; Thu, 18 Jan 2024 02:33:41 +0000 (GMT) Received: from epsmgmc1p1new.samsung.com (unknown [182.195.42.40]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240118023341epsmtrp1a2a66175573f7da9c15e9039b8911651~rUFeulUMG1919719197epsmtrp1i; Thu, 18 Jan 2024 02:33:41 +0000 (GMT) X-AuditID: b6c32a44-617fd70000002177-5d-65a88e13a34c Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgmc1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 8F.11.07368.50E88A56; Thu, 18 Jan 2024 11:33:41 +0900 (KST) Received: from AHRE124.. (unknown [109.105.118.124]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240118023340epsmtip222216eb9378eeec33e95235f88efef1e~rUFde4MCI1836718367epsmtip2o; Thu, 18 Jan 2024 02:33:39 +0000 (GMT) From: Xiaobing Li To: axboe@kernel.dk 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, xiaobing.li@samsung.com Subject: Re: Re: [PATCH v6] io_uring: Statistics of the true utilization of sq threads. Date: Thu, 18 Jan 2024 10:25:34 +0800 Message-Id: <20240118022534.13552-1-xiaobing.li@samsung.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <0a626e1a-939a-44e5-bb82-0275c19f7143@kernel.dk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrEJsWRmVeSWpSXmKPExsWy7bCmlq5w34pUg1U32S3mrNrGaLH6bj+b xbvWcywWR/+/ZbP41X2X0WLrl6+sFpd3zWGzeLaX0+LL4e/sFmcnfGC1mLplB5NFR8tlRgce j52z7rJ7XD5b6tG3ZRWjx+dNcgEsUdk2GamJKalFCql5yfkpmXnptkrewfHO8aZmBoa6hpYW 5koKeYm5qbZKLj4Bum6ZOUCHKSmUJeaUAoUCEouLlfTtbIryS0tSFTLyi0tslVILUnIKTAr0 ihNzi0vz0vXyUkusDA0MjEyBChOyM449cijYyVTRusS+gfEHYxcjJ4eEgIlE8/SX7F2MXBxC ArsZJbo23meBcD4xSnSs/MAM4XxjlJi8dQorTMuS6w+gWvYySqz4fAPKeckoMe/mJLAqNgFt ievrusBsEQFhif0drWBzmQX+MkpMePmbGSQhLBAp0fntPBOIzSKgKtEzZzvYVbwCNhKX//Wx QayTl9h/8CxYPaeArcSJhW9YIGoEJU7OfAJmMwPVNG+dzQxR/5NdYuZOGQjbRaL77l6ouLDE q+Nb2CFsKYmX/W1QdrHEkZ7vrCDHSQg0MEpMv30VKmEt8e/KHqAFHEALNCXW79KHCMtKTD21 jgliL59E7+8nTBBxXokd82BsVYnVlx6yQNjSEq8bfkPFPSQmv1kEDeAJjBI/p59jmsCoMAvJ P7OQ/DMLYfUCRuZVjJKpBcW56anJpgWGeanl8FhOzs/dxAhOrFouOxhvzP+nd4iRiYPxEKME B7OSCK+/wbJUId6UxMqq1KL8+KLS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TrQatXgYbs7kNl7z4Grfk4YHd+SpPzfq8DM8KnLxgGPzJQ0lntU63aoH2zJ3qnQ88Vu4J 2hioI7/9Y6gZaxfLWg0mrc3l3Bue2H1zUg47/8yJy2zxSv/6g0IefhEW/kLsNxaVu2Tl53m+ /lDAKhI4b9837Wy9LaX/GuOMVttcuH7x7d5MeU1pkYOzb7qe+cbq9HqZqRVDZOjeSbzmeQ/N sk4/vC8sKTBJ8qfdT1uPx9+2icaYGJU8eDAj7vTSVY+cee6Z9h/rOB5yMqZZQe2XzcEqX5m7 jsuXyL87YGKr/c751DGj73J2mhcFF0hsZ87Ou9sYw7omnL0x+Vyl8IWn0tqvPP+tU2Ipzkg0 1GIuKk4EANNBE+npAgAA X-CMS-MailID: 20240118023341epcas5p37b8c206d763fd56f8a9cfb3193744124 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240118023341epcas5p37b8c206d763fd56f8a9cfb3193744124 References: <0a626e1a-939a-44e5-bb82-0275c19f7143@kernel.dk> On 1/17/24 23:04, Jens Axboe wrote: >Possibly, can you send an actual patch? Would be easier to review that >way. Bonus points for crafting test cases that can help vet that it >calculates the right thing (eg test case that does 50% idle, 25% idle, >75% idle, that kind of thing). ok, I'll send out a v7.