首頁 繪圖設計 工作閒聊 比賽活動 美術討論 標籤 圖片
Performance: 32-bit vs 64-bit uBuntu 12.04 LTS
Type(Type) 2012/9/27 14:04

32-bit Ubuntu vs 64-bit Ubuntu Performance

Test-Box: Linode Xen Hypervisor VPS Test-OS: uBuntu 12.04 32-bit(x86) vs 64-bit(x86_64)OS-KERN: 3.5.2

32-bit :: Ubuntu 12.04 @ Linode 2048 (Xeon 5520)

代碼:
##STREAM-32-bits Test App (Single Thread)#Function      Rate (MB/s)   Avg time     Min time     Max timeCopy:        4186.3548       0.0078       0.0076       0.0083Scale:       3886.7650       0.0083       0.0082       0.0085Add:         4990.6159       0.0097       0.0096       0.0098Triad:       4618.8864       0.0105       0.0104       0.0105# hdparm -T /dev/xvdaTiming cached reads:   12992 MB in  1.99 seconds = 6532.85 MB/sec # /proc/meminfoMemory Consumed After First Boot: 80 ~ 90 MB @ 32-bit## Apache Performance Test (avg 4.996 ms)#Concurrency Level:      32Time taken for tests:   163.706 secondsComplete requests:      1048576Failed requests:        0Write errors:0Total transferred:      475004928 bytesHTML transferred:       185597952 bytesRequests per second:    6405.26 [#/sec] (mean)Time per request:       4.996 [ms] (mean)Time per request:       0.156 [ms] (mean, across all concurrent requests)Transfer rate:          2833.57 [Kbytes/sec] receivedConnection Times (ms)   min  mean[+/-sd] median   max   Connect:        0    3  46.1      1    1008   Processing:     0    2  18.5      1    3559   Waiting:        0    2  18.3      1    3559Total:             1    5  49.7      2    3559Percentage of the requests served within a certain time (ms)  50%      2  66%      3  75%      3  80%      3  90%      4  95%      5  98%      6  99%      6 100%   3559 (longest request)



64-bit :: Ubuntu 12.04 @ Linode 2048 (Xeon 5520)

代碼:
##STREAM-64-bits Test App (Single Thread)#Function      Rate (MB/s)   Avg time     Min time     Max timeCopy:        7376.6270       0.0046       0.0043       0.0049Scale:       6719.9583       0.0049       0.0048       0.0051Add:         7432.5910       0.0067       0.0065       0.0073Triad:       7363.0030       0.0069       0.0065       0.0078# hdparm -T /dev/xvdaTiming cached reads:   13896 MB in  1.99 seconds = 6997.52 MB/sec# /proc/meminfoMemory Consumed After First boot: 120 ~ 140 MB @ 64-bit## Apache Performance Test (avg 4.996 ms)#Concurrency Level:      32Time taken for tests:   164.303 secondsComplete requests:      1048576Failed requests:        0Write errors:           0Total transferred:      475004928 bytesHTML transferred:       185597952 bytesRequests per second:    6381.96 [#/sec] (mean)Time per request:       5.014 [ms] (mean)Time per request:       0.157 [ms] (mean, across all concurrent requests)Transfer rate:          2823.27 [Kbytes/sec] receivedConnection Times (ms)              min  mean[+/-sd] median   maxConnect:        0    3  38.7      1    1022Processing:     0    2  12.9      2    2882Waiting:        0    2  12.4      1    2882Total:          1    5  40.9      3    2883Percentage of the requests served within a certain time (ms)  50%      3  66%      4  75%      4  80%      4  90%      5  95%      6  98%      6  99%      7 100%   2883 (longest request)

Summary between {32 vs 64} bit OS @ 64-bit CPU

Q: What's the diff?A: Steam-CPU-Test ==> Of course, stream-64-bit got far better result.Memory Consumed ==> 64-bit consumed some more memory.Apache Static Test ==> No Big Difference.Q: My application are 64-bit-ONLY software or CPU/Floating-demand?A: Try 64-bit Distro.Q: My application are gcc/make cross-build for both 32-bit and 64-bit embedded system?A: If there is no memory insufficient or deployment issue, Try 64-bit distro as possible.Q: My application are LAMP/LEMP Web Content Service (Linux/Apache/Nginx/MySQL/PHP)?Ans1: Memory < 4GB :: Try 32-bit Distro firstMemory >= 4GB :: Try 64-bit Distro firstDo some proper test before production, because even LAMP/LEMP Web-Applications varied too;most are I/O or Net-Bandwidth bound, yet some specific ones are CPU-bound.


(1,627 views)
[更多討論] 討論區 Windows, Linux, Perl, PHP, C/C++, Driver, Web 理論、應用、硬體、軟體


"Performance: 32-bit vs 64-bit uBuntu 12.04 LTS" 傳統頁面(電腦版)

首頁 繪圖設計 工作閒聊 比賽活動 美術討論 標籤 圖片
傳統桌面版
© Vovo2000.com Mobile Version 小哈手機版 2019