Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Physical Memory Size
@ 1994-10-12 20:13 Cheryl DeMatteis
  1994-10-12 23:11 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  0 siblings, 1 reply; 2+ messages in thread
From: Cheryl DeMatteis @ 1994-10-12 20:13 UTC (permalink / raw)


Is there a system call that will give me the size of the physical memory on a
particular machine ?

In Solaris the following code works:
	sysconf(_SC_PHYS_PAGES);

Our version of OSF/1 2.0b does not recognize _SC_PHYS_PAGES

Thanks for the help.
-- 
Cheryl K. DeMatteis					    cdematt@cs.ucr.edu
Graduate Student					    (909)787-3392
Department of Computer Science 				
University of California
Riverside, CA 92521



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

* Re: Physical Memory Size
  1994-10-12 20:13 Physical Memory Size Cheryl DeMatteis
@ 1994-10-12 23:11 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1994-10-12 23:11 UTC (permalink / raw)



In article <37hg1p$gpo@galaxy.ucr.edu>, cdematt@corsa.ucr.EDU (Cheryl DeMatteis) writes:

>Is there a system call that will give me the size of the physical memory on a
>particular machine ?

Try the getsysinfo(2) system call with GSI_PHYSMEM as the type
code. GSI_PHYSMEM is defined in <sys/sysinfo.h> and may need
to have ULT_BIN_COMPAT defined.

>
>Thanks for the help.
>-- 
>Cheryl K. DeMatteis					    cdematt@cs.ucr.edu

--
Alan Rollow				alan@nabeth.cxo.dec.com



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

end of thread, other threads:[~1994-10-12 23:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-10-12 20:13 Physical Memory Size Cheryl DeMatteis
1994-10-12 23:11 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.

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