Data storage devices (DSD), such as conventional hard disk drives (HDD), hybrid hard disk drives (SSHD), or solid state drives (SSD), are typically part of a system including a host which communicates with the SSD to store data on or retrieve data from the DSD. Although conventional DSDs usually have internal power management (PM) and performance settings to more efficiently use power, DSDs generally do not have information about a state of the system outside of the DSD. In addition, users of the system cannot easily adjust the power and performance settings of the DSD.
Because of the importance of preserving data, the use of drivers in managing the storage stack has traditionally been considered risky. Drivers may be too unpredictable for the absolute reliability requirements for storage devices. In addition, the bandwidth and computing power needed for a reliable driver has previously been unavailable or unfeasible.
The features and advantages of the embodiments of the present disclosure will become more apparent from the detailed description set forth below when taken in conjunction with the drawings. The drawings and the associated descriptions are provided to illustrate embodiments of the disclosure and not to limit the scope of what is claimed.
In the following detailed description, numerous specific details are set forth to provide a full understanding of the present disclosure. It will be apparent, however, to one of ordinary skill in the art that the various implementations disclosed may be practiced without some of these specific details. In other instances, well-known structures and techniques have not been shown in detail to avoid unnecessarily obscuring the various implementations.
The host 101 includes a central processing unit (CPU) 108 which can be implemented using one or more processors for executing instructions including a microcontroller, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), hard-wired logic, analog circuitry and/or a combination thereof. The CPU 108 interfaces with a host bus 112. Also interfacing with host bus 112 are a random access memory (RAM) 110, an input interface 114 for the input device 102, a display interface 116 for the display device 103, a read only memory (ROM) 118, a network interface 120 and the DSD 106.
The RAM 110 is a volatile memory of the host 101 that interfaces with the host bus 112 so as to provide information stored in the RAM 110 to the CPU 108 during execution of instructions in software programs such as an operating system (OS) 12 and device drivers 14 stored on the DSD 106. More specifically, the CPU 108 first loads computer-executable instructions from the DSD 106 or another data storage device into a region of the RAM 110. The CPU 108 can then execute the stored process instructions from the RAM 110. Data such as data to be stored in the DSD 106 or data retrieved from the DSD 106 can also be stored in the RAM 110 so that the data can be accessed by the CPU 108 during execution of software programs to the extent that such software programs have a need to access and/or modify the data.
As shown in
Device power management generally requires cooperation between the host and the device (e.g., DSD). For instance, Serial ATA (SATA) Link Power Management can be divided into two types: Host-Initiated Power Management (HIPM), and Device-Initiated Power Management (DIPM).
The computer system 200 includes the host 101 interacting with the DSD 106. The host 101 includes a DSD driver 216, which may be a copy of the DSD driver 16 stored in the RAM 110 for execution by the CPU 108 of the host 101. The DSD 106 includes a register 60 and a System-On-Chip (SOC) 260 for internal use by the DSD 106. The SOC 260 includes a processor that may run the firmware 50 and further use the register 60 for DIPM operations. The register 60 may be a memory, such as a flash memory, DRAM, or storage medium of the DSD 106, configured to store power and performance settings. For example, the register 60 may store power and performance settings for the DSD 106 as a table or may use a pointer to a table of values such as timer values for DSD operations. Values for the time to spin down or spin up a disk, or how long other specific commands take to complete varies for different DSDs, and therefore, these values are usually managed by the DSD itself, rather than the host.
The host 101 sends HIPM command 220 as a power management command to the DSD 106 based on current power and performance settings of the computer system 200. For example, the host 101 may detect idle activity lasting above an idle period threshold and accordingly send HIPM command 220 to put DSD 106 into a low-power state, such as standby or to spin down the disk.
When processing received power management commands, the register 60 can be used to determine appropriate timeout periods for DIPM operations, including transitioning into a low-power state.
In a conventional PM system, the DSD is not aware of the state of the computer system. For example, if the computer system was unplugged (i.e. on battery power), the DSD would not accordingly adjust its power or performance settings. In the computer system 200, the DSD driver 216 allows the host 101 to better communicate the state of the computer system 200, such as a power status of the computer system 200, to the DSD 106.
The DSD driver 216 may have a user interface (UI) which allows a user of the computer system 200 to set or adjust power and performance settings for the DSD 106. The UI may include a slider bar that the user can slide between maximizing performance and maximizing power savings. In addition, an advanced menu may allow the user to select different power and performance operating states.
Some example states include: a high performance state, which provides for the best performance and the least amount of power savings features; a balanced state, where the DSD still performs but has more aggressive power savings implemented; a longest battery life state, where the performance is dialed down to allow for the most battery life possible; an adaptive power/performance mode, where the driver steps the performance down based on the condition of the system, such as maximum performance when a battery is fully charged but reduced performance to save power as the battery drains; and a scenario based power and performance mode, where the user can specify which types of activities or programs should have the best performance, such as playing games or streaming movies where a spin-down for power savings hurts the user experience.
Certain applications, such as listening to music, do not require a disk drive to be continuously spinning as the data can be buffered. Other applications, such as playing games or streaming movies, are more data intensive. Spinning the disk down can cause glitches or other undesired behavior and can hurt performance to the point that the user experience is made worse. The DSD driver 216 can allow the user to specify different power management schemes for different applications or types of applications as needed. The DSD driver 216 can further have default profiles which can be suggested to the user based on the state of the system.
The host 101 can issue appropriate HIPM commands 220 as needed. The DSD driver 216 can intercept the HIPM commands 220 and evaluate them against the user's requests. For example, the computer system 200 may be unplugged, prompting a power-saving state by the host 101. The user may be watching a movie and may have previously set a high performance mode for watching movies, in order to override any power-saving features called by the host 101. The DSD driver 216 can either suppress or cancel the HIPM command 220, or send an altered or alternative HIPM command 220 to the DSD 106. Alternatively, rather than intercepting the HIPM commands 220, the DSD driver 216 can essentially take over all HIPM operations. To send additional information or commands not available through the HIPM command 220, the DSD driver 216 can also send Vendor Specific Codes (VSC) 230 as power management commands to the DSD 106.
On the device side, the SOC 260 may include a processor capable of executing the firmware 50 and accessing the register 60. The firmware 50 may implement DIPM operations. The register 60 may hold a table or a pointer to a table of timer settings and/or values. In one implementation, the register 60 can associate various levels of idle states with periods of inactivity for DIPM. For example, in accordance with settings in the register 60, DSD 106 may enter an initial idle state 1 after 30 ms of no activity. After another 200 ms of no activity, the DSD 106 may enter an idle 2 state. After another 300 ms of no activity, the DSD 106 may enter an idle 3 state. After another 20 ms, the DSD may spin down its drive.
The VSC 230 may alert the DSD 106 of a change in the computer system 200. The firmware 50 is configured to receive the VSC 230 and respond accordingly. If the computer system 200 becomes unplugged and switches to battery power, the VSC 230 may inform the DSD 106 of this change in the power status of the computer system 200. The VSC 230 may send an alert of the change in state of the computer system 200 or may instead be an appropriate command in response to the change in the computer system 200.
The firmware 50 receives the VSC 230 and can configure the power and performance settings for the DSD 106 (such as timer settings and/or values) in the register 60. The values could be increased or decreased as needed and the table rewritten. Alternatively, a different table or a different portion of the table can be used. If the register 60 holds a pointer to a table, the pointer can be updated. Thus, the VSC 230 can be used to override or modify the default DIPM.
The DSD 106 can override HIPM as well as DIPM operations. Altering the DIPM is advantageous as it is easier to manage operations such as spin up or down. PM tasks are offloaded from the CPU 108 to the SOC 260. However, this approach provides only general overall performance management because the DSD 106 lacks visibility of the state of the computer system 200, such as if certain applications are running.
Altering the HIPM provides more adaptability as it is running on the host 101 and able to monitor the state of the system. HIPM has access to which applications are running, and whether the system is plugged in or running off of a battery.
The DSD driver 216 may further have adaptive settings. The DSD driver 216 may monitor the process tree, using a listener, for changes and accordingly adjust profiles or send HIPM commands 220 or VSCs 230. The DSD driver 216 may also utilize hysteresis and learning to look at a program's historical usages and determine which performance features to adjust.
The VSC 230 can also change performance settings by overriding, modifying, or otherwise adjusting a rotational position optimization (RPO) algorithm executed by the DSD 106. RPO algorithms improve performance of disk drives by reducing the rotational latency of a disk of the DSD 106 and/or a latency in moving a head of the DSD 106 (i.e., the seek and settle latency of the head). When a DSD receives commands, the commands are stored in a command queue. The RPO algorithm selects the command with the least access time as the next command to execute. The RPO algorithm may determine access times by calculating seek, settle, and rotational latencies. Additional details relating to RPO may be found in U.S. Pat. No. 6,968,422 B1, issued on Nov. 22, 2005, the disclosure of which is hereby incorporated by reference.
In
At 330, the settings of the DSD 106 are evaluated to see if they need to be changed, based on the power and performance settings previously set at 310 and the state of the computer system 200. This may be performed by the DSD driver 216 or another component such as the SOC 260. For example, if the computer system 200 is unplugged, then at 340 a VSC 230 may be sent to the DSD 106 in order to update the register 60 with power-saving settings.
At 350, the DSD driver 216 intercepts and evaluates HIPM commands generated by the host 101. The DSD driver 216 determines whether to send the HIPM commands as is, or to send out alternate commands, or to send no commands. At 360, the DSD driver 216 issues any new power management commands in accordance with the evaluation of HIPM commands at 350.
At 430, the settings of the DSD 106 are evaluated to see if they needed to be changed, based on the power and performance settings previously set at 410 and the state of the computer system 200. This may be performed by the DSD driver 216 or another component such as the SOC 260. For example, if the computer system 200 is running an application having a reduced performance bias, then at 440 a VSC 230 may be sent to the DSD 106 in order to modify or otherwise alter the RPO 240.
At 450, RPO parameters generated by the SOC 260 are conformed to the settings set at either at 410 or, if a change was needed, at 440. For example, the DSD 106 may adjust RPO parameters such as queue depth, weighting factor, delay, etc. At 460, the DSD 106 executes commands in accordance with the RPO parameters at 450.
At 530, the settings of the DSD 106 are evaluated to see if they need to be changed, based on the power and performance settings previously set at 510 and the state of the computer system 200. This may be performed by the DSD driver 216 or another component such as the SOC 260. For example, if the computer system 200 is unplugged, then at 540 a VSC 230 may be sent to the DSD 106 in order to update the register 60 with power-saving settings. In addition, if the computer system 200 is running an application having a reduced performance bias, then at 540 a VSC 230 may be sent to the DSD 106 in order to modify or otherwise alter the RPO 240.
At 550, the DSD driver 216 intercepts and evaluates HIPM commands generated by the host 101. The DSD driver 216 determines whether to send the HIPM commands as is, or to send out alternate commands, or to send no commands. In addition, RPO parameters generated by the SOC 260 are conformed to the settings set at either 510 or, if a change was needed, at 540. For example, the DSD 106 may adjust RPO parameters such as queue depth, weighting factor, delay, etc. At 560, the DSD driver 216 issues any new power management commands in accordance with the evaluation of HIPM commands at 550. The DSD 106 also executes commands in accordance with the RPO parameters at 550.
Although the power and performance settings may be individualized by application, the power and performance settings may also be individualized by partitions in the DSD 106. The host 101 can create logical partitions in the DSD 106. The host 101 may send the starting and ending LBAs of each partition to the DSD 106 to identify the partitions. The DSD 106 can then infer from the LBA of each input/output (I/O) command which partition the command refers to, and executes the I/O command based on the power and/or performance settings for that partition.
In one implementation, the DSD 106 may be part of a cloud storage sold by a cloud storage provider. Multiple tenants or clients may rent or purchase cloud space on the DSD 106. Each tenant's partition or portion may be designated by, for example, logical block addresses (LBA). Depending on the DSD 106, LBA partitions may perform differently. For example, if the DSD 106 comprises an HDD, LBA partitions on the outer disk (OD) may have twice the sequential data rate as LBA partitions on the inner disk (ID). The cloud storage provider may wish to charge more for LBA partitions having faster performance. Alternatively, the cloud storage provider may wish to use custom power/performance settings for each LBA partition, using settings similar to the table 600. The faster LBA partitions may be throttled down such that all LBA partitions perform similarly.
The DSD 106 may further provide the host 101 with a power/performance matrix. The power/performance matrix may be stored in the DSD 106, for example in the register 60 or as part of the OS 12 or the DSD driver 16. The power/performance matrix informs the host of the trade-offs necessary to achieve certain settings by indicating a performance of the DSD 106 at different power levels. For example, the DSD 106 can send a power/performance matrix to the host 101 to provide a comparison of watts consumed versus IOPS delivered. This information may also be used by a UI of the DSD driver 16 to provide information to a user of the computer system 100. Because each DSD has different power/performance profiles, providing the host 101 with this information allows the host 101 or the user to understand the effects on power by adjusting performance and vice versa.
Those of ordinary skill in the art will appreciate that the various illustrative logical blocks, modules, and processes described in connection with the examples disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. Furthermore, the foregoing processes can be embodied on a computer readable medium which causes a processor or computer to perform or execute certain functions.
To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, and modules have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Those of ordinary skill in the art may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
The various illustrative logical blocks, units, modules, and controllers described in connection with the examples disclosed herein may be implemented or performed with a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
The activities of a method or process described in connection with the examples disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The steps of the method or algorithm may also be performed in an alternate order from those provided in the examples. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, an optical media, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such that the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuit (ASIC).
The foregoing description of the disclosed example implementations is provided to enable any person of ordinary skill in the art to make or use the implementations in the present disclosure. Various modifications to these examples will be readily apparent to those of ordinary skill in the art, and the principles disclosed herein may be applied to other examples without departing from the spirit or scope of the present disclosure. The described implementations are to be considered in all respects only as illustrative and not restrictive and the scope of the disclosure is, therefore, indicated by the following claims rather than by the foregoing description. All changes which come within the meaning and range of equivalency of the claims are to be embraced within their scope.
This application claims priority to U.S. Provisional Application No. 61/819,304, filed on May 3, 2013, the disclosure of which is hereby incorporated in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
5345347 | Hopkins et al. | Sep 1994 | A |
5369771 | Gettel | Nov 1994 | A |
5481733 | Douglis et al. | Jan 1996 | A |
5493670 | Douglis et al. | Feb 1996 | A |
5544138 | Bajorek et al. | Aug 1996 | A |
5638541 | Sadashivaiah | Jun 1997 | A |
5682273 | Hetzler | Oct 1997 | A |
5774292 | Georgiou et al. | Jun 1998 | A |
5801894 | Boutaghou et al. | Sep 1998 | A |
5872669 | Morehouse et al. | Feb 1999 | A |
5913067 | Klein | Jun 1999 | A |
5954820 | Hetzler | Sep 1999 | A |
6161187 | Mason et al. | Dec 2000 | A |
6192480 | Barrus | Feb 2001 | B1 |
6608729 | Willems et al. | Aug 2003 | B1 |
6622252 | Klaassen et al. | Sep 2003 | B1 |
6657811 | Codilian | Dec 2003 | B1 |
6725385 | Chu et al. | Apr 2004 | B1 |
6845456 | Menezes et al. | Jan 2005 | B1 |
6856556 | Hajeck | Feb 2005 | B1 |
6892313 | Codilian et al. | May 2005 | B1 |
6928559 | Beard | Aug 2005 | B1 |
6941480 | Dai | Sep 2005 | B1 |
7058824 | Plante et al. | Jun 2006 | B2 |
7072138 | Schmidt | Jul 2006 | B2 |
7075744 | Cumpson et al. | Jul 2006 | B2 |
7082373 | Holle | Jul 2006 | B2 |
7089432 | Schmidt | Aug 2006 | B2 |
7120806 | Codilian et al. | Oct 2006 | B1 |
7126857 | Hajeck | Oct 2006 | B2 |
7155617 | Gary et al. | Dec 2006 | B2 |
7206948 | Brauer | Apr 2007 | B2 |
7213086 | Wyatt et al. | May 2007 | B2 |
7302595 | de Cesare et al. | Nov 2007 | B2 |
7430136 | Merry, Jr. et al. | Sep 2008 | B2 |
7443627 | Krishnamoorthy et al. | Oct 2008 | B1 |
7447807 | Merry et al. | Nov 2008 | B1 |
7502256 | Merry, Jr. et al. | Mar 2009 | B2 |
7509441 | Merry et al. | Mar 2009 | B1 |
7549065 | Schutte | Jun 2009 | B2 |
7552347 | Schutte | Jun 2009 | B2 |
7596643 | Merry, Jr. et al. | Sep 2009 | B2 |
7609472 | Atkinson | Oct 2009 | B2 |
7653778 | Merry, Jr. et al. | Jan 2010 | B2 |
7685337 | Merry, Jr. et al. | Mar 2010 | B2 |
7685338 | Merry, Jr. et al. | Mar 2010 | B2 |
7685374 | Diggs et al. | Mar 2010 | B2 |
7733712 | Walston et al. | Jun 2010 | B1 |
7765373 | Merry et al. | Jul 2010 | B1 |
7836101 | Crowther et al. | Nov 2010 | B2 |
7853809 | Zhang et al. | Dec 2010 | B2 |
7898855 | Merry, Jr. et al. | Mar 2011 | B2 |
7912991 | Merry et al. | Mar 2011 | B1 |
7936603 | Merry, Jr. et al. | May 2011 | B2 |
7962792 | Diggs et al. | Jun 2011 | B2 |
7982999 | Koizumi et al. | Jul 2011 | B2 |
8078901 | Meyer et al. | Dec 2011 | B1 |
8078918 | Diggs et al. | Dec 2011 | B2 |
8090899 | Syu | Jan 2012 | B1 |
8095851 | Diggs et al. | Jan 2012 | B2 |
8108692 | Merry et al. | Jan 2012 | B1 |
8122185 | Merry, Jr. et al. | Feb 2012 | B2 |
8127048 | Merry et al. | Feb 2012 | B1 |
8135903 | Kan | Mar 2012 | B1 |
8151020 | Merry, Jr. et al. | Apr 2012 | B2 |
8161227 | Diggs et al. | Apr 2012 | B1 |
8166245 | Diggs et al. | Apr 2012 | B2 |
8214661 | Cooper et al. | Jul 2012 | B2 |
8243525 | Kan | Aug 2012 | B1 |
8254172 | Kan | Aug 2012 | B1 |
8261012 | Kan | Sep 2012 | B2 |
8296625 | Diggs et al. | Oct 2012 | B2 |
8312207 | Merry, Jr. et al. | Nov 2012 | B2 |
8316176 | Phan et al. | Nov 2012 | B1 |
8341339 | Boyle et al. | Dec 2012 | B1 |
8375151 | Kan | Feb 2013 | B1 |
8392635 | Booth et al. | Mar 2013 | B2 |
8397107 | Syu et al. | Mar 2013 | B1 |
8407449 | Colon et al. | Mar 2013 | B1 |
8423722 | Deforest et al. | Apr 2013 | B1 |
8433858 | Diggs et al. | Apr 2013 | B1 |
8443167 | Fallone et al. | May 2013 | B1 |
8447920 | Syu | May 2013 | B1 |
8458435 | Rainey, III et al. | Jun 2013 | B1 |
8478930 | Syu | Jul 2013 | B1 |
8489854 | Colon et al. | Jul 2013 | B1 |
8503237 | Horn | Aug 2013 | B1 |
8521972 | Boyle et al. | Aug 2013 | B1 |
8549236 | Diggs et al. | Oct 2013 | B2 |
8583835 | Kan | Nov 2013 | B1 |
8601311 | Horn | Dec 2013 | B2 |
8601313 | Horn | Dec 2013 | B1 |
8612669 | Syu et al. | Dec 2013 | B1 |
8612804 | Kang et al. | Dec 2013 | B1 |
8615681 | Horn | Dec 2013 | B2 |
8638602 | Horn | Jan 2014 | B1 |
8639872 | Boyle et al. | Jan 2014 | B1 |
8683113 | Abasto et al. | Mar 2014 | B2 |
8700834 | Horn et al. | Apr 2014 | B2 |
8700950 | Syu | Apr 2014 | B1 |
8700951 | Call et al. | Apr 2014 | B1 |
8706985 | Boyle et al. | Apr 2014 | B1 |
8707104 | Jean | Apr 2014 | B1 |
8713066 | Lo et al. | Apr 2014 | B1 |
8713357 | Jean et al. | Apr 2014 | B1 |
8719531 | Strange et al. | May 2014 | B2 |
8724422 | Agness et al. | May 2014 | B1 |
8725931 | Kang | May 2014 | B1 |
8745277 | Kan | Jun 2014 | B2 |
8751728 | Syu et al. | Jun 2014 | B1 |
8769190 | Syu et al. | Jul 2014 | B1 |
8769232 | Suryabudi et al. | Jul 2014 | B2 |
8775720 | Meyer et al. | Jul 2014 | B1 |
8782327 | Kang et al. | Jul 2014 | B1 |
8788778 | Boyle | Jul 2014 | B1 |
8788779 | Horn | Jul 2014 | B1 |
8788880 | Gosla et al. | Jul 2014 | B1 |
8793429 | Call et al. | Jul 2014 | B1 |
20040083396 | Perahia | Apr 2004 | A1 |
20050144486 | Komarla et al. | Jun 2005 | A1 |
20050174678 | Zayas et al. | Aug 2005 | A1 |
20100174849 | Walston et al. | Jul 2010 | A1 |
20100250793 | Syu | Sep 2010 | A1 |
20100262392 | Murphy et al. | Oct 2010 | A1 |
20100318824 | Tinker | Dec 2010 | A1 |
20110099323 | Syu | Apr 2011 | A1 |
20110283049 | Kang et al. | Nov 2011 | A1 |
20120260020 | Suryabudi et al. | Oct 2012 | A1 |
20120278531 | Horn | Nov 2012 | A1 |
20120284460 | Guda | Nov 2012 | A1 |
20120324191 | Strange et al. | Dec 2012 | A1 |
20130132638 | Horn et al. | May 2013 | A1 |
20130145106 | Kan | Jun 2013 | A1 |
20130290793 | Booth et al. | Oct 2013 | A1 |
20140059405 | Syu et al. | Feb 2014 | A1 |
20140101369 | Tomlin et al. | Apr 2014 | A1 |
20140115427 | Lu | Apr 2014 | A1 |
20140133220 | Danilak et al. | May 2014 | A1 |
20140136753 | Tomlin et al. | May 2014 | A1 |
20140149826 | Lu et al. | May 2014 | A1 |
20140157078 | Danilak et al. | Jun 2014 | A1 |
20140173242 | Huffman et al. | Jun 2014 | A1 |
20140181432 | Horn | Jun 2014 | A1 |
20140223255 | Lu et al. | Aug 2014 | A1 |
Entry |
---|
IBM, “Adaptive Power Management for Mobile Hard Drives, Adaptive Battery Life Extender”, Jan. 1999, http://www.almaden.ibm.com/almaden/mobile—hard—drives.html, 13 pages. |
Microsoft, “Device Class Power Management Reference Specification”, v 2.0, Jan. 10, 2000, 6 pages. |
Number | Date | Country | |
---|---|---|---|
61819304 | May 2013 | US |