DPDK patches and discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: lilinzhe <slayercat.subscription@gmail.com>
Cc: dev@dpdk.org, 李林哲 <lilinzhe@ijinshan.com>
Subject: Re: [dpdk-dev] [PATCH] mbuf: fix atomic refcnt update synchronization
Date: Fri, 2 Sep 2016 09:12:36 -0700	[thread overview]
Message-ID: <20160902091236.57250d1a@xeon-e3> (raw)
In-Reply-To: <1472793906-5699-1-git-send-email-slayercat.subscription@gmail.com>

On Fri,  2 Sep 2016 13:25:06 +0800
lilinzhe <slayercat.subscription@gmail.com> wrote:

> From: 李林哲 <lilinzhe@ijinshan.com>
> 
> chagne atomic ref update to always call atomic_add
> 
> when mbuf is allocated by cpu1 and freed by cpu2. cpu1 cache may not be updated by such a set operation.
> causes refcnt reads incorrect values.

What architecture are you dealing with? On X86 memory is cache coherent.

Doing atomic operation all the time on each mbuf free would significantly
slow down performance.

  reply	other threads:[~2016-09-02 16:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-02  5:25 lilinzhe
2016-09-02 16:12 ` Stephen Hemminger [this message]
2016-09-02 16:31   ` Linzhe Lee
2016-09-02 16:51     ` Stephen Hemminger
2016-09-03  2:05       ` Linzhe Lee
2016-09-03 22:52         ` Ananyev, Konstantin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160902091236.57250d1a@xeon-e3 \
    --to=stephen@networkplumber.org \
    --cc=dev@dpdk.org \
    --cc=lilinzhe@ijinshan.com \
    --cc=slayercat.subscription@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).