CPC G06F 12/0253 (2013.01) [G06F 16/162 (2019.01); G06F 21/554 (2013.01); G06F 2212/1032 (2013.01); G06F 2212/70 (2013.01)] | 18 Claims |
10. A method of preventing data destruction of a large amount of data in a data storage system, comprising:
receiving a command to delete a large amount of data resulting in marking of data blocks to be deleted;
scheduling a garbage collection (GC) operation to delete marked data blocks from storage media as part of a sequence of GC operations;
measuring an amount of data deleted in each GC operation of the past sequence of GC operations;
determining a maximum amount of data deleted in a GC interval from each measured amount of data;
defining a minimum percentage deviation from the maximum amount as the threshold deletion amount;
determining if a number of marked data blocks for a current GC operation exceeds a defined threshold; and
sending an alert message to a user and skipping at least the current GC operation if the number of marked data blocks exceeds the defined threshold, otherwise executing the current GC operation.
|