Hacker News new | ask | show | jobs
by giancarlostoro 3735 days ago
If Microsoft develops cross-platform IDE's and office tools I would happily use their software on Linux. Windows is a bit bloated for me, I've reinstalled Windows 10 and 8 a couple of times and upon fresh install it winds up using half of my available RAM, while on Linux running the same amount of software I use less than 1 GB of ram. I don't think I'll ever go back unless they made it less resource hungry. "Windows Lite" would be cool to see if anything.
3 comments

How much of that "half your RAM" was actually taken up by windows caching? Windows caches pretty heavily these days, so will show a lot of memory used but will give that RAM up when needed. It also will swap out a lot of stuff that's unneeded, so bloat in my experience has been pretty minimal, and that's with some rather hungry programs running.
I don't run a PC with low ram nowdays and I've had the exact opposite problem - about 6 months ago after a random Fedora update I started noticing my system would start swapping after using it for a long time (6+ hours). I tried to diagnose memory usage but every tool I used didn't sum up used memory to the memory used by programs - and it wasn't reserved vs used or whatever - the system was visibly swapping on a machine with 8 GB ram and ~4GB memory used by running processes. I would just restart the machine after 8 hours but I've never had such issues with Windows (at least past XP, Win9x was basically restart after everything).
I have also found that desktop Linux has stopped being a reasonable solution to "bloat". I don't concern myself too much with bloat, as my machines are all pretty big (8GB laptop, 16GB desktop), but even with 8GB I can occasional get myself into a swapping situation. Firefox (I use the multiprocess developer version) and Thunderbird are memory hogs with an impressive appetite, so if I also start up a large-ish editor (like Atom or VSCode) and Inkscape or a video editor, I can end up with real memory problems.

I haven't actually dug in to see where all the memory is going precisely, but my email/web workflow (Firefox+Thunderbird) has been the same for about ten years now, so it's interesting that it continues to bump up against memory limits no matter how much memory I have. But, Windows on the same system has similar memory issues when working on the same tasks; so it is not immune, but I don't think it is notably worse than Linux.

Turn off swap and clear your caches to see your true ram usage:

    swapoff -a -v
    echo 3 > /proc/sys/vm/drop_caches
I recommend `htop` to check out your memory usage after that.

You can also tweak the vm.swapiness variable to change Linux's behavior there. I personally just turn swap off on all my systems as soon as I set them up.

What happens if you turn off swap while using more virtual memory than you have RAM?
I imagine the OOM killer would take out a process. In that case, I would suggest paying for some more ram before turning off swap. Swap is death for performance! :)
But necessary.
I've had issues with my Nvidia graphics card that's about it. Thankfully my laptop has Intel Iris so I just switch to that when it happens.
I desperately hope you know how the Windows memory manager works before you say it "uses half your RAM". Windows is very aggressive about caching and (especially) precaching-- if you're not using a memory readout tool that's been updated since Windows Vista changed things around, it's probably misleading you into thinking Windows' precache is actual "in-use" memory. It's not.

(If you're looking at Microsoft's Task Manager, make sure you're seeing the amount of memory in "available", that's what counts. "Free" is kind of a useless measure in Vista+.)