Merge pull request #110 from hugojosefson/patch-1

Format templates/incus/README.md benchmarks
This commit is contained in:
Jip-Hop 2024-03-31 17:05:36 +02:00 committed by GitHub
commit 3ef16a69ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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