Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Newsgroups | comp.arch |
|---|---|
| Date | 2016-02-15 02:27 -0800 |
| References | (1 earlier) <ad013940-d620-47af-851e-3b93866a9544@googlegroups.com> <3579f4fd-086a-4f44-a9cd-785b4b84f3c2@googlegroups.com> <n8q6ml$umb$1@dont-email.me> <7cc44bb1-8136-4901-8f2c-471a0ed7f0fc@googlegroups.com> <n8tlvq$1did$1@gioia.aioe.org> |
| Message-ID | <c4b44c75-685e-42e2-9c8b-17956a7dbccd@googlegroups.com> (permalink) |
| Subject | Re: "volatile" on the Mill |
| From | gpderetta <gpderetta@gmail.com> |
On Wednesday, February 3, 2016 at 7:55:44 PM UTC, Chris M. Thomasson wrote: > > already5chosen@yahoo.com > > wrote in message > > news:7cc44bb1-8136-4901-8f2c-471a0ed7f0fc@googlegroups.com... > > [...] > > > As to "normal" memory, the matters around "loAs to > > "normal" memory, the matters around "lockless" > > programming are too complex to my brain. Practically, > > for use that does not involve I/O, I can't imagine a > > situation in which I may want to use membar on SPARC > > TSO, but don't want to use the same membar on > > SC-by-default machine. > > But if I can't imagine something, it does no mean > > that Chris M. Thomasson and his friends also can not. > > FWIW, both SPARC TSO and x86 require a #StoreLoad style > memory barrier to implement the SMR and eventcount > algorithms. Or, basically any algorithm that depends on > a load followed by a store to another location. This > would be the MFENCE instruction on x86. You could use > an actual LOCK'ed atomic to get things right, but its > more expensive. > Hi Chris, big fan of your work! Just a small clarification, I believe that locked instructions (possibly on a dummy memory location) are actually preferred to MFENCE as a store-load as they have a slightly higher throughput/lower latency, at least on current x86 cpus (core2 was the exception with a faster mfence). There might be second order effects of course. For examples many compilers lower sequential consistency stores to an XCHG instead of MFENCE+MOV. During the C++ MM development it was argued that MFENCE would not be enough to guarantee SC, but this was later clarified by intel (by slightly strengthening the memory order to TSO) to have the same fencing effect of a locked instruction. -- gpd
Back to comp.arch | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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