Date: Fri, 27 Jan 2006 11:53:13 +0100 From: Ulrich Spoerlein <q@galgenberg.net> To: Fernan Aguero <fernan@iib.unsam.edu.ar> Cc: FreeBSD Ports <ports@freebsd.org> Subject: Re: porting an app that checks /proc/meminfo Message-ID: <20060127105313.GD1141@galgenberg.net> In-Reply-To: <20060124172317.GF72149@iib.unsam.edu.ar> References: <20060124172317.GF72149@iib.unsam.edu.ar>
next in thread | previous in thread | raw e-mail | index | archive | help
--H1spWtNR+x+ondvy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Fernan Aguero wrote: > How does one gets the values of > i) memory used by the program/process and As others have already told you: getrusage(2) > ii) amount of RAM available in the computer without using > /proc/meminfo in FreeBSD? What for? It is a rather useless value anyway. Either your malloc(3) calls succeed or not. If they do depends not only on RAM, but on the VM, Swap, and limits(1) (please correct me, if I'm wrong). So the question is, what's the value used for in his program? 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. --H1spWtNR+x+ondvy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD2fuZ524iJyD+6d0RAq85AJ9DOxiN9oCX4legdWhhS8AUdVqRbgCgqL/l U4hwxoSqG87Af0Io+2m//9s= =+W4s -----END PGP SIGNATURE----- --H1spWtNR+x+ondvy--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060127105313.GD1141>