Date: Fri, 27 Jan 2006 11:47:19 +0100 From: Ulrich Spoerlein <q@galgenberg.net> To: Simon Barner <barner@freebsd.org> Cc: FreeBSD Ports <ports@freebsd.org> Subject: Re: porting an app that checks /proc/meminfo Message-ID: <20060127104719.GC1141@galgenberg.net> In-Reply-To: <20060126002520.GK1692@zi025.> References: <20060124172317.GF72149@iib.unsam.edu.ar> <20060124205937.GC21232@odin.ac.hmc.edu> <20060126002520.GK1692@zi025.>
next in thread | previous in thread | raw e-mail | index | archive | help
--y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Simon Barner wrote: > Brooks Davis wrote: > > If you want the ram used by a particular process use getrusage(2). >=20 > Unfortuantely, memory usage information does not seem to be implemented on > Linux (it certainly is on FreeBSD). Another instance of those annoying > portability issues... This is a big annoyance for me. I have to (somewhat) accurately track the max. memory usage of my program, which is easily done on my FreeBSD development machine, but it's impossible to do on the Linux machines I have to do the runtime measurements. Darn Linux! Ulrich Spoerlein --=20 PGP Key ID: 20FEE9DD Encrypted mail welcome! Fingerprint: AEC9 AF5E 01AC 4EE1 8F70 6CBD E76E 2227 20FE E9DD Which is worse: ignorance or apathy? Don't know. Don't care. --y0ulUmNC+osPPQO6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD2fo3524iJyD+6d0RAkQwAJ93u24zod6FzsGc8GAviI+l+aw6TQCgnOZv G0jYC4nDp7fuk7ziChvQH5o= =XQHg -----END PGP SIGNATURE----- --y0ulUmNC+osPPQO6--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060127104719.GC1141>