戴尔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

相关文章

2024.6.24 IDEA中文乱码问题(服务器 控制台 TOMcat)实测已解决

1.问题产生原因: 1.文件编码不一致:如果文件的编码方式与IDEA设置的编码方式不一致,就会产生乱码。确保文件和IDEA使用相同的编码,通常是UTF-8。2.IDEA设置问题:检查IDEA的全局编码设置和项目编码设置是否正确。3.终端或控制台编码问题:如果你在终端或控制台看到乱码,可能是终端的编码设置问题。确保终端使用的是支持你的文件的编码方式。 2.解决方案: 1.File -> S

通过SSH隧道实现通过远程服务器上外网

搭建隧道 autossh -M 0 -f -D 1080 -C -N user1@remotehost##验证隧道是否生效,查看1080端口是否启动netstat -tuln | grep 1080## 测试ssh 隧道是否生效curl -x socks5h://127.0.0.1:1080 -I http://www.github.com 将autossh 设置为服务,隧道开机启动

【服务器运维】MySQL数据存储至数据盘

查看磁盘及分区 [root@MySQL tmp]# fdisk -lDisk /dev/sda: 21.5 GB, 21474836480 bytes255 heads, 63 sectors/track, 2610 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical)

【服务器运维】CentOS6 minimal 离线安装MySQL5.7

1.准备安装包(版本因人而异,所以下面的命令中版本省略,实际操作中用Tab自动补全就好了) cloog-ppl-0.15.7-1.2.el6.x86_64.rpmcpp-4.4.7-23.el6.x86_64.rpmgcc-4.4.7-23.el6.x86_64.rpmgcc-c++-4.4.7-23.el6.x86_64.rpmglibc-2.12-1.212.el6.x86_64.r

【服务器运维】CentOS7 minimal 离线安装 gcc perl vmware-tools

0. 本机在有网的情况下,下载CentOS镜像 https://www.centos.org/download/ 1. 取出rpm 有的情况可能不需要net-tools,但是如果出现跟ifconfig相关的错误,就把它安装上。另外如果不想升级内核版本的话,就找对应内核版本的rpm版本安装 perl-Time-Local-1.2300-2.el7.noarch.rpmperl-Tim

SQL Server中,always on服务器的相关操作

在SQL Server中,建立了always on服务,可用于数据库的同步备份,当数据库出现问题后,always on服务会自动切换主从服务器。 例如192.168.1.10为主服务器,12为从服务器,当主服务器出现问题后,always on自动将主服务器切换为12,保证数据库正常访问。 对于always on服务器有如下操作: 1、切换主从服务器:假如需要手动切换主从服务器时(如果两个服务

时间服务器中,适用于国内的 NTP 服务器地址,可用于时间同步或 Android 加速 GPS 定位

NTP 是什么?   NTP 是网络时间协议(Network Time Protocol),它用来同步网络设备【如计算机、手机】的时间的协议。 NTP 实现什么目的?   目的很简单,就是为了提供准确时间。因为我们的手表、设备等,经常会时间跑着跑着就有误差,或快或慢的少几秒,时间长了甚至误差过分钟。 NTP 服务器列表 最常见、熟知的就是 www.pool.ntp.org/zo

在服务器上浏览图片

@StarSky 2018-10-26 15:09 字数 15971 阅读 28 https://www.zybuluo.com/StarSky/note/1294871 来源 2018-09-27 线上服务器安装 imgcat Tool   2018-09-27 线上服务器安装 imgcat 0. 准备文件:iterm2_shell_integration.bash1. 在有权限

将一维机械振动信号构造为训练集和测试集(Python)

从如下链接中下载轴承数据集。 https://www.sciencedirect.com/science/article/pii/S2352340918314124 import numpy as npimport scipy.io as sioimport matplotlib.pyplot as pltimport statistics as statsimport pandas

服务器雪崩的应对策略之----SQL优化

SQL语句的优化是数据库性能优化的重要方面,特别是在处理大规模数据或高频访问时。作为一个C++程序员,理解SQL优化不仅有助于编写高效的数据库操作代码,还能增强对系统性能瓶颈的整体把握。以下是详细的SQL语句优化技巧和策略: SQL优化 1. 选择合适的数据类型2. 使用索引3. 优化查询4. 范式化和反范式化5. 查询重写6. 使用缓存7. 优化数据库设计8. 分析和监控9. 调整配置1、