public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Patch 0/3] Speed up link_mem_sections during boot.
@ 2010-09-29 19:00 Robin Holt
  2010-09-29 19:00 ` [Patch 1/3] Introduce kset_find_obj_hinted Robin Holt
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Robin Holt @ 2010-09-29 19:00 UTC (permalink / raw)
  To: lkml
  Cc: Greg Kroah-Hartman, Badari Pulavarty, Dave Hansen, Gary Hade,
	Ingo Molnar, Matt Tolentino, Robert P. J. Day


During boot of a large system, we see a delay in the portion of boot which
is calling link_mem_sections().  On a 16TB x86_64 system, it is taking
1 hour 27 minutes.  With this patch set applied, it takes 46 seconds.

The speedup is accomplished by simply caching the results from the
previous find_memory_block and using that as a quick check to see if
the next block happens to be adjacent to the previous.  In our testing,
that was true 100% of the time.

---

 drivers/base/memory.c   |   28 ++++++++++++++++++----------
 drivers/base/node.c     |    8 +++++---
 include/linux/kobject.h |    2 ++
 include/linux/memory.h  |    2 ++
 lib/kobject.c           |   39 +++++++++++++++++++++++++++++++++++++++
 5 files changed, 66 insertions(+), 13 deletions(-)

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

end of thread, other threads:[~2010-10-05 23:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-29 19:00 [Patch 0/3] Speed up link_mem_sections during boot Robin Holt
2010-09-29 19:00 ` [Patch 1/3] Introduce kset_find_obj_hinted Robin Holt
2010-09-29 20:59   ` Dave Hansen
2010-09-29 21:44     ` Robin Holt
2010-09-30  1:59   ` KAMEZAWA Hiroyuki
2010-09-29 19:00 ` [Patch 2/3] Introduce find_memory_block_hinted which utilizes kset_find_obj_hinted Robin Holt
2010-09-30  2:00   ` KAMEZAWA Hiroyuki
2010-09-29 19:00 ` [Patch 3/3] Convert link_mem_sections to use find_memory_block_hinted Robin Holt
2010-09-30  2:01   ` KAMEZAWA Hiroyuki
2010-10-05 23:18   ` patch "driver core: Convert link_mem_sections to use find_memory_block_hinted." added to gregkh-2.6 tree gregkh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox