Slow loading big kernel module in 2.6 on PPC platform

From: Wilson Li
Date: Wed Sep 28 2005 - 14:36:22 EST


Hi,

I am trying to port several third party kernel modules from kernel
2.4 to 2.6 on a ppc (MPC824x) platform. For small size of modules, it
works perfectly in 2.6. But there's one huge kernel module which size
is about 2.7M bytes (size reported by lsmod after insmod), and it
takes about 90 seconds to load this module before init_module starts.
I did not notice there's such obvious delay in 2.4 kernel.

Initially I suspected there might be a problem of the insmod of
busybox I was using. I switched to module-init-tools-3.1 insmod. It
didn't help. I also tried other things like disabling CONFIG_KALLSYMS
and commenting out all the EXPORT_SYMBOLs in that module. Nothing
works so far. I've not been able to find any relevant thread about
slow loading of big kernel module on PPC platform.

Is this related to the new way of loading kernel module in 2.6 or
vmalloc since the kernel module also needs contiguous memory? I am
running 2.6.8 kernel on a ppc platform (MPC824x) with 24M bytes
memory visible to kernel. Two small kernel modules are loaded first
through shell command right after system boots up. And there are
about 10M bytes free memory left before loading this big chunk. The
memory seems big enough to me and memory is not that fragmented since
it just boots up.

Any suggestions?

Thanks a lot,
Wilson Li







__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
-
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/