Patent ID: 8918617

Claim:
A computer system for defragmenting a storage class memory, the system comprising: a real storage manager configured to control a real memory; an auxiliary storage manager in communication with the real storage manager, the auxiliary storage manager configured to control the storage class memory, the storage class memory including a plurality of extents, the system configured to perform a method comprising: determining whether a utilization rate of the storage class memory is greater than a threshold value; based on determining that the utilization rate of the storage class memory is greater than the threshold value, determining whether a potentially wasted storage space is greater than a combined storage capacity of the unclaimed extents of the storage class memory; based on determining that the potentially wasted storage space is greater than the combined storage capacity of the unclaimed extents of the storage class memory, determining whether a defragmentation was recently performed; and based on determining that the defragmentation was not recently performed, defragmenting the storage class memory.