BogoMIPS drops to 2/3 when CONFIG_MODULES is not set for anARMv6 SoC platform

From: Leo (Hao) Chen
Date: Thu Jun 25 2009 - 14:07:43 EST


Hi,

I encountered an interesting problem when I was porting the latest Linux kernel to our ARM11 based SoC.

I turned off the CONFIG_MODULES configuration option and the BogoMIPS drop to only 2/3 of the original number.

With the same kernel source code, when CONFIG_MODULES is turned on.
-----------------------
# cat /proc/cpuinfo
Processor : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 499.71
Features : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7

when CONFIG_MODULES is turned off.
# cat /proc/cpuinfo
Processor : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 332.59
Features : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7

The only difference between my two builds is the CONFIG_MODULES option.
--- .config.old 2009-06-24 16:32:21.000000000 -0700
+++ .config 2009-06-25 10:59:26.000000000 -0700
@@ -100,12 +99,7 @@
CONFIG_HAVE_GENERIC_DMA_COHERENT=y
CONFIG_RT_MUTEXES=y
CONFIG_BASE_SMALL=0
-CONFIG_MODULES=y
-# CONFIG_MODULE_FORCE_LOAD is not set
-CONFIG_MODULE_UNLOAD=y
-# CONFIG_MODULE_FORCE_UNLOAD is not set
-# CONFIG_MODVERSIONS is not set
-# CONFIG_MODULE_SRCVERSION_ALL is not set
+# CONFIG_MODULES is not set
CONFIG_BLOCK=y
CONFIG_LBDAF=y
# CONFIG_BLK_DEV_BSG is not set

Both the 2.6.30 and 2.6.27.18 kernel present the same problem.

Does anyone notice this interesting problem? If yes, what's the explanation? Why the BogoMIPS drops so much with just one configuration option.

Thanks,

Leo Chen
Software Engineer
Broadcom Canada
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/