Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp2307775rwo; Sun, 23 Jul 2023 12:08:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlFsat3UO/xb2xJFP+3+sTWe6auas3sqejo2RpSVMBP9NHgFKgNxzHdpyOvCZR5I9C/AESa3 X-Received: by 2002:a17:906:74cc:b0:98d:e7e3:5ab7 with SMTP id z12-20020a17090674cc00b0098de7e35ab7mr8106468ejl.11.1690139320510; Sun, 23 Jul 2023 12:08:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690139320; cv=none; d=google.com; s=arc-20160816; b=uSBsXIRUqKFTm0tgxCChABSqXS6ik3/JKz9oMFtrULg2VhqaR8eDVcqLuxzZX6tu6W FBjhZb3TlKAMnABLRoo9sNnTK8afQd5ekac3m4OO1AERP1a1uOocvXOEaItcxZ/I8HKH pgznwPnngaM1Bb3PdheEt/NENspylxkQ6jdjllz15VM9EU8eKsa1UeVFhXvUI1LO8MFY q1r6EPbNInXuGJtH1ceqredl31Hsx8frgVm1aRde+y59yHlcrBlbeUL+zuMf37Chb+I3 bt6VnWURNSKi/scLT5S6XbTOu3jXSire16wwQvvwOV5OZQJpVr/lShA39aweFsW/mvIq qErw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=3/Q/y5BV8s5ndvdwgTPFAV48mdLYdi966EHVL5SMeGI=; fh=HLNMEZ9JAIfoU3AnJzUc8s8PKAlBF+ntd1r/hXsxNb8=; b=t7RoWX77CaKcq942dYzhY6eUy2pyKJJbcfPJsIAR+E42iWG0JDlSp3OpFLlDjvjfOm 7pIzW3I3E6mUHV5/D0sFkoBEJrN7dFogRVFKkhHBKFuZ0z7PskjsY6YNoKLGG3jEsB93 COzSDdcBHUifzV7btXckId+Hr7nXikPpG9Acap55haWXeEU6tT2LkOBNDyMhrFyuiPl2 FyxFcuYdt7ObUGebbHZONo6uz9vkHd53J1/kMMtCmj8WWCYPHVvmlk4buzvU32G0NObo vj518XkGLcuuHIrojtc4ivR1K+gU/QCwthVd/SCUFDJIXz5/qGwXIpwO9ZnXwjOChEiM WiBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b="Pv734e6/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s21-20020aa7d795000000b0051e4bd3e707si5625980edq.486.2023.07.23.12.08.08; Sun, 23 Jul 2023 12:08:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b="Pv734e6/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229685AbjGWSGj (ORCPT + 99 others); Sun, 23 Jul 2023 14:06:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229597AbjGWSGi (ORCPT ); Sun, 23 Jul 2023 14:06:38 -0400 Received: from vulcan.natalenko.name (vulcan.natalenko.name [104.207.131.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E39BE4E; Sun, 23 Jul 2023 11:06:35 -0700 (PDT) Received: from spock.localnet (unknown [94.142.239.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vulcan.natalenko.name (Postfix) with ESMTPSA id B39F1146A156; Sun, 23 Jul 2023 20:06:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=natalenko.name; s=dkim-20170712; t=1690135591; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3/Q/y5BV8s5ndvdwgTPFAV48mdLYdi966EHVL5SMeGI=; b=Pv734e6/iyPncmGFhKp0bb4K4GsE9nFzNmu1Zua8pWm+5U43vGsYmnUwLaFUNIyWk0NUdS gwtAItr210eX8w/x2q504TDgN4bL9WhaHpwpU/DJMWM0tCDwU0kHiy1QRD1RfNZE+iIelB wV0dJ5KKNd1u0F5ktzk+YPQJE+xEFaI= From: Oleksandr Natalenko To: Jens Axboe , stable@vger.kernel.org, Genes Lists Cc: Greg Kroah-Hartman , Pavel Begunkov , io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, Andres Freund Subject: Re: [PATCH 6.4 800/800] io_uring: Use io_schedule* in cqring wait Date: Sun, 23 Jul 2023 20:06:19 +0200 Message-ID: <2691683.mvXUDI8C0e@natalenko.name> In-Reply-To: <70e5349a-87af-a2ea-f871-95270f57c6e3@sapience.com> References: <20230716194949.099592437@linuxfoundation.org> <538065ee-4130-6a00-dcc8-f69fbc7d7ba0@kernel.dk> <70e5349a-87af-a2ea-f871-95270f57c6e3@sapience.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart12252023.O9o76ZdvQC"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart12252023.O9o76ZdvQC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Oleksandr Natalenko Date: Sun, 23 Jul 2023 20:06:19 +0200 Message-ID: <2691683.mvXUDI8C0e@natalenko.name> In-Reply-To: <70e5349a-87af-a2ea-f871-95270f57c6e3@sapience.com> MIME-Version: 1.0 Hello. On ned=C4=9Ble 23. =C4=8Dervence 2023 19:43:50 CEST Genes Lists wrote: > On 7/23/23 11:31, Jens Axboe wrote: > ... > > Just read the first one, but this is very much expected. It's now just > > correctly reflecting that one thread is waiting on IO. IO wait being > > 100% doesn't mean that one core is running 100% of the time, it just > > means it's WAITING on IO 100% of the time. > >=20 >=20 > Seems reasonable thank you. >=20 > Question - do you expect the iowait to stay high for a freshly created=20 > mariadb doing nothing (as far as I can tell anyway) until process=20 > exited? Or Would you think it would drop in this case prior to the=20 > process exiting. >=20 > For example I tried the following - is the output what you expect? >=20 > Create a fresh mariab with no databases - monitor the core showing the=20 > iowaits with: >=20 > mpstat -P ALL 2 100 >=20 > # rm -f /var/lib/mysql/* > # mariadb-install-db --user=3Dmysql --basedir=3D/usr --datadir=3D/var/lib= /mysql >=20 > # systemctl start mariadb (iowaits -> 100%)=20 > =20 >=20 > # iotop -bo |grep maria (shows no output, iowait stays 100%) >=20 > (this persists until mariadb process exits) > =20 >=20 > # systemctl stop mariadb (iowait drops to 0%)=20 This is a visible userspace behaviour change with no changes in the userspa= ce itself, so we cannot just ignore it. If for some reason this is how it s= hould be now, how do we explain it to MariaDB devs to get this fixed? Thanks. =2D-=20 Oleksandr Natalenko (post-factum) --nextPart12252023.O9o76ZdvQC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEZUOOw5ESFLHZZtOKil/iNcg8M0sFAmS9bBsACgkQil/iNcg8 M0um0g//ajPoGUR8cLcGZ2a+l4uWXZyDdD8YMAzNwnb02ovSl7doi1V1z5BA9Kx6 Q64wfedIE5FNPHfVRoORIx29zbOWFOw7qXu4AGi5IR01teIvTfZhYtXoEahhUL8S hu+SCSqCR5mO6o99Nx+Zhen4dc41oOUKVEfPRv9w4CpZNN1ou+w7mMkaXM3S3pme cTSoBDW6ftKyVIpV0z3vDQXw1+dqPVTZJ9KAYgqeIsxrTYHY3kEdgjy2wcxKXo6u KHNyxc8jLfm2QQDBeX7iHTB3PH9H8+Ajes059DvBjqvG3Oe7tcxIKsRF6Q8mt/9F gKAs3vpJ7r/ORB0aFcTTOjteuN51nl6dsGpOay3ltT86+BmqJQaHuUc7whILXKIa qxzCZj7C+PaXQ7Q3agUAYWS6XNz4BYeqOkMFPpHYcESUpnVbJnNfs+1CuGWhelpy OuGQ/RafxbThkmoSUdX8mFM+WMYdVyQDSDZhqqrhENMgd2VxY17FkbWipMwQw4oT /yzQWGm4n+9YzWm8/bBLTo5A254ZuizIDIYsitSYPp1kd+wf+9NZkQ2+m3Z1b/mQ nvp04Xs0XCgu8LxVe3Gfr+ri4axrIC1xkYrxdiPH/hroKdFpLuuh/yg4BG52OrSW u/oFkF9FvwbMwcixWJy8mrGVcwyQzn1XtDOBxyNaKhgdJfoMVgc= =bqKi -----END PGP SIGNATURE----- --nextPart12252023.O9o76ZdvQC--