Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759849AbYF0OXr (ORCPT ); Fri, 27 Jun 2008 10:23:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755425AbYF0OXj (ORCPT ); Fri, 27 Jun 2008 10:23:39 -0400 Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:40031 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753308AbYF0OXi (ORCPT ); Fri, 27 Jun 2008 10:23:38 -0400 Date: Fri, 27 Jun 2008 09:23:09 -0500 From: Nathan Lynch To: Breno Leitao Cc: linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, Paul Mackerras , Ingo Molnar , Anton Blanchard Subject: Re: [RFC/PATCH 0/3] sched: allow arch override of cpu power Message-ID: <20080627142309.GR9594@localdomain> References: <1213835374-10868-1-git-send-email-ntl@pobox.com> <4863F2CC.1030907@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4863F2CC.1030907@linux.vnet.ibm.com> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Pobox-Relay-ID: A1DD0126-4454-11DD-9B98-CE28B26B55AE-04752483!a-sasl-fastnet.pobox.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1188 Lines: 30 Breno Leitao wrote: > Nathan Lynch wrote: >> There is an "interesting" quality of POWER6 cores, which each have 2 >> hardware threads: assuming one thread on the core is idle, the primary >> thread is a little "faster" than the secondary thread. To illustrate: >> > I found this feature interesting and decided to do some tests. > After some tests I found that the example you post really runs fast in > the first CPU, but a more "elaborated" application runs slower on the > first CPU. > Here is a small example: > > # taskset 0x1 time -f "%e, %U, %S" ./a.out ; taskset 0x2 time -f "%e, > %U, %S" ./a.out > 10.77, 10.72, 0.01 > 10.53, 10.48, 0.01 > > # taskset 0x2 time -f "%e, %U, %S" ./a.out ; taskset 0x1 time -f "%e, > %U, %S" ./a.out > 10.55, 10.50, 0.01 > 10.77, 10.72, 0.01 I've been able to duplicate your results, thanks for the testcase. Guess I'll need to understand what's going on before continuing with this... -- 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/