Phoronix Test Suite っていう、Linux 用のベンチマークツールがあるみたい。
テストスィートのリスト
テストの詳細を見てみる。
テストの実行
エラーが出た。
[root@arizona ~]# yum install ld-linux.so.2
ダウンロードしたテストスィートはキャッシュできる。
暗号処理のテストもある。いろいろなテストがあるなー。
多数の Test Suite をインストール、管理でき、便利そう。
[root@arizona ~]# cat /etc/fedora-release
Fedora release 11 (Leonidas)
yum でインストール
[root@arizona ~]# yum install -y phoronix-test-suite.noarch
テストスィートのリスト
[root@arizona ~]# phoronix-test-suite list-tests
====================================
Phoronix Test Suite - Tests
====================================
bork - Bork File Encrypter [VERIFIED, FREE]
build-apache - Timed Apache Compilation [VERIFIED, FREE]
build-imagemagick - Timed ImageMagick Compilation [VERIFIED, FREE]
build-linux-kernel - Timed Linux Kernel Compilation [VERIFIED, FREE]
build-mplayer - Timed MPlayer Compilation [VERIFIED, FREE]
build-mysql - Timed MySQL Compilation [VERIFIED, FREE]
build-php - Timed PHP Compilation [VERIFIED, FREE]
テストの詳細を見てみる。
[root@arizona ~]# phoronix-test-suite info super-pi
====================================
Super PI 2.0
====================================
Test Version: 1.0.1
Maintainer: Pekka Panula
Test Type: Processor
Software Type: Utility
License Type: NON-FREE
Test Status: VERIFIED
Project Web-Site:
Download Size: 0.07 MB
Environment Size: 1.4 MB
Description: Time how long it takes to calculate pi to varying lengths.
Test Installed: No
Software Dependencies:
- Compiler / Development Libraries
Suites Using This Test:
- computational
- universe
- universe-cli
テストの実行
[root@arizona ~]# phoronix-test-suite benchmark super-pi
====================================
Test Configuration: Super PI
====================================
Digits To Calculate:
1: 1 Million Digits
2: 2 Million Digits
3: 4 Million Digits
4: 8 Million Digits
5: 16 Million Digits
6: 32 Million Digits
Enter Your Choice: 3
Would you like to save these test results (Y/n)? n
====================================
Super PI (Run 1 of 3)
====================================
./super_pi: ./pi: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
エラーが出た。
[root@arizona ~]# yum install ld-linux.so.2
できたー。
[root@arizona ~]# phoronix-test-suite benchmark super-pi
====================================
Test Configuration: Super PI
====================================
Digits To Calculate:
1: 1 Million Digits
2: 2 Million Digits
3: 4 Million Digits
4: 8 Million Digits
5: 16 Million Digits
6: 32 Million Digits
Enter Your Choice: 1 <- 百万桁
Would you like to save these test results (Y/n)? n
====================================
Super PI (Run 1 of 3)
====================================
------ Started super_pi run : Tue Mar 2 01:41:21 JST 2010
------ Ended super_pi run : Tue Mar 2 01:41:52 JST 2010
Version 2.0 of the super_pi for Linux OS
Fortran source program was translated into C program with version 19981204 of
f2c, then generated C source program was optimized manually.
pgcc 3.2-3 with compile option of "-fast -tp px -Mbuiltin -Minline=size:1000 -Mnoframe -Mnobounds -Mcache_align -Mdalign -Mnoreentrant" was used for the
compilation.
Start of PI calculation up to 1048576 decimal digits
End of initialization. Time= 0.434 Sec.
I= 1 L= 0 Time= 1.353 Sec.
I= 2 L= 0 Time= 1.535 Sec.
I= 3 L= 1 Time= 1.534 Sec.
I= 4 L= 2 Time= 1.552 Sec.
I= 5 L= 5 Time= 1.538 Sec.
I= 6 L= 10 Time= 1.537 Sec.
I= 7 L= 21 Time= 1.534 Sec.
I= 8 L= 43 Time= 1.542 Sec.
I= 9 L= 87 Time= 1.535 Sec.
I=10 L= 174 Time= 1.535 Sec.
I=11 L= 349 Time= 1.533 Sec.
I=12 L= 698 Time= 1.531 Sec.
I=13 L= 1396 Time= 1.536 Sec.
I=14 L= 2794 Time= 1.527 Sec.
I=15 L= 5588 Time= 1.534 Sec.
I=16 L= 11176 Time= 1.527 Sec.
I=17 L= 22353 Time= 1.507 Sec.
I=18 L= 44707 Time= 1.465 Sec.
I=19 L= 89415 Time= 1.361 Sec.
End of main loop
End of calculation. Time= 30.372 Sec.
End of data output. Time= 0.148 Sec.
Total calculation(I/O) time= 30.520( 0.962) Sec.
====================================
Super PI (Run 2 of 3)
====================================
------ Started super_pi run : Tue Mar 2 01:41:54 JST 2010
------ Ended super_pi run : Tue Mar 2 01:42:25 JST 2010
Version 2.0 of the super_pi for Linux OS
Fortran source program was translated into C program with version 19981204 of
f2c, then generated C source program was optimized manually.
pgcc 3.2-3 with compile option of "-fast -tp px -Mbuiltin -Minline=size:1000 -Mnoframe -Mnobounds -Mcache_align -Mdalign -Mnoreentrant" was used for the
compilation.
Start of PI calculation up to 1048576 decimal digits
End of initialization. Time= 0.416 Sec.
I= 1 L= 0 Time= 1.279 Sec.
I= 2 L= 0 Time= 1.500 Sec.
I= 3 L= 1 Time= 1.501 Sec.
I= 4 L= 2 Time= 1.510 Sec.
I= 5 L= 5 Time= 1.509 Sec.
I= 6 L= 10 Time= 1.505 Sec.
I= 7 L= 21 Time= 1.504 Sec.
I= 8 L= 43 Time= 1.508 Sec.
I= 9 L= 87 Time= 1.506 Sec.
I=10 L= 174 Time= 1.508 Sec.
I=11 L= 349 Time= 1.504 Sec.
I=12 L= 698 Time= 1.509 Sec.
I=13 L= 1396 Time= 1.504 Sec.
I=14 L= 2794 Time= 1.500 Sec.
I=15 L= 5588 Time= 1.498 Sec.
I=16 L= 11176 Time= 1.494 Sec.
I=17 L= 22353 Time= 1.475 Sec.
I=18 L= 44707 Time= 1.432 Sec.
I=19 L= 89415 Time= 1.310 Sec.
End of main loop
End of calculation. Time= 29.663 Sec.
End of data output. Time= 0.145 Sec.
Total calculation(I/O) time= 29.808( 0.982) Sec.
====================================
Super PI (Run 3 of 3)
====================================
------ Started super_pi run : Tue Mar 2 01:42:27 JST 2010
------ Ended super_pi run : Tue Mar 2 01:42:58 JST 2010
Version 2.0 of the super_pi for Linux OS
Fortran source program was translated into C program with version 19981204 of
f2c, then generated C source program was optimized manually.
pgcc 3.2-3 with compile option of "-fast -tp px -Mbuiltin -Minline=size:1000 -Mnoframe -Mnobounds -Mcache_align -Mdalign -Mnoreentrant" was used for the
compilation.
Start of PI calculation up to 1048576 decimal digits
End of initialization. Time= 0.427 Sec.
I= 1 L= 0 Time= 1.323 Sec.
I= 2 L= 0 Time= 1.514 Sec.
I= 3 L= 1 Time= 1.509 Sec.
I= 4 L= 2 Time= 1.523 Sec.
I= 5 L= 5 Time= 1.515 Sec.
I= 6 L= 10 Time= 1.516 Sec.
I= 7 L= 21 Time= 1.519 Sec.
I= 8 L= 43 Time= 1.526 Sec.
I= 9 L= 87 Time= 1.504 Sec.
I=10 L= 174 Time= 1.512 Sec.
I=11 L= 349 Time= 1.505 Sec.
I=12 L= 698 Time= 1.508 Sec.
I=13 L= 1396 Time= 1.506 Sec.
I=14 L= 2794 Time= 1.500 Sec.
I=15 L= 5588 Time= 1.504 Sec.
I=16 L= 11176 Time= 1.490 Sec.
I=17 L= 22353 Time= 1.476 Sec.
I=18 L= 44707 Time= 1.437 Sec.
I=19 L= 89415 Time= 1.341 Sec.
End of main loop
End of calculation. Time= 29.849 Sec.
End of data output. Time= 0.144 Sec.
Total calculation(I/O) time= 29.993( 1.037) Sec.
#####################################
Super PI:
Digits To Calculate: 1 Million Digits
30.520 Seconds
29.808 Seconds
29.993 Seconds
Average: 30.10 Seconds
#####################################
[root@arizona ~]#
CPU使ってるー。
[root@arizona download-cache]# top -b -n 1
top - 01:42:29 up 1:20, 3 users, load average: 1.01, 0.66, 0.38
Tasks: 173 total, 2 running, 171 sleeping, 0 stopped, 0 zombie
Cpu(s): 5.6%us, 2.1%sy, 0.2%ni, 90.1%id, 2.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 4018048k total, 1640756k used, 2377292k free, 101816k buffers
Swap: 8387220k total, 0k used, 8387220k free, 809496k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
7557 root 20 0 6436 4836 600 R 96.4 0.1 0:01.76 pi
ダウンロードしたテストスィートはキャッシュできる。
これを他のサーバにコピーすれば、ダウンロードする必要がなくなる。
テストを実行後、make-download-cache を実行すると、test suite が保存される。
# phoronix-test-suite make-download-cache
[root@arizona download-cache]# pwd
/root/.phoronix-test-suite/download-cache
[root@arizona download-cache]# ls
pts-download-cache.xml super_pi.tar.gz
暗号処理のテストもある。いろいろなテストがあるなー。
結構おもしろそう。
# phoronix-test-suite benchmark openssl
Would you like to save these test results (Y/n)? n
====================================
OpenSSL (Run 1 of 4)
====================================
Forked child 0
+DTP:4096:private:rsa:10
+DTP:4096:private:rsa:10
+R1:445:4096:10.01
+R1:439:4096:10.02
+DTP:4096:public:rsa:10
+DTP:4096:public:rsa:10
+R2:29619:4096:10.00
Forked child 1
Got: +F2:3:4096:0.022497:0.000345 from 0
Got: +F2:3:4096:0.022820:0.000338 from 1
OpenSSL 0.9.8k 25 Mar 2009
built on: Tue Mar 2 01:49:44 JST 2010
options:bn(64,64) md2(int) rc4(8x,int) des(idx,cisc,16,int) aes(partial) idea(int) blowfish(ptr2)
compiler: gcc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM
available timing options: TIMES TIMEB HZ=100 [sysconf value]
timing function used:
sign verify sign/s verify/s
rsa 4096 bits 0.011329s 0.000171s 88.3 5857.1
====================================
OpenSSL (Run 2 of 4)
====================================
Forked child 0
+DTP:4096:private:rsa:10
+DTP:4096:private:rsa:10
+R1:441:4096:10.00
+DTP:4096:public:rsa:10
+R1:454:4096:10.02
+DTP:4096:public:rsa:10
+R2:29205:4096:10.00
+R2:29525:4096:10.00
Forked child 1
Got: +F2:3:4096:0.022683:0.000342 from 0
Got: +F2:3:4096:0.022064:0.000339 from 1
OpenSSL 0.9.8k 25 Mar 2009
built on: Tue Mar 2 01:49:44 JST 2010
options:bn(64,64) md2(int) rc4(8x,int) des(idx,cisc,16,int) aes(partial) idea(int) blowfish(ptr2)
compiler: gcc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM
available timing options: TIMES TIMEB HZ=100 [sysconf value]
timing function used:
sign verify sign/s verify/s
rsa 4096 bits 0.011185s 0.000170s 89.4 5873.8
====================================
OpenSSL (Run 3 of 4)
====================================
Forked child 0
+DTP:4096:private:rsa:10
+DTP:4096:private:rsa:10
+R1:448:4096:10.00
+DTP:4096:public:rsa:10
+R1:448:4096:10.02
+DTP:4096:public:rsa:10
+R2:28452:4096:10.00
+R2:27848:4096:10.00
Forked child 1
Got: +F2:3:4096:0.022330:0.000351 from 0
Got: +F2:3:4096:0.022364:0.000359 from 1
OpenSSL 0.9.8k 25 Mar 2009
built on: Tue Mar 2 01:49:44 JST 2010
options:bn(64,64) md2(int) rc4(8x,int) des(idx,cisc,16,int) aes(partial) idea(int) blowfish(ptr2)
compiler: gcc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM
available timing options: TIMES TIMEB HZ=100 [sysconf value]
timing function used:
sign verify sign/s verify/s
rsa 4096 bits 0.011173s 0.000177s 89.5 5634.5
====================================
OpenSSL (Run 4 of 4)
====================================
Forked child 0
+DTP:4096:private:rsa:10
+DTP:4096:private:rsa:10
+R1:455:4096:10.01
+DTP:4096:public:rsa:10
+R1:446:4096:10.01
+DTP:4096:public:rsa:10
+R2:29314:4096:10.00
+R2:27251:4096:10.00
Forked child 1
Got: +F2:3:4096:0.021998:0.000341 from 0
Got: +F2:3:4096:0.022437:0.000367 from 1
OpenSSL 0.9.8k 25 Mar 2009
built on: Tue Mar 2 01:49:44 JST 2010
options:bn(64,64) md2(int) rc4(8x,int) des(idx,cisc,16,int) aes(partial) idea(int) blowfish(ptr2)
compiler: gcc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM
available timing options: TIMES TIMEB HZ=100 [sysconf value]
timing function used:
sign verify sign/s verify/s
rsa 4096 bits 0.011108s 0.000177s 90.0 5657.3
####################################
OpenSSL:
RSA 4096-bit Performance
88.3 Signs Per Second
89.4 Signs Per Second
89.5 Signs Per Second
90.0 Signs Per Second
Average: 89.30 Signs Per Second
####################################
[root@arizona ~]# top -b -n 1
top - 01:53:05 up 1:31, 3 users, load average: 1.12, 0.73, 0.48
Tasks: 174 total, 3 running, 171 sleeping, 0 stopped, 0 zombie
Cpu(s): 7.0%us, 2.3%sy, 0.2%ni, 88.7%id, 1.8%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 4018048k total, 1745500k used, 2272548k free, 108164k buffers
Swap: 8387220k total, 0k used, 8387220k free, 874292k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
13880 root 20 0 7856 916 644 R 96.5 0.0 0:02.29 openssl
13881 root 20 0 7860 920 644 R 96.5 0.0 0:02.30 openssl
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.