6 ms·
I hear what you're saying, but the last time I worked through a linux VM on my mac laptop, everything got much slower. Our nodejs service took 2-3x longer to st
by josephg 6y ago
I hear what you're saying, but the last time I worked through a linux VM on my mac laptop, everything got much slower. Our nodejs service took 2-3x longer to start up or to build. I think the issue was filesystem overhead for some reason. The future might involve working from a VM when we have CPU cycles to spare. But right now I need every iota of speed my computer has for my rust compiler.
I'd much rather we solve the security problems using better local sandboxing for software, like how it works on our phones. That would help end users as well, and it would stop crypto ransomware and all sorts of other attacks. Or alternatively, run my dev tools from a solaris zone or a freebsd jail or something, both of which have no performance impact.
- danieldk 6y agoFedora Toolbox is quite interesting from this perspective. It does not provide a proper security boundary, since it shares the home directory, but it is really nice to make ad-hoc development environments. Since it is built on podman/buildah, it does not require the Docker daemon and can be used by regular users.
- JimDabell 6y ago> the last time I worked through a linux VM on my mac laptop, everything got much slower. Our nodejs service took 2-3x longer to start up or to build. I think the issue was filesystem overhead for some reason. Docker on Mac has a lot of IO overhead. This is mentioned in the article: > The way I made it work is by having a full “dev environment” running virtually. That means that I check out repositories on the virtual disk and run everything from there. This has the slight inconvenience that I can’t easily access those files with Finder, but the upside is that there is no noticeable IO latency issues like when running Docker for Mac. If you just want improved performance with bind mounts instead, you can use :cached or :delegated flags.
- wdb 6y agoI have been wondering if using VMWare Fusion docker compatible solution that even comes with their free version of Fusion has better IO/disk performance when running containers https://blogs.vmware.com/teamfusion/2020/05/fusion-11-5-now-supports-containers.html https://blogs.vmware.com/teamfusion/2020/05/fusion-11-5-now-... I think Fusion comes with a driver for Docker
- bdcravens 6y agoSince the earliest days of Docker for Mac, I've found docker-sync to be very effective. (I've haven't done much follow-up over time to see if using those flags matches performance) To gain more speed, add folders you really don't care about to docker-sync's ignored folders, especially if they are high churn.
- tbrock 6y agoThis is why running something like VSCode on your Mac with the remote ssh dev setup is the best of all worlds. https://code.visualstudio.com/docs/remote/remote-overview https://code.visualstudio.com/docs/remote/remote-overview Virtualized Linux on x86 AND being able to run VSCode on your Mac for great fonts, WiFi, screen etc without having to fuss with drivers. Of course ssh and tmux also work well for this purpose.
- dijit 6y agoUgh, I don't want to descend into "that thread" again, but Wifi/Screen have not been an issue on linux (as long as you don't use nvidia) in over 10 years. Mixed scale DPI screens are not a problem if you use Wayland, which is basically the default now. Font rendering though? YMMV.
- acdibble 6y agoIf you use fractional scaling on Wayland, Chromium-based applications will render blurry. Obviously it's a Chromium issue but it's been around for a while and is a bad experience.
- rathboma 6y agoThis just got patched, so electron apps are slowly able to update and fix this. VSCode has a beta version with the fix already
- josephg 6y agoLinux generally works great. I'm typing this on a linux mint, using mixed scale DPI screens and generally it all works pretty well. I think all my hardware is fully supported - I haven't had to mess with drivers at all. ... Well, not recently. There were some zen3 bugs in the stable kernel releases a few months ago, but it all works fine now. And thats sort of the theme everywhere. Its super fast and I love it, and its mostly stable and mostly great. But tiny bugs shine through all over. I've been totally spoiled by Apple's spit and polish. For example, I get random graphics bugs after waking from sleep sometimes. Sometimes my mouse cursor is either invisible or for some reason duplicated, so I see a second stationary cursor hovering over my windows. And for some reason my second display doesn't vsync, so I get obvious tearing when I scroll or move windows around. I use a trackpad, and smooth scrolling works properly in most apps. But Firefox needs an obscure XInput environment variable to make it work. (That trick is only mentioned deep some a bug tracker). Smooth scrolling doesn't work at all in IntelliJ. Intellij also doesn't let me use the Meta key (Cmd / Start) as a shortcut modifier - so my muscle memory for navigation is all messed up and I can't rebind keys to fix it. I hate how Ctrl+C is copy everywhere except the terminal, which needs me to Ctrl+Shift+C instead. Etc etc. Forever. Its unbelievably responsive compared to my 2016 MBP though. If you haven't upgraded in awhile and you can afford it, its a fantastic time to get a new system. But linux on the desktop still isn't entirely pain free. Way better than it was a few years ago though.
- the8472 6y agoDid you use a native filesystem inside the VM or a host filesystem remoted into the VM?
- lovelyviking 6y ago>I need every iota of speed my computer has for my rust compiler If so, why do you need rust compiler in the first place? May be you don't? May be it's wrong compiler?