From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f4671,b99fa0452d65d12 X-Google-Attributes: gidf4671,public X-Google-Thread: 112114,b99fa0452d65d12 X-Google-Attributes: gid112114,public X-Google-Thread: 114b0c,b99fa0452d65d12 X-Google-Attributes: gid114b0c,public X-Google-Thread: 1164f8,b99fa0452d65d12 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-09-23 02:44:47 PST Xref: gmd.de comp.sys.sun.hardware:12099 comp.sys.hp:24894 comp.sys.dec:10285 Newsgroups: comp.sys.ibm,comp.sys.sun.hardware,comp.sys.hp,comp.sys.dec Path: gmd.de!xlink.net!howland.reston.ans.net!agate!doc.ic.ac.uk!uknet!mcsun!sun4nl!relay.philips.nl!philica!adrie From: adrie@ica.philips.nl (Adrie Koolen) Subject: Re: Most "crunch" for the dollar Message-ID: <1993Sep23.085728.344@ica.philips.nl> Organization: Philips Consumer Electronics, Eindhoven, The Netherlands References: <27negn$d0r@usenet.pa.dec.com> <1993Sep22.080053.1184@ica.philips.nl> <27q56q$sh0@usenet.pa.dec.com> Date: Thu, 23 Sep 1993 08:57:28 GMT In article <27q56q$sh0@usenet.pa.dec.com> grant@pa.dec.com writes: > >>|>Our HP 720s and 715 seem to allocate VM as needed. > >>>which means they aren't POSIX compliant. POSIX requires that you allocate the >>>memory that could be used at the time of startup. > >>I don't know the POSIX spec, but to "allocate the memory that could be used at >>the time of startup" looks impossible to me. How do you (or the OS) know at >>startup time how much memory the process is going to use in its lifetime. I >>can't believe that POSIX demands you to allocate all memory to the first >>process. > >the startup of the application, not the system. What's that supposed to mean? If the OS (system?) starts running and the first process is created, the OS has to allocate all memory that the process is going to need in its lifetime (according to POSIX). As the OS doesn't know the amount of memory that will be needed, the best thing it can do is to allocate ALL memory to the first process. The second process will then not be able to get any memory and therefore only one process can be run. However, if the memory is reserved, but not actually allocated to the process until it really accesses this memory, so that another process also could get this physical memory, if needed, then you've got a mechanism that most Unixes currently use. As I can't that POSIX demands that the OS allocates all the memory that a process could use in its lifetime at the time of the processes startup, I think that a previous poster got it wrong or I don't understand him (or POSIX). Mayba that someone with the POSIX spec could paraphrase the appropriate POSIX paragraph. Adrie Koolen (adrie@ica.philips.nl) Philips Consumer Electronics, Eindhoven, the Netherlands