All of lore.kernel.org
 help / color / mirror / Atom feed
* module: Speed up symbol resolution during module loading
@ 2009-09-22 13:28 Alan Jenkins
  2009-09-22 13:28 ` [PATCH 1/4] module: extract __ExPORT_SYMBOL from module.h into mod_export.h Alan Jenkins
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Alan Jenkins @ 2009-09-22 13:28 UTC (permalink / raw)
  To: rusty; +Cc: lkml, linux-kbuild, linux-modules

The following series applies against v2.6.31. It sorts the tables of builtin
symbols, so the module loader can resolve them using a binary search.

The kbuild changes to achieve this are less scary than I expected.  I'm
optimistic that they can be accepted without radical alteration :-).

Quoting from the last patch in this series:

"On my EeePC 701, coldplug is mainly cpu bound and takes 1.5 seconds
during boot. perf showed this change eliminated 20% of cpu cycles during
coldplug, saving 0.3 seconds of real time.

These savings may not be representative since my config is not very well
tuned.  The numbers above represent the loading of 35 modules,
referencing a total of 441 symbols.  Nevertheless, it shows why I think
this is worth doing."

Alan

^ permalink raw reply	[flat|nested] 13+ messages in thread
* module: Speed up symbol resolution during module loading
@ 2009-09-22 13:38 Alan Jenkins
  2009-09-22 13:38 ` [PATCH 2/4] kbuild: sort the list of symbols exported by the kernel (__ksymtab) Alan Jenkins
  0 siblings, 1 reply; 13+ messages in thread
From: Alan Jenkins @ 2009-09-22 13:38 UTC (permalink / raw)
  To: rusty; +Cc: linux-kernel, linux-kbuild, linux-modules

[Apologies for duplicate messages. It's debatable whether I should be trusted
 with commands called names like "guilt-patchbomb". ]

The following series applies against v2.6.31. It sorts the tables of builtin
symbols, so the module loader can resolve them using a binary search.

The kbuild changes to achieve this are less scary than I expected.  I'm
optimistic that they can be accepted without radical alteration  :-) .

Quoting from the last patch in this series:

"On my EeePC 701, coldplug is mainly cpu bound and takes 1.5 seconds
during boot. perf showed this change eliminated 20% of cpu cycles during
coldplug, saving 0.3 seconds of real time.

These savings may not be representative since my config is not very well
tuned.  The numbers above represent the loading of 35 modules,
referencing a total of 441 symbols.  Nevertheless, it shows why I think
this is worth doing."

Alan


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-09-24  0:08 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-22 13:28 module: Speed up symbol resolution during module loading Alan Jenkins
2009-09-22 13:28 ` [PATCH 1/4] module: extract __ExPORT_SYMBOL from module.h into mod_export.h Alan Jenkins
2009-09-22 13:28 ` [PATCH 2/4] kbuild: sort the list of symbols exported by the kernel (__ksymtab) Alan Jenkins
2009-09-22 13:30   ` Alan Jenkins
2009-09-22 13:28 ` [PATCH 3/4] module: unexport each_symbol() Alan Jenkins
2009-09-22 13:28 ` [PATCH 4/4] module: speed up find_symbol() using binary search on the builtin symbol tables Alan Jenkins
2009-09-23  0:32 ` module: Speed up symbol resolution during module loading Rusty Russell
2009-09-23 16:52   ` Alan Jenkins
2009-09-24  0:08     ` Rusty Russell
  -- strict thread matches above, loose matches on Subject: below --
2009-09-22 13:38 Alan Jenkins
2009-09-22 13:38 ` [PATCH 2/4] kbuild: sort the list of symbols exported by the kernel (__ksymtab) Alan Jenkins
2009-09-22 14:48   ` Sam Ravnborg
2009-09-22 15:08     ` Alan Jenkins
2009-09-23 17:38       ` Sam Ravnborg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.