Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Sander Vesik <sander@haldjas.folklore.ee>
Subject: Re: Alpha in peril? First Canion, now Pfieffer (I do think so)
Date: 1999/05/12	[thread overview]
Message-ID: <926518491.202473@haldjas.folklore.ee> (raw)
In-Reply-To: 37396C9A.BD7A1D3B@hda.hydro.com

In comp.arch Terje Mathisen <Terje.Mathisen@hda.hydro.com> wrote:
> Sander Vesik wrote:
> > 
> > In comp.arch "Stefan Monnier " <foo@acm.commonnier+comp/arch/news/@tequila.cs.yale.edu> wrote:
> > > Furthermore, pointers can now be exchanged between processes in a meaningful
> > > manner.  SHM segments are now always mapped at the same address in each process
> > > which allows the use of actual data-structures in there.
> > 
> > You can use actual data structures in shared memory even now (at least in
> > mmap shared memory). You just have to use offsets relative to the start
> > of the shared region instead of an absolute address.
> > 
> > Considering the cost of following a pointer, the cost of one addition to
> > get the pointer which to follow is so insignificant as to not be worth
> > mentioning.

> This is right and wrong:

> Yes, since even the PII/PII which has a very short load-to-use latency
> needs 3 cycles per pointer to follow a chain (in L1 cache), the extra
> addition can never add more than 33% to the running time, and as long as
> you're actually doing something with the pointers, much less.

> OTOH, it makes it much harder to write error-free high-level code that
> uses these data structures, languages which simply don't allow direct
> access to pointers need not apply at all.

Why harder? You just have to add one addition in there everywhere. 

Searching in a linked list would be:

	while (k != SHARED_NULL)
		{
		if (k->data != item)
			k=(struct xyz*)((char *)(k->next) + seg_base);
		}

instead of
	while (k != NULL)
		{
		if ((k->data) != item)
			k=k->next;
		}

> (Is this true? Can you make based pointers work in Java? What about
> Ada?)

At least for java, doesn't a "shared segment" require extra support anyways?

If a shared segment was just an object that overrided the [] operator
(which would be written in some other language) and we were content with
having the shared segemnt consist of only an array of object of same type
(and size) we suddenly have based pointers (as indexes of the above 
pseudo-array).

> Terje

> PS. Of course, coming from an x86 background with near, far, based, huge
> and flat addresses, a simple two-part address doesn't look too
> intimidating, but it still seems similar to the double-linked list with
> a single pointer trick, using XOR'ed prev/next links.

> -- 
> - <Terje.Mathisen@hda.hydro.com>
> Using self-discipline, see http://www.eiffel.com/discipline
> "almost all programming can be viewed as an exercise in caching"

-- 
	Sander

	There is no love, no good, no happiness and no future -
	all these are just illusions.



  reply	other threads:[~1999-05-12  4:00 UTC|newest]

Thread overview: 328+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-19  4:00 Alpha in peril? First Canion, now Pfieffer Paul DeMone
1999-04-19  4:00 ` JohnC
1999-04-19  4:00 ` Henrik Klagges
1999-04-19  4:00   ` Greg Lindahl
1999-04-19  4:00     ` Terry Murphy
1999-04-19  4:00       ` Greg Lindahl
1999-04-19  4:00       ` Peter da Silva
1999-04-20  4:00         ` Thor Lancelot Simon
1999-04-21  4:00         ` Andy Glew
1999-04-21  4:00           ` Dave Cherkus
1999-04-21  4:00             ` Tim Shoppa
1999-04-21  4:00               ` Jonathan Stone
1999-04-21  4:00                 ` Tim Shoppa
1999-04-21  4:00             ` Terje Mathisen
1999-04-21  4:00             ` Sean Eric Fagan
1999-04-21  4:00             ` Jonathan Stone
1999-05-09  4:00             ` TTK Ciar
1999-04-21  4:00           ` Peter da Silva
1999-04-21  4:00           ` Monty Brandenberg
1999-04-21  4:00             ` Tim Shoppa
1999-04-21  4:00             ` Andy Glew
1999-04-22  4:00               ` Aaron Spink
1999-04-23  4:00               ` Jonathan Stone
1999-04-25  4:00                 ` Andy Glew
1999-04-25  4:00               ` John Wilson
1999-04-26  4:00                 ` Pete Zaitcev
1999-04-26  4:00                   ` John Wilson
1999-04-26  4:00                   ` Peter da Silva
1999-04-26  4:00           ` Przemek Klosowski
1999-04-19  4:00       ` Christopher Gomez
1999-04-20  4:00       ` Jeffrey Keith Boulier
1999-04-19  4:00     ` Tim Shoppa
1999-04-19  4:00       ` Greg Lindahl
1999-04-19  4:00         ` Tim Shoppa
1999-04-19  4:00         ` Dave Schreiber
1999-04-20  4:00     ` Henrik Klagges
1999-04-20  4:00       ` Greg Lindahl
1999-04-20  4:00   ` Rick Jones
     [not found]   ` <7flnot$qlb$3@nntp.stanford.edu>
1999-04-22  4:00     ` vhalkka
1999-04-22  4:00       ` Tim Shoppa
1999-04-22  4:00         ` vhalkka
1999-04-22  4:00         ` Jonathan Stone
     [not found]   ` <371e231d.0@news.de <FAKCxA.7Gx@kithrup.com>
1999-04-22  4:00     ` David Jones
1999-04-22  4:00       ` TTK Ciar
1999-04-25  4:00   ` Daniel P. B. Smith
1999-04-25  4:00     ` Larry Kilgallen
1999-04-25  4:00     ` Dave Cherkus
1999-04-26  4:00     ` Terry C. Shannon
1999-04-19  4:00 ` Terry C Shannon
1999-04-19  4:00   ` Doug Siebert
1999-04-20  4:00     ` Anton Ertl
1999-04-20  4:00     ` Rob Young
1999-04-20  4:00       ` Doug Siebert
1999-04-21  4:00         ` Rob Young
1999-04-21  4:00           ` Peter da Silva
1999-04-21  4:00             ` Rob Young
1999-04-21  4:00               ` Chris Morgan
1999-04-21  4:00               ` Peter da Silva
1999-04-22  4:00               ` Henrik Klagges
1999-04-22  4:00               ` andrew.harrison@uk.sun.nospam.com
1999-04-22  4:00                 ` Greg Lindahl
1999-04-22  4:00                   ` andrew.harrison@uk.sun.nospam.com
1999-04-22  4:00                     ` Jeffrey J. Potoff
1999-04-22  4:00                     ` Greg Lindahl
1999-04-22  4:00                       ` Zalman Stern
1999-04-22  4:00                         ` Alan Stange
1999-04-23  4:00                           ` Jan Vorbrueggen
1999-04-23  4:00                         ` Greg Lindahl
1999-04-23  4:00                           ` Zalman Stern
1999-04-23  4:00                             ` Jan Vorbrueggen
1999-04-23  4:00                               ` Steven Hobbs
1999-04-24  4:00                                 ` Gregory Pfister
1999-04-26  4:00                                 ` Ketil Z Malde
1999-04-26  4:00                                   ` John McCalpin
1999-04-26  4:00                       ` andrew.harrison@uk.sun.nospam.com
1999-04-26  4:00                         ` Peter da Silva
1999-04-26  4:00                         ` Greg Lindahl
1999-04-26  4:00                         ` Terje Mathisen
1999-04-26  4:00                           ` andrew.harrison@uk.sun.nospam.com
1999-04-26  4:00                             ` Peter da Silva
1999-04-28  4:00                               ` Jeffrey J. Potoff
1999-04-28  4:00                                 ` Peter da Silva
1999-04-27  4:00                             ` Henrik Klagges
1999-04-27  4:00                               ` Achim Gratz
1999-04-27  4:00                                 ` Henrik Klagges
1999-04-21  4:00           ` Zalman Stern
1999-04-21  4:00             ` Rob Young
1999-04-21  4:00               ` John McCalpin
1999-04-21  4:00                 ` Rob Young
1999-04-21  4:00                   ` John McCalpin
1999-04-21  4:00                     ` Del Cecchi
1999-04-21  4:00               ` Rob Young
1999-04-20  4:00     ` Greg Lindahl
1999-04-20  4:00       ` Doug Siebert
1999-04-21  4:00         ` Greg Lindahl
1999-04-21  4:00           ` Zalman Stern
1999-04-21  4:00             ` Rob Young
1999-04-21  4:00             ` Anton Ertl
1999-04-23  4:00               ` Paul DeMone
1999-04-24  4:00                 ` Andreas Kaiser
1999-04-21  4:00       ` andrew.harrison@uk.sun.nospam.com
1999-04-21  4:00         ` Thomas Womack
1999-04-21  4:00         ` Greg Lindahl
1999-04-21  4:00           ` Andy Glew
1999-04-22  4:00             ` andrew.harrison@uk.sun.nospam.com
1999-04-22  4:00             ` Dave Cherkus
1999-04-22  4:00               ` Andy Glew
1999-04-22  4:00                 ` Dave Cherkus
1999-04-22  4:00                   ` Andy Glew
1999-04-23  4:00                 ` Bruce Hoult
1999-04-23  4:00                   ` Terje Mathisen
1999-04-23  4:00                     ` Bruce Hoult
1999-04-22  4:00             ` Greg Lindahl
1999-04-22  4:00           ` andrew.harrison@uk.sun.nospam.com
1999-04-22  4:00             ` Erik Corry
1999-04-22  4:00             ` TTK Ciar
1999-04-22  4:00               ` Thomas Womack
1999-04-23  4:00                 ` Jan Vorbrueggen
1999-04-22  4:00               ` Peter da Silva
1999-04-23  4:00               ` Terje Mathisen
1999-04-22  4:00             ` Peter da Silva
1999-04-22  4:00               ` Thor Lancelot Simon
1999-04-22  4:00                 ` Peter da Silva
1999-04-22  4:00             ` Thor Lancelot Simon
1999-04-22  4:00               ` andrew.harrison@uk.sun.nospam.com
1999-04-23  4:00             ` Dave Cherkus
1999-04-26  4:00               ` andrew.harrison@uk.sun.nospam.com
1999-04-26  4:00                 ` Pete Zaitcev
1999-04-26  4:00                   ` Dave Cherkus
1999-04-26  4:00                     ` Thor Lancelot Simon
1999-04-27  4:00                   ` Ketil Z Malde
1999-04-26  4:00                 ` Dave Cherkus
1999-04-26  4:00             ` Przemek Klosowski
1999-04-19  4:00   ` Dave Cherkus
1999-04-19  4:00     ` David Hinds
1999-04-20  4:00     ` Jeffrey Keith Boulier
1999-04-20  4:00       ` Doug Siebert
1999-04-19  4:00 ` Greg Lindahl
1999-04-19  4:00 ` Erik Corry
1999-04-19  4:00   ` Henrik Klagges
1999-04-19  4:00   ` Ian Kemmish
1999-04-19  4:00   ` Arthur T. Murray
1999-04-24  4:00 ` Bob Kaplow
1999-04-26  4:00   ` Dave Hansen
1999-04-27  4:00 ` Kerm Jensen
1999-04-29  4:00   ` amos
1999-04-29  4:00     ` Andy Glew
1999-04-30  4:00       ` Alpha in peril? First Canion, now Pfieffer (I do think so) George Gollin
1999-04-30  4:00         ` Paul DeMone
1999-05-01  4:00           ` greg pavlov
     [not found]           ` <372A47F8.2175@ibm.net>
     [not found]             ` <372A6EF1.793A8BB5@igs.net>
1999-05-01  4:00               ` Del Cecchi
1999-05-01  4:00               ` Greg Lindahl
1999-05-01  4:00                 ` Paul DeMone
1999-05-29  4:00                 ` Stephen E. Halpin
1999-05-29  4:00                   ` John McCalpin
1999-05-29  4:00                     ` Stephen E. Halpin
1999-05-29  4:00                       ` Chris Gomez
1999-05-30  4:00                         ` Stephen E. Halpin
1999-05-30  4:00                           ` Chris Gomez
1999-06-01  4:00                           ` Jeffrey Keith Boulier
1999-06-01  4:00                             ` Stephen E. Halpin
1999-05-30  4:00                         ` Bruce Hoult
1999-06-01  4:00                           ` Chris Gomez
1999-05-30  4:00                       ` Anil T Maliyekke
1999-05-30  4:00                       ` Aaron Spink
1999-06-02  4:00                         ` The Penguin Knows!
1999-05-29  4:00                     ` Robert Barris
1999-05-31  4:00                       ` Paul Hsieh
1999-06-01  4:00                         ` Bruce Hoult
1999-05-31  4:00                           ` Chris Gomez
1999-05-31  4:00                             ` Del Cecchi
1999-05-31  4:00                               ` Joe Pfeiffer
1999-06-02  4:00                                 ` Del Cecchi
1999-06-01  4:00                               ` TTK Ciar
1999-06-01  4:00                                 ` Del Cecchi
1999-06-01  4:00                                   ` Aaron Spink
1999-06-01  4:00                                   ` Chris Gomez
1999-06-01  4:00                             ` Bruce Hoult
1999-06-01  4:00                               ` Zalman Stern
1999-06-01  4:00                               ` Chris Gomez
1999-06-02  4:00                                 ` Del Cecchi
1999-06-06  4:00                                   ` Chris Gomez
1999-06-12  4:00                                     ` Del Cecchi
1999-06-12  4:00                                       ` Chris Gomez
1999-06-13  4:00                                         ` Stefan Monnier <foo@acm.com>
1999-06-01  4:00                               ` Chris Gomez
1999-06-02  4:00                                 ` Zalman Stern
1999-06-02  4:00                                   ` Anton Ertl
1999-06-02  4:00                                   ` Peter da Silva
1999-06-03  4:00                                     ` Zalman Stern
1999-06-05  4:00                                   ` Joe Keane
1999-06-05  4:00                                     ` Zalman Stern
1999-06-01  4:00                     ` Timothy J. Bogart
1999-06-01  4:00                       ` John McCalpin
1999-06-01  4:00                         ` Timothy J. Bogart
1999-06-01  4:00                           ` John McCalpin
1999-06-02  4:00                             ` Ilan Horn
1999-06-03  4:00                             ` Timothy J. Bogart
1999-06-02  4:00                           ` Doug Siebert
1999-06-02  4:00                             ` Greg Lindahl
1999-06-03  4:00                               ` Andy Glew
1999-06-03  4:00                               ` Ketil Z Malde
1999-06-02  4:00                             ` Mike Haertel
1999-06-02  4:00                             ` Erik Corry
1999-05-30  4:00                   ` Greg Lindahl
     [not found]               ` <zaitcev.925529620@mallorn>
1999-05-01  4:00                 ` Del Cecchi
     [not found]               ` <1999May1.064257.1@eisner>
1999-05-04  4:00                 ` andrew.harrison@uk.sun.nospam.com
1999-05-04  4:00                   ` Rob Young
1999-05-05  4:00                   ` Greg Lindahl
1999-05-05  4:00                     ` andrew.harrison@uk.sun.nospam.com
1999-05-05  4:00                       ` Greg Lindahl
1999-05-05  4:00                         ` Zalman Stern
1999-05-05  4:00                           ` Greg Lindahl
1999-05-06  4:00                           ` Kai Harrekilde-Petersen
1999-05-06  4:00                             ` Terry C. Shannon
1999-05-06  4:00                             ` Greg Lindahl
1999-05-06  4:00                         ` andrew.harrison@uk.sun.nospam.com
1999-05-06  4:00                           ` Greg Lindahl
1999-05-06  4:00                             ` Rob Young
1999-05-06  4:00                               ` Larry Kilgallen
1999-05-08  4:00                               ` Rostyslaw Lewyckyj
1999-05-08  4:00                                 ` Toon Moene
1999-05-09  4:00                                   ` Zalman Stern
1999-05-10  4:00                                     ` Toon Moene
1999-05-09  4:00                                 ` Rob Young
1999-05-11  4:00                                 ` Jeffrey J. Potoff
1999-05-07  4:00                             ` andrew.harrison@uk.sun.nospam.com
1999-05-08  4:00                               ` Jeffrey Keith Boulier
1999-05-08  4:00                                 ` Del Cecchi
1999-05-08  4:00                               ` Greg Lindahl
1999-05-05  4:00                   ` Dave Cherkus
1999-05-05  4:00                     ` andrew.harrison@uk.sun.nospam.com
1999-05-05  4:00                       ` Nooooo Problem..
1999-05-05  4:00                       ` Dave Cherkus
1999-05-05  4:00                         ` Greg Lindahl
1999-05-06  4:00                         ` andrew.harrison@uk.sun.nospam.com
1999-05-07  4:00                           ` Dave Cherkus
1999-05-07  4:00                             ` Dave Cherkus
1999-05-07  4:00                             ` andrew.harrison@uk.sun.nospam.com
1999-05-07  4:00                               ` Thor Lancelot Simon
1999-05-07  4:00                                 ` Fred Kleinsorge
1999-05-08  4:00                                   ` Greg Lindahl
1999-05-08  4:00                                   ` Terry C. Shannon
1999-05-10  4:00                                     ` andrew.harrison@uk.sun.nospam.com
1999-05-10  4:00                                 ` andrew.harrison@uk.sun.nospam.com
1999-05-10  4:00                                   ` Henrik Klagges
1999-05-10  4:00                                     ` andrew.harrison@uk.sun.nospam.com
1999-05-11  4:00                                   ` Don Dossa
1999-05-12  4:00                                     ` Serguei Patchkovskii
1999-05-12  4:00                                       ` Chris Petersen
1999-05-12  4:00                                       ` Terry C. Shannon
1999-05-12  4:00                                         ` David Bremner
1999-05-12  4:00                                           ` Terry C. Shannon
1999-05-12  4:00                                       ` Don Dossa
1999-05-12  4:00                                     ` Achim Gratz
1999-05-12  4:00                                       ` Toon Moene
1999-05-12  4:00                                       ` Greg Lindahl
1999-05-12  4:00                                         ` Jeffrey J. Potoff
1999-05-13  4:00                                           ` Greg Lindahl
1999-05-14  4:00                                             ` Bruce Hoult
1999-05-13  4:00                                               ` Peter da Silva
1999-05-13  4:00                                     ` Carlie Coats
1999-05-29  4:00                                     ` Stephen E. Halpin
     [not found]                             ` <37330599 <373346d2.0@news.destek.net>
1999-05-10  4:00                               ` andrew.harrison@uk.sun.nospam.com
1999-05-10  4:00                                 ` Henrik Klagges
1999-05-09  4:00               ` TTK Ciar
1999-05-10  4:00                 ` Henrik Klagges
1999-05-10  4:00                   ` Sander Vesik
1999-05-11  4:00                     ` andrew.harrison@uk.sun.nospam.com
1999-05-10  4:00                   ` TTK Ciar
1999-05-10  4:00                     ` Jeffrey Keith Boulier
1999-05-11  4:00                       ` Henrik Klagges
1999-05-11  4:00                       ` andrew.harrison@uk.sun.nospam.com
1999-05-10  4:00                     ` Henrik Klagges
     [not found]             ` <1999May1.000639.1@eisner>
     [not found]               ` <372B0716.B5A068BC@igs.net>
1999-05-02  4:00                 ` Rob Young
1999-05-05  4:00             ` Aaron Spink
1999-05-05  4:00               ` Zalman Stern
1999-05-06  4:00                 ` Peter Seebach
1999-05-11  4:00                   ` Zalman Stern
1999-05-11  4:00                     ` Jonathan Stone
1999-05-11  4:00                       ` Stefan Monnier <foo@acm.com>
1999-05-11  4:00                         ` Jonathan Stone
1999-05-11  4:00                         ` Allen J. Baum
1999-05-12  4:00                         ` Peter da Silva
1999-05-12  4:00                           ` Jonathan Stone
1999-05-12  4:00                           ` Doug Siebert
1999-05-12  4:00                         ` Sander Vesik
1999-05-12  4:00                           ` James Cownie
1999-05-12  4:00                           ` Terje Mathisen
1999-05-12  4:00                             ` Sander Vesik [this message]
1999-05-12  4:00                               ` Terje Mathisen
1999-05-12  4:00                                 ` Zalman Stern
1999-05-13  4:00                                   ` Sander Vesik
1999-05-17  4:00                                   ` Andy Glew
1999-05-13  4:00                                 ` Sander Vesik
1999-05-13  4:00                                   ` Terje Mathisen
1999-05-13  4:00                                     ` Sander Vesik
1999-05-14  4:00                             ` Bruce Hoult
1999-05-13  4:00                               ` Mike Albaugh
1999-05-29  4:00                                 ` Stephen E. Halpin
1999-05-13  4:00                               ` Greg Franks
1999-05-13  4:00                               ` Mike Haertel
1999-05-13  4:00                                 ` Keith Adams
1999-05-14  4:00                                 ` Bruce Hoult
1999-05-14  4:00                                   ` Peter da Silva
1999-05-14  4:00                                     ` Mike Albaugh
1999-05-17  4:00                               ` amos
1999-05-18  4:00                                 ` taniwha
1999-05-17  4:00                             ` Andy Glew
1999-05-17  4:00                               ` Mike Haertel
1999-05-17  4:00                                 ` Jonathan Stone
1999-05-18  4:00                                   ` Terje Mathisen
1999-05-18  4:00                                     ` Andrew Reilly
1999-05-19  4:00                                       ` Terje Mathisen
1999-05-17  4:00                                 ` Thor Lancelot Simon
1999-05-18  4:00                               ` Marinos J. Yannikos
1999-05-12  4:00                           ` Stefan Monnier <foo@acm.com>
1999-05-12  4:00                             ` Jonathan Stone
1999-05-12  4:00                               ` erik.elmgren
1999-05-17  4:00                                 ` Jonathan Stone
1999-05-29  4:00                       ` Stephen E. Halpin
1999-05-06  4:00                 ` Jan Vorbrueggen
1999-04-30  4:00         ` Jeffrey J. Potoff
1999-04-30  4:00         ` John Hascall
1999-04-30  4:00         ` Greg Lindahl
1999-04-30  4:00           ` George Gollin
1999-04-30  4:00             ` Greg Lindahl
1999-04-30  4:00             ` Peter da Silva
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