From ce18cdc573b40c911312ceb3116f5cd05e6418f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Wed, 7 Nov 2018 00:00:01 +0000 Subject: [PATCH] gem5 link benchmark: fix p51 values --- README.adoc | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/README.adoc b/README.adoc index e0eedd7..eea2a3e 100644 --- a/README.adoc +++ b/README.adoc @@ -10721,22 +10721,28 @@ tail -n+1 ../linux-kernel-module-cheat-regression/*/gem5-bench-build-*.txt This is the critical development parameter, and is dominated by the link time of huge binaries. -In order to benchmark it better, do a run with: +In order to benchmark it better, make a comment only change to: .... -./build-gem5 -v +vim submodules/gem5/src/sim/main.cc +.... + +then rebuild with: + +.... +./build-gem5 --arch aarch64 --verbose .... and then copy the link command to a separate Bash file. Then you can time and modify it easily. -Some approximate refrence values on P51: +Some approximate refrence values on <>: * `opt` -** unmodified: 15 seconds -** hack with `-fwith-ld=gold`: 7.5 seconds. Huge improvement! +** unmodified: 10 seconds +** hack with `-fuse-ld=gold`: 6 seconds. Huge improvement! * `debug` -** unmodified: 30 seconds. Why two times slower than unmodified? -** hack with `-fwith-ld=gold`: `internal error in read_cie, at ../../gold/ehframe.cc:919` on Ubuntu 18.04 all GCC. TODO report. +** unmodified: 14 seconds. Why two times slower than unmodified? +** hack with `-fuse-ld=gold`: `internal error in read_cie, at ../../gold/ehframe.cc:919` on Ubuntu 18.04 all GCC. TODO report. * `fast` ** `--force-lto`: 1 minute. Slower as expected, since more optimizations are done at link time. `--force-lto` is only used for `fast`, and it adds `-flto` to the build.