From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932533AbVI3A6P (ORCPT ); Thu, 29 Sep 2005 20:58:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932531AbVI3A6O (ORCPT ); Thu, 29 Sep 2005 20:58:14 -0400 Received: from web34113.mail.mud.yahoo.com ([66.163.178.111]:15032 "HELO web34113.mail.mud.yahoo.com") by vger.kernel.org with SMTP id S932533AbVI3A6N (ORCPT ); Thu, 29 Sep 2005 20:58:13 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ITuenYuBDQFFrUyX117gy18PVno1Au1mo9v8qTrmz7Kejnb+MkN7TU3rQa+gj+wEwMUH+VxHI2RadE24gZ4yrPFlzi4EI5zZE4xqlELb6SQC0nn7UwhPloBslXqlHu+/DFWe52uZNmiHlRuHw49m7Zz0Zqa3Gkrz3uLAWKJRrCg= ; Message-ID: <20050930005812.24028.qmail@web34113.mail.mud.yahoo.com> Date: Thu, 29 Sep 2005 17:58:12 -0700 (PDT) From: Wilson Li Subject: Re: Slow loading big kernel module in 2.6 on PPC platform To: Wilson Li , Samuel Masham , Bill Davidsen , Linux Kernel Mailing List Cc: "Yamaguchi, Yohei" , Tim Bird In-Reply-To: <20050929234641.26843.qmail@web34109.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org I think I got what you are trying to do in your patch. This is really a smart workaround. At least it works for me for now, it just need the module to be loaded first to generate all the infos which takes time. And then use the infos pre-calculated to load the module just like #>insmod mrbig.ko elf_plt_info=25,27,322144,160 Thanks and really appreciate your help. Wilson Li --- Wilson Li wrote: > > > --- Samuel Masham wrote: > > > I assume you are on a slow ppc32 platform. > > > > The time taken is a function of the number of symbols, you can > work > > around it > > as shown in the patch below. Obviously this is just an example > > patch and is > > NOT signed off for anything but reading :) > > > > I would really like do some work on a pre-link for modules but > > don't really know > > where to start. > > > > Any hints? > > > > Samuel > > > > ps Not subscribed, just so please cc me > > > > Appreciate your help. > I applied your patch manually since something was wrong during > patching. I guess we might not use same version of kernel. Mine is > 2.6.8. > > But the function parse_args_reloc() still failed even though I have > passed a module param like elf_plt_info=1 during insmod. Here's the > command to load the module. > > #>insmod mrbig.ko elf_plt_info=1 > > And console output is: > init_module: consider insmod mrbig elf_plt_info=25,27,322144,160 > > I have no idea what the plt section is and what is going on in > module_frob_arch_sections() function. Any hints or documents I can > refer to? > > Thanks, > 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@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ > __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com