Apparatus and method for executing background operations using rotational position sorting
AssigneeSeagate Technology LLC
InventorsAbhay T. Kataria, LingZhi Yang, Jonathan H. Ormsby
Life of this patent
Estimating the term…
Abstract
A background operation is internally triggered by firmware of a disk drive. During a training phase defined by a. first time period, access latency of host commands is monitored during rotational position sorting command selection. During a sorting phase after the training phase, a sorting threshold is defined based on the access latencies measured during the training phase. The background command is selected for execution in the sorting phase if the seek and rotational latency is less than the sorting threshold.
Claims20
A method, comprising:
- determining a background command to be performed on a disk drive, the background command internally triggered by firmware of the disk drive;
- during a training phase defined by a first time period, determining a sorting threshold of the background command based on at least seek and rotational latencies of host commands during rotational position sorting command selection, the sorting threshold comprisin an allowable latency of the host commands, a value of the sorting threshold being selected to minimize an expected impact to execution of the host commands caused by inserting the background commands into a command queue that sorts both the background command and the host commands;
- adding the background command to the command queue using the sorting threshold;
- and
- in a sorting phase defined by a second time period, selecting the background command for execution by the disk drive if a current seek and rotational latency is less than the sorting threshold.
A method comprising:
- determining a background command to be performed on a disk drive, the background command internally triggered by firmware of the disk drive;
- during a training phase defined by a first time period, monitoring access latency of host commands during rotational position sorting command selection;
- defining a sorting threshold based on the access latencies measured during the training phase, the sorting threshold comprising an allowable latency of the host commands, a value of the sorting threshold being selected to minimize an expected impact to execution of the host commands caused by inserting the background commands into a command queue that sorts both the background command and the host commands;
- and
- during a sorting phase after the training phase selecting the background command for execution if the seek and rotational latency is less than the sorting threshold.
A disk drive, comprising:
- a host interface configured to receive host commands that are processed by a command queue of the disk drive;
- a controller coupled to the host interface and configured to:
- determine a background command to be performed on the disk drive, the background command internally triggered by firmware of the disk drive;
- during a training phase defined by a first time period, determine a sorting threshold of the background command based on at least seek and rotational latencies of the host commands during command selection, the sorting threshold comprising an allowable latency of the host commands, a value of the sorting threshold being selected to minimize an expected impact to execution of the host commands caused by inserting the background commands into a command queue that sorts both the background command and the host commands;
- adding the background command to the command queue using the sorting threshold;
- and
- in a sorting phase defined by a second time period, selecting the background command for execution by the disk drive if a. current seek and rotational latency is less than the sorting threshold.
Dependencies are inferred from the claim text.