This is one of the more commonly used files in the /proc/ directory, as it reports a large amount of valuable information about the systems RAM usage.

learn more… | top users | synonyms

3
votes
1answer
79 views

How can I get the amount of available memory portably across distributions?

The standard files/tools that report memory seem to have different formats on different Linux distributions. For example, on Arch and Ubuntu. Arch $ free total used free ...
1
vote
2answers
53 views

Recover from faking /proc/meminfo

So, without really thinking too much, I ran this script: #!/bin/bash SWAP="${1:-512}" NEW="$[SWAP*1024]"; TEMP="${NEW//?/ }"; OLD="${TEMP:1}0" sed "/^Swap\(Total\|Free\):/s,$OLD,$NEW," /proc/meminfo ...
5
votes
0answers
196 views

What is using 4GB of memory? (Not cache, not a process, not slab, not shm)

We have some EC2 servers that experience a memory leak over days or weeks. Eventually there gets to be many GB of memory that is used (according to tools like free and htop) and, if we don't restart ...
1
vote
0answers
46 views

Investigating Active MemInfo

I am seeing high Active usage when I do a cat /proc/meminfo : MemTotal: 65965328 kB MemFree: 51640992 kB Buffers: 1050332 kB Cached: 8516112 kB SwapCached: 0 kB Active: 11512732 kB Inactive: 1878028 ...
2
votes
0answers
80 views

In meminfo, sometimes Mapped more than Cached

In /proc/meminfo, AFAIK Cached >= Mapped But after /proc/sys/vm/drop_caches, it goes to Cached < Mapped Cached: 66132 kB Mapped: 67792 kB /proc/meminfo contents ...
4
votes
1answer
615 views

When is swap triggered or how to calculate swap_tendency?

I'm trying to use Redis for production services and trying to avoiding swapping, which is bad for performance. I had learn that swap is triggered by swap_tendency which is depending on ...
61
votes
6answers
59k views

How to display meminfo in megabytes in top?

Sometimes it is not comfortable to see meminfo in kilobytes while you have several gigs of RAM. In Linux it looks like that: And here is how it looks in Mac OS X: Is there a way to display ...