Can the %MEM value for a process show more than 100% in top output?Is this ever possible?
Asked
Active
Viewed 985 times
1 Answers
3
No it can't. According to the manual it is only the physical memory and in real life you can not have more than 100% memory, can you?
n: %MEM -- Memory usage (RES)
A task's currently used share of available physical memory.
o: VIRT -- Virtual Image (kb)
The total amount of virtual memory used by the task. It
includes all code, data and shared libraries plus pages that
have been swapped out and pages that have been mapped but not
used.
p: SWAP -- Swapped size (kb)
Memory that is not resident but is present in a task. This is
memory that has been swapped out but could include additional
non-resident memory. This column is calculated by subtracting
physical memory from virtual memory.
q: RES -- Resident size (kb)
The non-swapped physical memory a task has used.

mailq
- 17,023
- 2
- 37
- 69
-
What if it is using some swap? Theoretically can it ever be more than 100%? – user973430 Sep 30 '11 at 19:54
-
1Swap is virtual memory. Not physical. So you know the answer... – mailq Sep 30 '11 at 20:06
-
mailq is correct... another way to think of the same answer: the only way it would show >100% is if the measurement was something ridiculous... like "what is the percentage of `physical memory` that is taken up by `physical memory` **and** `virtual memory/swap`..." like "what is the percentage of bananas that is taken up by bananas and pineapples"... well 100% of the bananas + the pineapples... who cares about pineapples?! – brandeded Sep 30 '11 at 20:27