Modern Intel processors provide an interface for discovering information about the cache hierarchy of the processor through the CPUID instruction.