NetBSD-Bugs archive

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

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



>Number:         50801
>Category:       kern
>Synopsis:       /proc/<pid>/statm has badly set values.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 14 03:10:00 +0000 2016
>Originator:     coypu
>Release:        7.99.25
>Organization:
>Environment:
NetBSD  7.99.25 NetBSD 7.99.25 (GENERIC) #10: Mon Jan 18 05:03:44 IST 2016  fly@localhost.localdomain:/home/fly/netbsd-src/sys/arch/amd64/compile/obj/GENERIC amd64
>Description:
cat /proc/<some program's PID>/statm
2nd and 3rd values are always zero.

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)

For quick access, these values are set at src/sys/miscfs/procfs/procfs_linux.c:364-401.

this affects sysutils/htop.
>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index