Patent ID: 11922062
Assignee: SK HYNIX INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 15:
16. An operating method of a controller, the operating method comprising:
responding to a first write command while buffering first write data into a buffer and controlling a memory device to perform, as well as a background operation, a write operation with second write data buffered in the buffer; and
delaying, when a background operation workload is greater than a write operation workload and an available capacity of the buffer is smaller than a threshold capacity, the responding by a delay amount while controlling the memory device to perform at least the background operation during the delay amount,
wherein the available capacity is calculated by equation A:

(Free buffer size)=(host write buffer size)−(alllocated buffer size)+(estimated required buffer size)   [Equation A]

where “Free buffer size” is the available capacity, “host write buffer size” is a total capacity for write data within the buffer, “allocated buffer size” is an allocated capacity of the buffer and “estimated-required buffer size” is an estimated-required capacity of the buffer calculated by equation B:

(Estimated required buffer size)=(# of infetched CMD)×(fetched write CMD ratio)×(data size of fetched CMD)   [Equation B]

where “# of unfetched CMD” is a number of commands to be queued, “fetched write CMD ratio” is a ratio of queued write commands to a predetermined number of queued commands, and “data size of fetched write CMD” is a size of write data of one of the queued write commands, and wherein the delay amount is calculated by equation C:, (
      Delay
      )
     
     =
     
      
       
        
         (
         
          threshold
          ⁢
             
          buffer
          ⁢
             
          size
         
         )
        
        -
        
         (
         
          free
          ⁢
             
          buffer
          ⁢
             
          size
         
         )
        
       
       
        (
        
         threshold
         ⁢
            
         buffer
         ⁢
            
         size
        
        )
       
      
      ×
      
       (
       
        estimated
        ⁢
           
        required
        ⁢
           
        buffer
        ⁢
           
        size
       
       )
      
      ×
      C
     
    
   
   
    
     [
     
      Equation
      ⁢
         
      C
     
     ]
    
   
  
 

where “delay” is the delay amount, “threshold buffer size” is the threshold capacity, and “C” is a predetermined constant.