首頁 美術繪圖 | 美術設計 | 熱門標籤 | 首選 | 首頁宣傳 | 近期作品 論壇: 發表 | 美術工作 | 美術比賽 | 展覽活動 | 美術相關 | 一般討論 | 美術同好 CG 討論 :: Photoshop | Painter | 3D 行動 | AMP

【 立即註冊 】 : 更改個人資料 : : 登入

會員名稱: 登入密碼: 保持登入

Performance: 32-bit vs 64-bit uBuntu 12.04 LTS

發表新主題 回覆主題 討論區 Windows, Linux, Perl, PHP, C/C++, Driver, Web 理論、應用、硬體、軟體

| 1頁, 共1
人氣點閱:2259 發表人
Performance: 32-bit vs 64-bit uBuntu 12.04 LTS 2012-09-27 14:04
分類: ✔️STREAM-32-bits ✔️STREAM-64-bits
個人: ✔️STREAM-32-bits ✔️STREAM-64-bits
/ / /

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.

________________

美術插畫設計案子報價系統 v0.1 Beta
爪哇禾雀
Type



繪圖畫廊設計藝廊
攝影相簿留言板
最愛收藏分類標籤
暱稱: Type
註冊: 2002-11-30
發表: 11172
來自: vovo2000.com
V幣: 901758





資訊相關理論、技術、管理、應用、產品等
發表新主題 回覆主題