# cache-size
[](https://opensource.org/licenses/BSD-3-Clause) [](https://crates.io/crates/cache-size) [](https://docs.rs/cache-size) [](https://travis-ci.org/bemeurer/cache-size)
A library to quickly get the size and line size of your CPU caches.
Currently this crate only supports x86 CPUs, since it relies on the `CPUID` instruction, via
the [`raw_cpuid`][raw_cpuid] crate. It is a goal to support other architectures; PRs are
welcome!
---
Check the [Intel 64 and IA-32 Architectures Software Developers Manual](https://software.intel.com/sites/default/files/managed/39/c5/325462-sdm-vol-1-2abcd-3abcd.pdf)
for more information on the `CPUID` instruction.
[raw_cpuid]: https://github.com/gz/rust-cpuid