Chinaunix首页 | 论坛 | 博客
  • 博客访问: 75641
  • 博文数量: 18
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 200
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-20 17:43
个人简介

生活的本质不是索取而是奋斗

文章分类

全部博文(18)

文章存档

2017年(4)

2016年(14)

我的朋友

分类: 云计算

2016-11-24 13:51:08

硬件信息
百度云
CentOS常用命令查看cpu
[root@instance-du4mdoc8 www]# more /proc/cpuinfo |grep "model name" 
model name : Intel Xeon E312xx (Sandy Bridge) 
model name : Intel Xeon E312xx (Sandy Bridge)
CentOS常用命令查看内存
[root@instance-du4mdoc8 www]# cat /proc/meminfo |grep MemTotal 
MemTotal: 3922724 kB
查看CPU位数(32 or 64)
[root@instance-du4mdoc8 www]# getconf LONG_BIT 
64
使用CentOS常用命令查看内核版本
[root@instance-du4mdoc8 www]# uname -r 
2.6.32-431.el6.x86_64 
[root@instance-du4mdoc8 www]# uname -a 
Linux instance-du4mdoc8.novalocal 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux


微软云
CentOS常用命令查看cpu
[root@ftpcentos ~]# more /proc/cpuinfo |grep "model name" 
model name : Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz 
model name : Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz 
CentOS常用命令查看内存
[root@ftpcentos ~]# cat /proc/meminfo |grep MemTotal 
MemTotal: 3398836 kB
查看CPU位数(32 or 64)
[root@instance-du4mdoc8 www]# getconf LONG_BIT 
64
使用CentOS常用命令查看内核版本
[root@ftpcentos ~]# uname -r 
2.6.32-431.17.1.el6.x86_64 
[root@ftpcentos ~]# uname -a 
Linux ftpcentos 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux


百度云测试
Unixbench测试结果
========================================================================
   BYTE UNIX Benchmarks (Version 5.1.3)

   System: instance-du4mdoc8.novalocal: GNU/Linux
   OS: GNU/Linux -- 2.6.32-431.el6.x86_64 -- #1 SMP Fri Nov 22 03:15:09 UTC 2013
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel Xeon E312xx (Sandy Bridge) (4200.0 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 1: Intel Xeon E312xx (Sandy Bridge) (4200.0 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   15:48:38 up 1:03, 2 users, load average: 0.25, 0.22, 0.17; runlevel 3

------------------------------------------------------------------------



Benchmark Run: Thu Sep 25 2014 16:16:41 - 16:44:54
2 CPUs in system; running 2 parallel copies of tests

Dhrystone 2 using register variables 46929664.8 lps (10.0 s, 7 samples)
Double-Precision Whetstone 5051.9 MWIPS (9.9 s, 7 samples)
Execl Throughput 6466.6 lps (29.5 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 876605.1 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 204122.0 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 2423540.4 KBps (30.0 s, 2 samples)
Pipe Throughput 2657202.2 lps (10.0 s, 7 samples)
Pipe-based Context Switching 472662.9 lps (10.0 s, 7 samples)
Process Creation 19399.7 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 7781.3 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 1063.0 lpm (60.1 s, 2 samples)
System Call Overhead 2675747.2 lps (10.0 s, 7 samples)

System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 46929664.8 4021.4
Double-Precision Whetstone 55.0 5051.9 918.5
Execl Throughput 43.0 6466.6 1503.9
File Copy 1024 bufsize 2000 maxblocks 3960.0 876605.1 2213.6
File Copy 256 bufsize 500 maxblocks 1655.0 204122.0 1233.4
File Copy 4096 bufsize 8000 maxblocks 5800.0 2423540.4 4178.5
Pipe Throughput 12440.0 2657202.2 2136.0
Pipe-based Context Switching 4000.0 472662.9 1181.7
Process Creation 126.0 19399.7 1539.7
Shell Scripts (1 concurrent) 42.4 7781.3 1835.2
Shell Scripts (8 concurrent) 6.0 1063.0 1771.7
System Call Overhead 15000.0 2675747.2     1783.8
                                                                   ========
System Benchmarks Index Score 1831.9



azure 测试结果


========================================================================
   BYTE UNIX Benchmarks (Version 5.1.3)

   System: ftpcentos: GNU/Linux
   OS: GNU/Linux -- 2.6.32-431.17.1.el6.x86_64 -- #1 SMP Wed May 7 23:32:49 UTC 2014
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz (4400.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 1: Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz (4400.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   08:01:36 up 44 min, 2 users, load average: 0.47, 0.21, 0.20; runlevel 3



Benchmark Run: Thu Sep 25 2014 08:29:40 - 08:57:48
2 CPUs in system; running 2 parallel copies of tests

Dhrystone 2 using register variables 28702039.0 lps (10.0 s, 7 samples)
Double-Precision Whetstone 3098.3 MWIPS (9.9 s, 7 samples)
Execl Throughput 2461.0 lps (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 415432.1 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 118452.3 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 1138118.7 KBps (30.0 s, 2 samples)
Pipe Throughput 1310569.1 lps (10.0 s, 7 samples)
Pipe-based Context Switching 295743.9 lps (10.0 s, 7 samples)
Process Creation 11374.5 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 3968.2 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 529.1 lpm (60.1 s, 2 samples)
System Call Overhead 1797204.3 lps (10.0 s, 7 samples)

System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 28702039.0 2459.5
Double-Precision Whetstone 55.0 3098.3 563.3
Execl Throughput 43.0 2461.0 572.3
File Copy 1024 bufsize 2000 maxblocks 3960.0 415432.1 1049.1
File Copy 256 bufsize 500 maxblocks 1655.0 118452.3 715.7
File Copy 4096 bufsize 8000 maxblocks 5800.0 1138118.7 1962.3
Pipe Throughput 12440.0 1310569.1 1053.5
Pipe-based Context Switching 4000.0 295743.9 739.4
Process Creation 126.0 11374.5 902.7
Shell Scripts (1 concurrent) 42.4 3968.2 935.9
Shell Scripts (8 concurrent) 6.0 529.1 881.8
System Call Overhead 15000.0 1797204.3      1198.1
                                                                   ========
System Benchmarks Index Score        982.8




IO测试

Orion安装与配置

azure 微软云中
./orion_linux_x86-64 -run advanced -size_small 4 -verbose 
进行4K大小的随机读和1M大小连续读


[root@ftpcentos ~]# cat orion_20140925_1356_summary.txt 
ORION VERSION 11.1.0.7.0 

Commandline: 
-run advanced -size_small 4 -verbose 

This maps to this test: 
Test: orion 
Small IO size: 4 KB 
Large IO size: 1024 KB 
IO Types: Small Random IOs, Large Random IOs 
Simulated Array Type: CONCAT 
Write: 0% 
Cache Size: Not Entered 
Duration for each Data Point: 60 seconds 
Small Columns:, 0 
Large Columns:, 0, 1, 2 
Total Data Points: 8 

Name: /dev/sdc1 Size: 53686370304 
1 FILEs found. 

Maximum Large MBPS=57.37 @ Small=0 and Large=2 
Maximum Small IOPS=504 @ Small=3 and Large=0 
Minimum Small Latency=4.24 @ Small=2 and Large=0


执行写测试,该测试会进行4K大小的随机写和1M大小连续写

./orion_linux_x86-64 -run advanced -size_small 4 -write 100 -verbose


[root@ftpcentos ~]# cat orion_20140925_1417_summary.txt 
ORION VERSION 11.1.0.7.0 

Commandline: 
-run advanced -size_small 4 -write 100 -verbose 

This maps to this test: 
Test: orion 
Small IO size: 4 KB 
Large IO size: 1024 KB 
IO Types: Small Random IOs, Large Random IOs 
Simulated Array Type: CONCAT 
Write: 100% 
Cache Size: Not Entered 
Duration for each Data Point: 60 seconds 
Small Columns:, 0 
Large Columns:, 0, 1, 2 
Total Data Points: 8 

Name: /dev/sdc1 Size: 53686370304 
1 FILEs found. 

Maximum Large MBPS=56.02 @ Small=0 and Large=2 
Maximum Small IOPS=506 @ Small=3 and Large=0 
Minimum Small Latency=5.10 @ Small=2 and Large=0






百度云vm
./orion_linux_x86-64 -run advanced -size_small 4 -verbose 
进行4K大小的随机读和1M大小连续读



[root@instance-du4mdoc8 ~]# cat orion_20140925_2242_summary.txt 
ORION VERSION 11.1.0.7.0 

Commandline: 
-run advanced -size_small 4 -verbose 

This maps to this test: 
Test: orion 
Small IO size: 4 KB 
Large IO size: 1024 KB 
IO Types: Small Random IOs, Large Random IOs 
Simulated Array Type: CONCAT 
Write: 0% 
Cache Size: Not Entered 
Duration for each Data Point: 60 seconds 
Small Columns:, 0 
Large Columns:, 0, 1, 2 
Total Data Points: 8 

Name: /dev/vdc5 Size: 53687337984 
1 FILEs found. 

Maximum Large MBPS=174.52 @ Small=0 and Large=2 
Maximum Small IOPS=3724 @ Small=5 and Large=0 
Minimum Small Latency=0.93 @ Small=1 and Large=0



执行写测试,该测试会进行4K大小的随机写和1M大小连续写

./orion_linux_x86-64 -run advanced -size_small 4 -write 100 -verbose

[root@instance-du4mdoc8 ~]# cat orion_20140925_2252_summary.txt 
ORION VERSION 11.1.0.7.0 

Commandline: 
-run advanced -size_small 4 -write 100 -verbose 

This maps to this test: 
Test: orion 
Small IO size: 4 KB 
Large IO size: 1024 KB 
IO Types: Small Random IOs, Large Random IOs 
Simulated Array Type: CONCAT 
Write: 100% 
Cache Size: Not Entered 
Duration for each Data Point: 60 seconds 
Small Columns:, 0 
Large Columns:, 0, 1, 2 
Total Data Points: 8 

Name: /dev/vdc5 Size: 53687337984 
1 FILEs found. 

Maximum Large MBPS=86.77 @ Small=0 and Large=2 
Maximum Small IOPS=3039 @ Small=5 and Large=0 
Minimum Small Latency=1.31 @ Small=1 and Large=0



dd  测试IO

查看分区情况
[root@instance-du4mdoc8 test]# ll -h 
total 3.1G 
-rw-r--r-- 1 root root 1.0G Sep 25 15:38 aa 
-rw-r--r-- 1 root root 1.0G Sep 25 15:40 bb 
-rw-r--r-- 1 root root 1.0G Sep 25 15:41 cc 
drwx------ 2 root root 16K Sep 25 15:35 lost+found 
[root@instance-du4mdoc8 test]# pwd 
/test 
[root@instance-du4mdoc8 test]# mount |grep test 
/dev/vdc5 on /test type ext3 (rw)
[root@instance-du4mdoc8 ~]# df -hT 
Filesystem Type Size Used Avail Use% Mounted on 
/dev/vda1 ext4 20G 842M 18G 5% / 
tmpfs tmpfs 1.9G 0 1.9G 0% /dev/shm 
/dev/vdb ext4 97G 3.2G 89G 4% /home 
/dev/vdc5 ext3 50G 180M 47G 1% /test

VDB为本地磁盘,VDC为CDS磁盘

分区格式化,查看挂载点
[root@instance-du4mdoc8 ~]# mount 
/dev/vda1 on / type ext4 (rw) 
proc on /proc type proc (rw) 
sysfs on /sys type sysfs (rw) 
devpts on /dev/pts type devpts (rw,gid=5,mode=620) 
tmpfs on /dev/shm type tmpfs (rw) 
/dev/vdb on /home type ext4 (rw) 
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) 
/dev/vdc5 on /test type ext3 (rw)

[root@instance-du4mdoc8 home]# time dd if=/dev/zero of=aa bs=64k count=16K conv=fsync 
16384+0 records in 
16384+0 records out 
1073741824 bytes (1.1 GB) copied, 1.64242 s, 654 MB/s 

real 0m1.644s 
user 0m0.011s 
sys 0m1.306s

[root@instance-du4mdoc8 home]# time dd if=aa of=cc bs=64k count=16K conv=fsync 
16384+0 records in 
16384+0 records out 
1073741824 bytes (1.1 GB) copied, 1.7338 s, 619 MB/s 

real 0m1.735s 
user 0m0.008s 
sys 0m1.410s


[root@instance-du4mdoc8 ~]# time dd if=/dev/zero of=aa bs=64k count=16K conv=fsync 
16384+0 records in 
16384+0 records out 
1073741824 bytes (1.1 GB) copied, 1.36705 s, 785 MB/s 

real 0m1.370s 
user 0m0.002s 
sys 0m1.069s


VDC为CDS磁盘
[root@instance-du4mdoc8 test]# time dd if=/dev/zero of=aa bs=64k count=16K conv=fsync 
16384+0 records in 
16384+0 records out 
1073741824 bytes (1.1 GB) copied, 21.7619 s, 49.3 MB/s 

real 0m21.765s 
user 0m0.008s 
sys 0m1.667s

[root@instance-du4mdoc8 test]# pwd 
/test 
[root@instance-du4mdoc8 test]# ll -h 
total 1.1G 
-rw-r--r-- 1 root root 1.0G Sep 25 15:38 aa


[root@instance-du4mdoc8 test]# time dd if=aa of=cc bs=64k count=16K conv=fsync 
16384+0 records in 
16384+0 records out 
1073741824 bytes (1.1 GB) copied, 24.8227 s, 43.3 MB/s 

real 0m24.827s 
user 0m0.006s 
sys 0m1.970s 



azure  微软云
[root@ftpcentos test]# pwd 
/test 
[root@ftpcentos test]# mount |grep test 
/dev/sdb1 on /test type ext4 (rw) 
[root@ftpcentos test]# df -hT |grep test 
/dev/sdb1 ext4 133G 2.2G 124G 2% /test
[root@ftpcentos ~]# time dd if=/dev/zero of=aa bs=64k count=16K conv=fsync 
16384+0 records in 
16384+0 records out 
1073741824 bytes (1.1 GB) copied, 57.0655 s, 18.8 MB/s 

real 0m57.102s 
user 0m0.013s 
sys 0m1.847s


[root@ftpcentos test]# time dd if=/dev/zero of=aa bs=64k count=16K conv=fsync 
16384+0 records in 
16384+0 records out 
1073741824 bytes (1.1 GB) copied, 23.6097 s, 45.5 MB/s 

real 0m23.613s 
user 0m0.006s 
sys 0m1.741s




[root@ftpcentos test]# time dd if=aa of=bb bs=64k count=16K conv=fsync 
16384+0 records in 
16384+0 records out 
1073741824 bytes (1.1 GB) copied, 25.099 s, 42.8 MB/s 

real 0m25.102s 
user 0m0.011s 
sys 0m1.943s 



搭建lamp环境,进行负载测试

百度云

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

压力测试

 

 

 

 

 

 

 

 

 

 

 

 

 

Azure 测试压力测试

负载测试

 





阅读(1644) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~