How to determine cache size