TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

The New Windows Subsystem for Linux (WSL2) Architecture [video]

130 点作者 bruxis大约 6 年前

17 条评论

billziss大约 6 年前
Although many people seem to be receiving the WSL2 news well, I am one of the few that feels that we will be missing something important with this new direction.<p>WSL1 was pushing the boundaries of OS research: - a method for having multiple syscall interfaces in a mainstream OS - processes in WSL1 were real NT processes (even if lacking some of the NTOS environment) - direct integration with the rest of the OS without an awkward VM separation layer.<p>In comparison WSL2 is basically an optimized VM with some fancy guest additions. Color me underwhelmed.<p>I understand the argument that WSL2 is faster than WSL1 in file system operations. I expect this will only be true for their root file system (&quot;VolFs&quot;) and that performance will remain same or suffer for Windows drives (&quot;DrvFs&quot;). I am certain that they could fix &quot;VolFs&quot; performance by moving the file system of NTFS and into a raw disk partition or VHD. (Note: I write file systems both in and out of kernel.)<p>Finally WSL2 will be distributed with Windows which raises some licensing questions (IANAL) if not in the letter of the GPL license at least in spirit. I write GPL&#x27;ed software myself and I would be somewhat miffed if I saw my software used in a similar manner (i.e. &quot;via a VM&quot;, but still distributed with non-GPL code).
评论 #19872907 未加载
评论 #19874139 未加载
评论 #19874079 未加载
评论 #19871702 未加载
jchw大约 6 年前
I was initially very excited for WSL2, but I do worry it will require Hyper-V to be enabled. I use VMWare Workstation and it’s a true pain to switch Hyper-V on and off. Also, I cant help but worry that this will somehow be a downgrade in some way... will it be just as integrated? Windows Firewall worked on WSL Pico processes for example.
评论 #19869605 未加载
评论 #19870280 未加载
评论 #19875769 未加载
评论 #19870364 未加载
eatonphil大约 6 年前
Switched to Windows from Linux on my work laptop 6 months ago. First-class support for Zoom, Office, screen-sharing, presenting, etc. is good. General terminal-based development is not fantastic, but WSL made it possible at all. I can run all but my most Linux-specific programs (e.g. dependent on procfs).<p>Aside from not have some Linux pseudo-filesystems the bigger issue has been the speed of file operations. I dread having to run `dep ensure` and `yarn install`.<p>Why not just Hyper-V? Every few weeks I try to figure out how to set up a static IP but I cannot for the life of me. So it takes 1-2 minutes every time I want to reconnect because not only does it get a dynamic IP by default, it is reset every day or so. Need to go into the VM via Hyper-V, get the current IP address, reset &#x2F;etc&#x2F;hosts within WSL, reset &#x2F;etc&#x2F;hosts within Windows, SSH into VM within WSL. It drives me nuts.<p>Really looking forward to WSL2 for faster file operations and being able to run all my programs.
评论 #19871930 未加载
brianpgordon大约 6 年前
Are there any plans to support graphical guest applications running in a native Windows window, like VMWare Fusion? Their client&#x2F;server VS Code demo where only the UI runs in Windows seems really bizarre to me. Why not just run X? I suppose you could pipe X over SSH but it would be nice to get built-in support without the hassle or performance penalty.
评论 #19869421 未加载
评论 #19869483 未加载
Tepix大约 6 年前
After using Linux on the desktop for around two decades, I&#x27;m forced to use Windows 10 since a few months.<p>WSL is what makes it somewhat bearable. I look forward to Windows Terminal and WSL2.
评论 #19869077 未加载
hs86大约 6 年前
This seems to run on a VM that dynamically adjusts its RAM size according to the current usage. Does a VM like this have any kind of file cache?
评论 #19871987 未加载
评论 #19870099 未加载
1wd大约 6 年前
I&#x27;m surprised, is integrating a Linux kernel with Windows not a GPL violation? Is this a &quot;mere aggregation&quot; situation? Are the Linux kernel and other closed source Windows code at no point linked, or exchanging complex internal data structures?
评论 #19870422 未加载
评论 #19870124 未加载
评论 #19870104 未加载
评论 #19870084 未加载
评论 #19870255 未加载
jpeeler大约 6 年前
I&#x27;d be interested to see a Microsoft backed Wayland implementation to support GUI apps. Basically very similar to how Chrome OS has done it with Crostini. If you&#x27;re interested too vote here:<p><a href="https:&#x2F;&#x2F;wpdev.uservoice.com&#x2F;forums&#x2F;266908-command-prompt-console-windows-subsystem-for-l&#x2F;suggestions&#x2F;16524991-wsl-wayland-display-manger-support-may-be-easie" rel="nofollow">https:&#x2F;&#x2F;wpdev.uservoice.com&#x2F;forums&#x2F;266908-command-prompt-con...</a>
arcboii92大约 6 年前
That&#x27;s all cool, but I just learned you can type an exe into Windows Explorer&#x27;s address bar to open it in the current directory. MIND BLOWN.
Narishma大约 6 年前
Since it uses Hyper-V, does that mean it won&#x27;t work anymore on the Home editions of Windows 10?
评论 #19874621 未加载
评论 #19873439 未加载
yarg大约 6 年前
I&#x27;d really like for this to support accelerated graphics - unfortunately I imagine that would require a comprehensive solution to GPU virtualisation at the DirectX level, which would at least need to be implemented in drivers - if not also supported at the hardware level.<p>Without that, then the main reason that I&#x27;d even be using the subsystem - GPU compute - is unavailable, and I&#x27;ll need to actually boot into Linux if I want to do anything useful.
monocasa大约 6 年前
Sounds like Docker for Mac for Windows. Might have some of the same shared FS consistency issues from running two full kernels with their own FS caching hierarchies.
评论 #19871148 未加载
pdonis大约 6 年前
Why would I want to run a proprietary, closed-source implementation of what is supposed to be an open source operating system?
评论 #19872539 未加载
评论 #19877269 未加载
评论 #19873118 未加载
xfer大约 6 年前
This way ZOL also works on windows. Might make me switch to windows where i occasionally play windows only games.
taf2大约 6 年前
Why isn’t windows just built on Linux at this point are there reasons for MS to maintain their own kernel? There must be people inside of MS asking this just like how edge is now built on chromium...
packet_nerd大约 6 年前
It&#x27;d be awesome if nmap and other network tools work in WSL2.
apotatopot大约 6 年前
Just release Office for Linux and this wouldn&#x27;t be necessary at all.
评论 #19868887 未加载
评论 #19868979 未加载
评论 #19869522 未加载
评论 #19868942 未加载
评论 #19870256 未加载
评论 #19868681 未加载