Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Physical RAM visible to Unix
@ 1996-03-16  5:00 Cameron Laird
  1996-03-19  5:00 ` Thong Ly
  0 siblings, 1 reply; 2+ messages in thread
From: Cameron Laird @ 1996-03-16  5:00 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Physical RAM visible to Unix
  1996-03-16  5:00 Physical RAM visible to Unix Cameron Laird
@ 1996-03-19  5:00 ` Thong Ly
  0 siblings, 0 replies; 2+ messages in thread
From: Thong Ly @ 1996-03-19  5:00 UTC (permalink / raw)


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 <tly@japan.ml.com>     Technology, Merrill Lynch Japan Inc.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-03-19  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-03-16  5:00 Physical RAM visible to Unix Cameron Laird
1996-03-19  5:00 ` Thong Ly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox