On Fri, Feb 12, 2021 at 3:45 AM Vincent de vries <[email protected]>
wrote:

>
> Hi,
>
> I performed some benchmarks comparing OSv to containers and general
> purpose OSs running under a hypervisor. Particularly, I carried out an
> ffmpeg benchmark that re-encodes a 30mb video from h.264 to h.265 using 16
> threads with 16vCPUs. The results show that roughly all platforms perform
> equal, the exception being OSv (which takes ~1.4x longer).
>
> I also performed another CPU-bound benchmark that simply checks whether
> numbers are prime -- in this case, OSv performs equal to the other
> platforms.
>
> What could be the reason for the slowdown with ffmpeg? I can think of
> either something thread related, or perhaps OSv is not able to use special
> CPU instructions to its full potential (e.g. AVX). Or maybe OSv simply does
> not fare that well with 16 vCPUs?
>

OSv doesn't remove the cpu bits so it shouldn't be an issue. It can be
a libc library change too. Maybe ffmpeg has flags to reduce optimizations
you can play with.

Most likely it's scheduling or locking, especially spinlocks.
Best is to compare a single vcpu performance first.


>
>
> Best regards,
> Vincent
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/osv-dev/e8b49bf2-b4a4-4b91-a2b1-1f6348f4735bn%40googlegroups.com
> <https://groups.google.com/d/msgid/osv-dev/e8b49bf2-b4a4-4b91-a2b1-1f6348f4735bn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/CAKUaUn5L6aU5aAF3vYyMnBp3DEp%2BH1XZ7CBmwBhceK7Vy%2BpzcA%40mail.gmail.com.

Reply via email to