Storage controller, storage device, and write control method
AssigneeKabushiki Kaisha Toshiba
InventorsToshiyuki Kito, Takeshi Kawabata
Life of this patent
Estimating the term…
Abstract
According to an embodiment, a storage controller includes a collector and a controller. The collector is configured to collect data to be written in nonvolatile storage. The controller is configured to perform controlling such that a first time length between collecting data and writing the collected data in the nonvolatile storage after an emergency prediction notice is received is shorter than a second time length between collecting data and writing the collected data in the nonvolatile storage before the emergency prediction notice is received.
Claims10
A storage controller comprising:
- a hardware processor connected to a nonvolatile memory and configured to:
- collect data to be written in the nonvolatile memory;
- write the collected data in the nonvolatile memory through a first scheme or a second scheme, the first scheme being a scheme to hold the collected data in a volatile memory and write the collected data in the nonvolatile memory when an amount of data held in the volatile memory reaches a predetermined amount, the second scheme being a scheme to write the collected data in the nonvolatile memory regardless of the amount of data held in the volatile memory;
- change over a write scheme for the collected data from the first scheme to the second scheme upon receipt of the emergency prediction notice, and change the second scheme to the first scheme after a predetermined period of time has elapsed since the emergency prediction notice is received;
- transmit the data written in the nonvolatile memory to outside through a communication interface;
- perform controlling such that a first time length between collecting data and writing the collected data in the nonvolatile memory after an emergency prediction notice is received is shorter than a second time length between collecting data and writing the collected data in the nonvolatile memory before the emergency prediction notice is received;
- inhibit overwriting of the data that has been written in the nonvolatile memory through the second scheme;
- when free space in the nonvolatile memory is equal to or smaller than a first threshold, execute a first deletion process of deleting, from the nonvolatile memory, the written data that has been transmitted to the outside and that is not inhibited from being overwritten;
- and
- after the first deletion process is executed and when free space in the nonvolatile memory becomes equal to or smaller than a second threshold that is smaller than the first threshold, execute a second deletion process of deleting, from the nonvolatile memory, all the written data that have been transmitted to the outside, the all the written data including data that is inhibited from being overwritten.
A write control method implemented by a computer, the method comprising:
- collecting data to be written ire a nonvolatile memory;
- and
- writing the collected data in the nonvolatile memory through a first scheme or a second scheme, the first scheme being a scheme to hold the collected data in a volatile memory and write the collected data in the nonvolatile memory when an amount of data held in the volatile memory reaches a predetermined amount, the second scheme being a scheme to write the collected data in the nonvolatile memory regardless of the amount of data held in the volatile memory;
- changing over a write scheme for the collected data from the first scheme to the second scheme upon receipt of the emergency prediction notice, and changing the second scheme to the first scheme after a predetermined period of time has elapsed since the emergency prediction notice is received;
- transmitting the data written in the nonvolatile memory to outside;
- performing control such that a first time length between collecting data and writing the collected data in the nonvolatile memory after an emergency prediction notice is received is shorter than a second time length between collecting data and writing the collected data in the nonvolatile memory before the emergency prediction notice is received;
- inhibiting overwriting of the data that has been written in the nonvolatile memory through the second scheme;
- when free space in the nonvolatile memory is equal to or smaller than a first threshold, executing a first deletion process of deleting, from the nonvolatile memory, the written data that has been transmitted to the outside and that is not inhibited from being overwritten;
- and
- after the first deletion process is executed and when free space in the nonvolatile memory becomes equal to or smaller than a second threshold that is smaller than the first threshold, executing a second deletion process of deleting, from the nonvolatile memory, all the written data that have been transmitted to the outside, the all the written data including data that is inhibited from being overwritten.
Dependencies are inferred from the claim text.