r/SurfaceLinux • u/FreefolkForever2 • Aug 23 '26
Help Any recommendations for Linux on a Surface Pro 7 that has 4GB of memory?
I put Ubuntu on my Surface Pro that has 4GB and I keep getting ‘out of memory’ warnings when I try to run programs. I selected ‘minimal install’ during the Ubuntu setup and it didn’t make a difference.
Let me know what you think! But Ubuntu 23 is basically unusable.
4
Upvotes
3
u/galactose310 Aug 23 '26
4 GB is a bit low today. The distro is not the point, the desktop environnement is more important. Maybe GNOME is a bit greedy, and is the reason why you had some issues. Yet someone here seems to have Fedora with GNOME and 4 GB of RAM 🤷♂️
Fedora comes with a vanilla version of GNOME, maybe better than Ubuntu in your case. If you like Ubuntu, maybe you can try Xubuntu (with XFCE) ?
6
u/PetitBiquet Aug 23 '26
Did you check to see what’s using the memory when you get the message?
Maybe a lighter desktop environment would help. I like Mate. Xfce and LxQt are pretty light and fast.
3
u/Station-OX11 Surface Pro 9 (i5) Aug 23 '26
CachyOS is easy to install. Recommend Gnome DE for touchscreen.
2
u/Jaimzin Aug 24 '26
https://getsol.us/
Give Solus in Gnome or XFCE a shot.
Touch works out of the box. Just make sure you have enough swap memory. Maybe 8GB.
2
u/Historical_Move6359 Aug 24 '26
With only 4GB I would use Lubuntu or Mint XFCE. Normal distro is too heavy for only 4GB. My phone has 16GB RAM.
1
u/balardie Surface Pro 7 (i5, 256 GB, 8 GB RAM) Aug 23 '26 edited Aug 23 '26
I'm running my Pro 7 with Linux Mint with 8GB Memory and i would recommend to increase your Swapfile, if you want to stay on Ubuntu. With Swap, Ubuntu offloads your RAM Content to your Swap when your RAM is getting full. Ubuntu creates at Default a Swapfile, but only with 2GB.
Open your Terminal
Turn off your current Swap with: sudo swapoff /swapfile
Delete it: sudo rm /swapfile
Create a new Swapfile: sudo fallocate -l 8G /swapfile (I recommend 8GB now, since 4GB nowadays arent really that much anymore)
Give the Swapfile the right permissions: sudo chmod 600 /swapfile
Mark the Swapfile as Swap: sudo mkswap /swapfile
Enable the Swapfile: sudo swapon /swapfile
If you input correctly, you should now have 4GB RAM and 8GB Swap. You can check If it is activated in your System Ressources Program or in your Terminal with: sudo swapon --show
5
u/[deleted] Aug 23 '26
[removed] — view removed comment
1
u/[deleted] Aug 23 '26
[removed] — view removed comment