From: Philippe Blaise <phblai@mimosa.ceng.cea.fr>
Subject: Re: memory limits
Date: 2000/02/10 [thread overview]
Message-ID: <38A26165.1A5F3849@mimosa.ceng.cea.fr> (raw)
In-Reply-To: 87sd39$ojg$2@nserve1.acs.ucalgary.ca
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/
next prev parent reply other threads:[~2000-02-10 5:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-08 5:00 memory limits Philippe Blaise
2000-02-09 5:00 ` Serguei Patchkovskii
2000-02-10 5:00 ` Philippe Blaise [this message]
2000-02-09 5:00 ` Aurel Balmosan
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox