New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Linux Distro with low ram usage ?
After a lot of thinking I finally got my vps from @backupsy today & chose CentOS .
Now this is the first time I have gotten a vps with ram as low as 512 MB but I was surprised to see the system using around 250 MB right after installation. I haven't installed anything myself yet. The remaining ram will hardly fulfill my needs. So, can you please
1) tell me if this much ram consumption is normal for centos ?
2) Any Linux Distro that take up very little ram ? Whenever I have installed linux variants, the ram is usually no more than 50 MB at startup.
Comments
thats not normal I think.
Debian 6 minimal 32 bit: 4MB ram
Paste free -m
https://github.com/maxexcloo/Minimal
4mb :S I don't have the right words to express my shock & I always wondered how people managed to live with a 32mb vps
offtopic: I think inception is a great host too kudos to @AnthonySmith for doing such a fine job
Just have to cut down on the many programs you don't need running. Some existing scripts already do this.
@raza19 Deban should use littler RAM. Or go with Turnkey Linux.
@raza19
It's so awesome to have a clean image with only 4MB ram. So you can add everything that you need
@trexos Which provider has such template?
LowEndSpirit (@Anthony) and BandWagonHost
My CentOS with Backupsy is only eating about 225MB, with cPanel DNS-Only installed.
Use Minstall, it will help strip down the OS. I've been using it extensively recently.
It's easy to add the Debian 6 32bit minimal template to the SolusVM or another panel.
Just download it here http://download.openvz.org/template/precreated/contrib/debian-6.0-i386-minimal.tar.gz
By using this template, the ram usage usually just 3mb or 9mb
@raza19 Fresh install CentOS should be use less than 100MB RAM. My CentOS box using 50-60MB RAM even after installing nginx, php-fpm and mariadb.
Debian 7 x32 running at 12MB with 2 active SSH connections.
Is debian 7 32bit minimal not out yet? Waiting for ramnode!
some providers have debian 7 eating 4mb
Had that one right from the start.
Quite lot of provider already have deb7 minimal template.
Though i'm staying with deb6 for some reason.
I can have 2mb ram usage after i clean up everything.
Try using dropbear as the SSH server, that will help minimize the ram usage a bit more.
Looks like you got the ram usage from "top" command.
Whats the output of "free -m" ?
4mb is impressive.
Seems like a straight Debian install will get you a minimal mem usage, as it comes with almost nothing running. Otherwise, it will still have some items that can be tweaked and services that can run lighter.
OP mentioned that it's Backupsy, which is using KVM virtualization.
Isn't it fundamentally different with OpenVZ? My minimal OpenVZ CentOS 6 template also only consumes around 5 MB of RAM. But each KVM guest also has its own kernel memory space, which will boosts up its RAM usage considerably (not to mention QEMU process memory overhead on host node). I think we should not compare the RAM usage with OpenVZ at all.
Backupsy, Debian 7 32bit, default installation with latest updates: 26MB used memory
Another KVM VPS, same distro with latest updates: 14MB used memory
@Pertti reboot once and check again
@netomx oh well, rebooted and new values are: backupsy 15MB and another 11MB.
Excellent, good numbers on KVM
OpenVz and KVM manage and display memory differently. Cross-comparisons are really a waste of time.
Any distro, if pared down to minimal running processes, will use approximately the same amount of minimal memory -- CentOS, Debian, Ubuntu are all alike.
On Linux, the memory usage you see with 'free' may not equate with the sum of the processes you see with 'top' or 'ps' for many reasons. Linux caches varies thing to memory (like inode access) that may in fact inflate your 'used' memory (not your cached memory!). And OpenVz and KVM behave differently in this regard.
If you want to run in minimal memory, pare down your daemons to nothing but ssh (or smaller still, dropbear). Reboot to clear all cached data and go from there.
@raza19 Are you sure you're not looking at the values including disk cache?
I was confused too until I read : Linux Ate My Ram!
I don't know why people seem to think memory usage depends on the Linux distribution. They all use the same kernel and almost all the same packages. It's just a matter of figuring out what to remove and how to configure things.
Some may use less memory out of the box but again, that comes down to default packages and configurations.
Also, keep in mind that if you are using OpenVZ you are going to be using less memory because your VPS is not running a kernel.