[Patch 0/3] Speed up link_mem_sections during boot.

From: Robin Holt
Date: Wed Sep 29 2010 - 15:01:35 EST



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(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/