Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1662597 > unrolled thread

Re: [PATCH] kbuild: speed up checksyscalls.sh

Started byMasahiro Yamada <yamada.masahiro@socionext.com>
First post2017-06-09 18:20 +0200
Last post2017-06-09 18:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] kbuild: speed up checksyscalls.sh Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-06-09 18:20 +0200

#1662597 — Re: [PATCH] kbuild: speed up checksyscalls.sh

FromMasahiro Yamada <yamada.masahiro@socionext.com>
Date2017-06-09 18:20 +0200
SubjectRe: [PATCH] kbuild: speed up checksyscalls.sh
Message-ID<tQuNI-3M7-19@gated-at.bofh.it>
2017-06-01 23:57 GMT+09:00 Arnd Bergmann <arnd@arndb.de>:
> checksyscalls.sh is run at every "make" run while building the kernel,
> even if no files have changed. I looked at where we spend time in
> a trivial empty rebuild and found checksyscalls.sh to be a source
> of noticeable overhead, as it spawns a lot of child processes just
> to call 'cat' copying from stdin to stdout, once for each of the
> over 400 x86 syscalls.
>
> Using a shell-builtin (echo) instead of the external command gives
> us a 13x speedup:
>
>     Before                 After
> real    0m1.018s       real     0m0.077s
> user    0m0.068s       user     0m0.048s
> sys     0m0.156s       sys      0m0.024s
>
> The time it took to rebuild a single file on my machine dropped
> from 5.5 seconds to 4.5 seconds.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Applied to linux-kbuild/kbuild.  Thanks!




-- 
Best Regards
Masahiro Yamada

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web