Top "Cpu-cache" questions

A CPU-cache is a hardware structure used by the CPU to reduce the average access memory time.

simplest tool to measure C program cache hit/miss and cpu time in linux?

I'm writing a small program in C, and I want to measure it's performance. I want to see how much …

performance cpu-cache measurement context-switch memcache-stats
Concept of "block size" in a cache

I am just beginning to learn the concept of Direct mapped and Set Associative Caches. I have some very elementary …

operating-system cpu-cache
How can I do a CPU cache flush in x86 Windows?

I am interested in forcing a CPU cache flush in Windows (for benchmarking reasons, I want to emulate starting with …

c windows x86 cpu cpu-cache
C++ cache aware programming

is there a way in C++ to determine the CPU's cache size? i have an algorithm that processes a lot …

c++ optimization caching cpu-cache
What is meant by data cache and instruction cache?

From here: Instructions and data have different access patterns, and access different regions of memory. Thus, having the same cache …

assembly arm cpu-architecture cpu-cache
Set Associative Cache: Calculate size of tag?

I'm struggling to solve this question, I've looked around but all of the similar questions are more advanced than mine, …

caching cpu-cache
Where is the L1 memory cache of Intel x86 processors documented?

I am trying to profile and optimize algorithms and I would like to understand the specific impact of the caches …

performance intel cpu-architecture cpu-cache
why are separate icache and dcache needed

Can someone please explain what do we gain by having a separate instruction cache and data cache. Any pointers to …

caching x86 cpu-architecture cpu-cache
Why does the speed of memcpy() drop dramatically every 4KB?

I tested the speed of memcpy() noticing the speed drops dramatically at i*4KB. The result is as follow: the …

performance memory malloc memcpy cpu-cache