mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Wilson Li <yongshenglee@yahoo.com>
To: "linux-os \(Dick Johnson\)" <linux-os@analogic.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Slow loading big kernel module in 2.6 on PPC platform
Date: Wed, 28 Sep 2005 15:27:38 -0700 (PDT)	[thread overview]
Message-ID: <20050928222738.95364.qmail@web34110.mail.mud.yahoo.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0509281548570.18498@chaos.analogic.com>



--- "linux-os (Dick Johnson)" <linux-os@analogic.com> wrote:

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

For debugging, my module init function will print a message first
when it gets called. After insmod the module, the console hangs about
90 seconds for loading then my init function gets called and message
prints. I even commented out all the initialization code, it still
does not help. Anything else I am missing?

Thanks,
Wilson Li


	
		
______________________________________________________ 
Yahoo! for Good 
Donate to the Hurricane Katrina relief effort. 
http://store.yahoo.com/redcross-donate3/ 


  reply	other threads:[~2005-09-28 22:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-28 19:29 Wilson Li
2005-09-28 19:53 ` linux-os (Dick Johnson)
2005-09-28 22:27   ` Wilson Li [this message]
2005-09-29 13:04     ` linux-os (Dick Johnson)
2005-09-29 23:50       ` Wilson Li
2005-09-30 15:46         ` linux-os (Dick Johnson)
2005-09-28 20:55 ` Bill Davidsen
2005-09-28 21:37   ` Wilson Li
2005-09-29  7:36     ` Arjan van de Ven
2005-09-29  1:30 Samuel Masham
2005-09-29 23:46 ` Wilson Li
2005-09-30  0:58   ` Wilson Li
2005-09-30  2:57 ` Wilson Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050928222738.95364.qmail@web34110.mail.mud.yahoo.com \
    --to=yongshenglee@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-os@analogic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®