the way to calculate the cache size.