RAM usage on fresh install of debian
One VPS is using roughly 10mb right after the install, and the other is using 30mb. I'm just wondering why this is (both are minimal).
16 Replies
@sneaks:
So I have 2 VPS and I installed debian on both of them.
One VPS is using roughly 10mb right after the install, and the other is using 30mb. I'm just wondering why this is (both are minimal).
Look at the output of top (then hit F n) to see why. Also,
@sneaks:
Thanks for the link. So is there a way to tell exactly how much memory is actually being used?
yes, use top. hit F n to sort by memory use, then examine the top, say, 10 entries.
This script:
attempts to do that. (I may have found out about it on this forum but I don't recall…)
@sneaks:
One VPS is using roughly 10mb right after the install, and the other is using 30mb.
Could just be the time factor – maybe a cron job happened to kick in just before you looked at the ram usage on one of them, or there was some other relatively normal activity that lead to a bit of caching.
ps, htop and your logs should all help, if you want to see what actually happened (probably a bit late now though, unless you want to start the experiment all over again…).
Also, they're probably on different hosts, and different hosts may have different kernels and xen versions, which theoretically may influence RAM usage inside the VM.
The Xen version of the host is less likely to cause dramatic changes, but it could have a similar influence. Maybe newer virtualized hardware passes more information to the child kernel's drivers; maybe there are features and optimizations that can be used on one combination of child and host versions but not on another; there are other, deeper/more obscure oddities possible.
You'll see similar discrepancies if you run a kernel on many different combinations of real hardware. Code is going to allocate different amounts of RAM in different situations.