Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to compare the performance Test of CentOS 6 and CentOS 7

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly analyzes the relevant knowledge points about how to test and compare the performance of CentOS 6 and CentOS 7. The content is detailed and easy to understand, and the operation details are reasonable, so it has a certain reference value. If you are interested, you might as well follow the editor and learn more about "how to compare the performance tests of CentOS 6 and CentOS 7".

Centos7 and centos6 are different from initialization technology, service startup, boot file and so on. This article shares the performance test comparison between centos7 and centos6.

1. CPU test

Tool: stress test of cpu through sysbench

Parameter setting

Prime number: 10000

Test time: 900 seconds

Number of threads: 1, 6, 12, 18, 24, 30, 36, 42

Test using Rui frequency and impractical Rui frequency respectively.

Figure 1: cpu test-events per second

How to look at the picture: the higher the better

The conclusion of this figure:

Cpu performance is basically the same.

CentOS 7 fixed frequency (does not use Rui Frequency) does not improve performance, so there is no need to turn off Rui Frequency

Figure 2: cpu test-standard deviation of event quantity

How to look at the picture: the less the better

The conclusion of this figure:

It can be seen from the standard deviation that CentOS 7 is much more stable in terms of stability (including not using Rui frequency).

two。 Memory test

Tools: stress testing of memory through sysbench

Parameter setting

Reading and writing mode: random

Test time: 900 seconds

Test reading and writing separately

Block size: 4K, 16K, 2m

Threads: 1, 12, 24, 36, 48

Figure 1: memory test-rate

How to look at the picture: the higher the better

The conclusion of this figure:

CentOS 6 and CentOS 7 have the same performance

Figure 2: memory test-standard deviation of event quantity

How to look at the picture: the less the better

The conclusion of this figure:

From the standard deviation, we can see that CentOS 7 is much more stable in terms of stability.

3. IO test

Tool: stress test of io through fio

Parameter setting

Ioengine: libaio

Iodepth: 16

Test time: 900 seconds

File size: 100g

Mode of operation: thread

Caching method: no cache (non-buffered Imaco)

Reading and writing mode: random reading and writing

Block size: test 4K and 16K respectively

Threads: 1, 12, 24, 36, 48

Figure 1: io test-iops

How to look at the picture: the higher the better

The conclusion of this figure:

CentOS 6 (default ext4) is not as good as CentOS 7 (default xfs)

CentOS 6 (default ext4) is inferior to CentOS 6 (xfs)

Figure 2: io test-average read and write latency

How to look at the picture: the less the better

The conclusion of this figure:

The write latency of CentOS 7 is close to that of CentOS 6 (the default ext4)

The read delay of CentOS 7 is much better than that of CentOS 6 (default ext4)

4. OLTP test

Tool: test the performance of the whole machine by tpcc-mysql

Parameter setting

File systems: all xfs

Mysql version: mysql-8.0.12

Tpcc_load:

Warehouse: 100

Sql: create_table.sql 、 add_fkey_idx.sql

Running time: there is no limit, running for nearly 1 hour

Tpcc_start:

Warehouse: 100

Warmup: 300s

Running time: 1800 seconds

Number of threads: 16,32,64,128,256,512, 1024

> figure: oltp Test-tpmc

How to look at the picture: the higher the better

The conclusion of this figure:

CentOS 7 is higher than CentOS 6 (default ext4)

5. Summary / CentOS 6 (ext4) vs CentOS 7 (xfs) cpu-events per second tie cpu-event quantity standard deviation CentOS 7 winmem-transmission rate tie mem-event quantity standard deviation CentOS 7 winio-iopsCentOS 7 winio-average read and write delay CentOS 7 wintpcc-mysqlCentOS 7 win

As shown in the figure, a total of 7 items have been done this time, of which 2 items are basically the same as CentOS 6 and 7, and the other 5 items are obviously better than CentOS 7, so it can be concluded that CentOS 7 is better than CentOS 6!

This is the end of the introduction on "how to compare the performance testing of CentOS 6 and CentOS 7". More related content can be searched for previous articles, hoping to help you answer questions and questions, please support the website!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report