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


Groups > comp.arch > #33454

Re: "volatile" on the Mill

From "Chris M. Thomasson" <nospam@nospam.nospam>
Newsgroups comp.arch
Subject Re: "volatile" on the Mill
Date 2016-02-03 11:55 -0800
Organization Aioe.org NNTP Server
Message-ID <n8tlvq$1did$1@gioia.aioe.org> (permalink)
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> <7cc44bb1-8136-4901-8f2c-471a0ed7f0fc@googlegroups.com>

Show all headers | View raw


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

https://www.research.ibm.com/people/m/michael/ieeetpds-2004.pdf

https://groups.google.com/d/topic/comp.programming.threads/qoxirQbbs4A/discussion
(Joe Seigh points out the required membars in that thread)


One could also use an asynchronous like technique to get around
the “explicit” membar, but its more complicated and has
some caveats. WRT SMR, you basically only check hazard
pointers after a point of "quiescence" has occurred, like RCU. One can
"force" a quiescence point by doing a “system” wide memory
barrier. Something like:

https://msdn.microsoft.com/en-us/library/windows/desktop/ms683148(v=vs.85).aspx


TSO is simply not strong enough to handle this by itself. 

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