Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751117AbVKRX6b (ORCPT ); Fri, 18 Nov 2005 18:58:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751119AbVKRX6b (ORCPT ); Fri, 18 Nov 2005 18:58:31 -0500 Received: from ms-smtp-03.nyroc.rr.com ([24.24.2.57]:31661 "EHLO ms-smtp-03.nyroc.rr.com") by vger.kernel.org with ESMTP id S1751117AbVKRX6a (ORCPT ); Fri, 18 Nov 2005 18:58:30 -0500 Date: Fri, 18 Nov 2005 18:57:59 -0500 (EST) From: Steven Rostedt X-X-Sender: rostedt@gandalf.stny.rr.com To: Fernando Lopez-Lezcano cc: Lee Revell , Ingo Molnar , linux-kernel@vger.kernel.org, "Paul E. McKenney" , "K.R. Foley" , Thomas Gleixner , pluto@agmk.net, john cooper , Benedikt Spranger , Daniel Walker , Tom Rini , George Anzinger Subject: Re: 2.6.14-rt13 In-Reply-To: <1132357018.4735.51.camel@cmn3.stanford.edu> Message-ID: References: <20051115090827.GA20411@elte.hu> <1132336954.20672.11.camel@cmn3.stanford.edu> <1132350882.6874.23.camel@mindpipe> <1132351533.4735.37.camel@cmn3.stanford.edu> <20051118220755.GA3029@elte.hu> <1132352143.6874.31.camel@mindpipe> <1132357018.4735.51.camel@cmn3.stanford.edu> 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: 957 Lines: 42 On Fri, 18 Nov 2005, Fernando Lopez-Lezcano wrote: > > Can it simply be pinned to a cpu? > > Is there a way to know in which cpu a process is running? At least Jack > could ignore timinig issues if the measurement is going to happen in a > different cpu than the one where the original timestamp was collected. > Simple answer? No. At least not meaningfully. If you do: cpu = fictitious_get_my_cpu(); if (cpu == last_cpu()) { rdtsc(oldtime); ... } There's no guarantee that jack doesn't switch cpu's from when it found out what CPU it was on to doing the calculation. So it would be easier to pin it. (apt-get schedutils) man 1 taskset or if you modify the code: mn 2 sched_setaffinity -- Steve - 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/