Re: /proc/meminfo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 25 Apr 2006, kernel learner wrote:

> why MemFree + MemShared + Buffers + Cached + SwapCached + Active + 
> Inactive != MemTotal ??

The system has a number of miscellaneous kernel memory allocations
too.  Lets call those "misc kernel".  Also, some of the categories
you mention overlap with others, ie. pages belong to multiple of
the categories at once.

Active + Inactive + free + misc kernel = MemTotal

Buffers + Cached + SwapCached + misc kernel + process memory
not accounted for in the previous categories + free = MemTotal

> What should i add that i can account for the MemTotal memory?
> in this and on per process basis.

A per process basis is difficult too, because processes
often share a lot of memory.  Eg. almost all processes in
the system will be sharing the same C library.

-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux