0

My Ubuntu 12.04.2 server (all packages and distribution completely up to date) was just using 558MB of RAM when I shelled in this morning. Nothing is running on the server besides sshd and whatever comes with the distribution. There was only 1 "break-in attempt" from China in /var/log/auth.log (so nothing wildly out of the ordinary there). Every port besides 22 is sealed off from outside from inbound traffic, by iptables.

Is it quite normal for an Ubuntu 12.04.2 server to be using +500MB of RAM after running for only 3 days, or should I be concerned? In case you're wondering, I don't have process info, because I didn't think much of it at first, so I rebooted :(

Memory usage 30 minutes after rebooting (appears normal still):

$free -m
             total       used       free     shared    buffers     cached
Mem:          1995        128       1867          0          5         50
-/+ buffers/cache:         72       1923
Swap:         1953          0       1953
orokusaki
  • 3,031

1 Answers1

2

You need to look at the -/+ buffers/cache figures. This is what the server is really using; the rest is used to buffer/cache I/O and can be reclaimed by the kernel when required (subject to the swappiness setting).

Over time, the kernel uses spare memory to cache data from disk I/O. If there's memory pressure, this space can be reclaimed. The 72 is the amount of memory that is really being used by running processes, and the 1923 is the notional amount of memory available if all buffers and cache were purged.

Flup
  • 8,398