Re:Windows Subsystem for Linux performance is close to bare-...
by chmod775 on Thursday December 17, 2020 @05:33AM
(#25454334)
Most of these benchmarks do a minimal number of syscalls per unit of work, if any. Meaning, unless syscalls are horribly slow, you'd expect them to be pretty much unaffected by the underlying OS.
It's not even really only WSL being benchmarked here, but also stuff like the OS' scheduling etc.
Micro-benchmarks for each syscall and comparing their actual performance might be more useful - it would allow you to more easily control for auxiliary differences between the operating systems - so you don't accidentally benchmark ext4 vs ntfs or something instead of your syscall.
Edit: I was unaware WSL2 is essentially a linux kernel in a VM now. What is even the point of benchmarking this and why is it supposed to be a successor to WSL? This is something completely different conceptually.
Re:Windows Subsystem for Linux performance is close to bare-...
by viraptor on Wednesday December 16, 2020 @10:29PM
(#25452103)
The setup seems to differ in what security mitigation options are enabled in the kernel on wsl2 and Ubuntu. I wonder if that's where the difference comes from.
Having a system in a VM outperform similar kernel on bare metal is a bit weird.
Re:Windows Subsystem for Linux performance is close to bare-...
by lsllc on Wednesday December 16, 2020 @10:38PM
(#25452155)
I think this is usually because the host OS is caching the files that make up the VM disk image. So effectively, the VM is running from a ram disk. Intuition says that you could probably configure caching/readahead on the bare-metal system to do the same with similar performance results.
Re:Windows Subsystem for Linux performance is close to bare-...
by samus on Friday December 18, 2020 @06:58AM
(#25466260)
The difference in performance and power management on both Linux and Windows influence and muddle the picture, especially when things have improved so far with WSL2.
Re:Windows Subsystem for Linux performance is close to bare-...
by viraptor on Friday December 18, 2020 @01:47PM
(#25470433)
I checked and it turns out their running Ubuntu with "ondemand" CPU scanning rather than "performance". It could explain at least a part of it and I'm surprised they haven't tried to match the VM/non-VM CPU baseline before comparing IO performance.
It's not even really only WSL being benchmarked here, but also stuff like the OS' scheduling etc.
Micro-benchmarks for each syscall and comparing their actual performance might be more useful - it would allow you to more easily control for auxiliary differences between the operating systems - so you don't accidentally benchmark ext4 vs ntfs or something instead of your syscall.
Edit: I was unaware WSL2 is essentially a linux kernel in a VM now. What is even the point of benchmarking this and why is it supposed to be a successor to WSL? This is something completely different conceptually.
Having a system in a VM outperform similar kernel on bare metal is a bit weird.
For LZ4 unless the test somehow accounts for that by preloading the data I'd put that down to host-OS caching.