From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1020c6,affc9253379a8d98 X-Google-Attributes: gid1020c6,public X-Google-Thread: fee84,affc9253379a8d98 X-Google-Attributes: gidfee84,public From: tly@morticia (Thong Ly) Subject: Re: Physical RAM visible to Unix Date: 1996/03/19 Message-ID: #1/1 X-Deja-AN: 143334895 sender: usenet@tigadmin.ml.com (News Account) references: <4iei2p$fdc@Starbase.NeoSoft.COM> followup-to: comp.unix.admin,comp.unix.osf.osf1 organization: Technology, Merrill Lynch Japan Inc. reply-to: tly@japan.ml.com newsgroups: comp.unix.admin,comp.unix.osf.osf1 Cameron Laird (claird@Starbase.NeoSoft.COM) wrote: : How can I see RAM programmatically? What does a generalized : Unix system know about this aspect of hardware? : Some (most? all?) Unix flavors have this visible as a compile- : time kernel parameter, which shows up someplace below /etc. : Is there a way to ask /dev/mem for this information? In some of the UNIXes that I know, if you have access to /dev/mem, you can try to figure out how large RAM is by trying to get past the end. : Why do I need this? I have a number of motivations; easiest : to explain is that I want to automate this aspect of inventory. : I'd like to remotely inquire machines about how much RAM they : have, in part to ensure that it's not getting up and walking : away (anyone else had this problem?). : Very mildly-related question: is there a general way to ask a : machine how its swap-space is configured? : I'd be happy for an answer either at a command-line level, or : in terms of systems calls. : -- Under UnixWare, check out memsize(1M). Regards, Thong -- Thong Ly Technology, Merrill Lynch Japan Inc.