Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Peter Boyle <pboyle@holyrood.ed.ac.uk>
Subject: Re: seti@home 2.4 for alpha linux ev5
Date: 2000/04/06	[thread overview]
Message-ID: <Pine.GSO.4.10.10004061424440.10378-100000@holyrood.ed.ac.uk> (raw)
In-Reply-To: 6rlfc8.msq.ln@snowwhite.dera.gov



On Wed, 5 Apr 2000, Richard Simpson wrote:

> Peter Boyle <pboyle@holyrood.ed.ac.uk> wrote:
> :> who could either give us an idiot's guide or point us to a sensible web
> 			       ^^^^^^^
> 			       Sorry!!!
> 
> : i) External Cache thrashing due to virt->real addressing
> 
> : etc
> 
> : Of course, the page table ( cached in the TLB on chip ) translates
> : virtual page numbers into physical page numbers, with the offset
> : within a page being unchanged.  The problem is that the virtual
> : addressing gives absolutely no guarantee that the physical
> Above paragraph seems to end half way through a sentence?

Hi,

Apologies, but I did threaten to splurge... I'll *try* and write
in something approaching English this time!

The external cache is direct mapped and physically addressed
(i.e. *physical* address modulo cache size gives location
in the external cache ). 

The problem is that laying out the data sensibly in
virtual page numbering gives no guarantee that the physical
translation is sensibly laid out. Because the external cache
is direct mapped it is possible to read two streams for which
data mapping to the same locations in external cache for accesses
with short temporal separation. This can cause references to one stream
to evict already loaded data which will be needed soon.
Note if the Ext cache was 2 or 4 way associative this thrashing wouldn't
occur (or at least be as bad) because the eviction would be implemented
on an oldest of 2/4 references being evicted policy.

Page coloring is a way to detect this combined with dynamic relocation
of the cuplrit virtual pages in the physical memory space to prevent
such conflicts in future.

> 
> Well, thank you very much for taking the time to explain all of that, but
> unfortunately I am an antenna research scientist and it made about as much
> sense to me as I suspect that an explanation of radiation resistance would to
> you :-).  Still, I think that I get the basic gist and I'll try reading it a
> couple more times with a damp towel wrapped round my head.
> 
> :> : Have you tried the 2.4.alpha-compaq-T64Uv4.0d version?
> : The binary doesn't have controll of the memory map, so should make
> : the difference.
> 
> This doesn't appear to be a gramatically complete sentence.

The binary doesn't have control of the memory map, so the use of a
different binary shouldn't make the difference.

> 
> : If there is a difference running under Linux it is
> : probably something like KAP in the compilation.
> 
> KAP???

KAP is a tool used in profile directed optimsation that is 
partly (largely?) responsible for the big difference
in peak and base SPECfp. I guess most of the difference 
comes from inserting better prefetching on the basis of profile
info.
 

> Again, we seem to only have half of a sentence.  I am however pleased to
> discover that my impericaly derived scheme of rebooting the machine has some
> scientific validity.

Didn't say that it is scientific. I'm just guessing that after a reboot
the system calls to allocate heap is more likely to give contiguous
physical blocks. (I have actually bothered to read the source, but doesn't
mean I really understand it!)
 
> : Run process as root, and mlock the array's that you
> : think are thrashing. One *hopes* a contiguous block of physical
> : memory is assigned to the contigous block of virtual space. 
> 
> We don't have access to the source code of setathome (and there is basically
> zero chance of this changing).  Is there any way to achieve the above in
> this case?
> 
> Once again, thanks for taking the time to try and educate us.

Hmm, hard. 
Only thing I can think of is pretty dangerous if you want
your machine to be usable for general purpose. 
I would guess a reboot then disable swap (swapoff -a) before running
would give the best chance of avoiding thrashing, but there's
no guarantee. Would only consider this an interesting experiment
rather than a suggested habit. 
Whoops no subject in the previous sentence :)

HTH

Peter Boyle	pboyle@physics.gla.ac.uk







      reply	other threads:[~2000-04-06  4:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-19  5:00 seti@home 2.4 for alpha linux ev5 jmd
2000-03-21  5:00 ` Fredrik Lindvall
2000-03-21  5:00   ` Steve Lionel
2000-03-22  5:00   ` Ian Wilkinson
2000-03-28  5:00 ` Richard Simpson
2000-03-28  5:00   ` Jim Woodruff
2000-04-03  4:00     ` Richard Simpson
2000-04-03  4:00       ` Peter Boyle
2000-04-05  4:00         ` Richard Simpson
2000-04-06  4:00           ` Peter Boyle [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