From: edo@magnus.acs.ohio-state.edu (Eric D Osborne)
Subject: Re: Most "crunch" for the dollar
Date: 23 Sep 1993 21:47:49 GMT [thread overview]
Message-ID: <27t5i5$pte@charm.magnus.acs.ohio-state.edu> (raw)
In-Reply-To: 1993Sep23.085728.344@ica.philips.nl
In article <1993Sep23.085728.344@ica.philips.nl> adrie@ica.philips.nl (Adrie Koolen) writes:
>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
I think that Gail was actually referring to swap, and not memory. AIX does
not actually allocate swap for processes at malloc() time, so a malloc can
succeed and the process may bomb later if the virtual memory use grows to
exceed the swap space. This is called "lazy evaluation". HP/UX DOES
allocate swap at malloc() (as does SUN/OS and SOLARIS). This is safer, but
has the down side that adding memory to your system actually INCREASES
the required swap space, which is somewhat counter intuitive. This is called
"eager evaluation". I believe that POSIX actually requires the "eager" mode
be available.
DEC OSF/1 can actually do either. The eager mode is specified by POSIX.
Falling back to the original post that started this thread, there was
a reference to the face that the virtual size of many (most?) processes
on DEC OSF/1 was very large on DEC OSF/1 V1.2 - about 8MB. This was
a curiousity of the shared library implementation, and actually didn't
mean much relative to real resource consumption. The RSS is a much better
indicator. In V1.3, you will find that the virtual sizes generally look
much more reasonable, and in many cases the RSS is lower as well.
It's perfectly possible to put a number of users on a DEC OSF/1 system, but
for a variety of reasons you should be on V1.3 when you do it.
Hope that clarifies things.
***************************************************************************
The opinions expressed above are mine, although for a reasonable
fee they could become yours as well. They do not necessarily
represent the opinions of Digital Equipment Corporation.
Eric D. Osborne
Digital Equipment Corporation
edo@hill.enet.dec.com
(Posted via the Ohio State University)
***************************************************************************
prev parent reply other threads:[~1993-09-23 21:47 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-09-07 20:40 Most "crunch" for the dollar Michael Raynold Zika
1993-09-08 13:21 ` Gerald Cecil
1993-09-10 17:32 ` Allen Leibowitz
1993-09-10 22:00 ` Lezz Giles
1993-09-10 19:21 ` Robert Plamondon
1993-09-10 20:38 ` Allen Leibowitz
1993-09-13 0:34 ` Aaron Sloman
1993-09-14 14:27 ` Sean.Levy
1993-09-16 2:39 ` Art Stine
1993-09-21 10:22 ` Nick Watkins
1993-09-21 17:43 ` Gail L. Grant
1993-09-22 8:00 ` Adrie Koolen
1993-09-22 18:23 ` Gail L. Grant
1993-09-22 20:05 ` Channing Benson
1993-09-24 1:36 ` Jim Rice
1993-09-23 8:57 ` Adrie Koolen
1993-09-23 14:41 ` Robert Andrew Ryan
1993-09-23 15:59 ` Guy Helmer
1993-09-23 21:47 ` Eric D Osborne [this message]
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