title: Difference between cache way and cache set
body: <p>I am trying to learn some stuff about caches.  Lets say I have a 4 way 32KB cache and 1GB of RAM. Each cache line is 32 bytes.  So, I understand that the RAM will be split up into 256 4096KB pages, each one mapped to a cache set, which contains 4 cache lines.</p>
  
  <p>How many cache ways do I have?  I am not even sure what a cache way is.  Can someone explain that?  I have done some searching, the best example was</p>
  
  <p><a href="http://download.intel.com/design/intarch/papers/cache6.pdf" rel="noreferrer">http://download.intel.com/design/intarch/papers/cache6.pdf</a></p>
  
  <p>But I am still confused.</p>
  
  <p>Thanks.</p>