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


Groups > comp.arch > #31479

Re: Efficient lock free FIFO

From "Chris M. Thomasson" <nospam@nospam.nospam>
Newsgroups comp.arch
Subject Re: Efficient lock free FIFO
Date 2015-12-05 17:55 -0800
Organization Aioe.org NNTP Server
Message-ID <n404j4$odt$1@speranza.aioe.org> (permalink)
References <ec9545f0-93a8-4672-8f59-695eee864d30@googlegroups.com> <e7740fc3-617b-418f-bd8d-be7d1f474ac8@googlegroups.com> <n3rprp$37u$1@dont-email.me>

Show all headers | View raw


> "Nick Maclaren" wrote in message news:n3rprp$37u$1@dont-email.me... 

> > In article <e7740fc3-617b-418f-bd8d-be7d1f474ac8@googlegroups.com>,
> > <already5chosen@yahoo.com> wrote:
[...]
> > I don't see ho such thing can be potentially useful.

> It's useful, and has been used since time immemorial. The main use
> of such techniques is with interrupt handling, where the key factor
> is to be able to detect an interrupted update and fix it up without
> causing other problems.

Indeed they are extremely useful for such conditions.


> As far as parallelism is concerned, what techniques work best is
> critically dependent on the potential conflict rate, and whether
> reads dominate updates. 99% of claimed wonderful techniques (both
> things like SMT or coherence protocols and lock-free algorithms
> or sychronisation mechanisms) are good only if your requirement
> their (usually well-hidden or even unstated) assumptions.

Exactly Right. I have seed many algorithms that are absolutely 
terrible when it comes to contention for they seem to have the 
knack to live lock and totally thrash the cache. Wait-free, or 
I should say loopless algorithms tend to be much better, but one 
has to be VERY careful when deciding how and where to use them. 
I have seen many transnational memory's basically go slower that 
a damn snail hiking up a mountain of salt! A simple read canceling 
other operations is just terrible. This is why I like RCU so much. 
There can be many concurrent reads that do not interfere with 
writes and vise versa. Your use case just has to be ready to 
deal with potentially out of date reads. I have seen lock-free 
algorithms with so many damn atomic RMW ops, that using a mutex 
would be much better wrt performance.

All of this is very touchy, and is complicated. Almost like 
juggling several running chainsaws in a very cold, hardcore 
blinding out of control blizzard!

Tread lightly... Yikes!

;^o

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


Thread

Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-03 18:56 -0800
  Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-03 19:22 -0800
  Re: Efficient lock free FIFO Ivan Godard <ivan@millcomputing.com> - 2015-12-03 19:32 -0800
    Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-03 19:36 -0800
      Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-03 19:40 -0800
  Re: Efficient lock free FIFO "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-03 21:46 -0800
    Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-04 00:12 -0800
      Re: Efficient lock free FIFO "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-04 13:59 -0800
        Re: Efficient lock free FIFO "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-04 14:06 -0800
        Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-04 15:36 -0800
          Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-04 15:40 -0800
        Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-04 15:53 -0800
          Re: Efficient lock free FIFO "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-05 13:36 -0800
            Re: Efficient lock free FIFO "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-05 13:39 -0800
  Re: Efficient lock free FIFO already5chosen@yahoo.com - 2015-12-04 01:59 -0800
    Re: Efficient lock free FIFO nmm@wheeler.UUCP (Nick Maclaren) - 2015-12-04 10:28 +0000
      Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-04 07:08 -0800
      Re: Efficient lock free FIFO "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-05 17:55 -0800
        Re: Efficient lock free FIFO "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-05 17:59 -0800
        Re: Efficient lock free FIFO already5chosen@yahoo.com - 2015-12-06 04:03 -0800
          Re: Efficient lock free FIFO nmm@wheeler.UUCP (Nick Maclaren) - 2015-12-06 12:43 +0000
    Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-04 06:56 -0800
      Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-04 07:04 -0800
      Re: Efficient lock free FIFO already5chosen@yahoo.com - 2015-12-05 08:56 -0800
        Re: Efficient lock free FIFO "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-05 13:43 -0800
          Re: Efficient lock free FIFO "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-05 13:51 -0800
  Re: Efficient lock free FIFO (Something ...?) jacko <jackokring@gmail.com> - 2015-12-06 07:08 -0800
  Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-06 11:58 -0800
    Re: Efficient lock free FIFO "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-06 13:02 -0800
      Re: Efficient lock free FIFO jacko <jackokring@gmail.com> - 2015-12-06 13:37 -0800

csiph-web