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

An example Analysis of testing Server performance and cpu occupancy rate of uploading Files in centos Virtual Machine

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

In the centos virtual machine to build a server to test the performance of the server and upload file cpu occupancy rate of example analysis, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.

1. Build the server in the virtual machine, and the virtual machine is the centos system, and verify the performance of building the server on the virtual machine.

Application scenario: cloud desktop uses An application, An application client is installed, and An application server is installed on the virtual machine of the cloud system.

2. Test abnormal phenomena. Compared with the performance test of physical machines, the cpu occupancy rate of uploaded files in virtual machines is extremely high.

Cause analysis:

First check the cpu resource usage, using the dstat and vmstat commands

According to the resource occupation, the analysis shows that the proportion of cpu wai is large, indicating that the disk write speed is small and can not respond to the random read and write of a large number of files.

Verify whether the upload cpu occupancy rate is high due to disk read and write reasons. On the one hand, compare the read and write speed between the virtual machine and the physical machine, on the other hand

Build a virtual machine in SSD, and test the cpu usage of uploading 1m files. Compared with the cpu occupation of HDD virtual machine uploading 1m files, the proportion of cpu wai is obviously reduced, and the cpu occupation rate is also significantly reduced.

It shows that disk read and write performance will also affect cpu performance.

3. Summary

The read and write speed of virtual machine is lower than that of physical machine.

When there are a large number of random read and write files, the low disk read and write speed will lead to the waste of cpu, and the cpu occupancy rate is very high, but it is not working.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

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

Servers

Wechat

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

12
Report