From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,34750a623d70f4d4 X-Google-Attributes: gidfee84,public From: Philippe Blaise Subject: Re: memory limits Date: 2000/02/10 Message-ID: <38A26165.1A5F3849@mimosa.ceng.cea.fr>#1/1 X-Deja-AN: 584010300 Content-Transfer-Encoding: 7bit References: <38A01DEB.B957E36A@mimosa.ceng.cea.fr> <87sd39$ojg$2@nserve1.acs.ucalgary.ca> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsmaster@news.cea.fr X-Trace: ellebore.saclay.cea.fr 950165710 8058 132.168.100.1 (10 Feb 2000 06:55:10 GMT) Organization: (CEA) Commissariat � l'Energie Atomique, France. Mime-Version: 1.0 NNTP-Posting-Date: 10 Feb 2000 06:55:10 GMT Newsgroups: comp.unix.osf.osf1 Serguei Patchkovskii wrote: > Philippe Blaise (phblai@mimosa.ceng.cea.fr) wrote: > : I thought it was not possible to adress more than > : memoryuse 1032192 kbytes > : but a simple program can allocate more : > > I believe that csh 'memoryuse' limit corresponds to RLIMIT_RSS > in getrlimit/setrlimit system calls. Now, looking at the manual > page for setrlimit(2), we see: > > RLIMIT_RSS > [Digital] The maximum size, in bytes, to which a process's > resident set size can grow. This value imposes a limit on the > amount of physical memory to be given to a process. If memory is > in short supply, the system prefers to take memory from processes > that are exceeding their declared resident set size. > I wonder how a process can exceed that declared resident size. Humm.... > > As you can see, this limit applies only in constrained memory > situations, and controls the amount of physical memory your > process can use - provided that there are other ways in which > it can be used by the system. Therefore, calling RLIMIT_RSS a > "limit" is a bit of misnomer - your process may well be able > to use more memory (if system has no other use for it), or it > may be stuck with less memory (if there are higher-priority > uses for that memory). I'd rather call RLIMIT_RSS a hint, made > by your application to the virtual memory subsystem, saying > that you'd *like* to have that much real memory to work optimally ... > Ok I see. So I should set RLIMIT_AS to 1 GB also, if I want interactive session use less than 1 GB. Have you any idea for data and stack size too ? Thanks a lot. Philippe > > Cheers, > > /Serge.P > > P.S. RTFM - it usually helps! > > -- > home page: http://www.cobalt.chem.ucalgary.ca/ps/