NetBSD-Bugs archive

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

Re: kern/50801: /proc/<pid>/statm has badly set values.



The following reply was made to PR kern/50801; it has been noted by GNATS.

From: mlelstv%serpens.de@localhost (Michael van Elst)
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/50801: /proc/<pid>/statm has badly set values.
Date: Sun, 14 Feb 2016 08:23:55 +0000 (UTC)

 coypu%sdf.org@localhost writes:
 
 >from linux man proc:
 >2nd value:
 >resident   (2) resident set size
 >           (same as VmRSS in /proc/[pid]/status)
 >3rd value:
 >share      (3) shared pages (i.e., backed by a file)
 
 The kernel doesn't gather statistics for the shared pages,
 so none can be reported.
 
 The RSS size on the other hand is easy to provide. The
 data is kept in the MD pmap code and must be fetched.
 It's already done for /proc/[pid]/stat.
 
 -- 
 -- 
                                 Michael van Elst
 Internet: mlelstv%serpens.de@localhost
                                 "A potential Snark may lurk in every tree."
 


Home | Main Index | Thread Index | Old Index