From: "Bryan O'Sullivan" <bos@pathscale.com>
To: Andi Kleen <ak@suse.de>
Cc: linux-kernel@vger.kernel.org, discuss@x86-64.org
Subject: Re: Why is wmb() a no-op on x86_64?
Date: Wed, 18 Jan 2006 08:52:49 -0800 [thread overview]
Message-ID: <1137603169.4757.50.camel@serpentine.pathscale.com> (raw)
In-Reply-To: <200601181729.36423.ak@suse.de>
On Wed, 2006-01-18 at 17:29 +0100, Andi Kleen wrote:
> Actually it is a compiler optimizer barrier, not a no-op.
Sorry, braino.
> Hmm, I suppose one could add a wc_wmb() or somesuch, but WC
> is currently deeply architecture specific so I'm not sure
> how you can even use it portably.
>
> Why do you need the barrier?
On x86_64, we fiddle with the MTRRs to enable write combining, which
makes a huge difference to performance. It's not clear to me what we
should even do on other architectures, since the only generic entry
point that even exposes write combining is pci_mmap_page_range, which is
for PCI mmap through userspace, and half the arches I've looked at
ignore its write_combine parameter.
<b
next prev parent reply other threads:[~2006-01-18 16:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-18 16:23 Why is wmb() a no-op on x86_64? Bryan O'Sullivan
2006-01-18 16:29 ` Andi Kleen
2006-01-18 16:52 ` Bryan O'Sullivan [this message]
2006-01-18 17:06 ` Jes Sorensen
2006-01-18 17:23 ` Bryan O'Sullivan
2006-01-18 17:31 ` [discuss] " Andi Kleen
2006-01-19 10:03 ` Jes Sorensen
2006-01-18 20:07 ` Roland Dreier
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=1137603169.4757.50.camel@serpentine.pathscale.com \
--to=bos@pathscale.com \
--cc=ak@suse.de \
--cc=discuss@x86-64.org \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.