Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755052AbXLJLAK (ORCPT ); Mon, 10 Dec 2007 06:00:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751943AbXLJK76 (ORCPT ); Mon, 10 Dec 2007 05:59:58 -0500 Received: from mx3.mail.elte.hu ([157.181.1.138]:47402 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751764AbXLJK75 (ORCPT ); Mon, 10 Dec 2007 05:59:57 -0500 Date: Mon, 10 Dec 2007 11:59:44 +0100 From: Ingo Molnar To: Jie Chen Cc: linux-kernel@vger.kernel.org, Peter Zijlstra Subject: Re: Possible bug from kernel 2.6.22 and above, 2.6.24-rc4 Message-ID: <20071210105943.GA5370@elte.hu> References: <20071205164723.GA25641@elte.hu> <4756E44E.8080607@jlab.org> <20071205200343.GA14570@elte.hu> <475708A7.4030708@jlab.org> <20071205204645.GC25694@elte.hu> <47570F83.6040601@jlab.org> <20071205210222.GA30089@elte.hu> <47572353.4040606@jlab.org> <20071206104318.GB30838@elte.hu> <47582367.6060602@jlab.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47582367.6060602@jlab.org> User-Agent: Mutt/1.5.17 (2007-11-01) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1212 Lines: 44 * Jie Chen wrote: > I did patch the header file and recompiled the kernel. I observed no > difference (two threads overhead stays too high). Thank you. ok, i think i found it. You do this in your qmt/pthread_sync.c test-code: double get_time_of_day_() { ... err = gettimeofday(&ts, NULL); ... } and then you use this in the measurement loop: for (k=0; k<=OUTERREPS; k++){ start = getclock(); for (j=0; j