Re: [PATCH RFC] x86: avoid atomic operation in test_and_set_bit_lock if possible

From: Andi Kleen
Date: Thu Mar 24 2011 - 16:42:21 EST


Ingo Molnar <mingo@xxxxxxx> writes:
>
> One good way to see cache bounces is to run a misses/accesses ratio profile:
>
> perf top -e cache-misses -e cache-references --count-filter 10
>
> Note the two events: this runs a 'weighted' profile, you'll see (LLC)
> cache-misses of a function relative to cache-references it does, a
> misses/references ratio in essence.

If anyone does this on a Nehalem please only use 2.6.39-rc*+ which
includes the offcore patches. Anything before that will get you complete
bogus numbers.

BTW with Lin-Ming's memory latency profiling code you can do this much
more directly.

-Andi
--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/