Jump to content

Linux Subsystem for windows performance is pretty great

mbntr

image.thumb.png.3596fc22d6c2eb87647e8f0014550c81.png

 

I was ready to submit it to hwbot, but a mod told me that this stretching the it a bit too far, in fact it techincally complies with the geekbench 4 rules (CPU Z and Windows 10, at least for post skylake intel CPUs), but he said that is would mess up the database.

So here it is, the Linux subsystem for windows performs as well as native linux

image.thumb.png.095795b9ff6aad0dcd1e217e82ace0e9.png

and native linux is way faster than windows 10, my same CPU (i5 8600k@5.0GHz) reached 25279 points in windows 10 in the same benchmark!

And by the way, Cinebench runs on wine perfectly fine 

image.thumb.png.be5356716dc37745c13c24ef61ecfa84.pngand that is about 5 points lower than on windows 10, I tried CPUz with wine but it didn't display the CPU clock speed 

Main PC [The Rig of Theseus]:

CPU: i5-8600K @ 5.0 GHz | GPU: GTX 1660 | RAM: 16 GB DDR4 3000 MHz | Case: Lian Li PC-O11 Dynamic | PSU: Corsair RM 650i | SSD: Corsair MP510 480 GB |  HDD: 2x 6 TB WD Red| Motherboard: Gigabyte Z390 Aorus Pro | OS: Windows 11 Pro for Workstations

 

Secondary PC [Why did I bother]:

CPU: AMD Athlon 3000G | GPU: Vega 3 iGPU | RAM: 8 GB DDR4 3000 MHz | Case: Corsair 88R | PSU: Corsair VS 650 | SSD: WD Green M.2 SATA 120 GB | Motherboard: MSI A320M-A PRO MAX | OS: Windows 11 Pro for Workstations

 

Server [Solution in search of a problem]:

Model: HP DL360e Gen8 | CPU: 1x Xeon E5-2430L v1 | RAM: 12 GB DDR3 1066 MHz | SSD: Kingston A400 120 GB | OS: VMware ESXi 7

 

Server 2 electric boogaloo [A waste of electricity]:

Model: intel NUC NUC5CPYH | CPU: Celeron N3050 | RAM: 2GB DDR3L 1600 MHz | SSD: Kingston UV400 120 GB | OS: Debian Bullseye

 

Laptop:

Model: ThinkBook 14 Gen 2 AMD | CPU: Ryzen 7 4700U | RAM: 16 GB DDR4 3200 MHz | OS: Windows 11 Pro

 

Photography:

 

Cameras:

Full Frame digital: Sony α7

APS-C digital: Sony α100

Medium Format Film: Kodak Junior SIX-20

35mm Film:

 

Lenses:

Sony SAL-1870 18-70mm ƒ/3.5-5.6 

Sony SAL-75300 75-300mm ƒ/4.5-5.6

Meike MK-50mm ƒ/1.7

 

PSA: No, I didn't waste all that money on computers, (except the main one) my server cost $40, the intel NUC was my old PC (although then it had 8GB of ram, I gave the bigger stick of ram to a person who really needed it), my laptop is used and the second PC is really cheap.

I like tinkering with computers and have a personal hatred towards phones and everything they represent (I daily drive an iPhone 7, or a 6, depends on which one works that day)

Link to comment
Share on other sites

Link to post
Share on other sites

28 minutes ago, mbntr said:

And by the way, Cinebench runs on wine perfectly fine

Your results would be invalid. Just because a application runs on Wine doesn't mean it supports every feature a application is taking advantage of.

 

Even if you ran a native benchmark on both Windows and Linux, you couldn't use them as a direct comparison. You have introduced way to many variables, and the benchmark is no longer equal.

 

On another note, Microsoft actually supports a form of native DirectX under WSL. Vulkan and OpenGL also get translated into DirectX. So once again your results would be invalid if your comparing it to Native Linux.

 

https://devblogs.microsoft.com/directx/directx-heart-linux/

 

And no Microsoft has no plans to release DirectX for Linux outside of its proprietary WSL Container. This also isn't the only thing proprietary in WSL, it holds many secrets with more to come.

Link to comment
Share on other sites

Link to post
Share on other sites

24 minutes ago, mbntr said:

linux

This is interesting. I have a Gigabyte B450 with 16GB RAM, and an AMD Ryzen 5 2600 and my results under Ubuntu are terrible compared to yours (826/4877) does GB just measure CPU power or does GPU come into play?

NOTE: I no longer frequent this site. If you really need help, PM/DM me and my e.mail will alert me. 

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Radium_Angel said:

This is interesting. I have a Gigabyte B450 with 16GB RAM, and an AMD Ryzen 5 2600 and my results under Ubuntu are terrible compared to yours (826/4877) does GB just measure CPU power or does GPU come into play?

don't worry, you are using Geekbench 5, I used 4 because i'm more familiar with it.

on geekbench 5 I get 1442/6735, but GB5 is a bit bias against intel

Main PC [The Rig of Theseus]:

CPU: i5-8600K @ 5.0 GHz | GPU: GTX 1660 | RAM: 16 GB DDR4 3000 MHz | Case: Lian Li PC-O11 Dynamic | PSU: Corsair RM 650i | SSD: Corsair MP510 480 GB |  HDD: 2x 6 TB WD Red| Motherboard: Gigabyte Z390 Aorus Pro | OS: Windows 11 Pro for Workstations

 

Secondary PC [Why did I bother]:

CPU: AMD Athlon 3000G | GPU: Vega 3 iGPU | RAM: 8 GB DDR4 3000 MHz | Case: Corsair 88R | PSU: Corsair VS 650 | SSD: WD Green M.2 SATA 120 GB | Motherboard: MSI A320M-A PRO MAX | OS: Windows 11 Pro for Workstations

 

Server [Solution in search of a problem]:

Model: HP DL360e Gen8 | CPU: 1x Xeon E5-2430L v1 | RAM: 12 GB DDR3 1066 MHz | SSD: Kingston A400 120 GB | OS: VMware ESXi 7

 

Server 2 electric boogaloo [A waste of electricity]:

Model: intel NUC NUC5CPYH | CPU: Celeron N3050 | RAM: 2GB DDR3L 1600 MHz | SSD: Kingston UV400 120 GB | OS: Debian Bullseye

 

Laptop:

Model: ThinkBook 14 Gen 2 AMD | CPU: Ryzen 7 4700U | RAM: 16 GB DDR4 3200 MHz | OS: Windows 11 Pro

 

Photography:

 

Cameras:

Full Frame digital: Sony α7

APS-C digital: Sony α100

Medium Format Film: Kodak Junior SIX-20

35mm Film:

 

Lenses:

Sony SAL-1870 18-70mm ƒ/3.5-5.6 

Sony SAL-75300 75-300mm ƒ/4.5-5.6

Meike MK-50mm ƒ/1.7

 

PSA: No, I didn't waste all that money on computers, (except the main one) my server cost $40, the intel NUC was my old PC (although then it had 8GB of ram, I gave the bigger stick of ram to a person who really needed it), my laptop is used and the second PC is really cheap.

I like tinkering with computers and have a personal hatred towards phones and everything they represent (I daily drive an iPhone 7, or a 6, depends on which one works that day)

Link to comment
Share on other sites

Link to post
Share on other sites

13 minutes ago, Nayr438 said:

Your results would be invalid. Just because a application runs on Wine doesn't mean it supports every feature a application is taking advantage of.

On another note, Microsoft actually supports a form of native DirectX under WSL. Vulkan and OpenGL also get translated into DirectX. So once again your results would be invalid if your comparing it to Native Linux.

 

https://devblogs.microsoft.com/directx/directx-heart-linux/

 

And no Microsoft has no plans to release DirectX for Linux outside of its proprietary WSL Container. This also isn't the only thing proprietary in WSL, it holds many secrets with more to come.

Neither Geekbench nor cinebench use DirectX, I didn't use any form of GPU rendering.

As of AVX support I don't actually know if wine supports AVX or AVX2, but R15 doesn't use AVX (r20 does though).

Actually, I should try

Main PC [The Rig of Theseus]:

CPU: i5-8600K @ 5.0 GHz | GPU: GTX 1660 | RAM: 16 GB DDR4 3000 MHz | Case: Lian Li PC-O11 Dynamic | PSU: Corsair RM 650i | SSD: Corsair MP510 480 GB |  HDD: 2x 6 TB WD Red| Motherboard: Gigabyte Z390 Aorus Pro | OS: Windows 11 Pro for Workstations

 

Secondary PC [Why did I bother]:

CPU: AMD Athlon 3000G | GPU: Vega 3 iGPU | RAM: 8 GB DDR4 3000 MHz | Case: Corsair 88R | PSU: Corsair VS 650 | SSD: WD Green M.2 SATA 120 GB | Motherboard: MSI A320M-A PRO MAX | OS: Windows 11 Pro for Workstations

 

Server [Solution in search of a problem]:

Model: HP DL360e Gen8 | CPU: 1x Xeon E5-2430L v1 | RAM: 12 GB DDR3 1066 MHz | SSD: Kingston A400 120 GB | OS: VMware ESXi 7

 

Server 2 electric boogaloo [A waste of electricity]:

Model: intel NUC NUC5CPYH | CPU: Celeron N3050 | RAM: 2GB DDR3L 1600 MHz | SSD: Kingston UV400 120 GB | OS: Debian Bullseye

 

Laptop:

Model: ThinkBook 14 Gen 2 AMD | CPU: Ryzen 7 4700U | RAM: 16 GB DDR4 3200 MHz | OS: Windows 11 Pro

 

Photography:

 

Cameras:

Full Frame digital: Sony α7

APS-C digital: Sony α100

Medium Format Film: Kodak Junior SIX-20

35mm Film:

 

Lenses:

Sony SAL-1870 18-70mm ƒ/3.5-5.6 

Sony SAL-75300 75-300mm ƒ/4.5-5.6

Meike MK-50mm ƒ/1.7

 

PSA: No, I didn't waste all that money on computers, (except the main one) my server cost $40, the intel NUC was my old PC (although then it had 8GB of ram, I gave the bigger stick of ram to a person who really needed it), my laptop is used and the second PC is really cheap.

I like tinkering with computers and have a personal hatred towards phones and everything they represent (I daily drive an iPhone 7, or a 6, depends on which one works that day)

Link to comment
Share on other sites

Link to post
Share on other sites

23 minutes ago, mbntr said:

Neither Geekbench nor cinebench use DirectX, I didn't use any form of GPU rendering.

As of AVX support I don't actually know if wine supports AVX or AVX2, but R15 doesn't use AVX (r20 does though).

Actually, I should try

Haven't experimented with WSL much yet, but can I ask how were you able to get GUI? or were you using Geekbench command line tool?

Quote or Tag people so they know that you've replied.

Link to comment
Share on other sites

Link to post
Share on other sites

18 minutes ago, Syn. said:

Haven't experimented with WSL much yet, but can I ask how were you able to get GUI? or were you using Geekbench command line tool?

I used the CLI, you can install a desktop enviroment, but why would you

After completing the run it gives you a link that you can open on any browser

Main PC [The Rig of Theseus]:

CPU: i5-8600K @ 5.0 GHz | GPU: GTX 1660 | RAM: 16 GB DDR4 3000 MHz | Case: Lian Li PC-O11 Dynamic | PSU: Corsair RM 650i | SSD: Corsair MP510 480 GB |  HDD: 2x 6 TB WD Red| Motherboard: Gigabyte Z390 Aorus Pro | OS: Windows 11 Pro for Workstations

 

Secondary PC [Why did I bother]:

CPU: AMD Athlon 3000G | GPU: Vega 3 iGPU | RAM: 8 GB DDR4 3000 MHz | Case: Corsair 88R | PSU: Corsair VS 650 | SSD: WD Green M.2 SATA 120 GB | Motherboard: MSI A320M-A PRO MAX | OS: Windows 11 Pro for Workstations

 

Server [Solution in search of a problem]:

Model: HP DL360e Gen8 | CPU: 1x Xeon E5-2430L v1 | RAM: 12 GB DDR3 1066 MHz | SSD: Kingston A400 120 GB | OS: VMware ESXi 7

 

Server 2 electric boogaloo [A waste of electricity]:

Model: intel NUC NUC5CPYH | CPU: Celeron N3050 | RAM: 2GB DDR3L 1600 MHz | SSD: Kingston UV400 120 GB | OS: Debian Bullseye

 

Laptop:

Model: ThinkBook 14 Gen 2 AMD | CPU: Ryzen 7 4700U | RAM: 16 GB DDR4 3200 MHz | OS: Windows 11 Pro

 

Photography:

 

Cameras:

Full Frame digital: Sony α7

APS-C digital: Sony α100

Medium Format Film: Kodak Junior SIX-20

35mm Film:

 

Lenses:

Sony SAL-1870 18-70mm ƒ/3.5-5.6 

Sony SAL-75300 75-300mm ƒ/4.5-5.6

Meike MK-50mm ƒ/1.7

 

PSA: No, I didn't waste all that money on computers, (except the main one) my server cost $40, the intel NUC was my old PC (although then it had 8GB of ram, I gave the bigger stick of ram to a person who really needed it), my laptop is used and the second PC is really cheap.

I like tinkering with computers and have a personal hatred towards phones and everything they represent (I daily drive an iPhone 7, or a 6, depends on which one works that day)

Link to comment
Share on other sites

Link to post
Share on other sites

On 9/24/2020 at 9:05 AM, Syn. said:

Haven't experimented with WSL much yet, but can I ask how were you able to get GUI? or were you using Geekbench command line tool?

Official GUI support is coming. Microsoft teased it a few times, but once released, expect that those who join the Insider program to enjoy it first, before being officially released. So sometime next year, is what I expect.

 

In the mean time, you can use a xServer for Windows.

My personal recommendation is X410, it's not free, but inexpensive at 10$ (https://x410.dev/) It has been specifically designed for WSL, works with WSL1 and WSL2. It is also high-DPI aware. So if you has your Display Scaling above 100%, everything will continue to work fine. Just install and execute. You have to do an export command under WSL (which I recommend to setup as startup when you start a WSL session (lots of tutorials online)) so that you don't need to execute it each time, and you are done. Easiest solution.

That said, I have not seen any update of it for a while. Probably because Microsoft announced its coming with native GUI support solution.

 

Lots of people receive online: XMing, but this is really because it is very old, and for a while was the only one. It is clunky, and never been updated since ages.

VcXsrv is what a recommend as an alternative. It works better, but not as well as X410 in my experience, but free, and designed to work for other things outside of WSL, like a VM. And also, it is actively supported.

 

Note: In the case you don't know, WSL1 and WSL2 works drastically differently.

  • WSL1 passes through a translation layer. As a result, it has limitations. For example, if you plan to use Docker, it won't work. Linux programs will get a performance drop due to the translation layer. That said, you have the fastest disk access, and no performance drop on the system when enabled.
     
  • WSL2 uses a lightweight version of Hyper-V that is integrated in it, and runs a customized kernel of Linux by Microsoft worked in close partnership with Canonical (Ubuntu). This allows for significant better compatibility. Docker works perfectly well. Downside is that you have a notable disk access performance drops if your files that you are accessing under WSL are under Windows. Best to keep everything under Linux. Additionally, as you enable Hyper-V, your system will have a performance drop, even if you don't run WSL. Nothing huge, but it is there. You'll see the most in benchmarks. Gaming I don't know... I have a Core i7 930 6GB of RAM... 11 old system.. So maybe the performance impact will be even less on a system of this area. But just wanted to share.

Yes, you can switch back and forth between WSL1 and 2. No re-install of your WSL environment. You have a command to switch and upgrade/downgrade your WSL distro between each versions.

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×