🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.unix
Article #687

Finding physical memory size

#687
From: John G Dobnick
Date: Tue, 01 Jan 1991 03:08
50 lines
2312 bytes
Submitted-by: jgd@csd4.csd.uwm.edu (John G Dobnick)

This is perhaps a silly question, but since I haven't used this year's
quota of silliness yet... :-)


Our CONVEX system, which claims POSIX compliance, has a system call
that returns "system configuration" information.  If my memory serves
(I'd check, but the books are at work, and the machine is being "PM"ed),
the C-library function 'getsysinfo' retrieves this information.  Among
the items retrieved are

	System type
	Operating system type
	Operating system level (or version number)
	Processor type
	Processor serial number
	number of Processors (But, with multiple processors, shouldn't
			      we also get multiple serial numbers?  Hmmm.)
	Processor option mask (I believe this is an 'extension')
	Memory interleave factor (also an extension, I believe)

One item glaringly missing is the size of physical memory installed.
The writeup for the function claims it returns "system information", not
"CPU information".   In my book, a "system" includes processors AND
memory.

My question, to those of you who know what happened in the
standardization process is threefold:

	a) Was memory size even considered for inclusion in the
	   'getsysinfo' (or whatever it's really named) call.

	b) If is was considered, why was it not included.

	c) How does one interrogate the system, in a 'standard' way,
	   to determine physical memory size?   (My initial guess is
	   that the answer will be "You don't.")

Have a Happy New Year, folks!
-- 
John G Dobnick  (JGD2)
Computing Services Division @ University of Wisconsin - Milwaukee
INTERNET: jgd@csd4.csd.uwm.edu             ATTnet: (414) 229-5727
UUCP: uunet!uwm!csd4.csd.uwm.edu!jgd

"Knowing how things work is the basis for appreciation,
and is thus a source of civilized delight."  -- William Safire

Volume-Number: Volume 22, Number 51
Technical Details
Message-ID: <16397@cs.utexas.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!jsq

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!jsq
From: jgd@csd4.csd.uwm.edu (John G Dobnick)
Newsgroups: comp.std.unix
Subject: Finding physical memory size
Message-ID: <16397@cs.utexas.edu>
Date: 1 Jan 91 03:08:13 GMT
Sender: jsq@cs.utexas.edu
Reply-To: jgd@csd4.csd.uwm.edu
Lines: 50
Approved: jsq@cs.utexas.edu (Moderator, John S. Quarterman)
X-Submissions: std-unix@uunet.uu.net