From: ASHOK SINGHAL <ashok.singhal@Eng.Sun.Com>
Subject: Re: Latency vs performance (was Re: Sun Servers take advantage of board local memory?)
Date: 1998/05/12 [thread overview]
Message-ID: <35589F27.9528B4A7@Eng.Sun.Com> (raw)
In-Reply-To: 6iv4qk$6a0$1@murrow.corp.sgi.com
John McCalpin wrote:
>
>
> However, it seems to me that "most" individual apps will fit in
> local memory, especially if the machine is running on the order
Depends on how you count "most". If you bundle the whole
category of database applications into a single "app" then
maybe you are right. Of course, that ignores the fact that a
large number of machines run many instances of precisely those.
Even assuming you're only talking about single-threaded
apps in a timesharing enviroment, what you say below is false.
> of one application per cpu. In that case, if "most" apps used
> more memory than was available locally, the physical memory of
> the machine would be oversubscribed, and the machine would thrash
> horribly. This is painful enough that most people manage to make
> it not happen, either by serializing the execution of the
> large-memory jobs, or by buying more RAM.
Simple arithmetic in an example shows why this is false.
Suppose there are 16 processors and each processor has local
memory of 64 MB (for a total of 1024 MB).
Suppose there are 15 apps that use 68 MB of memory and 1 app that
uses 3 MB of memory. Clearly, in this example "most" apps (15 out of
16),
don't fit in local memory, and yet the total memory used is less than
the available memory ((15 * 68) + 3 = 1023).
Not only is it false, but it is also it is also a naive
view of servers used for running general apps and timesharing.
1. You can have situations where the sum of all the application
memory is greater than the total memory available, but memory is still
not oversubscribed. That's because even applications
implicitly share memory even if they are completely single-threaded.
An example of this is shared libraries, and its very likely that
libraries
such as libc, libX11 etc are shared extensively. So either you
replicate
these (which uses more memory and results in quicker onset
of paging/swapping) or you have applications making remote accesses.
Either way you get a performance penalty.
2. On Solaris (and probably in Irix as well??) memory caches parts of
the file system. Therefore, unless an application runs on exactly the
same node that has the cache for all the files it touches (which the
OS can't know until the application runs), it will make remote access.
3. Non-local memory may result, even if there is plenty of memory,
as a result of load balancing. Consider an example: A large,
memory-intensive
simulation is blocked waiting for some user interaction. Another
process
starts on the CPU (other CPUs happen to be busy at this time with a
short burst
of activity) and allocates
a bunch of memory locally (there's plenty of memory so this is not a
problem).
The other CPUs then free up. Finally, the simulation job gets unblocked
but the other process is now running and has a bunch of local memory
allocated. You'd need to migrate one of those two proceses over
to a remote CPU. This is not an unusual case. Often, even on
a system with a light average load, there are bursts of high load
for small periods of time, and typically there are lots more processes
than
there are procesors, most of which are blocked waiting for some
IO or event. Implementing very strong processor affinity in an attempt
to get good memory locality can have a negative impact on effectiveness
of
load balancing.
Specrate runs N copies of a benchmark, waits for all copies to complete,
runs N copies of another benchmark, etc. Typically N is the same as
the number of CPUs, there are no other significant runnable jobs
and there is consequently no load-balancing at all. There is also
no memory pressure and the applications block very little.
Perhaps this is typical of some general timesharing systems,
but if it is, I haven't seen any examples.
- Ashok Singhal
Sun Microsystems
next prev parent reply other threads:[~1998-05-12 4:00 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <35359B3A.2A830CB1@earthlink.net>
[not found] ` <6hl9s9$fec$1@pulp.ucs.ualberta.ca>
[not found] ` <6hmu26$il3$1@lyra.csx.cam.ac.uk>
[not found] ` <6hpadq$le2$1@alanya.m.isar.de>
1998-04-25 4:00 ` Latency vs performance (was Re: Sun Servers take advantage of board local memory?) John McCalpin
1998-04-25 4:00 ` Carl Perkins
1998-04-25 4:00 ` John McCalpin
1998-04-27 4:00 ` Maynard Handley
1998-04-28 4:00 ` John McCalpin
1998-04-28 4:00 ` Jeremy Harris SUN Telco Platforms Group
1998-04-28 4:00 ` John McCalpin
1998-04-30 4:00 ` Jim Tuccillo
1998-04-30 4:00 ` John McCalpin
1998-04-30 4:00 ` Jim Tuccillo
1998-04-30 4:00 ` John McCalpin
1998-05-01 4:00 ` ASHOK SINGHAL
1998-05-08 4:00 ` John McCalpin
1998-05-12 4:00 ` ASHOK SINGHAL [this message]
1998-05-13 4:00 ` John McCalpin
1998-05-01 4:00 ` Mark W Brehob
[not found] ` <6ianno$19lk$1@news.rchland.ibm.com>
1998-05-07 4:00 ` John McCalpin
1998-04-26 4:00 ` Mark W Brehob
1998-04-27 4:00 ` John McCalpin
1998-04-27 4:00 ` Mark W Brehob
1998-04-28 4:00 ` ASHOK SINGHAL
1998-05-04 4:00 ` William Lane
1998-05-04 4:00 ` John McCalpin
1998-05-06 4:00 ` Brian Jonathan Lee
1998-05-12 4:00 ` Salim Qadri
1998-04-27 4:00 ` Nick Maclaren
1998-04-27 4:00 ` Mark W Brehob
1998-04-27 4:00 ` Scott Walters
1998-04-27 4:00 ` Scott Walters
1998-04-28 4:00 ` Nick Maclaren
1998-04-28 4:00 ` Scott Walters
1998-04-28 4:00 ` Latency vs performance John Hascall
1998-04-29 4:00 ` Scott Walters
1998-05-01 4:00 ` Scott Hess
1998-04-29 4:00 ` Casper H.S. Dik - Network Security Engineer
1998-04-29 4:00 ` Scott Walters
1998-05-12 4:00 ` Latency vs performance (was Re: Sun Servers take advantage of board local memory?) Brian Inglis
1998-05-05 4:00 ` Doug Siebert
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