top: exploit new linux-4.5 resident memory enhancement
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
This patch just represents the initial library and top
support, sharing a commit message with 2 more patches.
p.s. locked resident memory support was also added but
isn't directly related to the kernel 4.5 enhancements.
Reference(s):
commit 1f8e41d019
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
@@ -281,6 +281,18 @@ static void build_two_nlstabs (void) {
|
||||
/* Translation Hint: maximum 'CGNAME' = 7 */
|
||||
Head_nlstab[EU_CGN] = _("CGNAME");
|
||||
Desc_nlstab[EU_CGN] = _("Control Group name");
|
||||
/* Translation Hint: maximum 'RSan' = 4 */
|
||||
Head_nlstab[EU_RZA] = _("RSan");
|
||||
Desc_nlstab[EU_RZA] = _("RES Anonymous (KiB)");
|
||||
/* Translation Hint: maximum 'RSfd' = 4 */
|
||||
Head_nlstab[EU_RZF] = _("RSfd");
|
||||
Desc_nlstab[EU_RZF] = _("RES File-based (KiB)");
|
||||
/* Translation Hint: maximum 'RSlk' = 4 */
|
||||
Head_nlstab[EU_RZL] = _("RSlk");
|
||||
Desc_nlstab[EU_RZL] = _("RES Locked (KiB)");
|
||||
/* Translation Hint: maximum 'RSsh' = 4 */
|
||||
Head_nlstab[EU_RZS] = _("RSsh");
|
||||
Desc_nlstab[EU_RZS] = _("RES Shared (KiB)");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user