Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752148AbXFKLIJ (ORCPT ); Mon, 11 Jun 2007 07:08:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750947AbXFKLH4 (ORCPT ); Mon, 11 Jun 2007 07:07:56 -0400 Received: from mx2.suse.de ([195.135.220.15]:33250 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750836AbXFKLHz (ORCPT ); Mon, 11 Jun 2007 07:07:55 -0400 To: Matt Mackall Cc: Benjamin Gilbert , akpm@linux-foundation.org, herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] [CRYPTO] Add optimized SHA-1 implementation for i486+ References: <20070608214242.23949.30350.stgit@dev> <20070608214253.23949.40465.stgit@dev> <20070609201159.GC11166@waste.org> From: Andi Kleen Date: 11 Jun 2007 14:04:05 +0200 In-Reply-To: <20070609201159.GC11166@waste.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 766 Lines: 13 Matt Mackall writes: > > Have you benchmarked this against lib/sha1.c? Please post the results. > Until then, I'm frankly skeptical that your unrolled version is faster > because when I introduced lib/sha1.c the rolled version therein won by > a significant margin and had 1/10th the cache footprint. I would always suggest to benchmark such functions with forced cold i/d caches (memset(x, 0, 5*1024*1024) and running some very large generated function every few iterations of the benchmark) -Andi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/