From: Hiro Y. <hyo...@mi...> - 2006-03-14 04:42:47
|
Hi, The following is a quick and dirty hack. Please try it. diff -ur linux-2.6.9-11.19AX/arch/i386/oprofile/nmi_int.c linux-2.6.9-11.19AXcustom/arch/i386/oprofile/nmi_int.c --- linux-2.6.9-11.19AX/arch/i386/oprofile/nmi_int.c 2004-10-19 06:55:24.000000000 +0900 +++ linux-2.6.9-11.19AXcustom/arch/i386/oprofile/nmi_int.c 2005-12-22 13:54:09.000000000 +0900 @@ -313,7 +313,7 @@ { __u8 cpu_model = current_cpu_data.x86_model; - if (cpu_model > 3) + if (cpu_model > 4) return 0; #ifndef CONFIG_SMP Hiro From: "Ceylan, Tolga" <Tol...@sa...> Subject: RE: Intel Xeon Date: Mon, 13 Mar 2006 20:45:37 -0600 Message-ID: <618...@s2...> > > Thanks for the reply, > > cpuinfo shows "Xeon (TM) 3.6Ghz", is this more like a generic > description that an actual CPU detection? > > On the box, which is working cpuinfo shows "Xeon (TM) MP 3.0Ghz" > > How do I determine if the kernel identifies a CPU? Is there a specific > text that I should look for in dmesg output or in cpuinfo? > > > > > -----Original Message----- > From: William Cohen [mailto:wc...@nc...] > Sent: Mon 3/13/2006 8:32 PM > To: Ceylan, Tolga > Cc: opr...@li... > Subject: Re: Intel Xeon > > Ceylan, Tolga wrote: > > Hello; > > > > I've been using oprofile on HP DL560 server with 2 x Intel Xeon MP > > 3.00Ghz > > processors. The server is loaded with Redhat AS4.0, and things > > work as expected. > > > > However, recently I realized that on a DL380 hardware with 2 x Intel > > Xeon 3.60Ghz hardware on RedHat AS40, the CPU type is set to "timer". > > These servers they all have the same SMP kernels. So, the difference > > is only the hardware. > > > > I am using stock RedHat kernel. Do you think the problem is due to > > an old oprofile module in Redhat stock kernels? > > > > Has anybody had any "timer" problems with Xeon processors with > > oprofile before? > > > > Thanks, > > > > Tolga Ceylan > > You have a newer model processor than the RHEL4 kernel knows about. > OProfile needs to identify the processor to determine what kind of > performance monitoring hardware the processor has. If OProfile can't > identify the processor, it falls back on the timer interrupt mechanism. > /proc/cpuinfo should show the differences between the machines. > > Upstream kernels identify the Xeon processors. This change should be > back ported to Red Hat kernel at some point. > > -Will > |