Format templates/incus/README.md benchmarks

This commit is contained in:
Hugo Josefson 2024-03-31 15:29:30 +02:00
parent 12a995776a
commit 2e3dc3186d
No known key found for this signature in database
GPG Key ID: 9202E5ECF0A2ADE1
1 changed files with 14 additions and 1 deletions

View File

@ -46,32 +46,45 @@ The command above (when ran as root user inside the incus jail) adds a new virti
### Benchmarks ### Benchmarks
#### Inside LXD ubuntu desktop VM with virtiofs mount #### Inside LXD ubuntu desktop VM with virtiofs mount
```
root@desktop:/mnt/test# mount | grep test root@desktop:/mnt/test# mount | grep test
incus_test on /mnt/test type virtiofs (rw,relatime) incus_test on /mnt/test type virtiofs (rw,relatime)
root@desktop:/mnt/test# time iozone -a root@desktop:/mnt/test# time iozone -a
[...] [...]
real 2m22.389s real 2m22.389s
user 0m2.222s user 0m2.222s
sys 0m59.275s sys 0m59.275s
```
#### In a jailmaker jail on the host: #### In a jailmaker jail on the host:
```
root@incus:/home/test# time iozone -a root@incus:/home/test# time iozone -a
[...] [...]
real 0m59.486s real 0m59.486s
user 0m1.468s user 0m1.468s
sys 0m25.458s sys 0m25.458s
```
#### Inside LXD ubuntu desktop VM with virtiofs mount #### Inside LXD ubuntu desktop VM with virtiofs mount
```
root@desktop:/mnt/test# dd if=/dev/random of=./test1.img bs=1G count=1 oflag=dsync root@desktop:/mnt/test# dd if=/dev/random of=./test1.img bs=1G count=1 oflag=dsync
1+0 records in 1+0 records in
1+0 records out 1+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 36.321 s, 29.6 MB/s 1073741824 bytes (1.1 GB, 1.0 GiB) copied, 36.321 s, 29.6 MB/s
```
#### In a jailmaker jail on the host: #### In a jailmaker jail on the host:
```
root@incus:/home/test# dd if=/dev/random of=./test2.img bs=1G count=1 oflag=dsync root@incus:/home/test# dd if=/dev/random of=./test2.img bs=1G count=1 oflag=dsync
1+0 records in 1+0 records in
1+0 records out 1+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 7.03723 s, 153 MB/s 1073741824 bytes (1.1 GB, 1.0 GiB) copied, 7.03723 s, 153 MB/s
```
## Create Ubuntu container ## Create Ubuntu container
@ -79,4 +92,4 @@ To be able to create unprivileged (rootless) containers with incus inside the ja
## References ## References
- [Running QEMU/KVM Virtual Machines in Unprivileged LXD Containers](https://dshcherb.github.io/2017/12/04/qemu-kvm-virtual-machines-in-unprivileged-lxd.html) - [Running QEMU/KVM Virtual Machines in Unprivileged LXD Containers](https://dshcherb.github.io/2017/12/04/qemu-kvm-virtual-machines-in-unprivileged-lxd.html)