Date: Sun, 18 May 2014 22:45:46 +0200 From: Thierry Thomas <thierry@FreeBSD.org> To: Scot Hetzel <swhetzel@gmail.com> Cc: FreeBSD Ports <freebsd-ports@freebsd.org> Subject: Re: Patch wanted: VmRSS, VmSize and VmStk in /proc/pid/status Message-ID: <20140518204546.GC48335@graf.pompo.net> In-Reply-To: <CACdU%2Bf-vz57w37uiDbD8kApNz-Z6JDQCWnu9nuSBebMnWLf-xg@mail.gmail.com> References: <20140512213551.GE60374@graf.pompo.net> <CACdU%2Bf-h-kR%2BT%2BGTXH_u1zhQwk5jD9aEO6rQD6eQTn_rWb8eug@mail.gmail.com> <20140513200131.GK23856@graf.pompo.net> <CACdU%2Bf-vz57w37uiDbD8kApNz-Z6JDQCWnu9nuSBebMnWLf-xg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Le mer 14 mai 14 à 10:03:34 +0200, Scot Hetzel <swhetzel@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140518204546.GC48335>