Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* seti@home 2.4 for alpha linux ev5
@ 2000-03-19  5:00 jmd
  2000-03-21  5:00 ` Fredrik Lindvall
  2000-03-28  5:00 ` Richard Simpson
  0 siblings, 2 replies; 10+ messages in thread
From: jmd @ 2000-03-19  5:00 UTC (permalink / raw)


as the subject says.... ver 2.4 appears to have been released.

http://setiathome.ssl.berkeley.edu/unix.html

jeff



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

* Re: seti@home 2.4 for alpha linux ev5
  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
  1 sibling, 2 replies; 10+ messages in thread
From: Fredrik Lindvall @ 2000-03-21  5:00 UTC (permalink / raw)


How do I go about getting an ev4 version?

jmd wrote:

> as the subject says.... ver 2.4 appears to have been released.
>
> http://setiathome.ssl.berkeley.edu/unix.html
>
> jeff

/Fredrik




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

* Re: seti@home 2.4 for alpha linux ev5
  2000-03-21  5:00 ` Fredrik Lindvall
@ 2000-03-21  5:00   ` Steve Lionel
  2000-03-22  5:00   ` Ian Wilkinson
  1 sibling, 0 replies; 10+ messages in thread
From: Steve Lionel @ 2000-03-21  5:00 UTC (permalink / raw)


On Tue, 21 Mar 2000 15:38:24 +0100, Fredrik Lindvall
<fredrik.lindvall@teracom.se> wrote:

>How do I go about getting an ev4 version?

The "ev5" version supports ev4 as well - the naming was forced by the
SETI people, for reasons I don't quite understand.  I'm running it on
an EV4 Debian system, and it works fine.


Steve Lionel (mailto:Steve.Lionel@compaq.com)
Fortran Engineering
Compaq Computer Corporation, Nashua NH

Compaq Fortran web site: http://www.compaq.com/fortran



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

* Re: seti@home 2.4 for alpha linux ev5
  2000-03-21  5:00 ` Fredrik Lindvall
  2000-03-21  5:00   ` Steve Lionel
@ 2000-03-22  5:00   ` Ian Wilkinson
  1 sibling, 0 replies; 10+ messages in thread
From: Ian Wilkinson @ 2000-03-22  5:00 UTC (permalink / raw)



It still works on EV4, I'm running it on a Multia, and as far as I know
that's EV4...

Ian.

Fredrik Lindvall <fredrik.lindvall@teracom.se> wrote in message
news:38D78960.5FF5FF39@teracom.se...
> How do I go about getting an ev4 version?
>
> jmd wrote:
>
> > as the subject says.... ver 2.4 appears to have been released.
> >
> > http://setiathome.ssl.berkeley.edu/unix.html
> >
> > jeff
>
> /Fredrik
>





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

* Re: seti@home 2.4 for alpha linux ev5
  2000-03-19  5:00 seti@home 2.4 for alpha linux ev5 jmd
  2000-03-21  5:00 ` Fredrik Lindvall
@ 2000-03-28  5:00 ` Richard Simpson
  2000-03-28  5:00   ` Jim Woodruff
  1 sibling, 1 reply; 10+ messages in thread
From: Richard Simpson @ 2000-03-28  5:00 UTC (permalink / raw)


jmd <jmd@infinet.com> wrote:
: as the subject says.... ver 2.4 appears to have been released.

On my system (533MHz LX) this new Linux version seems slower than the 2.0
osf3 version (both running under Linux).  When running in fast mode (i.e.
not clobbered by page colouring problems) the osf3 version manages about
7h30m per WU, whilst I have yet to get the Linux version to complete in less
than 8h00m.

I have to admit to being a little disappointed by this, but perhaps it is a
feature of 2.4.  I have yet to try the v2.4 osf3 version.

-- 
----------------------------------------------------------------------------

Richard Simpson
Farnborough, Hants, Uk                 Fax: 01252 392118
rsimpson@ewrcsdra.Cut_This_Out.demon.co.uk

I am not aware of any views shared by myself and my employers.



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

* Re: seti@home 2.4 for alpha linux ev5
  2000-03-28  5:00 ` Richard Simpson
@ 2000-03-28  5:00   ` Jim Woodruff
  2000-04-03  4:00     ` Richard Simpson
  0 siblings, 1 reply; 10+ messages in thread
From: Jim Woodruff @ 2000-03-28  5:00 UTC (permalink / raw)


On Tue, 28 Mar 2000, Richard Simpson wrote:

> On my system (533MHz LX) this new Linux version seems slower than the 2.0
> osf3 version (both running under Linux).  When running in fast mode (i.e.
> not clobbered by page colouring problems) the osf3 version manages about
> 7h30m per WU, whilst I have yet to get the Linux version to complete in less
> than 8h00m.

I'm running a 533MHz SX and have experienced the page colouring problems.
How do you run your system in the fast mode vs. the slow mode?  Or is it
a hit or miss situation.

Have you tried the 2.4.alpha-compaq-T64Uv4.0d version?  I seem to be
averaging a little under 6 1/2 hrs with this version, except when I
kill the process and restart which increase the time to over 8 hrs.

-
Jim Woodruff  < jawoodruff@home.com > 
Linux + AlphaPowered = 64-bit screamin' performance





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

* Re: seti@home 2.4 for alpha linux ev5
  2000-03-28  5:00   ` Jim Woodruff
@ 2000-04-03  4:00     ` Richard Simpson
  2000-04-03  4:00       ` Peter Boyle
  0 siblings, 1 reply; 10+ messages in thread
From: Richard Simpson @ 2000-04-03  4:00 UTC (permalink / raw)


Jim Woodruff <jawoodruff@home.com> wrote:
: On Tue, 28 Mar 2000, Richard Simpson wrote:

: How do you run your system in the fast mode vs. the slow mode?  Or is it
: a hit or miss situation.

It seems to be hit and miss.  Sometimes the code starts in fast mode and
sometimes it doesn't.  I find that rebooting greatly increases the chance of
getting a fast mode hit and that extensive use of the machine can cause the
program to drop back to slow mode (I am unsure if this is related to
setiathome getting swapped out).

One of the biggest problems is rapidly determining which mode I am in.  I
have a little script which does a 'grep prog state.sah', waits 10 minutes
and then does it again.  A bit of maths (which I could probably automate
with a little effort) gives an estimate of the run time.  I find that the
fine-grained rate varies considerably, and that is why I need to average
over 10 minutes.

Is there anyone in this group who actually UNDERSTANDS page colouring and
who could either give us an idiot's guide or point us to a sensible web
page?  All I know, is that it is related to the way that the cache is
controlled and that it is a pain in the butt!!

: Have you tried the 2.4.alpha-compaq-T64Uv4.0d version?

Only briefly, and it didn't seem, to be any faster than the Linux version. 
However, maybe it was in slow mode :-(.

-- 
----------------------------------------------------------------------------

Richard Simpson
Farnborough, Hants, Uk                 Fax: 01252 392118
rsimpson@ewrcsdra.Cut_This_Out.demon.co.uk

I am not aware of any views shared by myself and my employers.



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

* Re: seti@home 2.4 for alpha linux ev5
  2000-04-03  4:00     ` Richard Simpson
@ 2000-04-03  4:00       ` Peter Boyle
  2000-04-05  4:00         ` Richard Simpson
  0 siblings, 1 reply; 10+ messages in thread
From: Peter Boyle @ 2000-04-03  4:00 UTC (permalink / raw)





On Mon, 3 Apr 2000, Richard Simpson wrote:

> Is there anyone in this group who actually UNDERSTANDS page colouring and
> who could either give us an idiot's guide or point us to a sensible web
> page?  All I know, is that it is related to the way that the cache is
> controlled and that it is a pain in the butt!!
> 

Hi, 
I wouldn't claim to UNDERSTAND cache coloring, but I'll splurge what
little I do know.

i) External Cache thrashing due to virt->real addressing

The basic problem arises because the external (L2/L3 depending on
system) cache is direct mapped in *real* address space, while
codes (and higher levels of cache) are operating with virtual 
addresses. 

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

When, for example, streaming two arrays which are laid out 
uniformly, read with stride one access, and put in a common
block / global / whatever with padding to ensure that access
are well separated in the cache in virutal space, you can end 
up accessing simultaneously from the same sub-page of the direct
mapped L3 cache for both streams. One evicting the other before
it is read. The worst case of this could arise if the padding
is such that modulo the page size, you are reading from
the same address concurrently. Then even if the
on-chip cache is multi-way associative, the vagaries
of the virt->real page mapping could make the direct mapped
external cache thrash and give huge loss of performance. 

e.g. if page size is 8192

      double precision A(8192*4)
      double precision B(8192*4)
c should actually pad so as to add some nice number of cache 
c lines in C, deliberately take worst number here.
      double precision C(8192)
      integer i
      common /bad/ A,B
      double precision dot
      dot = 0.0
      do i=1,8192*4
        dot = dot + A(i)*B(i)
      end do

Here the 2MB cache is 256 pages long, so we would concurrently
access 5 pages apart in the L3 which is fine, but depending
on how the OS lays out the processes memory map this may not be the
case.

Hence

> : 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. If there is a difference running under Linux it is
probably something like KAP in the compilation.

Given the ratio of cache to main memory latency, this page thrashing 
doesn't have to happen all that often to become a significant performance
hit.

There is a performance tuning red book available on IBM websites
showing (i think ) the streams performance as function of size with
random drop spikes as a result of this.


ii) Cache coloring.

HPC  orientated OS's (Tru64, and I think possibly IRIX and AIX but 
I am probably wrong in at least one of these) divide the external cache
into a number of sectors called colors. Basically the aim is to detect
thrashing in the L3 and remap the processes page tables to split the
conflicting pages into different sectors of the L3. 
They look at the on-chip perfmon counters to detect anomolously 
high L3 misses on each task switch and flag processes for dynamic 
remapping. How the info is obtained for which pages are conflicting
I don't know.

iii) Poor man's alternatives.

Easiest: reboot machine so that the memory space is unlikely
to be fragmented. Pad commons as though a 
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. 

I did have a go at hacking the mlock/munlock into a 
syscall to lock and remap the page table (because I was finding it hard to
reproduce stream figures for a ds10 and followed a red herring),
but turned out I wasn't getting wh64's produced, and I was too crap 
a programmer anyway. It was at least able to scan the mappings
given base addresses and access strides looking for conflicts
and if anyone is interested in taking it further, email me.

Cheers,

Peter Boyle	pboyle@physics.gla.ac.uk






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

* Re: seti@home 2.4 for alpha linux ev5
  2000-04-03  4:00       ` Peter Boyle
@ 2000-04-05  4:00         ` Richard Simpson
  2000-04-06  4:00           ` Peter Boyle
  0 siblings, 1 reply; 10+ messages in thread
From: Richard Simpson @ 2000-04-05  4:00 UTC (permalink / raw)


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?

: When, for example, streaming two arrays which are laid out 
: etc etc etc

: Here the 2MB cache is 256 pages long, so we would concurrently
: access 5 pages apart in the L3 which is fine, but depending
: on how the OS lays out the processes memory map this may not be the
: case.

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.

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

KAP???

: ii) Cache coloring.

: HPC  orientated OS's (Tru64, and I think possibly IRIX and AIX but 
: I am probably wrong in at least one of these) divide the external cache
: etc etc
: remapping. How the info is obtained for which pages are conflicting
: I don't know.

Relatively clear :-)

: iii) Poor man's alternatives.

: Easiest: reboot machine so that the memory space is unlikely
: to be fragmented. Pad commons as though a
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.

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

-- 
----------------------------------------------------------------------------

Richard Simpson
Farnborough, Hants, Uk                 Fax: 01252 392118
rsimpson@ewrcsdra.Cut_This_Out.demon.co.uk

I am not aware of any views shared by myself and my employers.



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

* Re: seti@home 2.4 for alpha linux ev5
  2000-04-05  4:00         ` Richard Simpson
@ 2000-04-06  4:00           ` Peter Boyle
  0 siblings, 0 replies; 10+ messages in thread
From: Peter Boyle @ 2000-04-06  4:00 UTC (permalink / raw)




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







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

end of thread, other threads:[~2000-04-06  4:00 UTC | newest]

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