From owner-freebsd-ports@FreeBSD.ORG Sun May 18 20:45:51 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7EBB1357 for ; Sun, 18 May 2014 20:45:51 +0000 (UTC) Received: from mx1a.lautre.net (mx1a.lautre.net [80.67.160.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.lautre.net", Issuer "StartCom Class 2 Primary Intermediate Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 37BDA2A4A for ; Sun, 18 May 2014 20:45:50 +0000 (UTC) Received: from graf.pompo.net (graf.pompo.net [78.225.128.39]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: thierry@pompo.net) by mx1a.lautre.net (Postfix) with ESMTPSA id 63E8A40B76; Sun, 18 May 2014 22:45:47 +0200 (CEST) Received: by graf.pompo.net (Postfix, from userid 1001) id D183C71E43A; Sun, 18 May 2014 22:45:46 +0200 (CEST) Date: Sun, 18 May 2014 22:45:46 +0200 From: Thierry Thomas To: Scot Hetzel Subject: Re: Patch wanted: VmRSS, VmSize and VmStk in /proc/pid/status Message-ID: <20140518204546.GC48335@graf.pompo.net> Mail-Followup-To: Scot Hetzel , FreeBSD Ports References: <20140512213551.GE60374@graf.pompo.net> <20140513200131.GK23856@graf.pompo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 10.0-STABLE amd64 Organization: Kabbale Eros X-Face: (hRbQnK~Pt7$ct`!fupO(`y_WL4^-Iwn4@ly-.,[4xC4xc; y=\ipKMNm<1J>lv@PP~7Z<.t KjAnXLs: X-PGP: 0xF1C516B3C8359753 User-Agent: Mutt/1.5.23 (2014-03-12) Cc: FreeBSD Ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 May 2014 20:45:51 -0000 Le mer 14 mai 14 à 10:03:34 +0200, Scot Hetzel é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.