5.5. Memory Diagnostic Tools
Memory data are provided by memory diagnostic tools including size, vmstat and ipcs, as well as by glance and sar.
Size produces section size information for each section in the object files. The size of the text, data and BSS (uninitialized data) sections are printed along with the total size of the object file. Two examples of output from the size command are shown below; the first provides a summary, and the second, using the -v option, provides the information in more detail.
The output of the size command may be misleading for executables that use shared libraries or shared memory, and have large heap and/or stack sizes. The text and data metrics reported by size do not include any of these areas. ...