From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,affc9253379a8d98,start X-Google-Attributes: gidfee84,public X-Google-Thread: 1020c6,affc9253379a8d98,start X-Google-Attributes: gid1020c6,public From: claird@Starbase.NeoSoft.COM (Cameron Laird) Subject: Physical RAM visible to Unix Date: 1996/03/16 Message-ID: <4iei2p$fdc@Starbase.NeoSoft.COM>#1/1 X-Deja-AN: 142790115 organization: NeoSoft Internet Services +1 713 968 5800 newsgroups: comp.unix.admin,comp.unix.osf.osf1 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? 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. -- Cameron Laird http://starbase.neosoft.com/~claird/home.html claird@NeoSoft.com +1 713 623 8000 #227 +1 713 996 8546 FAX