Re: Slow loading big kernel module in 2.6 on PPC platform

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 28 Sep 2005, Wilson Li wrote:

> 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.
>

I don't think it's a problem with the size. Here is the
`lspci` output after I hacked a Rtc module to use 16 megabytes
of data space. It took about 1/4 second to load (`time insmod Rtc.ko`).

Module                  Size  Used by
Rtc                 16783748  0
floppy                 58964  0
loop                   18440  0
parport_pc             28740  1
lp                     14472  0
parport                37320  2 parport_pc,lp

[SNIPPED...]


> 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.
>

The PPC might be a bit slower, but not as slow as you are
seeing. I suspect that you have something that is 'waiting'
for initialization.

> 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

Cheers,
Dick Johnson
Penguin : Linux version 2.6.13 on an i686 machine (5589.55 BogoMips).
Warning : 98.36% of all statistics are fiction.

****************************************************************
The information transmitted in this message is confidential and may be privileged.  Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited.  If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to [email protected] - and destroy all copies of this information, including any attachments, without reading or disclosing them.

Thank you.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux