utmapp / utmapp/UTM

Lower bogos per second reported by stress-ng test inside VM

Open
#5,322 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
35.5k
Forks
1.8k
Avg merge
5d 5h
Merged PRs (30d)
7

Description

I noticed this text at https://mac.getutm.app: _UTM employs Apple's Hypervisor virtualization framework to run ARM64 operating systems on Apple Silicon at near native speeds_

However, When running the stress-ng test, I noticed a significantly lower bogos per second report when running the test inside the VM compared to running the stress-ng test directly on the macbook

**Stress-ng output when running it directly on the macbook (bogo ops/s == 3913.05)**

...@macpro ~ % stress-ng --cpu 2 --io 2 --vm 1 --vm-bytes 1G --timeout 10s --metrics-brief
stress-ng: info: [3799] setting to a 10 second run per stressor
stress-ng: info: [3799] dispatching hogs: 2 cpu, 2 io, 1 vm
stress-ng: metrc: [3799] stressor bogo ops real time usr time sys time bogo ops/s bogo ops/s
stress-ng: metrc: [3799] (secs) (secs) (secs) (real time) (usr+sys time)
stress-ng: metrc: [3799] cpu 39149 10.00 19.91 0.10 3913.05 1956.50
stress-ng: metrc: [3799] io 952 10.02 0.00 10.11 95.03 94.20
stress-ng: metrc: [3799] vm 1232074 10.00 9.23 0.77 123176.56 123175.10
stress-ng: info: [3799] passed: 5: cpu (2) io (2) vm (1)
stress-ng: info: [3799] failed: 0
stress-ng: info: [3799] skipped: 0
stress-ng: info: [3799] successful run completed in 10.03s

**Stress-ng output when running it inside a Ubuntu VM created using UTM (bogo ops/s == 704.98)**

root@labadmin:/home/labadmin# stress-ng --cpu 2 --io 2 --vm 1 --vm-bytes 1G --timeout 10s --metrics-brief
stress-ng: info: [1182] setting to a 10 second run per stressor
stress-ng: info: [1182] dispatching hogs: 2 cpu, 2 io, 1 vm
stress-ng: info: [1185] io: this is a legacy I/O sync stressor, consider using iomix instead
stress-ng: metrc: [1182] stressor bogo ops real time usr time sys time bogo ops/s bogo ops/s
stress-ng: metrc: [1182] (secs) (secs) (secs) (real time) (usr+sys time)
stress-ng: metrc: [1182] cpu 7051 10.00 20.00 0.00 704.98 352.49
stress-ng: metrc: [1182] io 32680 10.00 0.22 2.36 3267.61 12651.86
stress-ng: metrc: [1182] vm 1130740 11.51 8.35 2.96 98279.98 100035.87
stress-ng: info: [1182] successful run completed in 11.51s

I'm running the UTM in QEMU mode. I would like to understand if these are expected results? Are there some settings I can try to increase the performance (I.e., bogo ops/s inside the VM?)

**Configuration**
* UTM Version: 4.2.5 (81)
* macOS Version: 13.3.1 (a)
* Mac Chip : M2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.