Skip to content
  • jim warner's avatar
    library: exploit linux-4.5 resident memory enhancement · cb0e2109
    jim warner authored and Craig Small's avatar Craig Small committed
    
    
    Since support already exists in the newlib branch this
    represents an equivalent master branch implementation,
    and this commit message is shared with 2 more patches.
    
    Beginning with linux-4.5, the following new fields are
    being added under that /proc/<pid>/status pseudo file:
     . RssAnon - size of resident anonymous memory
     . RssFile - size of resident file mappings
     . RssShmem - size of resident shared memory
    
    p.s. Locked resident memory support was also added but
    isn't directly related to the kernel 4.5 enhancements.
    
    p.p.s. Archlinux, Debian-stretch and Fedora-23 already
    are currently using a 4.5 linux kernel (as of 6/2/16).
    
    Signed-off-by: default avatarJim Warner <james.warner@comcast.net>
    cb0e2109