On 23/06/2025 09.55, Myng wrote:
> I know that that kernel space offer better performance compare to
> user-space, but do you have any idea how much it better and especially
> in case transcoding?
There is no support for transcoding in kernel space. The difference in
performance would likely be negligible, because the load caused by the
transcoding process itself likely outweighs the overhead of having to
move data between kernel and user space (except possibly for certain
trivial transcoding scenarios, say PCMA <> PCMU).
For passthrough it's hard to give exact numbers as it heavily depends on
the hardware used, but a good rule of thumb is about 500 concurrent
calls per CPU core with user-space forwarding, while with kernel-mode
forwarding the CPU load essentially disappears (typically for example
from ~500% down to ~30% or so) and you're mostly limited by how much the
network hardware and the driver is able to push.
Cheers