×

Smart storage management based on dynamic logic capacity for the storage

  • US 10,628,060 B2
  • Filed: 04/22/2018
  • Issued: 04/21/2020
  • Est. Priority Date: 06/24/2016
  • Status: Active Grant
First Claim
Patent Images

1. A data processing method, applied to a solid state disk (SSD) and comprising:

  • receiving, by the SSD, a write request from a controller, wherein the write request carries to-be-written data;

    allocating, by the SSD, a blank logical block to the to-be-written data, wherein the blank logical block is a logical block with a free logical address, the logical block corresponding to a segment of logical capacity of the SSD;

    compressing, by the SSD, the to-be-written data to obtain compressed data;

    storing, by the SSD, the compressed data;

    sending, by the SSD, first feedback information to the controller, wherein the first feedback information indicates a remaining logical capacity of the SSD after the compressed data is stored, wherein the remaining logical capacity of the SSD corresponds to an actual amount of free data blocks on the SSD available for storing data;

    converting, by the SSD, the allocated blank logical block into a valid logical block, wherein the valid logical block is a logical block whose logical address is occupied by valid data;

    determining, by the SSD, according to a size of the to-be-written data and a size of the compressed data, a quantity of blank logical blocks that need to be added in the SSD,wherein a quantity M of blank logical blocks to be added in the SSD is equal to a rounded-down result of dividing D by L, wherein D indicates a difference between a length of the to-be-written data and a length of the compressed data, and L indicates a length of a logical block in the SSD;

    querying, by the SSD, a quantity of remaining blank logical blocks in the SSD, andsending, by the SSD, second feedback information to the controller, wherein the second feedback information indicates the quantity of remaining blank logical blocks and/or remaining capacity of the SSD, wherein the remaining capacity is based on the quantity of the remaining blank logical blocks.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×