From: "Luck, Tony" <tony.luck@intel.com>
To: linux-ia64@vger.kernel.org
Subject: RE: weird speed problem
Date: Mon, 24 Nov 2003 20:00:09 +0000 [thread overview]
Message-ID: <marc-linux-ia64-106970446625466@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-106957761119369@msgid-missing>
> One _potential_ reason why it ran fast one time, and slow on
> other runs
> is the lack of page colouring in Linux. If the working set
> of your test
> program is some large percentage of the cache size, then you
> can hit this
> on any architecture, not just ia64.
Following up to myself (in response to private e-mail requesting
clarification).
You may be able to determine whether this is your problem
by using Stephane's "pfmon" tool to count cache misses at
various levels of the cache hierarchy, and comparing these
numbers from run to run. If you see wildly varying numbers,
and your system is idle apart from the test program, then
lack of cache colouring is probably the issue.
You may be able to workaround the lack of cache colouring by
using hugetlbfs to allocate memory, since you are guaranteed
to get contiguous physical memory that will line up neatly
in your cache. Though this may be overkill (since hugetlbfs
pagesize is generally much bigger than your cachesize, you'll
be forced to allocate far more memory than your application
needs).
-Tony
next prev parent reply other threads:[~2003-11-24 20:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-23 8:52 weird speed problem Yaroslav Halchenko
2003-11-24 16:52 ` Luck, Tony
2003-11-24 20:00 ` Luck, Tony [this message]
2003-11-24 21:21 ` David Mosberger
2003-11-24 21:44 ` Yaroslav Halchenko
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=marc-linux-ia64-106970446625466@msgid-missing \
--to=tony.luck@intel.com \
--cc=linux-ia64@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox