戴尔R720服务器(4)虚拟机性能测试

2024-06-07 11:12

本文主要是介绍戴尔R720服务器(4)虚拟机性能测试,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

  物理机环境

机型戴尔R720
系统环境PVE
CPUE5-2660V2 2.2GHz 双路
内存1333MHz 单通道
内存1333MHz 双通道
硬盘用6块转速1万的2.5寸盘组的RAID5,使用了H310mini阵列卡

  ‍

  测试工具:Sysbench。一个跨平台的基准测试工具,用于评估系统性能,包括CPU、内存、文件系统和数据库性能等。apt install sysbench​安装该工具。

  ‍

  虚拟机1配置

image

  ‍

  对照组1

机型组装 家用机
系统环境WSL2 ubuntu
CPUAMD 3600 3.33GHz
内存3200MHz 双通道
硬盘PCIE3.0 满速固态

CPU

  虚拟机1

soulio@vm-ubt1:~$ sysbench cpu --cpu-max-prime=20000 run
sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)Running the test with following options:
Number of threads: 1
Initializing random number generator from current timePrime numbers limit: 20000Initializing worker threads...Threads started!CPU speed:events per second:   354.62General statistics:total time:                          10.0004stotal number of events:              3547Latency (ms):min:                                    2.69avg:                                    2.82max:                                    6.9495th percentile:                        2.81sum:                                 9997.72Threads fairness:events (avg/stddev):           3547.0000/0.00execution time (avg/stddev):   9.9977/0.00

  对照组1

是虚拟机1性能的 2x~ ❯ sysbench cpu --cpu-max-prime=20000 run
sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)Running the test with following options:
Number of threads: 1
Initializing random number generator from current timePrime numbers limit: 20000Initializing worker threads...Threads started!CPU speed:events per second:   772.42General statistics:total time:                          10.0002stotal number of events:              7725Latency (ms):min:                                    1.26avg:                                    1.29max:                                    3.9095th percentile:                        1.32sum:                                 9996.58Threads fairness:events (avg/stddev):           7725.0000/0.00execution time (avg/stddev):   9.9966/0.00

内存

  虚拟机1

soulio@vm-ubt1:~$ sysbench memory --memory-block-size=1M --memory-total-size=2G --memory-oper=write run
sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)Running the test with following options:
Number of threads: 1
Initializing random number generator from current timeRunning memory speed test with the following options:block size: 1024KiBtotal size: 2048MiBoperation: writescope: globalInitializing worker threads...Threads started!Total operations: 2048 ( 6334.09 per second)2048.00 MiB transferred (6334.09 MiB/sec)General statistics:total time:                          0.3185stotal number of events:              2048Latency (ms):min:                                    0.15avg:                                    0.15max:                                    0.2895th percentile:                        0.17sum:                                  315.02Threads fairness:events (avg/stddev):           2048.0000/0.00execution time (avg/stddev):   0.3150/0.00

  对照组1

吞吐性能是虚拟机1的 4.5x
延迟是虚拟机1的 0.35x~ ❯ sysbench memory --memory-block-size=1M --memory-total-size=2G --memory-oper=write ru
n
sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)Running the test with following options:
Number of threads: 1
Initializing random number generator from current timeRunning memory speed test with the following options:block size: 1024KiBtotal size: 2048MiBoperation: writescope: globalInitializing worker threads...Threads started!Total operations: 2048 (25949.52 per second)2048.00 MiB transferred (25949.52 MiB/sec)General statistics:total time:                          0.0782stotal number of events:              2048Latency (ms):min:                                    0.04avg:                                    0.04max:                                    0.1095th percentile:                        0.04sum:                                   77.58Threads fairness:events (avg/stddev):           2048.0000/0.00execution time (avg/stddev):   0.0776/0.00

IO基准测试

  虚拟机1

soulio@vm-ubt1:~$ sysbench fileio --file-test-mode=rndrw --file-total-size=2G --max-time=300 --max-requests=0 run
WARNING: --max-time is deprecated, use --time instead
sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)Running the test with following options:
Number of threads: 1
Initializing random number generator from current timeExtra file open flags: (none)
128 files, 16MiB each
2GiB total file size
Block size 16KiB
Number of IO requests: 0
Read/Write ratio for combined random IO test: 1.50
Periodic FSYNC enabled, calling fsync() each 100 requests.
Calling fsync() at the end of test, Enabled.
Using synchronous I/O mode
Doing random r/w test
Initializing worker threads...Threads started!File operations:reads/s:                      1210.70writes/s:                     807.13fsyncs/s:                     2582.91Throughput:read, MiB/s:                  18.92written, MiB/s:               12.61General statistics:total time:                          300.0214stotal number of events:              1380211Latency (ms):min:                                    0.01avg:                                    0.22max:                                  266.3895th percentile:                        0.30sum:                               297289.13Threads fairness:events (avg/stddev):           1380211.0000/0.00execution time (avg/stddev):   297.2891/0.00

  对照组1


~ ❯ sysbench fileio --file-test-mode=rndrw --file-total-size=2G --max-time=300 --max-requests=0 run
WARNING: --max-time is deprecated, use --time instead
sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)Running the test with following options:
Number of threads: 1
Initializing random number generator from current timeExtra file open flags: (none)
128 files, 16MiB each
2GiB total file size
Block size 16KiB
Number of IO requests: 0
Read/Write ratio for combined random IO test: 1.50
Periodic FSYNC enabled, calling fsync() each 100 requests.
Calling fsync() at the end of test, Enabled.
Using synchronous I/O mode
Doing random r/w test
Initializing worker threads...Threads started!File operations:reads/s:                      668.20writes/s:                     445.46fsyncs/s:                     1425.69Throughput:read, MiB/s:                  10.44written, MiB/s:               6.96General statistics:total time:                          300.0905stotal number of events:              761909Latency (ms):min:                                    0.00avg:                                    0.39max:                                  179.1795th percentile:                        0.67sum:                               299653.07Threads fairness:events (avg/stddev):           761909.0000/0.00execution time (avg/stddev):   299.6531/0.00

这篇关于戴尔R720服务器(4)虚拟机性能测试的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1039010

相关文章

Web服务器-Nginx-高并发问题

《Web服务器-Nginx-高并发问题》Nginx通过事件驱动、I/O多路复用和异步非阻塞技术高效处理高并发,结合动静分离和限流策略,提升性能与稳定性... 目录前言一、架构1. 原生多进程架构2. 事件驱动模型3. IO多路复用4. 异步非阻塞 I/O5. Nginx高并发配置实战二、动静分离1. 职责2

从原理到实战解析Java Stream 的并行流性能优化

《从原理到实战解析JavaStream的并行流性能优化》本文给大家介绍JavaStream的并行流性能优化:从原理到实战的全攻略,本文通过实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的... 目录一、并行流的核心原理与适用场景二、性能优化的核心策略1. 合理设置并行度:打破默认阈值2. 避免装箱

Linux搭建ftp服务器的步骤

《Linux搭建ftp服务器的步骤》本文给大家分享Linux搭建ftp服务器的步骤,本文通过图文并茂的形式给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友参考下吧... 目录ftp搭建1:下载vsftpd工具2:下载客户端工具3:进入配置文件目录vsftpd.conf配置文件4:

深度剖析SpringBoot日志性能提升的原因与解决

《深度剖析SpringBoot日志性能提升的原因与解决》日志记录本该是辅助工具,却为何成了性能瓶颈,SpringBoot如何用代码彻底破解日志导致的高延迟问题,感兴趣的小伙伴可以跟随小编一起学习一下... 目录前言第一章:日志性能陷阱的底层原理1.1 日志级别的“双刃剑”效应1.2 同步日志的“吞吐量杀手”

Linux查询服务器 IP 地址的命令详解

《Linux查询服务器IP地址的命令详解》在服务器管理和网络运维中,快速准确地获取服务器的IP地址是一项基本但至关重要的技能,下面我们来看看Linux中查询服务器IP的相关命令使用吧... 目录一、hostname 命令:简单高效的 IP 查询工具命令详解实际应用技巧注意事项二、ip 命令:新一代网络配置全

Python开发简易网络服务器的示例详解(新手入门)

《Python开发简易网络服务器的示例详解(新手入门)》网络服务器是互联网基础设施的核心组件,它本质上是一个持续运行的程序,负责监听特定端口,本文将使用Python开发一个简单的网络服务器,感兴趣的小... 目录网络服务器基础概念python内置服务器模块1. HTTP服务器模块2. Socket服务器模块

Linux查询服务器系统版本号的多种方法

《Linux查询服务器系统版本号的多种方法》在Linux系统管理和维护工作中,了解当前操作系统的版本信息是最基础也是最重要的操作之一,系统版本不仅关系到软件兼容性、安全更新策略,还直接影响到故障排查和... 目录一、引言:系统版本查询的重要性二、基础命令解析:cat /etc/Centos-release详

Python WSGI HTTP服务器Gunicorn使用详解

《PythonWSGIHTTP服务器Gunicorn使用详解》Gunicorn是Python的WSGI服务器,用于部署Flask/Django应用,性能高且稳定,支持多Worker类型与配置,可处... 目录一、什么是 Gunicorn?二、为什么需要Gunicorn?三、安装Gunicorn四、基本使用启

Java慢查询排查与性能调优完整实战指南

《Java慢查询排查与性能调优完整实战指南》Java调优是一个广泛的话题,它涵盖了代码优化、内存管理、并发处理等多个方面,:本文主要介绍Java慢查询排查与性能调优的相关资料,文中通过代码介绍的非... 目录1. 事故全景:从告警到定位1.1 事故时间线1.2 关键指标异常1.3 排查工具链2. 深度剖析:

通过配置nginx访问服务器静态资源的过程

《通过配置nginx访问服务器静态资源的过程》文章介绍了图片存储路径设置、Nginx服务器配置及通过http://192.168.206.170:8007/a.png访问图片的方法,涵盖图片管理与服务... 目录1.图片存储路径2.nginx配置3.访问图片方式总结1.图片存储路径2.nginx配置