From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1CE0C433EF for ; Wed, 10 Nov 2021 18:01:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D6DAD6117A for ; Wed, 10 Nov 2021 18:01:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230429AbhKJSEf (ORCPT ); Wed, 10 Nov 2021 13:04:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230388AbhKJSEf (ORCPT ); Wed, 10 Nov 2021 13:04:35 -0500 Received: from mail-il1-x134.google.com (mail-il1-x134.google.com [IPv6:2607:f8b0:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64531C061764 for ; Wed, 10 Nov 2021 10:01:47 -0800 (PST) Received: by mail-il1-x134.google.com with SMTP id x9so3387585ilu.6 for ; Wed, 10 Nov 2021 10:01:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=oEzJJiHFWM5Q25Ic6vhipp19khMatwmxv64pMEfUho0=; b=c0N0SVnGHRvWrPGle2jKaNhWFsmOyLn4pK3vnGVrQdvq5vnvGtTjLfR/qVzJFc9OQy CI4IJoVukwG/IPW6NhBDpyWT83unxHJa39FOMWGvIJt5D9isMdFuHTlCIX+fOSyuf1Vy 6q7NuNjOUUDG638v6MVNTnFTywBe4NhVo8tve7V0U1o0tH7BicBxSHaIiAciDEWBVvXL 3P/XasMT2VgZredzPA3Vi7euEsysqZdiwpRdPIdpiTjBJmybeabf+NIi9xlliv/h2FQd YEDVnQdaVcOWtVw57O5J2k/LCBR7wNYFEP+Y6MkHLo4sfzaX8u+PJ60rZikhmdJO7XED lU4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=oEzJJiHFWM5Q25Ic6vhipp19khMatwmxv64pMEfUho0=; b=q7Hdhj0WSUQgk5RWRPcGRD8PzBJBbdLUN4sSAj/5FKlAZ5RNiONHy1nv2yz/vMvQVo 6S3Cc9uOh5fz+wsvHHdDl3wA0/nT1ACJ2ADlBZYpHJekRaPk9ckJMQlxBvvxGHdr+00O i/AoTrulowk73u89XO59LgrFFUr7PUD+vEaUtGUU3qXK+MhZ4amNGCXrPc4uIQcJXf+q 2LYZ9oAXjVma/0w0sX58X1/Mg5zk39vrSxCkc+NdhBfKwKT4sO1ayesUmN5UgSSuRMg0 dBtCvtcOetL5bE/nt5rzJDlfMebhaAQEIGQQVPAstz8riQkLQtvtNUE2SyTHZkC9VK5T OBaQ== X-Gm-Message-State: AOAM532cD3eapYZIXHq4wWnS699MrYMbUCDbxbmmlBC/RxJ8w2Q9kItY l/RG1bW+l3wuQ/j/5vHGQhmLLA== X-Google-Smtp-Source: ABdhPJz2ZPZNmbDINSAwJySv0j0YfRDlhzeFQEdLuM9Frg99ehdXFzudNbjbGee8Btu586SeP79mtA== X-Received: by 2002:a92:c8c6:: with SMTP id c6mr609640ilq.54.1636567306646; Wed, 10 Nov 2021 10:01:46 -0800 (PST) Received: from [192.168.1.30] ([207.135.234.126]) by smtp.gmail.com with ESMTPSA id f15sm366491ila.68.2021.11.10.10.01.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Nov 2021 10:01:46 -0800 (PST) Subject: Re: uring regression - lost write request From: Jens Axboe To: Daniel Black , Salvatore Bonaccorso Cc: Pavel Begunkov , linux-block@vger.kernel.org, io-uring@vger.kernel.org References: <77f9feaa-2d65-c0f5-8e55-5f8210d6a4c6@gmail.com> <8cd3d258-91b8-c9b2-106c-01b577cc44d4@gmail.com> <23555381-2bea-f63a-1715-a80edd3ee27f@gmail.com> Message-ID: Date: Wed, 10 Nov 2021 11:01:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On 11/9/21 4:24 PM, Jens Axboe wrote: > On 11/9/21 3:58 PM, Daniel Black wrote: >>> On Sat, Oct 30, 2021 at 6:30 PM Salvatore Bonaccorso wrote: >>>> Were you able to pinpoint the issue? >> >> While I have been unable to reproduce this on a single cpu, Marko can >> repeat a stall on a dual Broadwell chipset on kernels: >> >> * 5.15.1 - https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.15.1 >> * 5.14.16 - https://packages.debian.org/sid/linux-image-5.14.0-4-amd64 >> >> Detailed observations: >> https://jira.mariadb.org/browse/MDEV-26674 >> >> The previous script has been adapted to use MariaDB-10.6 package and >> sysbench to demonstrate a workload, I've changed Marko's script to >> work with the distro packages and use innodb_use_native_aio=1. >> >> MariaDB packages: >> >> https://mariadb.org/download/?t=repo-config >> (needs a distro that has liburing userspace libraries as standard support) >> >> Script: >> >> https://jira.mariadb.org/secure/attachment/60358/Mariabench-MDEV-26674-io_uring-1 >> >> The state is achieved either when the sysbench prepare stalls, or the >> tps printed at 5 second intervals falls to 0. > > Thanks, this is most useful! I'll take a look at this. Would it be possible to turn this into a full reproducer script? Something that someone that knows nothing about mysqld/mariadb can just run and have it reproduce. If I install the 10.6 packages from above, then it doesn't seem to use io_uring or be linked against liburing. The script also seems to assume that various things are setup appropriately, like SRCTREE, MDIR, etc. -- Jens Axboe