首頁 繪圖設計 工作閒聊 比賽活動 美術討論 標籤 圖片
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 time
Copy:        4186.3548       0.0078       0.0076       0.0083
Scale:       3886.7650       0.0083       0.0082       0.0085
Add:         4990.6159       0.0097       0.0096       0.0098
Triad:       4618.8864       0.0105       0.0104       0.0105

# hdparm -T /dev/xvda
Timing cached reads:   12992 MB in  1.99 seconds = 6532.85 MB/sec

# /proc/meminfo
Memory Consumed After First Boot: 80 ~ 90 MB @ 32-bit

#
# Apache Performance Test (avg 4.996 ms)
#
Concurrency Level:      32
Time taken for tests:   163.706 seconds
Complete requests:      1048576
Failed requests:        0
Write errors:0
Total transferred:      475004928 bytes
HTML transferred:       185597952 bytes
Requests 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] received

Connection 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    3559
Total:             1    5  49.7      2    3559

Percentage 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 time
Copy:        7376.6270       0.0046       0.0043       0.0049
Scale:       6719.9583       0.0049       0.0048       0.0051
Add:         7432.5910       0.0067       0.0065       0.0073
Triad:       7363.0030       0.0069       0.0065       0.0078


# hdparm -T /dev/xvda
Timing cached reads:   13896 MB in  1.99 seconds = 6997.52 MB/sec

# /proc/meminfo
Memory Consumed After First boot: 120 ~ 140 MB @ 64-bit

#
# Apache Performance Test (avg 4.996 ms)
#
Concurrency Level:      32
Time taken for tests:   164.303 seconds
Complete requests:      1048576
Failed requests:        0
Write errors:           0
Total transferred:      475004928 bytes
HTML transferred:       185597952 bytes
Requests 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] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    3  38.7      1    1022
Processing:     0    2  12.9      2    2882
Waiting:        0    2  12.4      1    2882
Total:          1    5  40.9      3    2883

Percentage 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 first
Memory >= 4GB :: Try 64-bit Distro first

Do 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,511 views)
[更多討論] 討論區 Windows, Linux, Perl, PHP, C/C++, Driver, Web 理論、應用、硬體、軟體




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

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