Date: Mon, 19 May 2014 01:30:14 -0500 From: Scot Hetzel <swhetzel@gmail.com> To: Scot Hetzel <swhetzel@gmail.com>, FreeBSD Ports <freebsd-ports@freebsd.org> Subject: Re: Patch wanted: VmRSS, VmSize and VmStk in /proc/pid/status Message-ID: <CACdU%2Bf_gTtkP4kDHv73fRk-dfXnc7ZOmBuPpzTUnEghof_m3Eg@mail.gmail.com> In-Reply-To: <20140518204546.GC48335@graf.pompo.net> 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> <20140518204546.GC48335@graf.pompo.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 18, 2014 at 3:45 PM, Thierry Thomas <thierry@freebsd.org> wrote= : > Le mer 14 mai 14 =E0 10:03:34 +0200, Scot Hetzel <swhetzel@gmail.com> > =E9crivait : > >> >> > 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 tho= se values: >> >> >> >> https://svnweb.freebsd.org/base/head/sys/compat/linprocfs/linprocfs.c= ?revision=3D263620&view=3Dmarkup#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. > Have a look at the Linux Kernel: https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/f= s/proc Look at array.c and task_mmu.c to see how VmPeak is calculated. --=20 DISCLAIMER: No electrons were maimed while sending this message. Only slightly bruised.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACdU%2Bf_gTtkP4kDHv73fRk-dfXnc7ZOmBuPpzTUnEghof_m3Eg>