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


Groups > comp.arch > #33757

Re: "volatile" on the Mill

From "Chris M. Thomasson" <nospam@nospam.nospam>
Newsgroups comp.arch
Subject Re: "volatile" on the Mill
Date 2016-02-21 14:05 -0800
Organization Aioe.org NNTP Server
Message-ID <nadcbv$sms$1@gioia.aioe.org> (permalink)
References (2 earlier) <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> <c4b44c75-685e-42e2-9c8b-17956a7dbccd@googlegroups.com>

Show all headers | View raw


> "gpderetta" wrote in message 
> news:c4b44c75-685e-42e2-9c8b-17956a7dbccd@googlegroups.com...

> > On Wednesday, February 3, 2016 at 7:55:44 PM UTC, Chris M. Thomasson 
> > wrote:
> > [...]

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

Thank you for the heads up about MFENCE. However, I still worry
about side-effects. So, if its a dummy location for the LOCK'ed
op, well, it better be aligned on a cache line, and padded to
the size of said cache line! That should reduce any side-effects...

Humm... Any thoughts? MFENCE might be better... ;^) 

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