Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932107Ab3J1QUu (ORCPT ); Mon, 28 Oct 2013 12:20:50 -0400 Received: from mail-ea0-f177.google.com ([209.85.215.177]:63217 "EHLO mail-ea0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932066Ab3J1QUt (ORCPT ); Mon, 28 Oct 2013 12:20:49 -0400 Date: Mon, 28 Oct 2013 17:20:45 +0100 From: Ingo Molnar To: Neil Horman Cc: Eric Dumazet , linux-kernel@vger.kernel.org, sebastien.dugue@bull.net, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] x86: Run checksumming in parallel accross multiple alu's Message-ID: <20131028162044.GA14350@gmail.com> References: <1381510298-20572-1-git-send-email-nhorman@tuxdriver.com> <20131012172124.GA18241@gmail.com> <20131014202854.GH26880@hmsreliant.think-freely.org> <1381785560.2045.11.camel@edumazet-glaptop.roam.corp.google.com> <1381789127.2045.22.camel@edumazet-glaptop.roam.corp.google.com> <20131017003421.GA31470@hmsreliant.think-freely.org> <20131017084121.GC22705@gmail.com> <20131028160131.GA31048@hmsreliant.think-freely.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131028160131.GA31048@hmsreliant.think-freely.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1402 Lines: 36 * Neil Horman wrote: > Base: > 0.093269042 seconds time elapsed ( +- 2.24% ) > Prefetch (5x64): > 0.079440009 seconds time elapsed ( +- 2.29% ) > Parallel ALU: > 0.087666677 seconds time elapsed ( +- 4.01% ) > Prefetch + Parallel ALU: > 0.080758702 seconds time elapsed ( +- 2.34% ) > > So we can see here that we get about a 1% speedup between the base > and the both (Prefetch + Parallel ALU) case, with prefetch > accounting for most of that speedup. Hm, there's still something strange about these results. So the range of the results is 790-930 nsecs. The noise of the measurements is 2%-4%, i.e. 20-40 nsecs. The prefetch-only result itself is the fastest of all - statistically equivalent to the prefetch+parallel-ALU result, within the noise range. So if prefetch is enabled, turning on parallel-ALU has no measurable effect - which is counter-intuitive. Do you have an theory/explanation for that? Thanks, Ingo -- 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/