2003-01-01 19:48:57

by khromy

[permalink] [raw]
Subject: Re: 2.5.53mm2 for AIMbench

On Wed, Jan 01, 2003 at 09:35:37AM +0530, Sowmya Adiga wrote:
> Hi,
>
> I gave 60 second for each test while running AIM bench for
> 2.5.53mm2 patch.But it ran each test for only 6 second.Is there any
> change in kernel frequency with this release?
>
> Regards
> sowmya adiga

I had some timing problems also but Andrew pointed out the following:

Seems that this is because different parts of the kernel are using
different values of HZ (!).

In include/asm-i386/param.h, please add:

#ifdef __KERNEL__

+#include <linux/config.h>

#ifdef CONFIG_1000HZ

Here is a patch for that change:

--- linux-2.5/include/asm-i386/param.h.bak 2002-12-30 00:39:35.000000000 -0500
+++ linux-2.5/include/asm-i386/param.h 2002-12-30 00:40:18.000000000 -0500
@@ -3,6 +3,8 @@

#ifdef __KERNEL__

+#include <linux/config.h>
+
#ifdef CONFIG_1000HZ
# define HZ 1000 /* Internal kernel timer frequency */
#else

--
L1: khromy ;khromy(at)lnuxlab.ath.cx