Patent Document

[0001]     This application claims priority under 35 USC §119 to U.S. provisional patent application No. 60/505,056, filed Sep. 24, 2003, the entire contents of which is incorporated herein by reference. 
     
    
     FIELD OF THE INVENTION  
       [0002]     The present invention relates to a networked storage system. In particular, this invention relates to the incorporation of multiple storage element command queues for greater efficiency, throughput, and performance in a networked storage system.  
       BACKGROUND OF THE INVENTION  
       [0003]     In conventional networked storage systems, large volumes of data are repeatedly recorded and retrieved. Due to the magnitude of data, large numbers of storage elements are employed to archive the information and make it readily available when requested. The sheer number of storage elements necessitates using precise and complex controllers to manage not only where specific data is stored but also the storage and retrieval process. The controllers act as a management layer to oversee storage operations and to offload the processing-intensive storage functions from the system hosts. This offloading of storage tasks allows the hosts to use more processing cycles for other primary functions. In this manner, hosts write data to and access data contained on storage elements through storage controllers.  
         [0004]     In conventional storage controller architectures, storage element access commands (typically, data reads and writes to a hard disk drive or like device) are sent to a command pending queue. These queued commands are sent to their respective storage elements in the order received. The storage controller may generate storage element access commands to service different tasks, including a misread cache, no cache write (e.g., FUA), copy, flush cache, etc. Some commands, for example, a cache misread command, require the host to wait for the results, while others, for example, a flush cache command, may be administered as a background task. The tasks may have several different levels of priority, and those priority levels, both relative and absolute, may change over time.  
         [0005]     In the most basic implementation of a command pending queue, the first commands into the queue are the first to be processed, and so on. The pending queue is a single list of various types of commands and may include time-critical tasks, i.e., in which the host is waiting for a response, or non-time-critical tasks. However, there is no prioritization to optimize storage element access command processing in such a way that latency due to critical storage element-dependent tasks is minimized.  
         [0006]     Simple prioritization schemes, such as placing all high-priority tasks like cache misreads at the head of a given storage element queue, are possible; however, this solution has an inherent problem. In a storage controller use modality in which there is a significant percentage of high-priority tasks, the lower priority tasks may not get adequate servicing. For example, although flush cache tasks may be non-critical to host data latency, they must be performed relatively frequently to ensure non-volatile storage of data and efficient cache management. What is needed is a way to manage pending commands that allows command prioritization and provides minimal service levels for all commands.  
         [0007]     An example method for prioritizing storage element commands is described in U.S. Pat. No. 6,609,149, entitled, “Method and Apparatus for Prioritizing Video Frame Retrieval in a Shared Disk Cluster”. The &#39;149 patent describes how a first frame deadline is calculated and attached to an I/O request for prioritizing and retrieving video data frames from a shared disk cluster. Disk adapters queue video data frame requests according to the deadline incorporated in the frame requests. Data frames are transmitted to a requesting end user utilizing the attached deadline time to schedule the frames according to a time priority. A “slack” time is computed and utilized to determine when the first frame and subsequent frames of the requested video data may be retrieved from disk and present in the video server&#39;s memory in order to avoid a visible delay in sending that frame to the end user. Slack time is saved to each disk read request command packet and is equal to deadline time less the current time at which the command packet is sent to the disk adapter. The process next issues the disk read request to the disk adapter. The process continues to queue read commands in the disk adapter. While in the disk adapter queue, slack time of each read command is regularly decremented so that the waiting time of the read command in queue is reflected. The disk controller requests another command and the disk adapter sends a read command having the least slack time remaining.  
         [0008]     Although the method described in the &#39;149 patent provides a method of guaranteeing a minimum I/O bandwidth for each disk drive, it is specific to disk read commands (for a video on demand system) and does not provide an operational method for prioritizing other storage element commands such as write, rebuild, or copy, for example. The disk adapter described in the &#39;149 patent prioritizes read commands based on latency requirements and sends read commands to the storage element in that order. The method described in the &#39;149 patent does not teach one skilled in the art how to prioritize other types of system commands, conventionally used in a networked storage element array, without compromising storage element bandwidth for any commands. There is therefore, a need to provide higher and lower prioritization levels for various storage element commands and ensure that all priority level commands are processed with minimal latency.  
       SUMMARY OF THE INVENTION  
       [0009]     Therefore, it is an object of the present invention to minimize latency to higher priority queues while maintaining minimum service throughput requirements on lower priority queues.  
         [0010]     It is another object of the present invention to provide a method of guaranteeing minimal service levels for all pending storage access commands in a storage controller.  
         [0011]     It is another object of the present invention to provide a method of managing pending storage access commands that allows command prioritization for any type of command in a storage controller.  
         [0012]     The present invention achieves the foregoing objectives by providing a system and method of managing pending storage access commands in a storage element command queue that provides for command prioritization. The method enables a guaranteed minimal service level for all pending commands in a queue. The minimal service level is defined according to system requirements and may be optimized and reconfigured as service level needs change. Furthermore, the present invention maintains the sequence of commands in their respective task type queues such that sequential commands are processed in the correct order. 
     
    
     BRIEF DESCRIPTION OF THE DRAWINGS  
       [0013]     These and other features and advantages of the present invention will become apparent when the following description is read in conjunction with the accompanying drawings, in which:  
         [0014]      FIG. 1  is a diagram of a multiple queue system for prioritization.  
         [0015]      FIG. 2  is a flow diagram of a storage element executor submit method. 
     
    
     DETAILED DESCRIPTION OF THE INVENTION  
       [0016]      FIG. 1  is a block diagram of a multiple queue system  100  that includes a task type requestor 1  105 , a task type requestor 2  110 , a task type requestor 3  115 , and a task type requestor n  120  (in general, “n” is used herein to indicate an indefinite plurality, so that the number “n” when referred to one component does not necessarily equal the number “n” of a different component). Task type requestor 1  105  is a functional block that is responsible for requesting one specific type of task that results in a storage element access command. Task type requestor 1  105  generates specific typed task requests in response to controller top-level storage element service requests. These requests may be either internal (e.g., cache management) or external (e.g., host request processing) storage element service requests, such as a flush cache command, a cache misread command, a no-cache write command, a copy command, a rebuild command, etc. The same is true for task type requestor 2  110 , task type requestor 3  115 , and task type requestor n  120 .  
         [0017]     Requests are received by a storage element mapping controller  125 , which in turn creates a storage element command  130 . Storage element command  130  includes a storage element number  135 , a command  140 , and a queue number  150 . Queue number  150  denotes a priority level for command  140 . An external authority determines the priority level. Storage element number  135  corresponds to the appropriate storage element for command  140 . Command  140  may be all or part of the original task from the host processor or an internally generated task.  
         [0018]     A top-level storage element command executor  155  is coupled to a storage element 1 pending queue 1  160 , a storage element 1 pending queue 2  165 , and a storage element 1 pending queue m  170  (“m” is used herein to indicate an indefinite plurality, so that the number “m” when referred to one component does not necessarily equal the number “m” of a different component). Top-level storage element command executor  155  routes storage element command  130  into its respective pending queue based on storage element number  135  and queue number  150 . For example, if storage element number  135  were equal to the value of ‘1’ and queue number  150  equaled the value ‘2’, then command  140  would be placed into storage element 1 pending queue 2  165  for processing. For the purposes of this example, storage element 1 pending queue 1  160  has a higher priority over storage element 1 pending queue 2  165 , and so forth for all pending queues for storage element 1 (not shown). However, any priority scheme may be implemented to provide system optimization.  
         [0019]     A storage element 1 command executor  175  is coupled to storage element 1 pending queue 1  160 , storage element 1 pending queue 2  165 , and storage element 1 pending queue m  170 . Storage element 1 command executor  175  is responsible for feeding storage element 1 a list of commands taken from the oldest commands residing in storage element 1 pending queue 1  160 , storage element 1 pending queue 2  165 , and storage element 1 pending queue m  170  according to an algorithm discussed in reference to  FIG. 2 . Storage element 1 command executor  175  provides a series of commands to storage element 1 until storage element 1 has no capacity to accept new commands. At that time, storage element 1 command executor  175  waits until storage element 1 has processed some of its commands and has the capacity to accept a new command.  
         [0020]     Likewise, a storage element y pending queue 1  180  (“y” is used herein to indicate an indefinite plurality, so that the number “y” when referred to one component does not necessarily equal the number “y” of a different component), a storage element y pending queue 2  185 , and a storage element y pending queue z  190  (“z” is used herein to indicate an indefinite plurality, so that the number “z” when referred to one component does not necessarily equal the number “z” of a different component) are coupled to a storage element y command executor  195  for controlling the flow of commands to be processed by storage element y (not shown). Therefore, for each storage element in multiple queue system  100 , there corresponds a plurality of prioritized pending queues coupled to a storage element command executor.  
         [0021]     In this manner, all commands, regardless of priority, are guaranteed a certain amount of bandwidth from their respective storage element. Furthermore, more commands from lower priority queues are processed as fewer tasks arrive in the higher priority queues and more storage element processing bandwidth becomes available.  
                                           TABLE 1                           Storage element configuration            Queue   Minimum   Maximum   No. of active       number   service level   service level   commands in queue                                   1   Min 1     Max 1     A 1         2   Min 2     Max 2     A 2         .   .   .   .       .   .   .   .       .   .   .   .       m   Min m     Max m     A m                                  Storage element total Active commands:             ∑     i   =   1     m     ⁢     A   i                            
 
         [0022]     Table 1 is a storage element priority configuration table. The storage element priority configuration table is developed by an external authority to establish queue priority. In this example, queue 1 has the highest priority while queue m has the lowest priority.  
         [0023]     Each queue has a minimum required service level and a maximum service level. These service levels are the number of times the queue is serviced over a given measured interval. For example, if min 1 =50%, then storage element 1 must service queue 1 commands at least 50% of the time; in other words, 50% of the commands that storage element 1 processes must be queue 1 commands. An external authority dictates the minimum service levels for each queue.  
         [0024]     Maximum service level is also set by an administrative authority and represents the maximum processing time or service level allotted to that specific queue. For example, if max 2  is 75%, then storage element 1 must not process queue 2 commands any more than 75% of the time; in other words, no more than 75% of the commands processed by storage element may be queue 2 commands.  
         [0025]     The number of active commands in a queue is the total number of commands held within a particular queue. The sum of each of the queues&#39; active commands is the total number of pending commands for a particular storage element.  
         [0026]      FIG. 2  is a flow diagram of a storage element executor method  200  using storage element 1 command executor  175  as an example. However, method  200  may be used for any storage element. That is,  FIG. 2  is a method of retrieving stored storage element commands from pending queues in which they have been stored based on priority and specific-type tasks.  
         [0027]     Step  210 : Is storage element able to accept new command? 
         [0028]     In this decision step, storage element 1 command executor  175  checks the processing command queue of storage element 1 (not shown) to determine whether there is capacity to assign a new command to the queue. If yes, method  200  proceeds to step  215 ; if no, method  200  returns to step  210 .  
         [0029]     Step  215 : Are pending queues empty? 
         [0030]     In this decision step, storage element 1 command executor  175  assesses whether all of the pending command queues are empty. If yes, method  200  returns to step  215 ; if no, method  200  proceeds to step  220 .  
         [0031]     Step  220 : Setting x=highest priority non-empty pending queue  
         [0032]     In this step, storage element 1 command executor  175  looks at each of the pending queues from highest priority to lowest priority to find the first non-empty queue, i.e., a queue containing pending commands. Storage element 1 command executor  175  assigns the number of that queue to x. Method  200  proceeds to step  225 .  
         [0033]     Step  225 : Is A x &lt;Min x ? 
         [0034]     In this decision step, storage element 1 command executor  175  accesses storage element 1&#39;s priority configuration table to determine whether the total number of active commands for queue x is less than the minimum service level requirement for queue x. If yes, method  200  proceeds to step  230 ; if no, method  200  proceeds to step  235 .  
         [0035]     Step  230 : Submitting next command from queue x  
         [0036]     In this step, storage element 1 command executor  175  places the oldest command from queue x onto the tail of the pending queue for the storage element. Method  200  returns to step  210 .  
         [0037]     Step  235 : Setting x=next priority non-empty queue  
         [0038]     In this step, storage element 1 command executor  175  checks the number of pending commands in the next priority queue to find the next queue from which to process a command. The next priority non-empty queue number is given to x. Method  200  proceeds to step  240 .  
         [0039]     Step  240 : Are remaining pending queues empty? 
         [0040]     In this decision step, storage element 1 command executor  175  determines whether there are no queues with any pending commands, i.e., whether all pending queues are empty. If yes, method  200  proceeds to step  245 ; if no, method  200  returns to step  225 .  
         [0041]     Step  245 : Setting x=highest priority non-empty pending queue  
         [0042]     In this step, storage element 1 command executor  175  looks at each of the pending queues from highest priority to lowest priority to find the first non-empty queue, i.e., a queue containing pending commands. Storage element 1 command executor  175  assigns the value of that queue to x. Method  200  proceeds to step  250 .  
         [0043]     Step  250 : Is A x &lt;Max x ? 
         [0044]     In this decision step, storage element 1 command executor  175  looks at storage element 1&#39;s priority configuration table to determine whether the current command count in queue x is less than the maximum service level assigned to queue x. If yes, method  200  returns to step  230 ; if no, method  200  proceeds to step  255 .  
         [0045]     Step  255 : Setting x=next priority non-empty queue  
         [0046]     In this step, storage element 1 command executor  175  checks the number of pending commands in the next priority queue to find the next queue from which to process a command. The next priority non-empty queue number is assigned to x. Method  200  proceeds to step  260 .  
         [0047]     Step  260 : Are remaining pending queues empty? 
         [0048]     In this step, storage element 1 command executor  175  determines whether all of the remaining priority queues are empty. If yes, method  200  returns to step  210 ; if no, method  200  returns to step  250 .  
         [0049]     While the invention has been described and illustrated with reference to specific exemplary embodiments, it should be understood that many modifications and substitutions can be made without departing from the spirit and scope of the invention. Accordingly, the invention is not to be considered as limited by the foregoing description but is only limited by the scope of the appended claims.

Technology Category: 3