Is my ram usage too high
Am I in trouble if I receive peaks user in the 2000k in a day?
total used free shared buffers cached
Mem: 360 332 27 0 18 109
-/+ buffers/cache: 205 154
Swap: 255 53 202
5 Replies
I was afraid of the 27. on the first line.
Should I generally look at the second line instead?
peter@fremont ~ $ vmstat
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 140 8648 60452 73076 0 0 1 1 6 14 0 0 100 0
````
and pay attention to si and so (swapped in and swapped out). Depending on your usage, the kernel will swap out VM pages that have not been accessed recently in order to free up RAM for buffers. A little swapping in those circumstances is OK, but if those numbers start to climb - you're swapping active pages and your performance will suffer.
@Karnius:
I was afraid of the 27. on the first line.
Should I generally look at the second line instead?
Yeah… you (have paid|are paying) good money for that memory, so the kernel will tend to cache data/objects/programs in memory to keep things fast. This can involve swapping stuff to disk if the kernel thinks that's the most efficient way to go. (It would be a shame to keep getty in memory just because there's still free RAM, you know?
Si and so are not moving from 0 so all is good,
Thank you for the explications