Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2791386imj; Mon, 11 Feb 2019 08:31:56 -0800 (PST) X-Google-Smtp-Source: AHgI3IbSbF+u8XUZD6VUroTp8UeCa9PxOOUo1DJ3xhLyGJS7+d0ZHDd/1Xt9FNJI4gZzA/E7IpFe X-Received: by 2002:a62:2fc3:: with SMTP id v186mr37507127pfv.82.1549902716137; Mon, 11 Feb 2019 08:31:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549902716; cv=none; d=google.com; s=arc-20160816; b=HxOKYgpf2uSZc7cUR2IIRY3eUTO5tiykoDHP9cb6OyYYCJ3T3x1CusuzcRuJ9RNREB qlL2A2iR2OmL5wT/fiainrPBLxb6ocezyNsgrsOBRxO9rfyKFQL6yfO1OQJp/KhpaC+7 WFhW1AuxD9+RsX6W31FRySZW3cWstwikxIZWtc9JZu61HimuhMzHeNxEiwwQQTz3OfeB /49VdGB+eknUl221rcEZ0ujopz5wj+XusdUJYoN6NiWppEuGNVG9JjjmJcJxkS4hp5Px JjWFw66WNyGOVeBWt5gtoi2OYVpYotRUX1ZCyvUNoR384Zg+pXtmnyCE3EZKzqn5qINu kqfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=NB6mV9B8vcQ152ozOfFKlg62KKBFeup4CBAijLKW/ok=; b=HM4k5IsgWfxhHQwN69UQU1c1SDxWH9qleKwwobps7EpPKR0s9HDNoQvZwQg68/dhEN 5we+GNaJdmvjc3sgGVL9DUBomfu1ALhJRzMaSni4b9hR3F5nTbrs9i7kNnHzHI/2IUn3 D6s9/NsNfDZqbRaodnZstejaMnvQp0wN/TsDA8+Eu2JvW0A2K9alRGvIvS3e+9cS/bAa Q1u0Q8woYysoUj33NT60AWSfGnOpYFD1vrmrwMST16bQVqbihnCrrv5LLBbXg9EMKIAd 2zymh4+T1bFJS4oQ34h6r3pN+uODZvhNKUpulPDxxY+NEEpYHzeT+31IuQiMHOgB4BWR oTqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=o9ktg4Gs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w13si10739ply.264.2019.02.11.08.31.37; Mon, 11 Feb 2019 08:31:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=o9ktg4Gs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728417AbfBKQbM (ORCPT + 99 others); Mon, 11 Feb 2019 11:31:12 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:39141 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726244AbfBKQbL (ORCPT ); Mon, 11 Feb 2019 11:31:11 -0500 Received: by mail-it1-f194.google.com with SMTP id a6so27672958itl.4 for ; Mon, 11 Feb 2019 08:31:11 -0800 (PST) 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=NB6mV9B8vcQ152ozOfFKlg62KKBFeup4CBAijLKW/ok=; b=o9ktg4Gs1pR2ot43fRr2uBAEWLSaH4mM7rwVLUvhTgPBdDb1CHqP9VJ3P9KjCWBNgQ 0GYpdrwdSWoMMpooa1FTJbJz0RtlldwhXVwHCGGLIYxc3dmJSIvfMf7T7ol3d3ipwLl9 J8hNW1dsE6yE3fIF8/kDVwYZl1h+PAIzkvYpH0NXz482bSM5X6C0ymDPBfLgDeE4zNSb 1MW/EP5ggq+3baJo0YesVXofqgIVOwJvkiVX2vvKHGpcmXmRHawRY39zcquvz29cpX5U gToU55rh+jDx4r2aZyIDHASI04rooWIt6ncbifS+BbHh2KUq9R90B1Fj8l7OEyjMtEvf ckYQ== 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=NB6mV9B8vcQ152ozOfFKlg62KKBFeup4CBAijLKW/ok=; b=ca50y03I4WzBuQlhB3sUT8BAjlKb6wPLDZGf6a5wZ/GNXpoYPQFV1bLlZZSRNgRPAn 30rROgvLzTH0EYHQ/mqCafg04alq43rnk1OlVHutOz+v2znF00h/AIVVUHMtt+D4Q8U5 CuE5AWXvaZNVXsua7eNgEW820qOA4aiGdZ4kP7KGWhtbUP7u67X4Bp92YiWWannoNHEq tMzFcBrS89vVjTa9xDBSmZBQeduLB7NF/wIe8ePLr6iVtDKKksXuZmhvCZ9/UkjW80Qa 8nI7SFVBA1kvRrYh9mc1VJdALvSlhC4ltSWDGx/i/a1GnObmV/IbLA2Jn/cGZyKaeOi/ vs0g== X-Gm-Message-State: AHQUAub9b1ujxqP8NlxaKx0pHC/STuBGQVYW+Sj8b/DiYZSjDbeSEH27 HBh2LEpfIp+FqLiD669k3u2xntP03GKnvw== X-Received: by 2002:a5e:8517:: with SMTP id i23mr19001527ioj.28.1549902670078; Mon, 11 Feb 2019 08:31:10 -0800 (PST) Received: from [192.168.1.158] ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id 196sm5507266itu.33.2019.02.11.08.31.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Feb 2019 08:31:08 -0800 (PST) Subject: Re: [5.0-rc5 regression] "scsi: kill off the legacy IO path" causes 5 minute delay during boot on Sun Blade 2500 To: James Bottomley , Mikael Pettersson Cc: Linux SPARC Kernel Mailing List , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org References: <1549736341.2971.7.camel@HansenPartnership.com> <1549813472.4142.3.camel@HansenPartnership.com> <3380ed8e-ae02-96f2-142b-7cce09459df8@kernel.dk> <1549815924.4142.8.camel@HansenPartnership.com> <0e6e5d67-d305-dd00-2e42-e2299166c8b2@kernel.dk> <1549898730.2831.6.camel@HansenPartnership.com> <44bb4374-0b7c-733b-a53e-92d2f03f2f49@kernel.dk> <1549899773.2831.12.camel@HansenPartnership.com> <1a00da0e-cb8e-30ea-8d17-120f97242b2f@kernel.dk> <1549902521.2831.23.camel@HansenPartnership.com> From: Jens Axboe Message-ID: Date: Mon, 11 Feb 2019 09:31:07 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <1549902521.2831.23.camel@HansenPartnership.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/11/19 9:28 AM, James Bottomley wrote: > On Mon, 2019-02-11 at 08:46 -0700, Jens Axboe wrote: >> On 2/11/19 8:42 AM, James Bottomley wrote: >>> On Mon, 2019-02-11 at 08:28 -0700, Jens Axboe wrote: >>>> On 2/11/19 8:25 AM, James Bottomley wrote: >>>>> On Sun, 2019-02-10 at 09:35 -0700, Jens Axboe wrote: >>>>>> On 2/10/19 9:25 AM, James Bottomley wrote: > [...] >>>>>>> That check wasn't changed by the code removal. >>>>>> >>>>>> As I said above, for sd. This isn't true for non-disks. >>>>> >>>>> Yes, but the behaviour above doesn't change across a switch to >>>>> MQ, so I don't quite understand how it bisects back to that >>>>> change. If we're not gathering entropy for the device now, we >>>>> wouldn't have been before the switch, so the entropy >>>>> characteristics shouldn't have changed. >>>> >>>> But it does, as I also wrote in that first email. The legacy >>>> queue flags had QUEUE_FLAG_ADD_RANDOM set by default, the MQ ones >>>> do not. Hence any non-sd device would previously ALWAYS have >>>> ADD_RANDOM set, now none of them do. Also see the patch I sent. >>> >>> So your theory is that the disk in question never gets to the >>> rotational check? because the check will clear the flag if it's >>> non-rotational and set it if it's not, so the default state of the >>> flag shouldn't matter. >> >> No, my point is about non-disks, devices that aren't driven by sd. >> The behavior for sd hasn't changed, as it sets/clears it >> unconditionally. > > I agree, but I don't think any of them were significant entropy > contributors before: things like nvme have always been outside of this > and sr and st don't really contribute much to the seek load during boot > because they're probed but not used by the boot sequence, so I can't > see how they would cause this behaviour. I suppose it could be target > probing, but even that seems unlikely because it should be dwarfed by > the number of root disk reads during boot. > > For the rng to take an additional 5 minutes to initialize, we must have > lost a significant entropy source somewhere. I agree it's not a significant amount of entropy, but even just one bit could mean a long stall if that put us over the edge of just not having enough for whatever is blocking on /dev/random. Mikael's boot did have a CDROM, it's not impossible that the handful of commands we end up doing to that device would have contributed enough entropy to get the boot done without stalling for minutes. One way to know for sure, and that's if Mikael tests the patch. -- Jens Axboe