The present invention relates to the field of conditioning reducing power consumption in data storage devices, and more particularly to an improved method and system for re-ordering a command queue in preferential writing and reading data based on the power consumption characteristics of a particular command.
Hard disk drives (HDD) are used in almost all computer system operations. In fact, most computing systems are not operational without some type of hard disk drive to store the most basic computing information such as the boot operation, the operating system, the applications, and the like. In general, the hard disk drive is a device which may or may not be removable, but without which the computing system will generally not operate.
The basic hard disk drive model includes a storage disk or hard disk that spins at a designed rotational speed. An actuator arm with a suspended slider is utilized to reach out over the disk. The slider is coupled with a suspension that supports both the body of the slider and a head assembly that has a magnetic read/write transducer or head or heads for reading/writing information to or from a location on the disk. The complete head assembly, e.g., the suspension, slider, and head, is called a head gimbal assembly (HGA).
A typical HDD uses the actuator assembly to move magnetic read/write heads to the desired location on the rotating disk so as to write information to or read from the location. Within most HDDs, the magnetic read/write head is mounted on a slider. The slider generally serves to mechanically support the head and any electrical connections between the head and the rest of the disk drive. The slider is aerodynamically shaped to establish an air lubrication film in order to maintain a uniform distance from the surface of the rotating disk, thereby preventing the head from undesirably contacting the disk.
The head and arm assembly is linearly or pivotally moved utilizing a magnet/coil structure that is often called a voice coil motor (VCM). The stator of a VCM is mounted to a base plate or casting on which the spindle is also mounted. The base casting with its spindle, actuator VCM, and internal filtration system is then enclosed with a cover and seal assembly to ensure that no contaminants can enter and adversely affect the reliability of the slider flying over the disk. When current is fed to the motor, the VCM develops force or torque that is substantially proportional to the applied current. The arm acceleration is substantially proportional to the magnitude of the current. As the read/write head approaches a desired track, a reverse polarity signal is applied to the actuator, causing the signal to act as a brake, and ideally causing the read/write head to stop and settle directly over the desired track.
The reading or writing of data is performed in accordance with a write command and a read command transferred from a host system. The hard disk drive re-orders a command queue as one of the performance improving techniques. That is, the command queue of write commands and read commands transferred sequentially from the host system is re-ordered so that the latency required to execute the writing or reading command may be minimized.
Various methods for re-ordering the command queue in the hard disk drive have been already offered. They are roughly classified into a method for improving the I/O throughput (amount of work performed over a period of time) and a method for preventing the time-out of command caused by re-ordering the command. And the method for improving the I/O throughput is further classified into a case where the seek time is longer than the rotational latency and a case where the seek time is almost equivalent to the rotational latency.
All the above re-ordering techniques are implemented in one way or the other to improve performance and to save power. The premium for saving power consumption in hard disk drive have transcended across the various platforms (e.g., from mobile computers to server computer products). Conventional methods for power saving or reduction include JIT (Just In Time seek technology). This method delays the seek time by an amount of the rotational latency to make power save and enhance performance. Other conventional methods involve directly switching the seek method (including servo parameters) between a performance mode and a silent mode.
These methods are very effective but require to have parameters for the servo system duplicated, and therefore have a significant drawback of taking a great burden on the development because it must be checked that the seek is normally made for all combinations of the seek distance and the latency.
In accordance with certain aspects of the present invention, the present invention provides a system and method for providing a command queue selection scheme by selecting commands by giving preference to commands based on the power consumption characteristics the command. In one embodiment the selection scheme involves calculating the value of the cost of energy saving associated with the access of a command by an evaluation function Costi=EAT+C×Seek_Distance. C is a dynamically adjustable power control function that determines how much power decreases with the selection of a particular command. In one embodiment, commands with low power consumption will be accessed in preference to commands with shorter seek distance.
In one embodiment, the adjustable power consumption variable is multiplied by a function of other power consumption variables of the commands in the command queue. In one embodiment, the power consumption function is determined using the latency in seeking a particular command.
Reference will now be made in detail to the alternative embodiment(s) of the present invention. While the invention will be described in conjunction with the alternative embodiment(s), it will be understood that they are not intended to limit the invention to these embodiments. On the contrary, the invention is intended to cover alternatives, modifications and equivalents, which may be included within the spirit and scope of the invention as defined by the appended claims.
Furthermore, in the following detailed description of the present invention, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be recognized by one of ordinary skill in the art that the present invention may be practiced without these specific details. In other instances, well known methods, procedures, components, and circuits have not been described in detail as not to unnecessarily obscure aspects of the present invention.
The discussion will begin with an overview of a hard disk drive and components connected therewith. The discussion will then focus on embodiments of a method and system for decreasing power consumption in command selection of commands from a command queue.
Overview
In general, the HDD comb (also referred to as an E-block) serves as a platform on which the suspensions (compliant members containing sliders with recording heads) are mounted. The recording heads fly at a constant height (on the order of nanometers) above the disk surface tracking pre-written servo information. An HDD carriage assembly (as shown in
With reference now to
A spindle motor assembly having a central drive hub 140 operates as this axis and rotates the disk 138 or disks of the disk pack in the circumferential direction relative to housing 113. An actuator 120 includes a plurality of parallel actuator arms 125 in the form of a comb that is movably or pivotally mounted to base/housing 113 about a pivot assembly 145. A magnet assembly 150 is also mounted to base 113 for selectively moving the comb of arms relative to the disk pack (as represented by disk 138).
In the embodiment shown in
Referring now to
The magnetic disk 202 is rotated around a spindle axis of the spindle motor 203, when the hard disk drive 200 is operated, and stopped when the hard disk drive 200 is inactive. A plurality of positional information (servo information) storage areas are formed radially on the surface of the magnetic disk 202 along a radial direction of the disk, and a data storage area is formed in the other region. The location of the magnetic disk 204 can be known by reading the servo information. The servo information is composed of track identification data and burst patterns.
The track identification information represents a track address of each data track. The magnetic head 204 reads this track information to determine a current track location of the magnetic head 204. A burst pattern consists of a plurality of rows of signal storing regions each having a different phase, which are arranged at a regular interval along a radial direction of the magnetic disk 202. The deviation amount of the magnetic head 204 off the data track can be determined on the basis of a signal output from the burst pattern.
The read/write circuit 211 performs the data reading/writing process. Namely, the write data transferred via an HDC (hard disk controller) 213 from a host computer 220 is converted into a write signal (electric current) and supplied to the magnetic head 204. The magnetic head 204 writes the data into the magnetic disk 202, on the basis of this write current. On the other hand, a read signal read from the magnetic disk 202 is converted into the digital data and output via the HDC 213 to the host computer 220.
A command queue 216 holds the write commands stored in buffer 215, or the order of executing the write command. This order of executing is determined by MPU 212 and the HDC 213. The write data or read data stored in the buffer 215 is written or read sequentially into or from the magnetic disk 202 in accordance with the executing order held in the command queue.
In one embodiment, the re-ordering method of the present invention provides a mechanism to re-order the command queue 216 with a preference for saving power consumption in the processing of data written to or read from the magnetic disk 202. The power saving mechanism of the present invention provides a method of preferentially writing or reading the commands with low power consumption during each queue sequence.
The power consumption reduction command selection method of one embodiment of the present invention provides command selection by choosing a command that has minimum power cost. In one embodiment the power cost equation is defined by a cost equation as follows:
COSTi=EATi (1)
where EAT (expected access time) is
EAT=Expected seek time+expected rotation time+probability of miss×1Rev.
The cost of each command in the command queue is calculated and the command with the lowest energy cost is always given preference.
In one embodiment of the present invention, each command in the command queue has an associating power consumption variable. By including a term for power, preference is given to commands that use less power. Thus, a smaller power command may be chosen over a command that takes less time to process. In one embodiment, the basic power saving equation is defined by the following power selection equation:
Cost =EAT +C ×R (2)
Where EAT is the expected access time, C is an adjustable constant that control how much power decreases in each command and R is an estimate of the energy required for a particular seek.
In one embodiment, C is dynamically adjustable based on the command queue depth. In one embodiment when C=0, the cost is not affected by power. As C increases, more emphasis is given to power over EAT. And when C is very large power completely controls command selection. In one embodiment, C is a function of the command queue depth.
Alternatively, the power selection equation could be calculated utilizing the dynamic adjustable power factor (C) and a function of other characteristics of the commands being processed in the command queue. In this alternative, the cost equation is represented by the following:
Cost=EAT+C×F1 (3)
Where F1 is a function of the seek distance, the latency, the processing time of a particular command, etc.
In the embodiment illustrated in
In the command selection illustrated in
As C increases, the F1 function is the first to show a decrease in power. And at a very large C, two different power numbers are realized; one when JIT is taken into account; and the other when JIT is not a factor.
In one embodiment, when C is very large and JIT is taken into account, latency does not affect the cost equation and long latency commands are considered.
Thus, embodiments of the present invention provide a method and apparatus for command selection from a command queue by giving preference to commands with low power cost.
Example embodiments of the present technology are thus described. Although the subject matter has been described in a language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Number | Name | Date | Kind |
---|---|---|---|
5787296 | Grimsrud et al. | Jul 1998 | A |
6038096 | Zhang et al. | Mar 2000 | A |
6310743 | Haines et al. | Oct 2001 | B1 |
6571298 | Megiddo | May 2003 | B1 |
6657811 | Codilian | Dec 2003 | B1 |
6724564 | Codilian et al. | Apr 2004 | B1 |
6851011 | Lin | Feb 2005 | B2 |
7010653 | Uchida et al. | Mar 2006 | B2 |
7199966 | Tu et al. | Apr 2007 | B1 |
7925799 | Komori | Apr 2011 | B2 |
7948264 | Wang et al. | May 2011 | B2 |
20030084261 | Byrd et al. | May 2003 | A1 |
20030174433 | Espeseth et al. | Sep 2003 | A1 |
20030225969 | Uchida et al. | Dec 2003 | A1 |
20040019745 | Espeseth et al. | Jan 2004 | A1 |
20040030827 | Hall | Feb 2004 | A1 |
20040268169 | Bashford et al. | Dec 2004 | A1 |
20080005398 | Huffman | Jan 2008 | A1 |
20100011137 | McGowan | Jan 2010 | A1 |
20110010573 | Igari | Jan 2011 | A1 |
Number | Date | Country |
---|---|---|
2003-308176 | Oct 2003 | JP |
Entry |
---|
Zedlewski, et al., “Modeling Hard-Disk Power Consumption”, 2nd USENIX Conference on File and Storage Technologies pp. 217-230, Date 2003, http://www.cs.princeton.edu/˜rywang/papers/fast03/dempsey.pdf, (2003),217-230. |
Hong, et al., “Power Optimization in Disk-Based Real Time Application Specific System” Computer Science Department, University of California, Los Angeles, CAftp://ftp.cs.ucl.edu/tech-report/1996-reports/960025.ps.Z. (1996),25 pages. |
Number | Date | Country | |
---|---|---|---|
20100128381 A1 | May 2010 | US |