Power Architecture cloud small machine test notes
Power Architecture cloud small machine test notes
I. Introduction to cloud mini-hosts
Cloud small machine is an excellent virtual cloud host launched by IBM and qichuang. Unlike Common cloud hosts such as Alibaba, Baidu, and chinanetcenter, cloud small machine is based on the Power architecture, traditional VM instances are basically based on the x86 architecture. I have the honor to apply for a cloud small machine. Next I will test all aspects of the cloud small machine.
Ii. Hardware
First, we need to make a thorough understanding of the physical hardware configured for the cloud small machine.
1. view the OS of a cloud Small Machine
- # cat /proc/version
- Linux version 2.6.32-431.el6.ppc64 (mockbuild@ppc-003.build.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Sun Nov 10 22:17:43 EST 2013
We can see that OS is RedHat Linux.
- # lsb_release -a
- LSB Version::base-4.0-noarch:base-4.0-ppc64:core-4.0-noarch:core-4.0-ppc64:graphics-4.0-noarch:graphics-4.0-ppc64:printing-4.0-noarch:printing-4.0-ppc64
- Distributor ID:RedHatEnterpriseServer
- Description:Red Hat Enterprise Linux Server release 6.5 (Santiago)
- Release:6.5
- Codename:Santiago
As you can see, the cloud host is pre-installed with the RedHat 6.5 Enterprise Edition Linux system.
- # uname -r
- 2.6.32-431.el6.ppc64
- # uname -m
- ppc64
It can be seen that the cloud small machine is based on the Power architecture, and the CPU is 64-bit CPU.
2. View CPU Information
- # cat /proc/cpuinfo
- processor: 0
- cpu: POWER7 (architected), altivec supported
- clock: 4228.000000MHz
- revision: 2.1 (pvr 004a 0201)
- ......
- processor: 7
- cpu: POWER7 (architected), altivec supported
- clock: 4228.000000MHz
- revision: 2.1 (pvr 004a 0201)
- timebase: 512000000
- platform: pSeries
- model: IBM,8246-L2T
- machine: CHRP IBM,8246-L2T
It can be seen that there are 8 logical CPUs for the cloud small machine, that is, 8 cores and 4 GHz.
3. view memory information
- # cat /proc/meminfo
- MemTotal: 4131712 kB
- MemFree: 1226560 kB
- ......
It can be seen that the memory of the cloud small machine is 4 GB.
4. View hard disk Information
- # fdisk -l
- Disk /dev/sda: 42.9 GB, 42949672960 bytes
- 64 heads, 32 sectors/track, 40960 cylinders
- ......
It can be seen that the disk space of the cloud small machine is about 43 GB.
5. view the real-time running status of a VM instance
- # top
- top - 12:10:36 up 13 days, 4:50, 1 user, load average: 0.02, 0.05, 0.04
- Tasks: 193 total, 1 running, 192 sleeping, 0 stopped, 0 zombie
- Cpu(s): 0.2%us, 0.1%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
- Mem: 4131712k total, 2906432k used, 1225280k free, 225600k buffers
- Swap: 1048448k total, 0k used, 1048448k free, 2258048k cached
We can see that the CPU is basically idle, and the memory uses 3 GB, with 1 GB left.
Summary:
1) Because cloud small machines are powered, the RPM packages of most Linux tools cannot be installed, because the RPM packages provided by most tools are x86. In this case, the software must be installed through the source code.
2) if the system is RedHat Linux and the cloud host is not registered, the following error will be reported when you use the yum Installation tool.
This system is not registered to Red Hat sub‑management. You can use sub‑manager to register.
There are two solutions:
First, register an ECS instance to Make yum available.
Second, replace the yum source with the yum source of CentOS.
3) The Power ecosystem is weak, and x86 content is everywhere on the Internet.
CentOS has poor support for the Power architecture. Basically, the source and image cannot be downloaded from the official website or in China.
--------------------------
The following content is incomplete and will be revised after the O & M personnel install gcc.
6. Test the bandwidth of a VM instance.
# Wget downinfo.myhostadmin.net/vnstat-1.10.tar.gz
# Tar xzvf vnstat-1.10.tar.gz
# Cd vnstat-1.10
# Make & make install
Common traffic query commands:
# Vnstat-l-I eth0 view real-time traffic
# Vnstat-tr-I eth0 view the average traffic in the last five seconds
Iii. Performance Testing of cloud Small Machine
In view of the above situation, it is best not to test systems or applications that occupy a lot of memory on the cloud small machine, otherwise it is difficult to obtain objective test results. For example, the performance of MongoDB depends largely on the memory size. When the memory is limited, it is difficult for MongoDB to fully utilize its performance.
1. File System I/O Benchmark Test
I chose IOzone.
Home: http://www.iozone.org/
Download IOzone
# Wget http://www.iozone.org/src/current/iozone-3-430.src.rpm
Install IOzone
# Rpm-ivh iozone-3-430.src.rpm
Start testing
# Cd/opt/iozone/bin
#./Iozone (detailed parameters later)
To be continued ......