On Sun, May 18, 2014 at 3:45 PM, Thierry Thomas <thie...@freebsd.org> wrote: > Le mer 14 mai 14 à 10:03:34 +0200, Scot Hetzel <swhet...@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. > Have a look at the Linux Kernel:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/fs/proc Look at array.c and task_mmu.c to see how VmPeak is calculated. -- DISCLAIMER: No electrons were maimed while sending this message. Only slightly bruised. _______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"