Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1474653pxj; Fri, 18 Jun 2021 07:57:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBJtM7iWfQ+ZfVxoIcbr4n4y67XW27wp9r+yrRpCYbjkSWyto2uCxz73tevvl3yyXdgwgZ X-Received: by 2002:a5e:8510:: with SMTP id i16mr8346954ioj.40.1624028259765; Fri, 18 Jun 2021 07:57:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624028259; cv=none; d=google.com; s=arc-20160816; b=K/6dETinkq+hCrFSav7R744WQgxvNKRx7Tusm4udQRITRFm4h9IbmLxpRA0mekCKCX RKBuEiMdOqSKDtexZMExhakee3YtEJfJKVojiZUXgSIxi9zUyl4lynBQ80lD3NQ8+u7f VOfbw2OaPwUdAqNu/YiwwtuVPhY9hmNwRPrM1Yx4vAb9JlcnVfE4z+7bi8ON9wLlM4Yq tBBjKLt8u4s53YHdQoXDFw8zEJLINK8JUbslq1v9ckk90ngsVUCnAeMp1aHrjy91uF34 rt+HmgvPz7DBJnLlx1PhHu4Pjy+6I02a5LzVw4pQf2snlpTw/lwDFfUeFbjZHluFlCH8 fwbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=JLF02LgQK8wiSw1wo+3dCwHHQeIAoXtWaSMsg8jus4M=; b=04YVH/ryzAk6TNhV1HFpNKK9o99ZQlbRbas5xtKmZ5XY39NGdje/ORk+WJzT+caqYn RhI6BMpMTuYkwDnTWlPjGJfEWqF/vuw6G3PugthPZ7bX8P4fuVVDHjKhLIbb4ix7Ypu6 FF1onUXGZ1xOXNWFjqSYVUNXQjuPaM1UBle6hOXW4n+e9ZxTMNY8nbBh07ozFr1uk3BO ZnNetE4d25P2i8xLCAvLcSKiqgNIHDgawC6EN+8WpPY/NVCa1mIYB2fYsMIIGE/9JJFS I6fNKQzVbfBE9nTM0EK8CielovIZEAuEuRc+eeta9EEVMKVZE8aEmYWOXPKToquRh2hQ aEKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=0T8U2hE3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n16si7086641iob.72.2021.06.18.07.57.27; Fri, 18 Jun 2021 07:57:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=0T8U2hE3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234796AbhFRO6L (ORCPT + 99 others); Fri, 18 Jun 2021 10:58:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234793AbhFRO6J (ORCPT ); Fri, 18 Jun 2021 10:58:09 -0400 Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84F60C061574 for ; Fri, 18 Jun 2021 07:56:00 -0700 (PDT) Received: by mail-oi1-x22f.google.com with SMTP id l12so10812179oig.2 for ; Fri, 18 Jun 2021 07:56:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=JLF02LgQK8wiSw1wo+3dCwHHQeIAoXtWaSMsg8jus4M=; b=0T8U2hE3laago06p8eqY1PBTXXpPU90AWIP9uTyNLgxlce08gZ6OUYfVhSC+7ai75H JxULDmu6wT5mkkzetizEnwxbtWE2O/5cQXskjcqPXW7HyfeggFPn0UXaNtJUnKXtoT+E OrwWX3ydHEvY5A1H+pYLC4bvyNFq3cL8+fTxdJ4DH2oI0aQenMAM0XD6BrtOmwP6zrPB aNw5NnGhMrUqOyBJxcpONK1R0p6+11Hb9Ov+BDZuNVur4Wvx5bQMEc5vjLLLJ+C022D0 YXXjEl2uaus0jBs8THda/7+hpjz5fNfVoQQ1n/juhVyjn55FLtYyNn2OdclYppLVaVGw eTcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=JLF02LgQK8wiSw1wo+3dCwHHQeIAoXtWaSMsg8jus4M=; b=rTzkw7PWeq7N35bfVQZqMO/jHOFBvisWRiHG5ZYjVlxSwOtGE8hzawQpNHj3AJA2R/ ZAxMsLhC5TXG9RspxrG5ESpmjOtMVE0nFegtBp9dPYV+9Oafw60OizLLJMb839O68t7L Iar14Cp4o3YmUK3bAcws3HFYUHNCDEn0Svz++McBi+UksGk+vC9HsCR/jJZs4qfKrRT+ 9/CkpArjtTK7x3YUkfgvshHIGkIr1VBQivCM/EhOHyNrC6G88EzsM1Smyr6+QkKtM2bS z/ORQroem8fLDp5ISObdh3Q2bdqQLVrZ+qcdnaqSwH90aiZkZA1sT8yYIG61Gm8DWx+S u5cg== X-Gm-Message-State: AOAM530+qf7cCkUYU23FCQvxSz7+vRIsGaLTRRZB/8PQKj3vClQlrb7/ mrxRE4K7Lhytoo7tAtG3l4RJ9g== X-Received: by 2002:aca:a983:: with SMTP id s125mr15370432oie.13.1624028159838; Fri, 18 Jun 2021 07:55:59 -0700 (PDT) Received: from [192.168.1.134] ([198.8.77.61]) by smtp.gmail.com with ESMTPSA id w2sm429092oon.18.2021.06.18.07.55.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Jun 2021 07:55:59 -0700 (PDT) Subject: Re: [Bug] fio hang when running multiple job io_uring/hipri over nvme To: Ming Lei Cc: linux-kernel@vger.kernel.org, io-uring@vger.kernel.org References: <6691cf72-3a26-a1bb-228d-ddec8391620f@kernel.dk> <1b56a4f7-ce56-ee32-67d5-0fcd5dc6c0cb@kernel.dk> From: Jens Axboe Message-ID: <9596bf6f-cf34-c074-136e-5496d1a7b2fc@kernel.dk> Date: Fri, 18 Jun 2021 08:56:01 -0600 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-kernel@vger.kernel.org On 6/17/21 4:39 PM, Ming Lei wrote: > On Thu, Jun 17, 2021 at 10:56:53AM -0600, Jens Axboe wrote: >> On 6/17/21 10:48 AM, Jens Axboe wrote: >>> On 6/17/21 5:17 AM, Ming Lei wrote: >>>> Hello, >>>> >>>> fio hangs when running the test[1], and doesn't observe this issue >>>> when running a >>>> such single job test. >>>> >>>> v5.12 is good, both v5.13-rc3 and the latest v5.13-rc6 are bad. >>>> >>>> >>>> [1] fio test script and log >>>> + fio --bs=4k --ioengine=io_uring --fixedbufs --registerfiles --hipri >>>> --iodepth=64 --iodepth_batch_submit=16 >>>> --iodepth_batch_complete_min=16 --filename=/dev/nvme0n1 --direct=1 >>>> --runtime=20 --numjobs=4 --rw=randread >>>> --name=test --group_reporting >>>> >>>> test: (g=0): rw=randread, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) >>>> 4096B-4096B, ioengine=io_uring, iodepth=64 >>>> ... >>>> fio-3.25 >>>> Starting 4 processes >>>> fio: filehash.c:64: __lookup_file_hash: Assertion `f->fd != -1' failed. >>>> fio: pid=1122, got signal=6 >>>> ^Cbs: 3 (f=0): [f(1),r(1),K(1),r(1)][63.6%][eta 00m:20s] >>> >>> Funky, would it be possible to bisect this? I'll see if I can reproduce. >> >> Actually, this looks like a fio bug, that assert is a bit too trigger >> happy. Current -git should work, please test and see if things work. >> I believe it's just kernel timing that causes this, not a kernel issue. > > Yeah, current -git does work, thanks the fix! Thanks for checking! -- Jens Axboe