Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5720290ybe; Tue, 17 Sep 2019 12:20:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJKWjWneO8gaTLtO+vMhD9TbPu5ka6xO+KRXIG4tgB+mR64pBrA3DRfEnn0KvL2IBaoWa0 X-Received: by 2002:a17:906:1903:: with SMTP id a3mr6206971eje.112.1568748046984; Tue, 17 Sep 2019 12:20:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568748046; cv=none; d=google.com; s=arc-20160816; b=PbhKUZVobfk5m27afZ2v4Hm6hzW1HmL7bTBkwP5fl48rRARv/eU7Odl+UYlawt/qMp In84OAV7Vs7tsMUYzXz2AXg0FQNdDHFBVjVF7jPfZAJw1to5SVPGabXZiRaWyNF+TN3o ACDDNb9DdzXQlTVCB2pxNMZ3lEke9LKFV2umrl6/DW+fP84dp+Q/U+KHgvkUAG4xJ02J IgBOvRwNUDaghsh7ZZqyVsqDJoJGlgHF6P1qw3RYmwV5S2Vzhoomhr1vdmWi1wSzxmPp aYgqAO8hPYxQkAgEnWk2KTbRIguUU59Mfijq1PgElSAGiL+zMGKGsnD0eVGgwZxnA5ZG 2vQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ixwPd23WwPTMtM43BHaOa1AgyeNyZ+0WH8yCyLKg6y0=; b=tXhFYrJaQ5NHQPR/hgOjkyegY3nqvSLqoGMH2xm+btzdgSEUcI0NT2Y60SQRkStaQk SfMqR1m6TiXU8LHCs6VlXWb94ZpfY3qRpYGR501UhdLM3MbHddoJ4lWfPuLZ8GXuXmX0 LaMimjFs0ySd04FwpRx+MvEr4cEcwzjHWJlekqld+uvcyv9HWukAiBc/OSbhylnudQoJ modqpedBHdK9xcjks5cOehUEkDoo/D2Jq2zMJ0VyuHknDAb+hO5OVEB/5yn/j564671D mc5wLbexRxKqVVt7apvlkhenazrngjR+s+FVPlL40I+LyS+VONYB++Hnx692GZQofkpy wcRw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-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 gg17si1038219ejb.294.2019.09.17.12.20.21; Tue, 17 Sep 2019 12:20:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726194AbfIQRct (ORCPT + 99 others); Tue, 17 Sep 2019 13:32:49 -0400 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:47204 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbfIQRct (ORCPT ); Tue, 17 Sep 2019 13:32:49 -0400 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id x8HHWPHL028048; Tue, 17 Sep 2019 19:32:25 +0200 Date: Tue, 17 Sep 2019 19:32:25 +0200 From: Willy Tarreau To: Lennart Poettering Cc: "Alexander E. Patrakov" , Linus Torvalds , Matthew Garrett , "Ahmed S. Darwish" , "Theodore Y. Ts'o" , Vito Caputo , Andreas Dilger , Jan Kara , Ray Strode , William Jon McCann , zhangjs , linux-ext4@vger.kernel.org, lkml Subject: Re: Linux 5.3-rc8 Message-ID: <20190917173225.GE27999@1wt.eu> References: <20190917052438.GA26923@1wt.eu> <2508489.jOnZlRuxVn@merkaba> <6ae36cda-5045-6873-9727-1d36bf45b84e@gmail.com> <20190917173036.GC31798@gardel-login> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190917173036.GC31798@gardel-login> User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Sep 17, 2019 at 07:30:36PM +0200, Lennart Poettering wrote: > On Di, 17.09.19 21:58, Alexander E. Patrakov (patrakov@gmail.com) wrote: > > > I am worried that the getrandom delays will be serialized, because processes > > sometimes run one after another. If there are enough chained/dependent > > processes that ask for randomness before it is ready, the end result is > > still a too-big delay, essentially a failed boot. > > > > In other words: your approach of adding delays only makes sense for heavily > > parallelized boot, which may not be the case, especially for embedded > > systems that don't like systemd. > > As mentioned elsewhere: once the pool is initialized it's > initialized. This means any pending getrandom() on the whole system > will unblock at the same time, and from the on all getrandom()s will > be non-blocking. He means that all process will experience this delay until there's enough entropy. Willy