Date: Thu, 11 Jun 2015 12:28:42 +0800 From: Jia-Shiun Li <jiashiun@gmail.com> To: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Subject: cpu accounting wrong on rpi2 Message-ID: <CAHNYxxNhVM0Bb-=zq2KuhLhAtdMtBVDBTYz7rk_43tCsYUrEqg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi all, just noticed that cpu accounting is kind of strange on rpi2. It shows 15x CPU time. jsli@rpi2:/usr/ports/ports-mgmt/pkg # uname -a FreeBSD rpi2 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r284150: Tue Jun 9 01:45:25 CST 2015 jsli@4cbsd:/usr/obj/arm.armv6/usr/src/sys/RPI2 arm jsli@rpi2:/usr/ports/ports-mgmt/pkg # /usr/bin/time make -DBATCH configure ===> License BSD2CLAUSE accepted by the user ===> Fetching all distfiles required by pkg-1.5.3 for building ===> Extracting for pkg-1.5.3 ===> License BSD2CLAUSE accepted by the user ===> Fetching all distfiles required by pkg-1.5.3 for building => SHA256 Checksum OK for pkg-1.5.3.tar.xz. ===> Patching for pkg-1.5.3 ===> Configuring for pkg-1.5.3 configure: loading site script /usr/ports/Templates/config.site ... 504.315u 967.338s 1:38.94 1487.4% 806+15k 0+102io 0pf+0w jsli@rpi2:/usr/ports/ports-mgmt/pkg # I am sure I don't have 16 cores on this tiny piece (though I wish.) And setting it to 900MHz is even more fun: jsli@rpi2:/usr/ports/ports-mgmt/pkg # sysctl dev.cpu.0.freq=900 dev.cpu.0.freq: 600 -> 900 jsli@rpi2:/usr/ports/ports-mgmt/pkg # time make -DBATCH configure ... 908.565u 1307.358s 1:10.65 3136.4% 377+7k 0+103io 0pf+0w jsli@rpi2:/usr/ports/ports-mgmt/pkg # It seems fine for the same revision on amd64. jsli@4cbsd:/usr/ports/ports-mgmt/pkg # sysctl -a|grep i5 hw.model: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz jsli@4cbsd:/usr/ports/ports-mgmt/pkg # uname -a FreeBSD 4cbsd 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r284150: Mon Jun 8 21:03:55 CST 2015 jsli@4cbsd:/usr/obj/usr/src/sys/Minimal-NODEBUG amd64 jsli@4cbsd:/usr/ports/ports-mgmt/pkg # time make -DBATCH configure ... 2.934u 1.743s 0:04.54 102.8% 15211+266k 0+105io 0pf+0w jsli@4cbsd:/usr/ports/ports-mgmt/pkg # -Jia-Shiun
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHNYxxNhVM0Bb-=zq2KuhLhAtdMtBVDBTYz7rk_43tCsYUrEqg>