Re: memory allocation in unix

From: Rich Teer (rich.teer_at_rite-group.com)
Date: 01/25/05


Date: Tue, 25 Jan 2005 18:25:52 GMT

On Tue, 25 Jan 2005, ccwallin wrote:

> You said - "We need to see your data". Who's we? And you did not tell
> me what data YOU wanted to see.

"We" would be the people you're aksing for help, i.e., the people
reading this thread.

> particulars. To wit - what is the calculation that the OS uses to
> determine the amount of memory it can give a program? And yes I know

No such calculation takes place. A process asks for some (virtual)
memory. If enough is available, the request succeds, otherwise it
fails. The kernel doesn't arbitrarily allocate some maximum amount
of VM to a process when it starts.

-- 
Rich Teer, SCNA, SCSA, author of "Solaris Systems Programming"
President,
Rite Online Inc.
Voice: +1 (250) 979-1638
URL: http://www.rite-group.com/rich


Relevant Pages

  • understanding ulimit -r -m -v
    ... -the maximum amount of virtual memory ... fputs("mallocating 4 gigs...\n", stderr); ...
    (Debian-User)
  • 2 or 4GB memory?
    ... A friend whose judgment I normally trust says I'll never need more than ... the 2.0GB memory that comes with the computer. ... maximum amount of memory? ...
    (microsoft.public.windowsxp.hardware)
  • Re: Software manuals [was: Re: App sought that issues mouse codes...]
    ... more RAM. ... I recently did some work on my sister's 2001 vintage Windows ... Unfortunately, the maximum amount ... markedly with that amount of memory. ...
    (comp.sys.acorn.apps)
  • Re: Memory mapped file API failed
    ... The maximum amount of memory that can be mapped into kernel ... mode is determined by the number of kernel page table entries. ... Prev by Date: ...
    (microsoft.public.vc.language)
  • Re: Ultra 2 upgrades
    ... On Fri, 5 Nov 2004, Triffid wrote: ... The more memory, the better. ... promptly replacing a damaged rear panel. ... Rich Teer, SCNA, SCSA, author of "Solaris Systems Programming" ...
    (comp.sys.sun.hardware)