From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,3f738be55205cd6e X-Google-Attributes: gid111c93,public From: Alex Rhomberg Subject: Re: gettimeofday resolution Date: 2000/03/23 Message-ID: <38DA21D4.FD4CA6B3@ife.ee.ethz.ch>#1/1 X-Deja-AN: 601297865 Content-Transfer-Encoding: 7bit References: <38DA191A.C7708BAB@ife.ee.ethz.ch> Content-Type: text/plain; charset=us-ascii X-Trace: 23 Mar 2000 14:53:24 +0100, beethoven.ee.ethz.ch Organization: Electronics Lab, ETH Zurich, Switzerland MIME-Version: 1.0 Newsgroups: comp.os.linux.alpha Alex Rhomberg wrote: > > I use gettimeofday for time measurement. > On my PWS500a with RH 6.1, kernel 2.2.12, this works fine, giving me > microsecond resolution. > A test on UP2000 with SuSE 6.1 and 2.2.13 kernel returns the time with > 1ms jumps > > The following program outputs 1 or 2 us on PWS/RH and 980 on UP2000/SuSE > > could somebody please test this with different configs and help me find > the reason for the difference? Hmm, I guess I found it. No high resolution for SMP*, because we can't trust the rpcc register. Can somebody give me a hint how I find a high resolution timer on an SMP machine? Can I increase the processor affinity somehow? - Alex * it's in do_gettimeofday in arch/alpha/kernel/time.c