Determining system memory

Eddie Wyatt edw at IUS1.CS.CMU.EDU
Thu Mar 31 23:42:47 AEST 1988


 > I have been trying to find a nice, clean way to determine system
 > memory under SYS V 2.2.  I have come up with two solutions to this
 > problem.  However, there must be a cleaner/faster way :-).
 > 
	....

 > Any other solutions are welcome (especially those that are faster :-)

If what you are really interested in is the memory currently available
to a given process I suggest using sbrk.  sbrk memory
in fix block sizes until sbrk fails.
-- 

Eddie Wyatt 				e-mail: edw at ius1.cs.cmu.edu



More information about the Comp.unix.questions mailing list