From: Matteo Frigo <Matteo.Frigo@qrclab.com>
To: John Carr <jfc@MIT.EDU>
Cc: ygrek <ygrekheretix@gmail.com>, caml-list@inria.fr
Subject: Re: [Caml-list] ackermann microbenchmark strange results
Date: Wed, 24 Apr 2013 13:35:22 -0400 [thread overview]
Message-ID: <87ppxjvnl1.fsf@matteo.qrclab.com> (raw)
In-Reply-To: <201304241557.r3OFvT9a012995@outgoing.mit.edu> (John Carr's message of "Wed, 24 Apr 2013 11:57:29 -0400")
John Carr <jfc@MIT.EDU> writes:
> Try changing loop alignment by editing assembly code. The address of
> ack is different in the different versions. Modern Intel processors are
> sensitive to code alignment. There is a limit on the number of branch
> prediction table entries per cache line. An instruction that crosses a
> cache line boundary may be slower than an instruction within a cache
> line. I am not surprised to see a 20% difference caused by an apparently
> irrelevant code change.
See also
http://people.csail.mit.edu/nkushman/papers/ms-thesis.pdf
for a detailed analysis of a related problem on older (1998) hardware.
next prev parent reply other threads:[~2013-04-24 17:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-24 10:35 ygrek
2013-04-24 15:57 ` John Carr
2013-04-24 16:08 ` Alain Frisch
2013-04-24 16:57 ` Anthony Tavener
2013-04-24 17:26 ` rixed
2013-04-24 17:31 ` Török Edwin
2013-04-24 17:35 ` Matteo Frigo [this message]
2013-04-26 3:31 ` ygrek
2013-04-24 17:40 ` Xavier Leroy
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=87ppxjvnl1.fsf@matteo.qrclab.com \
--to=matteo.frigo@qrclab.com \
--cc=caml-list@inria.fr \
--cc=jfc@MIT.EDU \
--cc=ygrekheretix@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