Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3879605pxb; Tue, 10 Nov 2020 02:24:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmYi5xVuwqdtG+Xdxzn+V13IIp/kbUnAqm4kUjlf9qZK7ieI/2mwJzhuN3R2HAcCcklSQG X-Received: by 2002:a50:9993:: with SMTP id m19mr19448865edb.99.1605003845309; Tue, 10 Nov 2020 02:24:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605003845; cv=none; d=google.com; s=arc-20160816; b=EAHaz3MRdnzLakfTVd6RoYPcAHNPJG2Yso092p5Qkn5gn2WFHTxY4l77FPmrJZ2GfM avNquXzZh4UMGqM5d0NGxaGU0/5fsC+fQrnZuUFnkMKGlMqO/zuCVNylczmJ6N+GZyvl xj1cqqyv+BnfyM5XV1oE2acvjmYW2LwUnP0FhpbgZRS3F+KjSSQHSwoj6tL4frALDjZM YsgjSszEtvghVL0oEvxgj+AmZkQNmzq9047aft20dponZbEK/KWcbkkcO+AwWG3OhIm2 2OtdEZ+eQe2UKXBpSG0Qd8cnBEcirQ48vOKLkEWKFUNeLvk9cKjZtHdyTBVXPh2oKy6r 4Rww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zByrFVmJDlSOfKWmXEqO4kvjtQhPeNiZ8Q12Fayu59Q=; b=TiccRyIY+ZVTxkKcQXmZS6IFC03yoey17EwSn/plz4EJmYI2azv0pPdM8i8nw+yVnf 89DYvF4NLnBhbxM/CK+5KUWD0A0HXaAb8laJ5xHCpPU4GvId6rsCmZSAB+R/I7K5H8xI j5Wyu53SU4fq3cXrL5qkKmcsuVKw83IHaU1Wx7W3HLWDssJYy3L0ZS6A1oblucZWHO+7 O9XPuEg7DEalyt35NFy8PAe4RF1CRuypmsYKbbEY9Xy0d4cZw1p2vTL02bQkGHGQmUnB wMBIkH2E8Bu7ltpAxmSoaRttEgngzsgYMlPhJ4EzaZxRpfiMi+NTT7XYGGbQNmIqZ6wu crXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chronox.de header.s=strato-dkim-0002 header.b=rL6VescS; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 22si8263844ejv.120.2020.11.10.02.23.34; Tue, 10 Nov 2020 02:24:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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=@chronox.de header.s=strato-dkim-0002 header.b=rL6VescS; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726779AbgKJKX0 (ORCPT + 99 others); Tue, 10 Nov 2020 05:23:26 -0500 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.84]:25161 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726219AbgKJKX0 (ORCPT ); Tue, 10 Nov 2020 05:23:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1605003804; s=strato-dkim-0002; d=chronox.de; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=zByrFVmJDlSOfKWmXEqO4kvjtQhPeNiZ8Q12Fayu59Q=; b=rL6VescSpmv+jc4hOnS8bLCIeDuEMCvIt3oKv460DhJ8plalDPzMC3QP50aKxu1orA /cO9wByXrCXHvK0i2wmheFVm2r91k5y1+wOX7JlIt/pwQ+yoll7WkmUK9WyHmNQigiSZ pnXtrkgV3k0SytTipSFa6oQoZ4hTJtGjUXVcfhHLS9U2w2svW75Zek1p1lNoXB9F12Sr +AhJXv7CaaOjA5Z4bIj13BX9zmp0P/Ut8DodZ0dPB2uzV/y8Pm3+3n0DMkflTxGhm4CV agkLddF48zg/l1MUlvZo1H7V3e/dANQ2q/CrXi3dFTYXyh2hO7DVKHCW3oIxtWaqAKd0 FIow== X-RZG-AUTH: ":P2ERcEykfu11Y98lp/T7+hdri+uKZK8TKWEqNyiHySGSa9k9xmwdNnzGHXPaIvSfEhGW" X-RZG-CLASS-ID: mo00 Received: from tauon.chronox.de by smtp.strato.de (RZmta 47.3.3 DYNA|AUTH) with ESMTPSA id Y03aecwAAAMFFdn (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Tue, 10 Nov 2020 11:22:15 +0100 (CET) From: Stephan Mueller To: Torsten Duwe Cc: Willy Tarreau , "Theodore Y. Ts'o" , linux-crypto@vger.kernel.org, Nicolai Stange , LKML , Arnd Bergmann , Greg Kroah-Hartman , "Eric W. Biederman" , "Alexander E. Patrakov" , "Ahmed S. Darwish" , Matthew Garrett , Vito Caputo , Andreas Dilger , Jan Kara , Ray Strode , William Jon McCann , zhangjs , Andy Lutomirski , Florian Weimer , Lennart Poettering , Peter Matthias , Marcelo Henrique Cerri , Neil Horman , Randy Dunlap , Julia Lawall , Dan Carpenter , Andy Lavr , Eric Biggers , "Jason A. Donenfeld" , Petr Tesarik Subject: Re: [PATCH v36 00/13] /dev/random - a new approach Date: Tue, 10 Nov 2020 11:22:14 +0100 Message-ID: <34318060.ATrlOLLGV9@tauon.chronox.de> In-Reply-To: <3073852.aeNJFYEL58@positron.chronox.de> References: <20200921075857.4424-1-nstange@suse.de> <20201016172619.GA18410@lst.de> <3073852.aeNJFYEL58@positron.chronox.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Am Montag, 19. Oktober 2020, 21:28:50 CET schrieb Stephan M=FCller: Hi, >=20 > * Performance >=20 > - Faster by up to 75% in the critical code path of the interrupt handler > depending on data collection size configurable at kernel compile time - > the default is about equal in performance with existing /dev/random as > outlined in [2] section 4.2. By streamlining the implementation a bit, the LRNG interrupt handler now=20 operates about 130% faster than the existing /dev/random (average of 97 cyc= les=20 of the existing /dev/random code vs. an average of 42 cycles of the LRNG).= =20 This fast operation is the default now due to patch [2]. The conceptual dat= a=20 handling outlined in [3] section 2.2 remains unchanged. Even the addition of health tests applied to the noise source data would st= ill=20 result in a faster interrupt handling code (average of 97 cycles of the=20 existing /dev/random code vs on average 78 cycles of the LRNG). [1] https://github.com/smuellerDD/lrng/commit/ 10b74b242950371273e38df78060e258d9d3ea40 [2] https://github.com/smuellerDD/lrng/commit/ 383b087653c21cf20984f5508befa57e96f685ba [3] https://chronox.de/lrng/doc/lrng.pdf Ciao Stephan