RE: weird speed problem

From: Luck, Tony <>
Date: 2003-11-25 07:00:09
> 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

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

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Mon Nov 24 15:07:46 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:20 EST