Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761877AbcLUSkV (ORCPT ); Wed, 21 Dec 2016 13:40:21 -0500 Received: from frisell.zx2c4.com ([192.95.5.64]:51258 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760412AbcLUSkT (ORCPT ); Wed, 21 Dec 2016 13:40:19 -0500 MIME-Version: 1.0 In-Reply-To: <20161221183751.1123.qmail@ns.sciencehorizons.net> References: <1482335804.8944.44.camel@edumazet-glaptop3.roam.corp.google.com> <20161221183751.1123.qmail@ns.sciencehorizons.net> From: "Jason A. Donenfeld" Date: Wed, 21 Dec 2016 19:40:12 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: HalfSipHash Acceptable Usage To: George Spelvin Cc: Eric Dumazet , Andi Kleen , David Miller , David Laight , "Daniel J . Bernstein" , Eric Biggers , Hannes Frederic Sowa , Jean-Philippe Aumasson , kernel-hardening@lists.openwall.com, Linux Crypto Mailing List , LKML , Andy Lutomirski , Netdev , Tom Herbert , Linus Torvalds , "Theodore Ts'o" , Vegard Nossum Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 662 Lines: 13 On Wed, Dec 21, 2016 at 7:37 PM, George Spelvin wrote: > SipHash annihilates the competition on 64-bit superscalar hardware. > SipHash dominates the field on 64-bit in-order hardware. > SipHash wins easily on 32-bit hardware *with enough registers*. > On register-starved 32-bit machines, it really struggles. > > As I explained, in that last case, SipHash barely wins at all. > (On a P4, it actually *loses* to MD5, not that anyone cares. Running > on a P4 and caring about performance are mutually exclusive.) >From the discussion off list which examined your benchmark code, it looks like we're going to move ahead with SipHash.