Patent ID: 8589646

Claim:
A storage apparatus connected to a storage device, comprising: a storage module; a memory having a plurality of areas to store data to be copied to the storage device; a saving buffer to temporarily store the data stored in the plurality of areas; and a processor to execute: receiving a write request including the data to be stored in the storage apparatus from an external device, storing the data included in the write request to the storage module, storing the data included in the write request to one of the plurality of areas, copying the data stored in the one of the plurality of areas to the storage device when a number of the plurality of areas being copied is less than a threshold value, and saving the data stored in the one of the plurality of areas to the saving buffer when the number of the plurality of areas being copied is not less than the threshold value, writing the saved data to be copied from the memory to the storage device and having been stored in the saving buffer from the one of the plurality of areas by the saving, to any one of the plurality of areas of the memory when the number of the plurality of areas being copied is less than the threshold value, and determining the threshold value in accordance with an amount of the write request.