Proc - statm file

The statm file contains more detailed information about the process memory usage. Its seven fields are explained here.

Contents of the statm files (as of 2.6.8-rc3)

FieldContentComments
sizeTotal program size (pages).Same as VmSize in status.
residentSize of memory portions (pages)Same as VmRSS in status.
sharedNumber of pages that are shared.i.e. backed by a file.
trsNumber of pages that are 'code'.Not including libs; broken, includes data segment.
lrsNumber of pages of library.Always 0 on 2.6.
drsNumber of pages of data/stack.
dtNumber of dirty pages.Always 0 on 2.6.