Patent ID: 8775738

Claim:
A method for a computing environment, the method comprising: measuring, for a block size, one or more factors of a group including a time duration for reading a block having the block size from a cache, a time duration for writing the block to the cache, a time duration for both reading the block from the cache and writing to the block to the cache, an amount of use of processor resources for reading the block from the cache, an amount of use of processor resources for writing the block to the cache, and an amount of use of processor resources for both reading the block from the cache and writing the block to the cache; repeating the measuring using directly a storage instead of the cache; determining for the block size whether using the cache or directly the storage is more efficient on the basis of results obtained from the measuring; and using, in response to a data stream having the block size, the determined more efficient way for the block size.