# cat /etc/make.conf # These settings were set by the catalyst build script that automatically # built this stage. # Please consult /etc/make.conf.example for a more detailed example. CFLAGS="-O2 -march=athlon-xp -pipe" CXXFLAGS="-O2 -march=athlon-xp -pipe" # WARNING: Changing your CHOST is not something that should be done lightly. # Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing. CHOST="i686-pc-linux-gnu"
Compile linux 2.6.36
ReplyDelete2011-01-22 church simulation 的 gentoo
20 minute 18.659 seconds
Kernel 2.6.37
# emerge --info
Portage 2.1.9.25 (default/linux/x86/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r3, 2.6.37 i686)
=================================================================
System uname: Linux-2.6.37-i686-AMD_Athlon-tm-_XP_2500+-with-gentoo-1.12.14
Timestamp of tree: Sun, 16 Jan 2011 12:15:02 +0000
app-shells/bash: 4.1_p7
dev-lang/python: 2.4.6, 2.6.6-r1, 3.1.2-r4
dev-util/cmake: 2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox: 2.4
sys-devel/autoconf: 2.65-r1
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1-r1
sys-devel/gcc: 4.1.2, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.10
sys-devel/make: 3.81-r2
# cat /etc/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
CFLAGS="-O2 -march=athlon-xp -pipe"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i686-pc-linux-gnu"
GENTOO_MIRRORS="ftp://gentoo.cs.nctu.edu.tw/gentoo/"
SYNC="rsync://rsync.tw.gentoo.org/gentoo-portage"
# Frank Hsieh, 2011-01-16
USE="gd apache2"
real 5m23.856s
ReplyDeleteuser 8m28.460s
sys 0m52.923s
Linux ubuntu-host 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 GNU/Linux
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
CPU0: Intel(R) Core(TM)2 Duo CPU E7400 @ 2.80GHz stepping 0a
使用time make -j 2 all
church server.
ReplyDeletereal 13m3.545s
user 12m8.080s
sys 0m52.610s
Intel(R) Pentium(R) Dual CPU E2180 @ 2.00GHz
Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.11.2-r0, 2.6.25-gentoo-r7 i686)
CFLAGS="-O2 -march=i686 -pipe"
CXXFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
compile linux-2.6.36
註,上列是 make defconfig 但未加 -j2
ReplyDeletechurch server
compile 2.6.36
time make -j2 defconfig
real 7m36.894s
user 13m13.490s
sys 1m0.070s
local server
ReplyDeletecompile 2.6.36
make defconfig
time make all (單核cpu)
real 20m40.746s
user 18m44.058s
sys 1m43.465s
結論:
ReplyDeleteIntel(R) Pentium(R) Dual CPU E2180 的編譯速度是
AMD Athlon(tm) XP 2500+
的 2.71倍
Intel(R) Core(TM)2 Duo CPU E7400 的編譯速度是
AMD Athlon(tm) XP 2500+
的 3.83倍
Intel(R) Core(TM)2 Duo CPU E7400 的編譯速度是
Intel(R) Pentium(R) Dual CPU E2180
的 1.41倍
AMD Athlon(tm) XP 2500+ - 64KB code/64KB data, 512KB L2
Intel(R) Pentium(R) Dual CPU E2180 - 64KB code/64KB data, shared 1MB L2
Intel(R) Core(TM)2 Duo CPU E7400 - 64KB code/64KB data, shared 3MB L2 (8-way set associative)
2.6.36 on 某神秘5開頭CPU
ReplyDeleteuntar
real 3m23.089s
user 2m27.620s
sys 0m21.470s
它 沒有gcc