Patch wanted: VmRSS, VmSize and VmStk in /proc/pid/status

Thierry Thomas thierry at FreeBSD.org
Sun May 18 20:45:51 UTC 2014


Le mer 14 mai 14 à 10:03:34 +0200, Scot Hetzel <swhetzel at gmail.com>
 écrivait :

> >> > It's why I'm looking for help here: does somebody knows how the
> >> > corresponding values of these Vm... can be found in FreeBSD?
> >>
> >> You could try reading the source for linprocfs to see how it gets those values:
> >>
> >> https://svnweb.freebsd.org/base/head/sys/compat/linprocfs/linprocfs.c?revision=263620&view=markup#l748
> >
> > Good idea, I'll check it!
> 
> You may also want to check usr.bin/procstat and lib/libprocstat.

Here I am - almost! I have written a patch giving all these values -
excepted VmPeak: I cannot find its definition neither in linprocfs nor
elsewhere. This value is also missing from our
/compat/linux/proc/%pid%/status.

Setting it to -1 seems working, but if someone knows how to get it, it
would be better.

Thanks!
-- 
Th. Thomas.


More information about the freebsd-ports mailing list