FG

How does top calculate the memory figures on Linux?

Fresh3 days ago
Mar 15, 20263800 views
Confidence Score0%
0%

Problem

I'm a bit confused on how the memory figures add up in top. If I've understood correctly, the amount of "really" used memory is total - free - buffers - cached. In the example below that would be 14370248k - 75736k - 178892k - 10459552k = 3656068k, which is 25% of the total memory (3656068/14370248…

Error Output

top - 15:37:00 up 117 days, 18:27,  6 users,  load average: 4.82, 4.44, 3.60
Tasks: 433 total,   4 running, 429 sleeping,   0 stopped,   0 zombie
Cpu…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How does top calculate the memory figures on Linux?

Low Risk

The httpd processes probably share some memory, because they are forked from each other. Because of the copy-on-write mechanism, they all claim that memory as their own virtual memory even though it only exists once in physical memory. In general, t…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment