All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] kbuild: optimize output directory creation
@ 2017-11-09 15:41 Masahiro Yamada
  2017-11-09 15:41 ` [PATCH 1/4] kbuild: create directory for make cache only when necessary Masahiro Yamada
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: Masahiro Yamada @ 2017-11-09 15:41 UTC (permalink / raw)
  To: linux-kbuild
  Cc: linux-kernel, Michal Marek, Sam Ravnborg, Douglas Anderson,
	Masahiro Yamada, Michal Marek, x86, H. Peter Anvin,
	Thomas Gleixner, Andy Lutomirski, Ingo Molnar


I looked into the build scripts, focusing on "mkdir" optimization.

With this series, I succeeded in speeding up the incremental build
with O= option.

The following is the result of "time make O=foo",
where "foo" is the output directory that has already been built.

Before:

real	0m8.322s
user	0m4.324s
sys	0m1.220s

After:

real	0m6.989s
user	0m4.168s
sys	0m1.080s

3/4 gave the biggest impact.



Masahiro Yamada (4):
  kbuild: create directory for make cache only when necessary
  kbuild: remove redundant $(wildcard ...) for cmd_files calculation
  kbuild: create object directories simpler and faster
  kbuild: optimize object directory creation for incremental build

 Makefile                     |  3 +--
 arch/x86/entry/vdso/Makefile |  4 ----
 scripts/Kbuild.include       | 13 +++++++++----
 scripts/Makefile.build       | 23 ++++++++++++-----------
 scripts/Makefile.headersinst |  3 +--
 scripts/Makefile.host        | 11 -----------
 scripts/Makefile.lib         |  5 -----
 scripts/Makefile.modpost     |  3 +--
 8 files changed, 24 insertions(+), 41 deletions(-)

-- 
2.7.4

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

end of thread, other threads:[~2017-11-13  8:49 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-09 15:41 [PATCH 0/4] kbuild: optimize output directory creation Masahiro Yamada
2017-11-09 15:41 ` [PATCH 1/4] kbuild: create directory for make cache only when necessary Masahiro Yamada
2017-11-09 17:59   ` Doug Anderson
2017-11-10  4:12     ` Masahiro Yamada
2017-11-10 17:34       ` Doug Anderson
2017-11-09 15:41 ` [PATCH 2/4] kbuild: remove redundant $(wildcard ...) for cmd_files calculation Masahiro Yamada
2017-11-10  4:53   ` Doug Anderson
2017-11-10  4:55     ` Masahiro Yamada
2017-11-09 15:41 ` [PATCH 3/4] kbuild: create object directories simpler and faster Masahiro Yamada
2017-11-10  6:26   ` Ingo Molnar
2017-11-10  8:45   ` Cao jin
2017-11-10  8:45     ` Cao jin
2017-11-10  9:21     ` Masahiro Yamada
2017-11-13  8:48       ` Masahiro Yamada
2017-11-10 18:46   ` Doug Anderson
2017-11-09 15:41 ` [PATCH 4/4] kbuild: optimize object directory creation for incremental build Masahiro Yamada
2017-11-10 10:58   ` Cao jin
2017-11-10 10:58     ` Cao jin
2017-11-13  7:24     ` Masahiro Yamada

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.