[BusyBox] Insmod slow with big modules

Fabrice Gautier Fabrice_Gautier at sdesigns.com
Tue Jan 21 12:59:03 UTC 2003


Hi,

I'm using the insmod from busybox to load a kernel module in a uCLinux
kernel.

This takes a loooong time. Almost 3 seconds, most of them spend in the
function obj_string_patch.

The kernel module is pretty big, I can count ~800 symbols, and I believe
obj_string_patch is called  for 688 of them. 

I'm not really sure what obj_string_patch is supposed to do, it looks like
its designed to copy the symbol name in the kernel .kstrtab section, am i
right? 
Also only a few of those 688 symbols are actually used by the kernel, so I
am wondering if they really need to go in the kernel kstrtab. Relocation
still need
to be performed on those symbol though, and i am not sure how it would be
possible to differentiate between symbols exported to the kernel and local
symbols anyway.

Any advices?

Thanks

-- 
Fabrice Gautier, 
Fabrice_Gautier at sdesigns.com



More information about the busybox mailing list