Physical memory (RAM)

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Joel Dudley
Date:  
Subject: Physical memory (RAM)
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C1DC44.1802AD40
Content-Type: text/plain;
    charset="ISO-8859-15"


If you strace /usr/bin/free you will see that it simply reads in
/proc/meminfo.

- Joel



-----Original Message-----
From: Isaac Sparrow [mailto:isaac.sparrow@visicomp.com]
Sent: Thursday, April 04, 2002 6:27 PM
To:
Subject: Physical memory (RAM)



Does anyone know of a way to get the amount of physical memory (RAM)
pragmatically using C/C++?

Thanks,
- --

- -------------------------------------------------------------------
Isaac Sparrow

GnuPG Key Fingerprint:
1060 5A07 F6EC B2B3 9AAA 3EA5 7B79 EFE1 6397 4F47
Get my public key at:
http://www.concentric.net/~issparow

    A pushy romeo asked a gorgeous elevator operator, "Don't all these
stops and starts get you pretty worn out?"  "It isn't the stops and starts
that get on my nerves, it's the jerks."


________________________________________________
See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post
to the list quickly and you use Netscape to write mail.

PLUG-discuss mailing list -
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

------_=_NextPart_001_01C1DC44.1802AD40
Content-Type: text/html;
    charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DISO-8859-15">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: Physical memory (RAM)</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>If you strace /usr/bin/free you will see that it =
simply reads in /proc/meminfo.</FONT>
</P>

<P><FONT SIZE=3D2>- Joel</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Isaac Sparrow [<A =
HREF=3D"mailto:isaac.sparrow@visicomp.com">mailto:isaac.sparrow@visicomp=
.com</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Thursday, April 04, 2002 6:27 PM</FONT>
<BR><FONT SIZE=3D2>To: </FONT>
<BR><FONT SIZE=3D2>Subject: Physical memory (RAM)</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>-----BEGIN PGP SIGNED MESSAGE-----</FONT>
<BR><FONT SIZE=3D2>Hash: SHA1</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Does anyone know of a way to get the amount of =
physical memory (RAM) </FONT>
<BR><FONT SIZE=3D2>pragmatically using C/C++?</FONT>
</P>

<P><FONT SIZE=3D2>Thanks,</FONT>
<BR><FONT SIZE=3D2>- -- </FONT>
</P>

<P><FONT SIZE=3D2>- =
-------------------------------------------------------------------</FON=
T>
<BR><FONT SIZE=3D2>Isaac Sparrow</FONT>
</P>

<P><FONT SIZE=3D2>GnuPG Key Fingerprint:</FONT>
<BR><FONT SIZE=3D2>1060 5A07 F6EC B2B3 9AAA 3EA5 7B79 EFE1 6397 =
4F47</FONT>
<BR><FONT SIZE=3D2>Get my public key at:</FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://www.concentric.net/~issparow" =
TARGET=3D"_blank">http://www.concentric.net/~issparow</A></FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>A pushy =
romeo asked a gorgeous elevator operator, &quot;Don't all these</FONT>
<BR><FONT SIZE=3D2>stops and starts get you pretty worn =
out?&quot;&nbsp; &quot;It isn't the stops and starts</FONT>
<BR><FONT SIZE=3D2>that get on my nerves, it's the jerks.&quot;</FONT>
</P>

<P><FONT SIZE=3D2>-----BEGIN PGP SIGNATURE-----</FONT>
<BR><FONT SIZE=3D2>Version: GnuPG v1.0.6 (GNU/Linux)</FONT>
<BR><FONT SIZE=3D2>Comment: Give the NSA something to do. Use =
GnuPG!</FONT>
</P>

<P><FONT =
SIZE=3D2>iD8DBQE8rP1Se3nv4WOXT0cRAi2lAKCRH7QSBQbZeVmJ7H80Q9aDi9C7qACcCmP=
x</FONT>
<BR><FONT SIZE=3D2>YS9ZLtV8d01bsl9wYiSIpHw=3D</FONT>
<BR><FONT SIZE=3D2>=3D8B9l</FONT>
<BR><FONT SIZE=3D2>-----END PGP SIGNATURE-----</FONT>
<BR><FONT =
SIZE=3D2>________________________________________________</FONT>
<BR><FONT SIZE=3D2>See <A =
HREF=3D"http://PLUG.phoenix.az.us/navigator-mail.shtml" =
TARGET=3D"_blank">http://PLUG.phoenix.az.us/navigator-mail.shtml</A> if =
your mail doesn't post to the list quickly and you use Netscape to =
write mail.</FONT></P>

<P><FONT SIZE=3D2>PLUG-discuss mailing list&nbsp; -&nbsp; =
</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss" =
TARGET=3D"_blank">http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-=
discuss</A></FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C1DC44.1802AD40--