News for hackers. Stuff that matters.
Re:Microsoft's Linux Kernel by filmgirlcw on Friday June 28, 2019 @07:41PM (#20309751)
Disclosure: I work at Microsoft but not on Windows (and my work machine is a MacBook Pro FWIW)

WSL 2 is a lot like that -- it's a VM in the sense that it uses Hyper-V, but it's super lightweight. And in fact, when WSL 2 is enabled, both Windows AND Linux are running in the same type of VM (separate, obviously), so it's near-native performance in a lot of ways. There are still some I/O issues that the team is actively working on, but early benchmarks are quite promising.

Re:Microsoft's Linux Kernel by hermitdev on Friday June 28, 2019 @08:27PM (#20309986)
I'm nervous about WSL 2. I use WSL at home quite a bit and I'm on the Fast Insider ring. My PC hasnt been able to boot Win10 for over a year with virtualization support enabled in my BIOS. No errors or anything, just hangs at boot. Ive left feedback in the hub, but crickets. Don't know what the problem is. It used to work, but at some point an update broke it. Not bleeding edge hardware, either. About a 4 to 5 year old PC. Intel i7 CPU, think it's an X79 chipset (not at the computer, so cant verify). Its just weird...
Re:Microsoft's Linux Kernel by nickflood on Saturday June 29, 2019 @03:00AM (#20311196)
Microsoft said that the classic WSL will be available alongside WSL2, so you'll be able to continue using WSL1 no problem if WSL2 will have issues
Re:Microsoft's Linux Kernel by vbezhenar on Saturday June 29, 2019 @01:59PM (#20313881)
I had similar problem. With Hyper-V my PC BSODed like every other day. I did some investigation on dumps and I think that problem was in nvidia driver (not entirely sure, though, but stacktraces were from that driver). I don't really know whether it resolved or not, because I decided not to use Hyper-V ever again, VirtualBox is much better.
Re:Microsoft's Linux Kernel by hermitdev on Wednesday July 03, 2019 @12:31AM (#20341583)
I never got BSODs, just hangs at start, so I don't have any dumps to look at. I'm also using nVidia (1080 GTX) and it has probably been a few months since I updated drivers, but I've been having the issue I think since at last the 1803 update.

I havent been on the PC for several weeks, so I don't have a link to my feedback. I'll post next time I'm on.

Re:Microsoft's Linux Kernel by cududa on Friday June 28, 2019 @09:57PM (#20310334)
Why is op getting downvoted? This is a legitimate issue he’s facing on a specific hardware configuration
Re:Microsoft's Linux Kernel by crispinb on Friday June 28, 2019 @10:13PM (#20310373)
This is a total aside, but I really don't understand voting on comments. I've no idea what it could mean - levels of agreement, interest, offensiveness (or scores of other possibilities)? It seems entirely meaningless, therefore pointless, to me.
Re:Microsoft's Linux Kernel by nine_k on Friday June 28, 2019 @11:49PM (#20310714)
Upvoting moves comments (threads) closer to top. Downvoting does the opposite, and dowvoting below 0 makes comments look fainter.
Re:Microsoft's Linux Kernel by meruru on Saturday June 29, 2019 @01:42AM (#20310974)
This is basically it. I upvote things I want to go up and downvote things I want to go down. Off-topic meta discussions about votes should always go down.
Re:Microsoft's Linux Kernel by crispinb on Saturday June 29, 2019 @01:57AM (#20311002)
Sure, I know what it does, I'm just not sure why anyone would use it. I never do normally want a comment to go up or down (other than the odd egregiously abusive or aggressive item).

I may disagree with a comment, but that doesn't remotely generate in me an opinion re where it should sit in the tree. I don't think other people should or are likely to find a comment agreeable/interesting/relevant/insightful just because I do. Different strokes I guess.

Re:Microsoft's Linux Kernel by nine_k on Saturday June 29, 2019 @03:19AM (#20311269)
A reason to upvote: "this is a good comment, other readers should see it sooner, maybe the first thing".

I see it as a community service.

Re:Microsoft's Linux Kernel by crispinb on Saturday June 29, 2019 @04:55AM (#20311536)
Fair enough. I honestly suspect your signal there is more than lost amongst the noise of readers reflexively voting for what they happen to agree with. Anyway that's probably enough of this particular dead horse.
Re:Microsoft's Linux Kernel by gpvos on Saturday June 29, 2019 @03:17AM (#20311260)
A comment more near the top will be seen more and therefore get more discussion, so if you want that, vote it up. If you want it to get less discussion, vote it down.
Re:Microsoft's Linux Kernel by chungy on Friday June 28, 2019 @10:50PM (#20310511)
I'm giving you an upvote. Make of it what you will. :)
Re:Microsoft's Linux Kernel by crispinb on Saturday June 29, 2019 @02:05AM (#20311027)
Thank you (I think?) for making me aware of that ;)
Re:Microsoft's Linux Kernel by EpicBlackCrayon on Friday June 28, 2019 @10:38PM (#20310461)
Can you post a link to your feedback?
Re:Microsoft's Linux Kernel by solotronics on Friday June 28, 2019 @08:01PM (#20309869)
I am a network/systems guy so not being able to do full packet captures and such on WSL is the only thing stopping me from using it full time.
Re:Microsoft's Linux Kernel by fooker on Friday June 28, 2019 @08:49PM (#20310054)
>both Windows AND Linux are running in the same type of VM

Is there a way to suspend windows? From what you say, there is nothing technical preventing this.

Re:Microsoft's Linux Kernel by filmgirlcw on Friday June 28, 2019 @09:05PM (#20310118)
It’s happening at the hypervisor level, and in this case it’s Type 1, so I guess you could but I don’t know how. My ops colleagues are hanging their heads at me right now.

You can learn more about the architecture of WSL2 in this video from Build https://youtu.be/lwhMThePdIo

Re:Microsoft's Linux Kernel by anthony_doan on Friday June 28, 2019 @08:12PM (#20309920)
> There are still some I/O issues that the team is actively working on, but early benchmarks are quite promising.

=/

Hoping to run my R code on WSL 2. Glad I got the answer. I wish you guys well on I/O issues.

Is there any performance hit for WSL2 in regard to process forking? I recall that how window and unix deal with process is different (my R code uses mclapply parallel package for unix). I'm curious if there will be any performance hit that stands out versus running on a unix system for parallel/concurrency code.

Re:Microsoft's Linux Kernel by kumarharsh on Saturday June 29, 2019 @01:10AM (#20310910)
On Reddit, they had a benchmark for WSL1 vs WSL2 and it showed that the Single core perf of WSL2 was sometimes better than Windows (and even bare metal linux - how that happened I am not sure). The multi-core was not as good, but still better than WSL1.

I can't find that exact thread right now, but here's another one comparing WSL with Windows:

https://www.reddit.com/r/bashonubuntuonwindows/comments/c1r6...

Re:Microsoft's Linux Kernel by londons_explore on Saturday June 29, 2019 @04:08AM (#20311403)
I bet the windows hardware drivers for initialising caches, memory busses, power states, cooling etc. set certain systems up for slightly better performance.
Re:Microsoft's Linux Kernel by idividebyzero on Saturday June 29, 2019 @04:41AM (#20311496)
Just out of curiosity: did they let you use the MacBook Pro without problems? Can you guys @ Microsoft decide to use whatever OS is more suitable for what you do?
Re:Microsoft's Linux Kernel by toyg on Sunday June 30, 2019 @06:53AM (#20317574)
Microsoft has had Macs in use for a very long time, even pre-dating the famous Gates investment. There are some infamous pics of delivery vans unloading tons of Apple boxes in Redmond. I would expect them to be even more liberal now under Nadella, but to be honest, they probably get great prices on Surfaces, which are very nice machines now.
Re:Microsoft's Linux Kernel by filmgirlcw on Wednesday July 03, 2019 @08:13PM (#20350344)
Just saw this. The answer is it depends on the team, but unless there is a hardware/software reason tied to your job for a specific platform, people can choose what they want.

Many of my colleagues use macOS, some use Windows, some Linux. I have a work-issued Mac and a work-issued Surface Book, because it’s important to test compatibility, especially when it comes to CLI stuff, across different platforms. I have Linux VMs and docker containers and WSL configured too.

Re:Microsoft's Linux Kernel by mlevental on Friday June 28, 2019 @08:47PM (#20310049)
do you know if there's hardware pass through for gpu? ie can you do cuda stuff in wsl2?
Re:Microsoft's Linux Kernel by filmgirlcw on Friday June 28, 2019 @09:11PM (#20310152)
On Twitter, the team has said [1] it won’t be supported at launch but that this will make it easier to add that support in the future.

[1]: https://twitter.com/tara_msft/status/1125888319974400000?s=2...

Re:Microsoft's Linux Kernel by zamadatix on Friday June 28, 2019 @10:24PM (#20310404)
I really hope this results in PCIe passthrough on Hyper-V becoming reasonable, it was an absolute nightmare to try to configure and I could never get it to work more than a single VM boot.
Re:Microsoft's Linux Kernel by mlevental on Friday June 28, 2019 @09:19PM (#20310192)
thanks
Re:Microsoft's Linux Kernel by marsrover on Friday June 28, 2019 @08:34PM (#20310019)
> it uses Hyper-V

does this mean there will be issues using VirtualBox if WSL 2 is enabled?

Re:Microsoft's Linux Kernel by Operyl on Friday June 28, 2019 @09:04PM (#20310116)
As of VirtualBox 6.0, they should be able to coexist (because VirtualBox piggies onto Hyper-V when it’s enabled effectively).
Re:Microsoft's Linux Kernel by kyriakos on Saturday June 29, 2019 @12:36AM (#20310832)
In practice it's not really working though. At least not yet. There's a very long thread on virtualbox forums with people trying to get it to work but failing.

I personally have to reboot when I need to use docker or virtualbox. Very annoying.

Re:Microsoft's Linux Kernel by withinrafael on Saturday June 29, 2019 @01:01AM (#20310890)
Yep, this is currently confirmed broken on Windows 10 1903 (Windows Hypervisor Platform extended user-mode APIs). Affects VirtualBox, qemu, etc. We may see a patch, but it's up in the air right now. (<closes eyes and sighs>, I know.)
Re:Microsoft's Linux Kernel by anticensor on Monday July 01, 2019 @01:37AM (#20322707)
Qemu? Qemu does processor emulation AFAIK.
Re:Microsoft's Linux Kernel by tjoff on Saturday June 29, 2019 @04:05AM (#20311397)
But then it is really Hyper-V with a VirtualBox UI. Seems like a recipe for incompatibilities etc.
Re:Microsoft's Linux Kernel by filmgirlcw on Friday June 28, 2019 @09:06PM (#20310125)
The team has said its working with VMware and VirtualBox on solutions but I have no idea what those will be.
Re:Microsoft's Linux Kernel by nickflood on Saturday June 29, 2019 @03:07AM (#20311219)
Hyper-V supports nested virtualization (only Hyper-V nested inside th Hyper-V, though), and seeing as VirtualBox supports a Hyper-V virtualization backend, the solution may be to just find and fix all the bugs in that backend code when under Hyper-V
Re:Microsoft's Linux Kernel by beart on Friday June 28, 2019 @08:50PM (#20310056)
Unless virtual box utilizes hyper v, you'll have to reboot to switch between