Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Most "crunch" for the dollar
@ 1993-09-07 20:40 Michael Raynold Zika
  1993-09-08 13:21 ` Gerald Cecil
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Michael Raynold Zika @ 1993-09-07 20:40 UTC (permalink / raw)


    We're looking into adding some "crunch" power to our network -- basically
a system that is dedicated to crunching through large jobs -- and would like
some other opinions.

  The system will be file served by a Sun Sparc-10, so whatever we get must
play nice with NFS mounting.   However, I'm planning a couple of "research"
accounts local to the cruncher so that file creation for large jobs will
take advantage of local disk transfer rates.

  We would like a system that can handle everything from large memory jobs
(100+Mb) to small memory jobs (~3Mb) possibly running a mix at the same time,
possibly running a single job at a time.  Good I/O is a necessity -- some
of these codes write 100Mb files each run.  Upgradability is also important --
as the jobs grow, so must the RAM size (and CPU speed if possible).

  Right now, I'm leaning toward a Sparc-10/512 w/ 80Mb RAM (more to be added
as funds become available) and 1Gb local disk to do this kind of work.  I'm
attracted to the 512Mb RAM upgrade path and the module upgrade to a 514.  Also,
the fast-SCSI transfers to the local disk are attractive.

  What other recommendations do you have for such a system?  I've seen prices
on the DEC Alpha that are much lower than the 512 -- what's the big difference
in performance for that much cheaper of a box?  Also, I've heard of problems
when more than one job is submitted to an RS/6000 -- something like 2 users
each getting 1/3 of the machine; and problmes with large I/O transfers being
a bottleneck on the HP's.  Are these rumors well-founded or just urban myths?

  Any recommendations would be most welcome.

  Thanx in advance.


--Michael Zika  {SysAdmin in Training}
  Nuclear Engineering
  Texas A&M University
  zika@fatman.tamu.edu


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Most "crunch" for the dollar
  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 19:21 ` Robert Plamondon
  2 siblings, 0 replies; 19+ messages in thread
From: Gerald Cecil @ 1993-09-08 13:21 UTC (permalink / raw)


In article <26irk2$qce@TAMUTS.TAMU.EDU> mrz9517@TAMUTS.TAMU.EDU (Michael Raynold Zika) writes:
>    We're looking into adding some "crunch" power to our network -- basically
>a system that is dedicated to crunching through large jobs -- and would like
>some other opinions.
>  The system will be file served by a Sun Sparc-10, so whatever we get must
>play nice with NFS mounting.
> ...
>  We would like a system that can handle everything from large memory jobs
>(100+Mb) to small memory jobs (~3Mb) possibly running a mix at the same time,
>possibly running a single job at a time.  Good I/O is a necessity -- some
>of these codes write 100Mb files each run.  Upgradability is also important --
>as the jobs grow, so must the RAM size (and CPU speed if possible).
>
>  Right now, I'm leaning toward a Sparc-10/512 w/ 80Mb RAM (more to be added
>as funds become available) and 1Gb local disk to do this kind of work.  I'm
>attracted to the 512Mb RAM upgrade path and the module upgrade to a 514.  Also,
>the fast-SCSI transfers to the local disk are attractive.

Be advised that the Sparc 10/512 has a serious hardware problem that Sun has been
working on for several months.  The relevant bug ID # is 1137125.  The problem is
that the processor CPU locks up under certain high load situations because
registers are corrupted.  The info I have claims that this problem is manifest
under 4.1.3 and Solaris 2.x, and applies to the single 50 MHz processor version as
well.  We were all set to order 2 when we learned about this, and we have held off
pending clarification by Sun.  Our reps were *not* informed about this bug, and
have been very slow to get back to us about progress towards its resolution.
-- 
Gerald Cecil cecil@wrath.physics.unc.edu  919-962-7169 
Physics & Astronomy, U of North Carolina, Chapel Hill, NC 27599-3255 USA


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Most "crunch" for the dollar
  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
  2 siblings, 1 reply; 19+ messages in thread
From: Allen Leibowitz @ 1993-09-10 17:32 UTC (permalink / raw)


Michael Raynold Zika (mrz9517@TAMUTS.TAMU.EDU) wrote:
:   Any recommendations would be most welcome.

We looked at a number of machines here for various purposes (desktop,
databases, SAS, etc.)  I had an Alpha 5000 (Flamingo) with 96MB of memory
and a bunch of disk on loan from DEC.  We also have Sun, SGI and a loaner
HP.  

We ended up purchasing Sun for the desktop primarily because of application
support (ISDN, others) which just weren't quite there yet.  The jury is
still out on the database and other servers but the Alpha is still high on
the list.

That said, I don't feel the Sun was necessarily a good buy, nor would I make
the same decision today after running the Sparc 10/30.  It is not
competitive with the Alpha on bang-for-the-buck level.

If I were looking for a compute machine I would look at the Alpha.  The
flamingo was probably the fastest general purpose UNIX machine I've ever
used.  OSF/1 gets the highest mark in my book for a quality and useful
release.  We don't have to beat it into shape like we do with Suns.

--
Allen Leibowitz
Parke-Davis/Warner-Lambert	<leibowa@wl.com>
Ann Arbor, MI  48104  USA
+1 313.998.3314
	Either CONFESS now or we go to ``PEOPLE'S COURT''!!
                    -- zippy 



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Most "crunch" for the dollar
  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 19:21 ` Robert Plamondon
  1993-09-10 20:38   ` Allen Leibowitz
                     ` (2 more replies)
  2 siblings, 3 replies; 19+ messages in thread
From: Robert Plamondon @ 1993-09-10 19:21 UTC (permalink / raw)


In article <26irk2$qce@TAMUTS.TAMU.EDU> mrz9517@TAMUTS.TAMU.EDU (Michael Raynold Zika) writes:
>    We're looking into adding some "crunch" power to our network -- basically
>a system that is dedicated to crunching through large jobs -- and would like
>some other opinions.
>[...]
>  We would like a system that can handle everything from large memory jobs
>(100+Mb) to small memory jobs (~3Mb) possibly running a mix at the same time,
>possibly running a single job at a time.  Good I/O is a necessity -- some
>of these codes write 100Mb files each run.  Upgradability is also important --
>as the jobs grow, so must the RAM size (and CPU speed if possible).

At WEITEK, we're trying out an unusual approach to this: a stack of SPARCstation
II boxes used as compute servers.  The goal here is to execute large numbers
of simulations and other circuit-design-related jobs simultaneously.  Using
a stack of inexpensive CPUs has advantages in solving the "run many jobs
quickly" arena:

* You avoid disk I/O bottlenecks, since each computer server has its own
  disk for /usr, /tmp, and swap.

* SPARCstation 2s are standard, cheap (as refurbished or clone units),
  interchangeable, and easily repaired.

* One workstation crashing has little impact on overall productivity.

* The performance of the individual systems is fine, once you replace
  the original processor with SPARC POWER uP.

* Various pieces of software already exist for load-balancing across
  machines on the network.

While the performance of a SPARCstation II may not look like much compared
to a newer, high-end system, the high-end systems are not immune to the
performance problems caused by running multiple large jobs, especially when
you start hitting swap-speed bottlenecks, which are more disk- than CPU-
oriented.

In terms of dollars per SPECint (or SPECfp), the use of existing systems,
clones, or refurbished systems is pretty attractive -- providing your
problems are oriented toward multiple independent jobs (which probably
applies to X terminals, multi-simulation environment, and many other
environment where it's typical that many users need more CPU power than
they have on their desktops).

	-- Robert

-- 
Robert Plamondon * WEITEK Corporation * Home of SPARC Power uP (TM)
80 MHz clock-doubled SPARC processor upgrade for the SPARCstation 2 or IPX
FAX-back info line: (800) 827-8708  or (408) 522-7525
Info by ftp: in pub/weitek on netcom.com * Info by email: cpu-upgrade@weitek.com


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Most "crunch" for the dollar
  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
  2 siblings, 0 replies; 19+ messages in thread
From: Allen Leibowitz @ 1993-09-10 20:38 UTC (permalink / raw)


Here is more food for thought.  When we had our workstation bakeoff I looked
at a next-to-low-end Alpha.  I think it was a 300 or something.  Also known
as "pelican".  There was an option to buy it diskless without a monitor for
something like $6k or $7k.

Disks are cheap, cheap cheap.  That's a lot of "crunch for the dollar".

--
Allen Leibowitz
Parke-Davis/Warner-Lambert	<leibowa@wl.com>
Ann Arbor, MI  48104  USA
+1 313.998.3314
	Either CONFESS now or we go to ``PEOPLE'S COURT''!!
                    -- zippy 



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Most "crunch" for the dollar
  1993-09-10 17:32 ` Allen Leibowitz
@ 1993-09-10 22:00   ` Lezz Giles
  0 siblings, 0 replies; 19+ messages in thread
From: Lezz Giles @ 1993-09-10 22:00 UTC (permalink / raw)


In article <26qdmn$fql@reeve.research.aa.wl.com>, leibowa@aa.wl.com (Allen Leibowitz) writes:
|>Michael Raynold Zika (mrz9517@TAMUTS.TAMU.EDU) wrote:
|>:   Any recommendations would be most welcome.
|>
|>We looked at a number of machines here for various purposes (desktop,
|>databases, SAS, etc.)  I had an Alpha 5000 (Flamingo) with 96MB of memory
|>and a bunch of disk on loan from DEC.  We also have Sun, SGI and a loaner
|>HP.  
|>
|>We ended up purchasing Sun for the desktop primarily because of application
|>support (ISDN, others) which just weren't quite there yet.  The jury is
|>still out on the database and other servers but the Alpha is still high on
|>the list.
|>
|>That said, I don't feel the Sun was necessarily a good buy, nor would I make
|>the same decision today after running the Sparc 10/30.  It is not
|>competitive with the Alpha on bang-for-the-buck level.
|>
|>If I were looking for a compute machine I would look at the Alpha.  The
|>flamingo was probably the fastest general purpose UNIX machine I've ever
|>used.  OSF/1 gets the highest mark in my book for a quality and useful
|>release.  We don't have to beat it into shape like we do with Suns.

I missed the beginning of this thread, but I feel forced to make a small
comment...

At any point in time there will always be one or more systems that are
significantly faster/more powerful than the others.  Currently, since
Alpha is the newest major architecture, it is (probably) Alpha.  It has
also been Sparc, HP's architecture, MIPS, etc. etc. at various times.  If
all you care about is the most bang for the buck right now then you probably
can't go wrong by simply buying the fastest machine right now.

However, if you're going to be using this machine for more than a year or so,
then you should seriously consider several other things, including the future
of the architecture (including scalability), support (both from the vendor and
from software companies - for example you should ask your major supplier(s) of
software which system _they_ use to develop their software before porting it
to all their supported platforms - if you use the same platform you'll get
higher quality code and you'll get it faster), history of the company,and
size and stability of the company.

I'm not saying that any one architecture is better than another, and I'm
not saying "don't buy DEC".  I'm just giving some advice...  (the fact
that we're stuck with 100 DECstations that we've been buying for the
last three years, when there is no real future for them, is beside the
point :-(   ).

Lezz


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Most "crunch" for the dollar
  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
  2 siblings, 0 replies; 19+ messages in thread
From: Aaron Sloman @ 1993-09-13  0:34 UTC (permalink / raw)


robert@weitek.COM (Robert Plamondon) writes:

> Organization: WEITEK Corporation, Sunnyvale CA
> Date: Fri, 10 Sep 93 19:21:59 GMT
>
> * Various pieces of software already exist for load-balancing across
>   machines on the network.

Can you give more information on this? Does it mean for example,
that an X terminal need not bother to specify which machine to
connect to and that if one machine comes to be lightly loaded
because people log out, then some of the existing logins are
automatically transferred?

With shared disks, this would be a bit like symmetric multi
processing without shared memory, which is probably ideal for
many collections of users.
Aaron
--
Aaron Sloman,
School of Computer Science, The University of Birmingham, B15 2TT, England
EMAIL   A.Sloman@cs.bham.ac.uk  OR A.Sloman@bham.ac.uk
Phone: +44-(0)21-414-3711       Fax:   +44-(0)21-414-4281


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Most "crunch" for the dollar
  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
  2 siblings, 2 replies; 19+ messages in thread
From: Sean.Levy @ 1993-09-14 14:27 UTC (permalink / raw)


Excerpts from netnews.comp.sys.ibm: 10-Sep-93 Re: Most "crunch" for the
d.. Robert Plamondon@weitek. (2477) 

> At WEITEK, we're trying out an unusual approach to this: a stack of
> SPARCstation 
> II boxes used as compute servers.  The goal here is to execute large numbers 
> of simulations and other circuit-design-related jobs simultaneously.  Using 
> a stack of inexpensive CPUs has advantages in solving the "run many jobs 
> quickly" arena: 

Interesting.  Someone *actually* thinking in terms of throughput instead
of speed.  Very refreshing... 

Now, don't get me wrong, I'm *quite* happy with the Alpha on my desk --
generally speaking.  It is extremely fast, but under high load
situations quite often provides very poor throughput for (relatively
short) periods of time (X server freezes, etc... eventually comes back).
 I haven't fully diagnosed why, and I gather some problems have been
fixed in OSF/1 1.3 (I'm running 1.2).  The alpha is, for various
reasons, our main development box, and, although it works very well for
a single developer, quickly goes south when multiple developers start
beating on it.  Beefing it up will probably help some, but it isn't
clear to me that just getting the fastest box, for some defn of
"fastest", is always (ever) the answer.  

The WEITEK folks seem to have actually thought about their situation and
picked a solution that would get their work done quickest, which quite
often (at least in my experience) is not the case (esp. in academia,
where we are often working with whatever machines are given to us via
grants or what have you -- sort of ironic, eh?).  The brief description
given in Mr. Plamondon's article sort of smacks, philosophically, of the
SPRITE system's approach (better utilization of shared resources vs.
blind addition of horsepower that might not get utilized properly
anyway)...  if only this were the dominant attitude in the industry as a
whole.  I wonder how many spare cycles the internet has at any given
time; has anyone ever attempted to find out?  It would be interesting. 

Random thoughts over coffee.  Hope it isn't too much a waste of bandwidth. 

Cheers, 
				-- Sean 
-- 
Sean Levy, n-dim Group, EDRC, CMU, 5000 Forbes Ave, PGH, PA 15213 
Email: snl+@cmu.edu, Phone: +1 412 268 5221, Fax: +1 412 268 5229 
 


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Most "crunch" for the dollar
  1993-09-14 14:27   ` Sean.Levy
@ 1993-09-16  2:39     ` Art Stine
  1993-09-21 10:22     ` Nick Watkins
  1 sibling, 0 replies; 19+ messages in thread
From: Art Stine @ 1993-09-16  2:39 UTC (permalink / raw)


In article FGVz@cs.cmu.edu, Sean.Levy@cs.cmu.edu () writes:

> Now, don't get me wrong, I'm *quite* happy with the Alpha on my desk --
> generally speaking.  It is extremely fast, but under high load
> situations quite often provides very poor throughput for (relatively
> short) periods of time (X server freezes, etc... eventually comes back).
>  I haven't fully diagnosed why, and I gather some problems have been
> fixed in OSF/1 1.3 (I'm running 1.2).  The alpha is, for various
> reasons, our main development box, and, although it works very well for
> a single developer, quickly goes south when multiple developers start
> beating on it.  Beefing it up will probably help some, but it isn't
> clear to me that just getting the fastest box, for some defn of
> "fastest", is always (ever) the answer.  

this is a problem in the 1.2 scheduler - fixed in 1.3...

---
-art

----                           __
Art Stine               \  / /(_  /\/  11440 Commerce Park Drive
Software Engineer        \/ / __)/ /\  Reston, Virginia 22091
abstine@visix.com       Software Inc   Voice: (703) 758-2767 (direct)
                                              (703) 758-8230 (main)
... and I'm only saying this because          (800) 832-8668 (toll-free)
I'm your friend, but there are         FAX:   (703) 758-0233
many decaffeinated brands that are 
just as tasty as the real thing.



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Most "crunch" for the dollar
  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
  1 sibling, 1 reply; 19+ messages in thread
From: Nick Watkins @ 1993-09-21 10:22 UTC (permalink / raw)


From article <ogZRGv600hMd0_FGVz@cs.cmu.edu>, by Sean.Levy@cs.cmu.edu:
> Excerpts from netnews.comp.sys.ibm: 10-Sep-93 Re: Most "crunch" for the
> d.. Robert Plamondon@weitek. (2477) 
> 
> Now, don't get me wrong, I'm *quite* happy with the Alpha on my desk --
> generally speaking.  It is extremely fast, but under high load
> situations quite often provides very poor throughput for (relatively
> short) periods of time (X server freezes, etc... eventually comes back).
>  I haven't fully diagnosed why, and I gather some problems have been
> fixed in OSF/1 1.3 (I'm running 1.2).  The alpha is, for various
> reasons, our main development box, and, although it works very well for
> a single developer, quickly goes south when multiple developers start
> beating on it.  Beefing it up will probably help some, but it isn't
> clear to me that just getting the fastest box, for some defn of
> "fastest", is always (ever) the answer.  
> 
My colleagues in Astronomy have a DEC 3000 400 on test and have noticed 
that it seems to allocate a minimum of 
8Mb of virtual memory to each running process !!!
This causes it to run out of steam rather quickly as more than one
user is added. The VSZ entry below is what we are basing this belief on.
Is this correct, and why is it doing it ? 

Our HP 720s and 715 seem to allocate VM as needed.

ambitron> ps aux | more
USER       PID %CPU %MEM   VSZ  RSS TT  STAT STARTED       TIME COMMAND
root     16581  0.0  6.2 11.8M 1.87 ??  S    10:10:39   0:01.68
/usr/bin/X11/dx
root       204  0.0  0.5 8.77M 168K ??  S <    Sep 17   0:11.46
/usr/sbin/cron
root       167  0.0  0.5 8.81M 152K ??  I      Sep 17   0:00.33
/usr/sbin/portm
root      2286  0.0  0.0 8.64M   0K ??  U      Sep 17   0:00.01
/usr/sbin/nfsio
root      2289  0.0  0.0 8.64M   0K ??  U      Sep 17   0:00.00
/usr/sbin/nfsio


-- 
Dr Nick Watkins, Space Science Centre (MAPS), Univ. of Sussex,
 Brighton BN1 9QH, UK 
phone: 44 273 678455 fax: 44 273 678097 
SPAN:  sustar::nww INTERNET: nickw@syma.sussex.ac.uk


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Most "crunch" for the dollar
  1993-09-21 10:22     ` Nick Watkins
@ 1993-09-21 17:43       ` Gail L. Grant
  1993-09-22  8:00         ` Adrie Koolen
  0 siblings, 1 reply; 19+ messages in thread
From: Gail L. Grant @ 1993-09-21 17:43 UTC (permalink / raw)



In article <1993Sep21.102221.25940@syma.sussex.ac.uk>, nickw@syma.sussex.ac.uk (Nick Watkins) writes:
|>My colleagues in Astronomy have a DEC 3000 400 on test and have noticed 
|>that it seems to allocate a minimum of 
|>8Mb of virtual memory to each running process !!!
|>This causes it to run out of steam rather quickly as more than one
|>user is added. The VSZ entry below is what we are basing this belief on.
|>Is this correct, and why is it doing it ? 
|>
|>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.

it also means they are probably running 1.2 instead of 1.3 and are using the
default swap algorithm(eager) instead of what most vendors use(lazy).  so they
should do one thing for sure and consider the other:  1. UPGRADE TO 1.3
2. Consider using lazy swap.  See the manuals for details on the trade-offs of
using this method.

|>
|>ambitron> ps aux | more
|>USER       PID %CPU %MEM   VSZ  RSS TT  STAT STARTED       TIME COMMAND
|>root     16581  0.0  6.2 11.8M 1.87 ??  S    10:10:39   0:01.68 
/usr/bin/X11/dx
|>root       204  0.0  0.5 8.77M 168K ??  S <    Sep 17   0:11.46
/usr/sbin/cron
|>root       167  0.0  0.5 8.81M 152K ??  I      Sep 17   0:00.33
/usr/sbin/portm
|>root      2286  0.0  0.0 8.64M   0K ??  U      Sep 17   0:00.01 /usr/sbin/nfsio
|>root      2289  0.0  0.0 8.64M   0K ??  U      Sep 17   0:00.00
/usr/sbin/nfsio

here are the same stats for axposf.pa.dec.com, which is running 1.3 and using
lazy swap:

USER       PID %CPU %MEM   VSZ  RSS TT  STAT STARTED       TIME COMMAND
root       306  0.0  0.0 1.24M   0K ??  U      Sep 17   0:00.29 /usr/sbin/nfsio
root       308  0.0  0.0 1.24M   0K ??  U      Sep 17   0:00.26 /usr/sbin/nfsio
root       341  0.0  0.1 1.38M 160K ??  S <    Sep 17   0:37.94 /usr/sbin/cron
root       304  0.0  0.1 1.41M 152K ??  I      Sep 17   0:00.10 /usr/sbin/portm

g.
--
============================================================================
Gail L. Grant - "Live free or WISH you had" - (415)853-6564 grant@pa.dec.com
                                              WORK phone #
Opinions expressed are my own, OBVIOUSLY not those of my employer.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Most "crunch" for the dollar
  1993-09-21 17:43       ` Gail L. Grant
@ 1993-09-22  8:00         ` Adrie Koolen
  1993-09-22 18:23           ` Gail L. Grant
  0 siblings, 1 reply; 19+ messages in thread
From: Adrie Koolen @ 1993-09-22  8:00 UTC (permalink / raw)


In article <27negn$d0r@usenet.pa.dec.com> grant@pa.dec.com writes:
>
>In article <1993Sep21.102221.25940@syma.sussex.ac.uk>, nickw@syma.sussex.ac.uk (Nick Watkins) writes:
>|>My colleagues in Astronomy have a DEC 3000 400 on test and have noticed 
>|>that it seems to allocate a minimum of 
>|>8Mb of virtual memory to each running process !!!
>|>This causes it to run out of steam rather quickly as more than one
>|>user is added. The VSZ entry below is what we are basing this belief on.
>|>Is this correct, and why is it doing it ? 
>|>
>|>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.

Adrie Koolen (adrie@ica.philips.nl)
Philips Consumer Electronics, Eindhoven, the Netherlands


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Most "crunch" for the dollar
  1993-09-22  8:00         ` Adrie Koolen
@ 1993-09-22 18:23           ` Gail L. Grant
  1993-09-22 20:05             ` Channing Benson
  1993-09-23  8:57             ` Adrie Koolen
  0 siblings, 2 replies; 19+ messages in thread
From: Gail L. Grant @ 1993-09-22 18:23 UTC (permalink / raw)



>|>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. 

g.
--
============================================================================
Gail L. Grant - "Live free or WISH you had" - (415)853-6564 grant@pa.dec.com
                                              WORK phone #
Opinions expressed are my own, OBVIOUSLY not those of my employer.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Most "crunch" for the dollar
  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
  1 sibling, 1 reply; 19+ messages in thread
From: Channing Benson @ 1993-09-22 20:05 UTC (permalink / raw)



>>>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. 

Hmmm. Have you ever heard of malloc? 

Or have I misunderstood your phrase "allocate the memory that could be
used at the time of startup".

			-- Chan



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Most "crunch" for the dollar
  1993-09-22 18:23           ` Gail L. Grant
  1993-09-22 20:05             ` Channing Benson
@ 1993-09-23  8:57             ` Adrie Koolen
  1993-09-23 14:41               ` Robert Andrew Ryan
                                 ` (2 more replies)
  1 sibling, 3 replies; 19+ messages in thread
From: Adrie Koolen @ 1993-09-23  8:57 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Most "crunch" for the dollar
  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
  2 siblings, 0 replies; 19+ messages in thread
From: Robert Andrew Ryan @ 1993-09-23 14:41 UTC (permalink / raw)


Excerpts from netnews.comp.sys.hp: 23-Sep-93 Re: Most "crunch" for the
d.. Adrie Koolen@ica.philips (1745) 

> 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). 

I've read the POSIX.1 doc and I didn't see anything like this. Indeed it
seems contrary to the spirit of most parts of POSIX, that spirit being
to allow the OS designer maximum flexibility. 

One possible source of confusion I suppose is the fact that POSIX does
not specify the sbrk() system call.  However, it does require that
malloc be available as specified by the C standard. 

sigh, doesn't this discussion belong somewhere else?  (I'm glad I only
happen to read one of the bboards involved...) 

-Rob 



 


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Most "crunch" for the dollar
  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
  2 siblings, 0 replies; 19+ messages in thread
From: Guy Helmer @ 1993-09-23 15:59 UTC (permalink / raw)


In <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.

The "eager allocation" mechanism just requires that there be enough
virtual memory swap space allocated to hold all of the current pages
of all of the processes.  This prevents the problem of having a process
being killed by the kernel because the process wants to write to a 
copy-on-write page that's shared with the parent process or mapped from
a read-only executable file, but the kernel is out of vm swap space.  

For example, initially a child process shares all of the pages with its
parent (after a fork(2)), then accumulates private pages of data as it
writes to memory, causing vm faults which allocate free vm pages, copy
the parent's original page of data to the new one, and assign the new
page to the child.  In a system using "lazy allocation", the child process
could be killed by the kernel because it ran out of swap space when trying
to find a free vm page to allocate; using "eager allocation", the fork(2)
(or some other process's fork(2) or exec(2) executed later) would have
failed and the process never would have started; the point of eager
allocation is that a process won't die unexpectedly.

Clear as mud, right? :-)


-- 
Guy Helmer, Dakota State University Computing Services - ghelmer@dsuvax.dsu.edu
                        Home is where the CPU is.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Most "crunch" for the dollar
  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
  2 siblings, 0 replies; 19+ messages in thread
From: Eric D Osborne @ 1993-09-23 21:47 UTC (permalink / raw)


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)
***************************************************************************


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Most "crunch" for the dollar
  1993-09-22 20:05             ` Channing Benson
@ 1993-09-24  1:36               ` Jim Rice
  0 siblings, 0 replies; 19+ messages in thread
From: Jim Rice @ 1993-09-24  1:36 UTC (permalink / raw)


Channing Benson (chan@fc.hp.com) wrote:


: Hmmm. Have you ever heard of malloc? 

: Or have I misunderstood your phrase "allocate the memory that could be
: used at the time of startup".

: 			-- Chan

I beleive this reference implies the allocation of memory for things like
arrays, etc (Think Fortran).  Which could allocate memory before the 
array is actually used, at the time of definition.  The alternative is 
to allocate at the time of usage.  This can be a much more efficient use
of RAM if you are using a sparse matrix.  However, you could crash the 
program do to insufficient memory, although you defined it's usage much
earlier in the program (Bad if you are controlling a nuclear reactor ;-)

--
 >>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
| Jim Rice               |  Please,  | HPDesk: Jim RICE /HPATC2            |
| Technical Consultant   | Hassle Me | e-mail: jrice@stpaul.msr.hp.com     |
| Hewlett Packard        |           | FAX:    (612)641-9553 (also Telnet) |
| 2025 W. Larpenteur Ave.| I thrive  |                                     |
| St Paul, MN 55113      | on stress | voice:  (612)649-4219 (also Telnet) |
 >>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<< <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~1993-09-24  1:36 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox