News for hackers. Stuff that matters.
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 Snetry on Thursday December 17, 2020 @08:25AM (#25455341)
I believe WSL2 was made for those that wanted a somewhat seamless linux experience non Windows without the incompatibilities WSL1 brought
Re:Windows Subsystem for Linux performance is close to bare-... by ngcc_hk on Thursday December 17, 2020 @08:24AM (#25455334)
You may say it is VM but given it is under hypervisor, it is a different sort of “VM” as the layer under is very thin.
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 viraptor on Thursday December 17, 2020 @02:25AM (#25453442)
Wsl2 is winning on some CPU-bound tests though. For example page 2 has lots of CPU-only benchmarks. The caching didn't matter there.
Re:Windows Subsystem for Linux performance is close to bare-... by lsllc on Friday December 18, 2020 @01:28AM (#25464437)
For Dolfyn where the WSL2 improvement was fractional better I'd say that was within the error bars.

For LZ4 unless the test somehow accounts for that by preloading the data I'd put that down to host-OS caching.

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.
Re:Windows Subsystem for Linux performance is close to bare-... by digisocialnet on Thursday December 17, 2020 @10:15AM (#25456271)
If you use the Linux file system it is useable, but trying to install a nice module into the Windows file system is not fun.