From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,eaf21fee355cfab0,start X-Google-Attributes: gidfee84,public From: tessierr@berclain.com (Richard Tessier) Subject: Available process memory on OSF 3.2 Date: 1996/09/04 Message-ID: <50l1nv$jev@clic3.qbc.clic.net>#1/1 X-Deja-AN: 178547277 organization: ClicNet Telecommunications, Inc. newsgroups: comp.unix.osf.osf1 HI, I'm looking for a way to get the amount of memory that is available for a process. Under several other UNIX platforms (HPUX, SCO ...) we use the available space for the data (using sbrk and ulimit) but this concept doesn't work under OSF (since it can allocate non-contiguous memory blocks, the result of sbrk(0) can be over ulimit(UL_GETBREAK) even if there is no segmentation fault). Is there a way to do something similar(or better !) that would work on OSF 3.2 ? TIA _________________________________________________________________________ Richard Tessier Berclain Group Inc. E-mail: tessierr@berclain.com Research & Development Group Tel.: (418) 656-1454 ext. 1837 3175, Quatre-Bourgeois, Suite 300 Fax : (418) 656-6317 Ste-Foy (Quebec) Web : http://www.berclain.com G1W 2K7