From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,f39881a89bd1f4de,start X-Google-Attributes: gidfa528,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail From: "ccwallin" Newsgroups: comp.unix.tru64 Subject: memory allocation for programs Date: 19 Jan 2005 12:03:47 -0800 Organization: http://groups.google.com Message-ID: <1106165027.102646.257220@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: 216.60.25.6 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1106165031 15585 127.0.0.1 (19 Jan 2005 20:03:51 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 19 Jan 2005 20:03:51 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: f14g2000cwb.googlegroups.com; posting-host=216.60.25.6; posting-account=uw7opQwAAAAw24_DTKj7FAsGNS57bEW_ Xref: g2news1.google.com comp.unix.tru64:538 I am wondering how the loader part of an executable calculates the amount of memory to set aside for each program a user runs in his environment. That is when a user types in a programs name at the prompt and hits "Enter" How does the loader figure out how much memory to set aside for it to run. I think it needs some for code, some for stack space, and some for data. We have identical programs, running on different servers, that are grabbing two different amounts of memory when they are run. The two different servers are as follows - 1. Alpha 4100 running V4.0F PK7 - has 3GB RAM 2. Alpha ES40 running V5.1b PK4 - has 8GB RAM On the ES40 the program grabs 10x the amount of memory that it does on the 4100. Tom Wallin