From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 16431 invoked from network); 29 Sep 1999 22:18:30 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 29 Sep 1999 22:18:30 -0000 Received: from Cantor.suse.de (Cantor.suse.de [194.112.123.193]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id SAA13316 for ; Wed, 29 Sep 1999 18:18:28 -0400 Received: from Galois.suse.de (Galois.suse.de [194.112.123.130]) by Cantor.suse.de (Postfix) with ESMTP id AA92F32CD9 for ; Thu, 30 Sep 1999 00:17:56 +0200 (MEST) Received: from Wotan.suse.de (Wotan.suse.de [10.10.0.1]) by Galois.suse.de (Postfix) with ESMTP id 1BA5C67AA for ; Thu, 30 Sep 1999 00:17:56 +0200 (MEST) Received: from fatou.suse.de (Fatou.suse.de [10.10.0.26]) by Wotan.suse.de (Postfix) with ESMTP id C1B987F8B for ; Thu, 30 Sep 1999 00:17:55 +0200 (MEST) Received: by fatou.suse.de (Postfix, from userid 0) id 2C954FF26; Thu, 30 Sep 1999 00:17:50 +0200 (MEST) Received: from localhost (localhost [127.0.0.1]) by fatou.suse.de (Postfix) with ESMTP id EFB897791 for ; Thu, 30 Sep 1999 00:17:50 +0200 (MEST) Date: Thu, 30 Sep 1999 00:17:50 +0200 (MEST) From: Ruediger Oertel To: axp-list@redhat.com Subject: Re: rtc and smp In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Wed, 29 Sep 1999, Rich Payne wrote: > > I've been working with 2.2.13pre14 on an SMP machine and came across > something rather strange. If I compile the kernel with Enhanced Real Time > clock support (config_rtc) then it 'seems' like nothing ever gets > scheduled on the 2nd cpu. I say 'seems' because I'm looking at tools like > top (which never shows >50% cpu util) and gtop (which never shows work on > the 2nd cpu). Howver both CPUs are detected at boot and /proc/cpuinfo > reports [..] > So, is this a kernel problem or are the userland tools failing? The only > other way I could thing of testing this would be to run some sort of > benchmark, get the time it took to run, then run it twice (both at the > same time that is) and see if the second time is 2x the original (or greater). > That should in theory tell me if the 2nd CPU is being used. Yes, that one bit me, when I started on alpha-smp. The timer irq is used for the rtc, but only the normal timer-irq handler updates the data for /proc/stat. But I needed/wanted proc/rtc and since I never needed the irq-features of the rtc-driver I've been running the rtc-light-patches from genie.ucd.ie for more than half a year now without problems > > Anybody have any ideas on this? It's seems a little strange, especaially > when config_rtc says > > "If you run Linux on a multiprocessor machine and said Y to > "Symmetric Multi Processing" above, you should say Y here to read > and set the RTC clock in an SMP compatible fashion." -- with kind regards (mit freundlichem Grinsen), Ruediger Oertel (ro@suse.de) ----------------------------------------------------------------- Linux 2.2.12.SuSE (root@fatou) (gcc version egcs-2.91.66 ) #1 SMP Total of 2 processors activated (800.36 BogoMIPS)