15 comments

  • jesse_dot_id2 hours ago
    I jumped ship from Windows a couple of years ago after having used it since the early 90's. One of the primary reasons was how much I had to fight with WSL2 in my day-to-day work. But now it's becoming even more apparent that Microsoft does not care about its operating system. I don't even know what they could do to get me back. Trust continues to be a huge problem in the AI era of Microsoft.
    • throwa3562622 hours ago
      WSL has been god send for corporate employees who get a windows laptop but need to do real work.<p>But everyone knows that performance of WSL is nowhere near native linux on the same machine.
      • simonjgreen1 hour ago
        Delightful way to write off an enormous cohort of people and huge variety of work.
        • GuB-4240 minutes ago
          Being exactly in GP situation, I would give a more charitable take.<p>We are not talking about a properly configured Windows workstation. We are talking about corporate PCs configured by an IT department that is completely oblivious to the needs of developers, most likely because developers are not their bosses. WSL is effectively an escape hatch.<p>Usually the stated reason is &quot;security&quot;, and developers tend to do the greatest sin of corporate security: they run arbitrary code, and they even have the nerve to call it &quot;their job&quot;!<p>I don&#x27;t work in corp IT, but I am convinced that people there are not stupid and they are fully aware of the &quot;shadow IT&quot; aspect of WSL, but they give it a pass because they are also aware that people have &quot;real work&quot; to do that would be impossible otherwise, given company policies.
          • moron4hire25 minutes ago
            &gt; I don&#x27;t work in corp IT, but I am convinced that people there are not stupid...<p>No, not stupid, per se. I generally don&#x27;t like to blame people for the situations in which they find themselves. But there is something else going on.<p>I find the folks in such IT departments are generally not very good at their jobs. One potential reading of this is that it is not the people working in the jobs&#x27; fault, it&#x27;s the design of the corporate leadership by not paying well enough for the job to get better people.<p>But the knock-on effect would be, if corporate paid better, at least <i>my</i> IT department would look completely different. The people we have now would be replaced by much more competent people. These more competent people would also generally be folks who shower and wear clothes that fit, that they don&#x27;t let one corner of their shirts hang out the waist of their pants, that didn&#x27;t show up to a service call wreaking of cigarette smoke. I&#x27;m not expecting people to spend more money on nicer clothes, I already established they don&#x27;t have that money. I am expecting people to take care of their basic hygiene and present themselves as best they can. That they don&#x27;t is a signal they don&#x27;t really care about their own professional development. If corporate paid better, IT wouldn&#x27;t be staffed by a bunch of <i>literal</i> slobs.<p>Though they are in a bad situation, I don&#x27;t have a lot of respect for the folks in my IT department, because the only job they have, the one they have been sticking to for some time, they are only doing the bare minimum. I&#x27;ve been poor. I&#x27;ve been in jobs I hated. The only way out was to suck it up, present myself well, get better at my job, and go somewhere better. I have a hard time respecting anyone who just gives up.<p>(To be fair, there actually are a few who do appear to be doing this, but they are few and far between. They also don&#x27;t last long, because again, they go on to something better. I&#x27;m talking about the kind of people who don&#x27;t put in the effort and then complain they never get anywhere.)
            • PorciiVorbesc18 minutes ago
              <i>&gt;I find the folks in such IT departments are generally not very good at their jobs.</i><p>Because their job is keeping their job, not making the 50 developers in the 5000 person org happy, as those are not their bosses.<p>You judge their competency from the perspective of a dev in the trenches, but the way management judges their performance is vastly different: keeping IT cost center spending as low as possible(hence a lot of IT offshoring) and security as tight as possible (hence MFA, EDMs and MDMs shoved everywhere that don&#x27;t led you run anything besides notepad and Edge). Whether this hampers the devs or not is irrelevant for them or for management (outside of purely tech companies) since this is the devs&#x27; problem to deal with, not IT&#x27;s problem. The moral is as long as it&#x27;s seen as a cost center and not a profit center, there will never be right incentives to have a competent IT department staffed by competent people.<p>And keep in mind that a lot of the hidden champion engineering companies that make the world go round still function on excel sheets with VBA scripts as their &quot;tech stack&quot;, and as long as that runs, management is happy. If you tell them you want to run linux, python, node, docker on your notebook, they&#x27;ll probably laugh in your face thinking it&#x27;s some hacker alien gobbledygook.
            • mycall16 minutes ago
              Having a dress code would help filter out those who don&#x27;t fit in.
            • nixon_why6916 minutes ago
              Why on earth are devoting more attention to their clothes and smoking habits than their IT skills? I can believe those are bad too, but come on.
        • throwa3562621 hour ago
          I spend most of time in meetings and updating excel sheets.<p>Recently I needed a certain agent to help me automate some Excel stuff. Getting it to work in Windows was significantly harder if not impossible compared to WSL.
      • zeryx1 hour ago
        Honestly the performance hit of WSl even being alive and running in the background of my XPS was so bad I just ssh into a workstation and do everything on there instead. Trying to get windows to just be usable is such a massive pain in the ass.
      • pjmlp1 hour ago
        Some of us also do real work on Windows, ask Valve.
        • xattt1 hour ago
          Is the excuse of teenagers every August when they ask for the latest and greatest laptop?
        • mhh__1 hour ago
          Sure and there are billion dollar systems at every bank that runs entirely on VBA macros in excel doesn&#x27;t mean its not structurally flawed.
          • pjmlp1 hour ago
            Worse is better, isn&#x27;t that the UNIX motto?
            • gchamonlive1 hour ago
              Usually when it&#x27;s misunderstood
            • ununix56 minutes ago
              Do one thing, and do it well.
      • secondcoming1 hour ago
        Luckily I&#x27;m allowed use Hyper-V for Linux work
        • pjmlp1 hour ago
          Guess where WSL runs on?
    • pizza2341 hour ago
      I had the opposite experience.<p>I&#x27;m a hardcore Linux user, but it&#x27;s a fact of life that laptops are not very well supported. There are some that are very compatible, but generally speaking, I need to trade off software (Linux compatibility) for hardware (laptop choice) or viceversa.<p>WSL allowed me to choose any laptop I want and run the subset of Linux that matters for me. For my use case (that is, not quickly accessing huge amounts of files, performance was ok - as a matter of fact, the author of the article got a very reasonable performance loss on realworld tasks (-4% ~ -16%).<p>The only thing that I found truly irritating is attaching USB storages, but I ended living with that.
    • chris_money2022 hours ago
      Did you work out of &#x2F;mnt&#x2F;c?
      • jesse_dot_id1 hour ago
        My problems weren&#x27;t performance related, aside from the occasional catastrophic memory leak; most of my biggest headaches were related to networking.
        • ninkendo1 hour ago
          They finally fixed the networking thing a while back.<p>In current WSL2, Windows owns the IP address, the NIC, DHCP, ARP, etc, and it’s shared with the Linux VM.<p>It’s really kinda magic… Linux sees the same IP address as windows does, and you actually get address-in-use errors if Linux tries to listen on a port Windows is already listening on, and vice-versa. So there’s no NAT going on or any internal 172.x net within the Linux VM, you just run “ip addr show” and you see the same real IP addresses that “ipconfig” shows you in windows.<p>(I no longer have a windows installation but WSL2 got noticeably better with networking some time before I gave up on windows.)
        • jesse_dot_id1 hour ago
          Also no, I didn&#x27;t.
      • DiabloD31 hour ago
        I suspect they did. 100% of cases where people complain WSL2 was slow and I helped debug was this specific incorrect usage.
    • shevy-java2 hours ago
      For me Win11 was the final stop.<p>I still use Win10 for a few things, including testing stuff works there too, via java. I switched to Linux in 2004 or so, though.
  • 17186274402 hours ago
    WSL2 is a different product from WSL1, not a different version. Is WSL3 now a different version of WSL2 or another separate product?
    • whs1 hour ago
      It&#x27;s the same thing. Seems like the major version bump is to advertise WSLc, which is like Apple containers - an SDK for launching Linux containers as part of a Windows app.
      • ununix54 minutes ago
        I guess windows containers where dead on arrival?
        • generichuman47 minutes ago
          Not dead on arrival, just extremely expensive on arrival for commercial&#x2F;production use-cases, unless you&#x27;re using Windows Containers on Azure.<p>They&#x27;re missing things like winget as well, but that&#x27;s mostly an inconvenience rather than a blocker.
    • pilif2 hours ago
      Looks like a different version of WSL2 with a newer kernel and newer VM host software
      • pjmlp2 hours ago
        An evolution, better said.<p>Now there is virtio support, finally no need to depend on external CLI tools for what should have been in the box on day on.<p>Until now, even for Windows containers, we needed some Docker compatible CLI tool.
  • armcat3 hours ago
    Great job in benchmarking! I wasn&#x27;t even aware of the WSLc (WSL3) release. For others, the release info is available here: <a href="https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;WSL&#x2F;releases&#x2F;tag&#x2F;3.0.1" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;WSL&#x2F;releases&#x2F;tag&#x2F;3.0.1</a><p>EDIT: stumbled on the previous HN post here: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=49970507">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=49970507</a>
    • Randomno2 hours ago
      Is it accurate to call this WSL3? WSL 2 was released in 2019, but WSL 2.0.0 was released in 2023 <a href="https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;WSL&#x2F;releases&#x2F;tag&#x2F;2.0.0" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;WSL&#x2F;releases&#x2F;tag&#x2F;2.0.0</a>
      • armcat1 hour ago
        No I think it&#x27;s more accurate to call it WSL Containers, or WSLc, but the release is indeed WSL 3.0.*.
    • pjmlp3 hours ago
      That is quite relevant, and compose ability is on the way, or for some workloads Aspire would be an alternative I guess.<p>Unfortunately most companies are too cheap to pay for Docker Desktop, and having Windows containers depend on a third party tool has been a problem in such customers.<p>Because using Rancher Desktop or Podman isn&#x27;t also a given, due to similar issues.
      • ununix52 minutes ago
        Dockefile is still a thing.
  • ReDress36 minutes ago
    syscall&#x2F;basic getppid() throughput 1,474,691 ops&#x2F;s 1,533,399 ops&#x2F;s +3.98% Entry&#x2F;exit latency 0.6781 µs&#x2F;op 0.6521 µs&#x2F;op -3.83% sched&#x2F;pipe 100k process ping-pong 48,445 ops&#x2F;s 54,589 ops&#x2F;s +12.68% Context switch latency 20.64 µs&#x2F;op 18.32 µs&#x2F;op -11.25% sched&#x2F;messaging Hackbench (20 groups, 800 tasks) 14.507 s 13.047 s -10.06% mem&#x2F;memcpy glibc default bandwidth (1GB) 7.84 GB&#x2F;s 12.64 GB&#x2F;s +61.35%<p>This is great, this is some good work. But, like an issue I described before with Linux kernel io-uring[1], this fails to test and demonstrate performance with a healthy server load.<p>This obviously fails to depict a healthy server load because it&#x27;s just way too specific.<p>1.<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=44604793">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=44604793</a>
  • binsquare2 hours ago
    Lot of the WSL2 lag is not the VM itself, it&#x27;s the 9P file sharing and interop.<p>I found that seems like anything under &#x2F;mnt&#x2F;c goes through 9P
    • chris_money2022 hours ago
      You’re not supposed to work out of the &#x2F;mnt&#x2F;c. A lot of people make this mistake and then complain that WSL is slow. On the native linux file system WSL is 100x faster for everything
      • LeBit1 hour ago
        On my work laptop I made the lazy&#x2F;naive mistake of mounting my projects from macOS into devcontainers running in Colima.<p>vscode extensions using ripgrep in parallel in the background (there are many!) are killing the vm.<p>I now decided to follow Mitchell Hashimoto choice and use VMware Fusion and simply do all my work inside of it.
      • binsquare1 hour ago
        From the perspective of user empathy, wsl seems to be designed for that use case. but the implementation&#x2F;defaults can be improved
    • pjmlp2 hours ago
      There is virtio support now, and to be fair 9P was never an issue for me.
      • DiabloD31 hour ago
        9P is very slow for certain operations (such as, for example, git from either direction).<p>virtio is not enabled by default because its buggy in certain corner cases, and will be enabled by default when it stops doing that. That said, I do have that enabled, it is certainly faster.
        • pjmlp1 hour ago
          Since nowadays I use WSL to run immutable containers, and not really classical Linux Desktop, it isn&#x27;t something that bothers me.<p>Agents take more time than building Docker images.
    • usrusr2 hours ago
      And yet I had results perfectly within the range of &quot;good enough&quot; having an ai harness muck about in a work folder in a docker mount on a 9P mapped drive under permanent observation by an intelliJ instance on the Windows side before some buggy Windows update made it occasionally lock up under `npm i` sized filesystem loads. Crazy how far we&#x27;ve come.
  • lacuno-cloud1 hour ago
    I am not sure about WSL in general right now - no matter if WSL3 is more performant.<p>For me, Claude bypassed my sudo security by executing `wsl.exe -u root`. The Claude does not need any sudo password :)
  • xaduha2 hours ago
    I find that stuff that it offers over a normal Hyper-V VM is stuff that I don&#x27;t need, leaky abstractions galore.
    • pjmlp1 hour ago
      Nowadays I use it mostly for Linux containers.
    • shevy-java2 hours ago
      Well, you can use linux-tools on windows too. I kind of compiled most of LFS&#x2F;BLFS on it, and it works. So it just gives you more options.
  • tonymet2 days ago
    Despite the container support getting most of the attention, I discovered a measurable performance improvement with WSL3 by accident. Luckily I had another machine to upgrade so I ran an AB test comparing WSL 2 to WSL3 .<p>If you want a real bump in performance, I have a clever trick . Hardware isn’t cheap these days, so we demand the most of our software.
    • Leonard_of_Q2 hours ago
      &gt; If you want a real bump in performance, I have a clever trick . Hardware isn’t cheap these days, so we demand the most of our software.<p>Good trick: get rid of the superfluous Windows layer which stands between that expensive hardware and your target OS. It takes up valuable memory, CPU time and storage space, introduces latency where you don&#x27;t want it, exfiltrates data to unknown destinations and can decide to &quot;upgrade&quot; itself without warning.<p>Good tricks need catchy names to succeed so how about NoSL?
  • sys_6473853 minutes ago
    Isn&#x27;t this just WSL2 v3?
  • la_fayette3 hours ago
    ok great benchmark! I work with herdr&#x2F;pi for dev work and need to use a windows machine from my company. WSL currently unfortunately lags so much when typing, not sure why when using herdr... Using powershell, some features are missing, so i can&#x27;t wait to try WSL3 and hope for improvements.
    • TZubiri2 hours ago
      ... does it lag on the shell or does it lag when you are in some vibecoded &quot;TUI&quot; njs monstrosity? Because if the latter, the issue is probably not cause of wsl...
      • la_fayette2 hours ago
        The TUIs alone work fine, so something must be done by herdr to make it slow...
      • ricardobeat2 hours ago
        herdr might be the culprit there, it can significantly slow down tui apps with its terminal capture. This happens on mac&#x2F;linux, WSL will surely make it worse.
  • shevy-java2 hours ago
    WSL is one of the few good ideas Microsoft had in the last ... 5000 years or so.
  • PunchyHamster2 hours ago
    Amazing they managed to make virtualisation that slow in WSL2
  • cdud33 hours ago
    And yet it&#x27;s still factors faster without a whole Windows around it.
    • pjmlp3 hours ago
      Unfortunately that acquisition option isn&#x27;t available in most physical stores, where normies buy their computers, even though there isn&#x27;t a single OEM not running some distro on their data centers.
      • Leonard_of_Q1 hour ago
        You <i>can</i> get a refund for that useless Windows licence but that is a bridge too far for most &quot;normies&quot; whether they buy their computers in brick-and-mortar stores or online. If that process could be streamlined somehow..
      • TZubiri2 hours ago
        everything I use it for executes virtually instantly, 60% slower than virtually instantly is still virtually instantly.<p>If something is slow on WSL, but not on bare metal linux, it means that the application is slop that only works when MAXING OUT your CPU, it&#x27;s slop, the app is the slop
        • pjmlp2 hours ago
          Yeah, I haven&#x27;t dual booted in decades, it started with Windows 7 and VMWare Workstation for me.<p>The Year of Desktop Linux is delivered on VMs.
        • dspillett1 hour ago
          Most of the overhead in virtualisation of the sort used by WSL2+ is not CPU throughput, but other hardware access (mostly IO, but for GUI apps display access can have a significant penalty). Things that are just spinning a couple of CPU cores doing number-crunching work and similar see significantly less penalty in VMs than those that perform much IO, unless of course there is much competition for host resources or for some other reason they get passed around cores so see many more L1 cache &amp; TLB misses.<p>Some things need to max out the CPU, certain compile steps for instance, that is not slop that is code doing its job. Others need significant IO, often random IO, certain other compile&#x2F;link steps for example, that is not slop. Sometimes if you knew your code was likely to be run in a VM rather than on bare metal you might design it slightly differently to reduce its sensitivity to the detrimental effects, but not having done so doesn&#x27;t make your code slop. There might be some room to blame slop for UI slowness as a lot of code out there updates their display in an in inefficient manner that is actually noticeable on bare metal too, especially when it unnecessarily uses 3D accelerated compositing or similar and something causes that to fall back to software rendering, but even then if it works well enough in the intended environment calling it slop is perhaps unfair.
    • TiredOfLife45 minutes ago
      Links to benchmarks?
  • bewareofscams3 hours ago
    [dead]