Path: utzoo!utgpu!water!watmath!clyde!rutgers!mailrus!tut.cis.ohio-state.edu!bloom-beacon!gatech!udel!rochester!PT.CS.CMU.EDU!IUS1.CS.CMU.EDU!edw From: edw@IUS1.CS.CMU.EDU (Eddie Wyatt) Newsgroups: comp.unix.questions Subject: Re: Determining system memory Message-ID: <1271@PT.CS.CMU.EDU> Date: 31 Mar 88 13:42:47 GMT References: <248@lxn.UUCP> Sender: netnews@PT.CS.CMU.EDU Organization: Carnegie-Mellon University, CS/RI Lines: 15 > 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@ius1.cs.cmu.edu