Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.arch > #33436

Re: "volatile" on the Mill

Newsgroups comp.arch
Date 2016-02-02 11:37 -0800
References <n8mb5k$27c$1@dont-email.me> <ad013940-d620-47af-851e-3b93866a9544@googlegroups.com> <3579f4fd-086a-4f44-a9cd-785b4b84f3c2@googlegroups.com> <n8q6ml$umb$1@dont-email.me>
Message-ID <4cb123d8-8a5c-41a1-9f6b-fd39665a717d@googlegroups.com> (permalink)
Subject Re: "volatile" on the Mill
From "Paul A. Clayton" <paaronclayton@gmail.com>

Show all headers | View raw


On Tuesday, February 2, 2016 at 7:19:13 AM UTC-5, Ivan Godard wrote:
> On 2/2/2016 1:36 AM, already5chosen@yahoo.com wrote:
[snip]
>> Do not SPARC and zArch servers *currently* offer sequential
>> consistency? I'm not 100% sure about SPARC, but zArch surely fits the
>> bill, no?

SPARC's Total Store Order allows stores to be reordered 
after loads (according to McKenney's paper). The same 
source indicates that zArch also allows stores to be 
reordered after loads, but somewhat confusingly also 
states "It also has comparatively strong memory-ordering 
semantics, as shown in Table 5, which should allow the 
smp_wmb() primitive to be a nop (and by the time you read 
this, this change may well have happened).The table 
actually understates the situation, as the zSeries memory 
model is otherwise sequentially consistent, meaning that 
all CPUs will agree on the order of unrelated stores from 
different CPUs."

>> Of course, as a matter of argument, Ivan can say that Oracle, Fujitsu
>> and IBM are not in business of selling *CPUs* :-)
>>
> 
> To the best of my knowledge none offer sequential consistency as 
> strictly defined; there's a lot of marketing and confusion though. 
> Please correct me, with cites, if you know a counterexample. It's a safe 
> bet that any ISA that has membar operations is not SC, because membars 
> are not necessary with SC. Supposedly x86 comes as close to SC as any, 
> but not quite all the way.

Having architectural membar operations does not mean that 
no systems support sequential consistency. It would be 
possible to have systems that support SC but provide 
software compatibility across a larger range (defined by 
the ISA). PA-RISC is an example.

It would also be possible for the ISA to define a concept 
of consistency regions within which stronger consistency 
is provided. Such would allow avoiding membar when all 
active memory is constrained within the region.

(The closest that I am aware to such might be Itanium's 
TLB coherence domains which allow one to avoid interprocessor 
interrupts for TLB coherence within a domain. Hardware 
partitioning systems could perhaps be reasonably extended 
to support such features.)

Of course, this could be provided as a microarchitectural 
feature to support lower overhead membar. 

It might even be practical to support larger consistency 
domains in higher-end systems with the same core 
microarchitecture. Supporting SC might be easy enough in 
a group of four cores to allow such in a low-end 
implementation, but with more hardware adequately performing 
SC might be supported at higher core counts or otherwise 
across natural partition boundaries.

One could also imagine an architecture where membar is 
*architecturally* a hint operation, allowing software 
to indicate sequencing points to reduce overheads. A 
code sequence without the membars would execute 
correctly but potentially at lower performance (or 
energy-efficiency or other metric of value). In this 
case the ISA would still provide SC, but would also 
have membar instructions (though they would probably 
be called something else since they are hints).

(Obviously, one could combine hint membar and 
consistency domain features such that membars are 
useless hints within a consistency domain and not 
semantically necessary in a larger context but are 
still architecturally defined and useful.)

I also wonder if membar is the best interface for
ensuring consistency. Such seems to substantially 
overspecify the ordering requirements both in 
what storage addresses (names) participate and 
what agents are involved. 

Transactional memory implementations limit the name 
space and agent space at significant cost (and membar 
could use similar hardware to reduce latency -- using 
TM hardware to detect ordering violations has already 
been proposed academically), typically not supporting 
not-participating names (much less something like the 
name removal in AMD's ASF). Transactional memory also 
somewhat overspecifies in that the entire operation is 
atomic (name removal provides some non-atomic behavior).

This is not an area where I understand the considerations, 
but even so it seems obvious that there are tradeoffs.
Even the pay-for-what-you-use philosophy is not obviously 
the best way to proceed in all cases.

Back to comp.arch | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

"volatile" on the Mill Ivan Godard <ivan@millcomputing.com> - 2016-01-31 17:10 -0800
  Re: "volatile" on the Mill nmm@wheeler.UUCP (Nick Maclaren) - 2016-02-01 07:48 +0000
    Re: "volatile" on the Mill William Edwards <willvarfar@gmail.com> - 2016-01-31 23:53 -0800
      Re: "volatile" on the Mill nmm@wheeler.UUCP (Nick Maclaren) - 2016-02-01 08:47 +0000
  Re: "volatile" on the Mill "Paul A. Clayton" <paaronclayton@gmail.com> - 2016-02-01 20:34 -0800
    Re: "volatile" on the Mill already5chosen@yahoo.com - 2016-02-02 01:36 -0800
      Re: "volatile" on the Mill Ivan Godard <ivan@millcomputing.com> - 2016-02-02 04:19 -0800
        Re: "volatile" on the Mill nmm@wheeler.UUCP (Nick Maclaren) - 2016-02-02 12:55 +0000
        Re: "volatile" on the Mill already5chosen@yahoo.com - 2016-02-02 05:16 -0800
          Re: "volatile" on the Mill "Chris M. Thomasson" <nospam@nospam.nospam> - 2016-02-03 11:55 -0800
            Re: "volatile" on the Mill "Chris M. Thomasson" <nospam@nospam.nospam> - 2016-02-08 11:10 -0800
            Re: "volatile" on the Mill gpderetta <gpderetta@gmail.com> - 2016-02-15 02:27 -0800
              Re: "volatile" on the Mill "Chris M. Thomasson" <nospam@nospam.nospam> - 2016-02-21 14:05 -0800
                Re: "volatile" on the Mill gpderetta <gpderetta@gmail.com> - 2016-02-29 07:37 -0800
                Re: "volatile" on the Mill "Chris M. Thomasson" <nospam@nospam.nospam> - 2016-03-07 15:24 -0800
          Re: "volatile" on the Mill "Chris M. Thomasson" <nospam@nospam.nospam> - 2016-02-03 12:30 -0800
        Re: "volatile" on the Mill Quadibloc <jsavard@ecn.ab.ca> - 2016-02-02 11:16 -0800
          Re: "volatile" on the Mill Quadibloc <jsavard@ecn.ab.ca> - 2016-02-02 11:18 -0800
            Re: "volatile" on the Mill already5chosen@yahoo.com - 2016-02-02 11:30 -0800
        Re: "volatile" on the Mill "Paul A. Clayton" <paaronclayton@gmail.com> - 2016-02-02 11:37 -0800
          Re: "volatile" on the Mill Ivan Godard <ivan@millcomputing.com> - 2016-02-02 15:22 -0800
            Re: "volatile" on the Mill MitchAlsup <MitchAlsup@aol.com> - 2016-02-02 16:54 -0800
              Re: "volatile" on the Mill anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-02-03 10:53 +0000
                Re: "volatile" on the Mill Quadibloc <jsavard@ecn.ab.ca> - 2016-02-03 07:19 -0800
                Re: "volatile" on the Mill Quadibloc <jsavard@ecn.ab.ca> - 2016-02-03 07:49 -0800
                Re: "volatile" on the Mill anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-02-03 16:17 +0000
                Re: "volatile" on the Mill Quadibloc <jsavard@ecn.ab.ca> - 2016-02-03 12:41 -0800
                Re: "volatile" on the Mill anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-02-04 17:03 +0000
                Re: "volatile" on the Mill Quadibloc <jsavard@ecn.ab.ca> - 2016-02-03 12:47 -0800
                Re: "volatile" on the Mill anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-02-04 17:20 +0000
            Re: "volatile" on the Mill nmm@wheeler.UUCP (Nick Maclaren) - 2016-02-03 09:59 +0000
              Re: "volatile" on the Mill Ivan Godard <ivan@millcomputing.com> - 2016-02-03 02:34 -0800
                Re: "volatile" on the Mill nmm@wheeler.UUCP (Nick Maclaren) - 2016-02-03 11:01 +0000
                Re: "volatile" on the Mill gpderetta <gpderetta@gmail.com> - 2016-02-15 02:18 -0800
                Re: "volatile" on the Mill nmm@wheeler.UUCP (Nick Maclaren) - 2016-02-15 11:41 +0000

csiph-web