Now on just regular Ubuntu it is as follows:
1: 15.22s
2: 9.64s
4: 6.4s
8: 3.6s
16: 2.93s
32: 2.21s
To your networking statement, is there a way to disable setting up the networking environment? My benchmark does not require any form of an internet connection.
In the event anyone is curious as to what I am bench marking, it is the Splash-2 apps / kernels with a rather large problem size being solved. In this benchmark it is a 2048x2048 matrix
As follows:
OSv booted on KVM-
1 core: 21.18s
2: 12.25
4: 7.08
8: 4.95s
16: 6.59s
32: 9.28s
Now on just regular Ubuntu it is as follows:
1: 15.22s
2: 9.64s
4: 6.4s
8: 3.6s
16: 2.93s
32: 2.21s
To your networking statement, is there a way to disable setting up the networking environment? My benchmark does not require any form of an internet connection.
In the event anyone is curious as to what I am bench marking, it is the Splash-2 apps / kernels with a rather large problem size being solved. In this benchmark it is a 2048x2048 matrix
--
You received this message because you are subscribed to the Google Groups "OSv Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osv-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/10cb923a-c7b3-476c-92cd-dd9a6db0c7b9%40googlegroups.com.
./scripts/manifest_from_host.sh -w ../splash2-posix/kernels/radix/radix && ./scripts/build fs=rofs --append-manifest -j4
./radix -p 1 -r4096
Integer Radix Sort
262144 Keys
1 Processors
Radix = 4096
Max key = 524288
PROCESS STATISTICS
Total Rank Sort
Proc Time Time Time
0 7335 2568 4765
TIMING INFORMATION
Start time : 1582652832386234
Initialization finish time : 1582652832444092
Overall finish time : 1582652832451427
Total time with initialization : 65193
Total time without initialization : 7335
./radix -p 2 -r4096
Integer Radix Sort 262144 Keys 2 Processors Radix = 4096 Max key = 524288
PROCESS STATISTICS Total Rank Sort Proc Time Time Time 0 4325 1571 2704
TIMING INFORMATIONStart time : 1582652821496771Initialization finish time : 1582652821531279Overall finish time : 1582652821535604Total time with initialization : 38833Total time without initialization : 4325./radix -p 4 -r4096
Integer Radix Sort 262144 Keys 4 Processors Radix = 4096 Max key = 524288
PROCESS STATISTICS Total Rank Sort Proc Time Time Time 0 2599 1077 1470
TIMING INFORMATIONStart time : 1582653906150199Initialization finish time : 1582653906171932Overall finish time : 1582653906174531Total time with initialization : 24332Total time without initialization : 2599./scripts/run.py -p qemu_microvm --qemu-path /home/wkozaczuk/projects/qemu/bin/release/native/x86_64-softmmu/qemu-system-x86_64 --nics 0 --nogdb -m 64M -c 1 --block-device-cache writeback,aio=threads -e '/radix -p 1 -r4096'OSv v0.54.0-119-g4ee4b788Booted up in 3.75 msCmdline: /radix -p 1 -r4096
Integer Radix Sort 262144 Keys 1 Processors Radix = 4096 Max key = 524288
PROCESS STATISTICS Total Rank Sort Proc Time Time Time 0 6060 2002 4049
TIMING INFORMATIONStart time : 1582652845450708Initialization finish time : 1582652845500348Overall finish time : 1582652845506408Total time with initialization : 55700Total time without initialization : 6060./scripts/run.py -p qemu_microvm --qemu-path /home/wkozaczuk/projects/qemu/bin/release/native/x86_64-softmmu/qemu-system-x86_64 --nics 0 --nogdb -m 64M -c 2 --block-device-cache writeback,aio=threads -e '/radix -p 2 -r4096'OSv v0.54.0-119-g4ee4b788Booted up in 4.81 msCmdline: /radix -p 2 -r4096
Integer Radix Sort 262144 Keys 2 Processors Radix = 4096 Max key = 524288
PROCESS STATISTICS Total Rank Sort Proc Time Time Time 0 5797 1702 4089
TIMING INFORMATIONStart time : 1582653305076852Initialization finish time : 1582653305129792Overall finish time : 1582653305135589Total time with initialization : 58737Total time without initialization : 5797./scripts/run.py -p qemu_microvm --qemu-path /home/wkozaczuk/projects/qemu/bin/release/native/x86_64-softmmu/qemu-system-x86_64 --nics 0 --nogdb -m 64M -c 4 --block-device-cache writeback,aio=threads -e '/radix -p 4 -r4096'OSv v0.54.0-119-g4ee4b788Booted up in 5.26 msCmdline: /radix -p 4 -r4096
Integer Radix Sort 262144 Keys 4 Processors Radix = 4096 Max key = 524288
PROCESS STATISTICS Total Rank Sort Proc Time Time Time 0 6498 2393 4099
TIMING INFORMATIONStart time : 1582653946823458Initialization finish time : 1582653946875522Overall finish time : 1582653946882020Total time with initialization : 58562Total time without initialization : 6498As you can see with single CPU the benchmark seems to be 10-15 % faster. But with two and four CPUs OSv barely sees any improvements, whereas on host the app runs 40% faster. So OSv does not seem to scale at all (somebody mentioned it used to) so it would be nice to understand why. OSv has many sophisticated tracing tools that can help here - https://github.com/cloudius-systems/osv/wiki/Trace-analysis-using-trace.py
./scripts/run.py -p qemu_microvm --qemu-path /home/wkozaczuk/projects/qemu/bin/release/native/x86_64-softmmu/qemu-system-x86_64 --nics 0 -m 64M -c 2 --block-device-cache writeback,aio=threads -e '/radix -p 2 -r4096' -H --trace \*
#In other terminal
./scripts/trace.py extract./scripts/trace.py summaryCollected 38141 samples spanning 100.38 ms
Time ranges:
CPU 0x01: 0.000000000 - 0.100380272 = 100.38 ms CPU 0x00: 0.083725677 - 0.100295947 = 16.57 ms
Tracepoint statistics:
name count ---- ----- access_scanner 5145 async_worker_started 1 clear_pte 256 condvar_wait 8 condvar_wake_all 12 memory_free 64 memory_malloc 68 memory_malloc_large 9 memory_malloc_mempool 38 memory_malloc_page 3 memory_page_alloc 9 memory_page_free 262 mutex_lock 5367 mutex_lock_wait 28 mutex_lock_wake 30 mutex_receive_lock 8 mutex_send_lock 8 mutex_unlock 5377 pcpu_worker_sheriff_started 1 pool_alloc 38 pool_free 52 pool_free_same_cpu 52 sched_idle 13 sched_idle_ret 13 sched_ipi 7 sched_load 118 sched_migrate 1 sched_preempt 23 sched_queue 71 sched_sched 101 sched_switch 70 sched_wait 46 sched_wait_ret 43 sched_wake 5197 thread_create 4 timer_cancel 5209 timer_fired 5150 timer_set 5211 vfs_pwritev 13 vfs_pwritev_ret 13 waitqueue_wake_all 1 waitqueue_wake_one 1
./scripts/trace.py cpu-load 0.000000000 1 0.000000000 1 0.000000000 1 0.000002133 0 0.000002546 1 0.000002987 1 0.000030307 2 0.000030768 2 0.000032967 1 0.000040996 2 0.000041268 2 0.000041831 1 0.000043297 2 0.000043585 2 0.000045945 1 0.000046650 0 0.000290645 1 0.000291750 1 0.000294524 2 0.000295683 1 0.000297979 0 0.000304896 1 0.000305348 1 0.000306794 2 0.000307488 1 0.000309413 0 0.000316847 1 0.000317216 1 0.000318711 2 0.000319370 1 0.000321079 0 0.000327622 1 0.000328009 1 0.000531069 2 0.000532382 1 0.000539432 0 0.000573914 1 0.000574651 1 0.000576728 0 0.000584365 1 0.000584997 1 0.000587286 0 0.000591755 1 0.000592399 1 0.000594461 0 0.000598470 1 0.000599040 1 0.000611236 0 0.000835164 1 0.000836416 1 0.000843416 2 0.000843890 2 0.000845046 1 0.000856800 2 0.000857064 2 0.000858037 1 0.000862489 0 0.086250040 2 0 0.086252051 3 0 0.086253257 2 0 0.086254377 3 0 0.086296669 2 0 0.086297441 3 0 0.086336375 2 0 0.086337328 3 0 0.086337723 2 0 0.086338657 3 0 0.087719001 2 0 0.087720113 3 0 0.089164101 2 0 0.089165836 3 0 0.089166234 2 0 0.089167249 3 0 0.000000000 1 0.000000000 1 0.000000000 1 0.000002133 0 0.000002546 1 0.000002987 1 0.000030307 2 0.000030768 2 0.000032967 1 0.000040996 2 0.000041268 2 0.000041831 1 0.000043297 2 0.000043585 2 0.000045945 1 0.000046650 0 0.000290645 1 0.000291750 1 0.000294524 2 0.000295683 1 0.000297979 0 0.000304896 1 0.000305348 1 0.000306794 2 0.000307488 1 0.000309413 0 0.000316847 1 0.000317216 1 0.000318711 2 0.000319370 1 0.000321079 0 0.000327622 1 0.000328009 1 0.000531069 2 0.000532382 1 0.000539432 0 0.000573914 1 0.000574651 1 0.000576728 0 0.000584365 1 0.000584997 1 0.000587286 0 0.000591755 1 0.000592399 1 0.000594461 0--
You received this message because you are subscribed to the Google Groups "OSv Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osv-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/0b85eefa-dee1-47b0-9fa9-b043bd61d67b%40googlegroups.com.
./radix -p 1 -r4096 -n16777216
Integer Radix Sort 16777216 Keys 1 Processors Radix = 4096 Max key = 524288
PROCESS STATISTICS Total Rank Sort Proc Time Time Time 0 620025 127815 492206
TIMING INFORMATIONStart time : 1582659397056280Initialization finish time : 1582659400086786Overall finish time : 1582659400706811Total time with initialization : 3650531Total time without initialization : 620025
./radix -p 2 -r4096 -n16777216
Integer Radix Sort 16777216 Keys 2 Processors Radix = 4096 Max key = 524288
PROCESS STATISTICS Total Rank Sort Proc Time Time Time 0 333298 74005 258944
TIMING INFORMATIONStart time : 1582659471193401Initialization finish time : 1582659472761435Overall finish time : 1582659473094733Total time with initialization : 1901332Total time without initialization : 333298
./radix -p 4 -r4096 -n16777216
Integer Radix Sort 16777216 Keys 4 Processors Radix = 4096 Max key = 524288
PROCESS STATISTICS Total Rank Sort Proc Time Time Time 0 176586 38013 137823
TIMING INFORMATIONStart time : 1582659586192838Initialization finish time : 1582659586997985Overall finish time : 1582659587174571Total time with initialization : 981733Total time without initialization : 176586./scripts/run.py -p qemu_microvm --qemu-path /home/wkozaczuk/projects/qemu/bin/release/native/x86_64-softmmu/qemu-system-x86_64 --nics 0 --nogdb -m 1G -c 1 --block-device-cache writeback,aio=threads -e '/radix -p 1 -r4096 -n16777216'OSv v0.54.0-119-g4ee4b788Booted up in 4.15 msCmdline: /radix -p 1 -r4096 -n16777216
Integer Radix Sort 16777216 Keys 1 Processors Radix = 4096 Max key = 524288
PROCESS STATISTICS Total Rank Sort Proc Time Time Time 0 535304 130142 405145
TIMING INFORMATIONStart time : 1582659265555955Initialization finish time : 1582659268568276Overall finish time : 1582659269103580Total time with initialization : 3547625Total time without initialization : 535304
./scripts/run.py -p qemu_microvm --qemu-path /home/wkozaczuk/projects/qemu/bin/release/native/x86_64-softmmu/qemu-system-x86_64 --nics 0 --nogdb -m 1G -c 2 --block-device-cache writeback,aio=threads -e '/radix -p 2 -r4096 -n16777216'OSv v0.54.0-119-g4ee4b788Booted up in 5.39 msCmdline: /radix -p 2 -r4096 -n16777216
Integer Radix Sort 16777216 Keys 2 Processors Radix = 4096 Max key = 524288
PROCESS STATISTICS Total Rank Sort Proc Time Time Time 0 293180 78253 211421
TIMING INFORMATIONStart time : 1582659500041834Initialization finish time : 1582659501640537Overall finish time : 1582659501933717Total time with initialization : 1891883
Total time without initialization : 293180
./scripts/run.py -p qemu_microvm --qemu-path /home/wkozaczuk/projects/qemu/bin/release/native/x86_64-softmmu/qemu-system-x86_64 --nics 0 --nogdb -m 1G -c 4 --block-device-cache writeback,aio=threads -e '/radix -p 4 -r4096 -n16777216'OSv v0.54.0-119-g4ee4b788Booted up in 5.03 msCmdline: /radix -p 4 -r4096 -n16777216
Integer Radix Sort 16777216 Keys 4 Processors Radix = 4096 Max key = 524288
PROCESS STATISTICS Total Rank Sort Proc Time Time Time 0 163844 47966 114362
TIMING INFORMATIONStart time : 1582659574048566Initialization finish time : 1582659575031430Overall finish time : 1582659575195274Total time with initialization : 1146708Total time without initialization : 163844Integer Radix Sort
16777216 Keys
1 Processors
Radix = 1024
Max key = 524288
PROCESS STATISTICS
Total Rank Sort
Proc Time Time Time
0 1510833 311553 1199271
TIMING INFORMATION
Start time : 1582675055600374
Initialization finish time : 1582675061040740
Overall finish time : 1582675062551573
Total time with initialization : 6951199
Total time without initialization : 1510833
Integer Radix Sort
16777216 Keys
2 Processors
Radix = 1024
Max key = 524288
PROCESS STATISTICS
Total Rank Sort
Proc Time Time Time
0 760267 159099 597266
TIMING INFORMATION
Start time : 1582675165095355
Initialization finish time : 1582675167810016
Overall finish time : 1582675168570283
Total time with initialization : 3474928
Total time without initialization : 760267
Integer Radix Sort
16777216 Keys
4 Processors
Radix = 1024
Max key = 524288
PROCESS STATISTICS
Total Rank Sort
Proc Time Time Time
0 463616 104424 358749
TIMING INFORMATION
Start time : 1582675303803195
Initialization finish time : 1582675305167855
Overall finish time : 1582675305631471
Total time with initialization : 1828276
Total time without initialization : 463616
Integer Radix Sort
16777216 Keys
8 Processors
Radix = 1024
Max key = 524288
PROCESS STATISTICS
Total Rank Sort
Proc Time Time Time
0 247667 57513 162350
TIMING INFORMATION
Start time : 1582675359221291
Initialization finish time : 1582675359903200
Overall finish time : 1582675360150867
Total time with initialization : 929576
Total time without initialization : 247667
./scripts/run.py -p kvm -V --nics 0 --nogdb -m 1G -c 1 --block-device-cache writeback,aio=threads -e '/radix -p 1 -n16777216'
OSv v0.54.0-108-g69486729
1 CPUs detected
Firmware vendor: SeaBIOS
bsd: initializing - done
VFS: mounting ramfs at /
VFS: mounting devfs at /dev
net: initializing - done
vga: Add VGA device instance
virtio-blk: Add blk device instances 0 as vblk0, devsize=4357632
random: virtio-rng registered as a source.
random: <Software, Yarrow> initialized
VFS: unmounting /dev
VFS: mounting rofs at /rofs
VFS: mounting devfs at /dev
VFS: mounting procfs at /proc
VFS: mounting sysfs at /sys
VFS: mounting ramfs at /tmp
Booted up in 320.89 ms
Cmdline: /radix -p 1 -n16777216
Integer Radix Sort
16777216 Keys
1 Processors
Radix = 1024
Max key = 524288
random: device unblocked.
PROCESS STATISTICS
Total Rank Sort
Proc Time Time Time
0 1536974 312648 1224318
TIMING INFORMATION
Start time : 1582675604420160
Initialization finish time : 1582675609828738
Overall finish time : 1582675611365712
Total time with initialization : 6945552
Total time without initialization : 1536974
program exited with status 0
VFS: unmounting /dev
VFS: unmounting /proc
VFS: unmounting /
ROFS: spent 2.42 ms reading from disk
ROFS: read 76 512-byte blocks from disk
ROFS: allocated 73 512-byte blocks of cache memory
ROFS: hit ratio is 91.89%
Powering off.
./scripts/run.py -p kvm -V --nics 0 --nogdb -m 1G -c 2 --block-device-cache writeback,aio=threads -e '/radix -p 2 -n16777216'
OSv v0.54.0-108-g69486729
2 CPUs detected
Firmware vendor: SeaBIOS
bsd: initializing - done
VFS: mounting ramfs at /
VFS: mounting devfs at /dev
net: initializing - done
vga: Add VGA device instance
virtio-blk: Add blk device instances 0 as vblk0, devsize=4357632
random: virtio-rng registered as a source.
random: <Software, Yarrow> initialized
VFS: unmounting /dev
VFS: mounting rofs at /rofs
VFS: mounting devfs at /dev
VFS: mounting procfs at /proc
VFS: mounting sysfs at /sys
VFS: mounting ramfs at /tmp
Booted up in 329.94 ms
Cmdline: /radix -p 2 -n16777216
Integer Radix Sort
16777216 Keys
2 Processors
Radix = 1024
Max key = 524288
random: device unblocked.
PROCESS STATISTICS
Total Rank Sort
Proc Time Time Time
0 897061 172935 721892
TIMING INFORMATION
Start time : 1582675669879986
Initialization finish time : 1582675672671371
Overall finish time : 1582675673568432
Total time with initialization : 3688446
Total time without initialization : 897061
program exited with status 0
VFS: unmounting /dev
VFS: unmounting /proc
VFS: unmounting /
ROFS: spent 1.48 ms reading from disk
ROFS: read 76 512-byte blocks from disk
ROFS: allocated 73 512-byte blocks of cache memory
ROFS: hit ratio is 91.89%
Powering off.
./scripts/run.py -p kvm -V --nics 0 --nogdb -m 1G -c 4 --block-device-cache writeback,aio=threads -e '/radix -p 4 -n16777216'
OSv v0.54.0-108-g69486729
4 CPUs detected
Firmware vendor: SeaBIOS
bsd: initializing - done
VFS: mounting ramfs at /
VFS: mounting devfs at /dev
net: initializing - done
vga: Add VGA device instance
virtio-blk: Add blk device instances 0 as vblk0, devsize=4357632
random: virtio-rng registered as a source.
random: <Software, Yarrow> initialized
VFS: unmounting /dev
VFS: mounting rofs at /rofs
VFS: mounting devfs at /dev
VFS: mounting procfs at /proc
VFS: mounting sysfs at /sys
VFS: mounting ramfs at /tmp
Booted up in 319.83 ms
Cmdline: /radix -p 4 -n16777216
Integer Radix Sort
16777216 Keys
4 Processors
Radix = 1024
Max key = 524288
random: device unblocked.
PROCESS STATISTICS
Total Rank Sort
Proc Time Time Time
0 600536 155428 336133
TIMING INFORMATION
Start time : 1582675736500393
Initialization finish time : 1582675738118761
Overall finish time : 1582675738719297
Total time with initialization : 2218904
Total time without initialization : 600536
program exited with status 0
VFS: unmounting /dev
VFS: unmounting /proc
VFS: unmounting /
ROFS: spent 2.52 ms reading from disk
ROFS: read 76 512-byte blocks from disk
ROFS: allocated 73 512-byte blocks of cache memory
ROFS: hit ratio is 91.89%
Powering off.
./scripts/run.py -p kvm -V --nics 0 --nogdb -m 1G -c 8 --block-device-cache writeback,aio=threads -e '/radix -p 8 -n16777216'
OSv v0.54.0-108-g69486729
8 CPUs detected
Firmware vendor: SeaBIOS
bsd: initializing - done
VFS: mounting ramfs at /
VFS: mounting devfs at /dev
net: initializing - done
vga: Add VGA device instance
virtio-blk: Add blk device instances 0 as vblk0, devsize=4357632
random: virtio-rng registered as a source.
random: <Software, Yarrow> initialized
VFS: unmounting /dev
VFS: mounting rofs at /rofs
VFS: mounting devfs at /dev
VFS: mounting procfs at /proc
VFS: mounting sysfs at /sys
VFS: mounting ramfs at /tmp
Booted up in 331.23 ms
Cmdline: /radix -p 8 -n16777216
Integer Radix Sort
16777216 Keys
8 Processors
Radix = 1024
Max key = 524288
random: device unblocked.
PROCESS STATISTICS
Total Rank Sort
Proc Time Time Time
0 585043 129105 234489
TIMING INFORMATION
Start time : 1582675788233688
Initialization finish time : 1582675789537907
Overall finish time : 1582675790122950
Total time with initialization : 1889262
Total time without initialization : 585043
program exited with status 0
VFS: unmounting /dev
VFS: unmounting /proc
VFS: unmounting /
ROFS: spent 2.56 ms reading from disk
ROFS: read 76 512-byte blocks from disk
ROFS: allocated 73 512-byte blocks of cache memory
ROFS: hit ratio is 91.89%
Powering off.
Here are my results!./scripts/run.py -p kvm -V --nics 0 --nogdb -m 1G -c 1 --block-device-cache writeback,aio=threads -e '/radix -p 1 -n16777216'OSv v0.54.0-119-g4ee4b7881 CPUs detectedFirmware vendor: SeaBIOSbsd: initializing - doneVFS: mounting ramfs at /VFS: mounting devfs at /devnet: initializing - donevga: Add VGA device instancevirtio-blk: Add blk device instances 0 as vblk0, devsize=6480896random: virtio-rng registered as a source.random: intel drng, rdrand registered as a source.random: <Software, Yarrow> initializedVFS: unmounting /devVFS: mounting rofs at /rofsVFS: mounting devfs at /devVFS: mounting procfs at /procVFS: mounting sysfs at /sysVFS: mounting ramfs at /tmpBooted up in 126.02 msCmdline: /radix -p 1 -n16777216
Integer Radix Sort 16777216 Keys 1 Processors Radix = 1024 Max key = 524288
random: device unblocked.
PROCESS STATISTICS Total Rank Sort Proc Time Time Time 0 459824 131091 328714
TIMING INFORMATIONStart time : 1582690117331280Initialization finish time : 1582690120377120Overall finish time : 1582690120836944Total time with initialization : 3505664Total time without initialization : 459824
program exited with status 0VFS: unmounting /devVFS: unmounting /procVFS: unmounting /ROFS: spent 0.28 ms reading from diskROFS: read 84 512-byte blocks from diskROFS: allocated 81 512-byte blocks of cache memoryROFS: hit ratio is 94.12%Powering off....
random: virtio-rng registered <span s
/usr/bin/qemu-system-x86_64 --version
QEMU emulator version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.23)
FROM fedora:31
RUN yum install -y git python3 qemu-system-x86 qemu-img
# - prepare directoriesRUN mkdir /git-repos
# - clone OSvWORKDIR /git-reposRUN git clone --depth 1 https://github.com/cloudius-systems/osv.git
CMD /bin/bash