From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5a417d13a938d0fb X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-01-02 16:22:44 PST Path: nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!agate!stolcke From: stolcke@ICSI.Berkeley.EDU (Andreas Stolcke) Newsgroups: comp.unix.osf.osf1 Subject: Re: getrusage on DEC OSF1 V1.3 Date: 2 Jan 1995 22:46:39 GMT Organization: International Computer Science Institute, Berkeley, CA, U.S.A. Message-ID: <3e9vof$748@agate.berkeley.edu> References: <3d9pk2$e8l@homer.cs.mcgill.ca> <3d9t2b$obu$1@usenet.pa.dec.com> Reply-To: stolcke@icsi.Berkeley.EDU (Andreas Stolcke) NNTP-Posting-Host: tiramisu.icsi.berkeley.edu In article <3d9t2b$obu$1@usenet.pa.dec.com>, Jeffrey Mogul wrote: >In article <3d9pk2$e8l@homer.cs.mcgill.ca> bremner@cs.mcgill.ca (David BREMNER) writes: >>Can anyone clue me as to why the following program, which prints >>something reasonable on suns running SunOs 4.1.3 and SGI's running >>Irix 5.2, prints 0 on OSF1 V1.3 on a DEC AXP? > >On OSF/1 V2.0 and V3.0, it prints a non-zero value. > >>I realize the working set size is usually an estimate, but always >>returning zero seems a little weak :-) >> >>Is this a well known "feature", or am I doing something wrong? > >I think what you are "doing wrong" is running an old version of >the operating system. V1.3 certainly had bugs that were fixed >in 2.0 or 3.0. > However, even on a 2.0 system, I see the following buggy behavior in /bin/csh: 21% limit mem memoryuse 90912 kbytes 22% limit mem 10000k 23% limit mem memoryuse 0 kbytes (The limit command on other limit types works fine.) I observed the same problem at the C level: as soon as one tries to set the RSS to anything, it in fact is returned as "0" in later getrlimit calls (although programs still run, so this can't be the true limit). -- Andreas Stolcke stolcke@icsi.berkeley.edu International Computer Science Institute stolcke@ucbicsi.bitnet 1947 Center St., Suite 600, Berkeley, CA 94704 (510) 642-4274 ext. 126