1. Technical Field
The invention disclosed and claimed herein generally pertains to a method wherein the disk in a hard disk drive is used to provide non-volatile caching space. More particularly, the invention pertains to a method of the above type wherein a portion of the Outside Diameter (OD) zone of the hard disk is allocated as caching space, to achieve a faster data storage rate. Even more particularly, the invention pertains to a method of the above type wherein the caching space is managed by the hard drive itself, and is thus transparent to the associated host system.
2. Description of Related Art
Hard disk drive performance has not kept up with the performance of the Central Processing Unit (CPU) for a number of years. The method used to mitigate this performance gap has been to have various speed levels of solid state caching, in order to increase the probability that most of the acquired data is in semiconductor storage, rather than on a disk drive. However, semiconductor storage takes more power and is more expensive, on a per bit basis, than storage on a magnetic hard drive. Accordingly, it would be desirable to provide an approach to data storage that was faster than current methods, and at the same time was more cost effective.
Current disk drive technology uses what can be described as constant density recording. That is, the spacing between magnetic transitions written to the magnetic media is kept relatively constant. Thus, the outer edge of each disk surface can hold more data then the inner edge of the disk. To take advantage of these characteristics, disk drive vendors divide the surface into multiple zones. In each zone, the read/write electronics of the disk drive records and reads data at different data rates, the Outside Diameter (OD) zone having the highest data rate, and the Inside Diameter (ID) zone having the lowest data rate. In accordance with the invention, and as described hereinafter in further detailed, these characteristics of a hard disk drive are used to provide an improved data storage system, having significantly higher speed and reduced cost in comparison with conventional systems.
In making the invention, it has been recognized that if a portion of the OD zone of the hard drive disk is allocated as a caching space, where all writes to the disk are carried out, these write operations can be performed much faster. This can provide the associated host system with a new level of higher speed storage, at a lower cost per bit. In embodiments of the invention, the disk drive controller firmware manages the cache, and the host system will see improved throughput, especially for write intensive operations. Moreover, it is anticipated that hard drive capacity has now increased to a point where giving up 1-2 gigabytes of such capacity, for use as a specialized cache, is a trade-off that many users will be willing to make. In one useful embodiment, a method is provided for writing specified data to a disk drive in a computer configuration, the disk drive having at least one magnetic disk and a volatile cache memory. The method comprises the steps of reserving a specified portion of the OD zone of a selected disk for a non-volatile (NV) cache space, and initially storing the specified data in the volatile memory, in response to a write command sent to the disk drive. The method further comprises writing the specified data from the volatile memory to the NV cache space at the selected disk OD, and then subsequently writing the specified data from the NV cache space to a selected longer-term storage location on the disk.
The novel features believed characteristic of the invention are set forth in the appended claims. The invention itself, however, as well as a preferred mode of use, further objectives and advantages thereof, will best be understood by reference to the following detailed description of an illustrative embodiment when read in conjunction with the accompanying drawings, wherein:
Referring to
Referring further to
An operating system runs on processor 102 and is used to coordinate and provide control of various components within data processing system 100 shown in
Referring to
Referring further to
Thus, in accordance with the invention, non-volatile (NV) cache storage locations 212, also referred to as sectors or spaces, are located on the OD zone 210 of disk 208. As is known in the art, a non-volatile cache is a cache that does not lose storage data when the power to the non-volatile cache is turned off or lost. Moreover, it will be seen that the NV cache resides on the disk of the hard drive storage device itself. Accordingly, NV caching space can be managed by the firmware of disk drive controller 202 of disk drive 120. Also, such management by the disk drive 120 can be made transparent to the host controller 110.
The disk storage media of hard disk drive 120 may usefully be conceptualized as a large number of concentric cylinders, such as 104 or more. Referring to
Referring to
Following the drive configuration, an NV cache configuration command is sent to the disk drive, as shown by function block 506. This is done to determine whether the disk drive does or does not support the NV cache function. If the answer to this inquiry is negative, decision block 508 indicates that a NO signal is sent, whereupon the NV cache setup routine is ended. However, if the disk drive does support the NV cache, decision block 508 shows that a YES signal is sent, and the NV cache is configured, as indicated by function block 510.
Referring further to
Referring to
Referring further to
Function block 610 indicates that after the data has been moved either to an NV cache location 212 or to a longer term disk storage location, disk drive 120 returns a command complete status to host controller 110, to end the write NV cache operation.
In a useful embodiment of the invention, the NV cache space would occupy only a small number of the above-described storage cylinders at the disk OD zone. It is anticipated that this would significantly enhance performance during write operations for two reasons: (1) the data rate is approximately 20% faster at the OD of the disk than the average data rate over the entire disk drive; and (2) the seek time within the NV cache area on the disk is at least two to three times less than the average disk seek time. For a typical two disk (4 head) drive, 500 cylinders of cache data would hold 1 gigabyte of data in a drive that would typically have 70,000 cylinders or more.
Referring to
Referring further to
Previously, when data was being written to disk drive 120 by the host controller, it could take on the order of 10 milliseconds to write data from the volatile cache to the disk storage location. However, data can be written from the NV cache, located at the disk OD, to the final or longer-term disk storage location within a period of about 2 milliseconds. It is anticipated that embodiments of the invention will be able to reduce the time for writing data to final disk storage locations, using the NV cache, to an average of 5 milliseconds.
When the disk drive is opened for the first time by the Operating System (O/S) of data processing system 100, the maximum capacity of the hard drive is generally set, by a returned Read Capacity SCSI command. Typically, the Operating System would not expect the capacity of the hard drive 120 to change, once the Read Capacity Command has been sent to the drive. However, some amount of storage capacity, at the disk OD, must be allocated for the NV cache. Accordingly, it might be desirable to have the hard drive configure the NV cache space before the drive is initially configured by the Operating System. That is, a Read Capacity SCSI command would return a lower maximum Logical Block Address (LBA) value, after the cache size was defined using the Mode Select Command. For example, the capacity of the drive could be set using a special diagnostic utility, to define the cache before the drive was opened by the O/S for the first time.
It is important to note that while the present invention has been described in the context of a fully functioning data processing system, those of ordinary skill in the art will appreciate that the processes of the present invention are capable of being distributed in the form of a computer readable medium of instructions and a variety of forms and that the present invention applies equally regardless of the particular type of signal bearing media actually used to carry out the distribution. Examples of computer readable media include recordable-type media, such as a floppy disk, a hard disk drive, a RAM, CD-ROMs, and DVD-ROMs.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiment was chosen and described in order to best explain the principles of the invention, the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
Number | Name | Date | Kind |
---|---|---|---|
5353430 | Lautzenheiser | Oct 1994 | A |
5878020 | Takahashi | Mar 1999 | A |
6301605 | Napolitano et al. | Oct 2001 | B1 |
6925526 | Hall | Aug 2005 | B2 |
7099993 | Keeler | Aug 2006 | B2 |
20030028719 | Rege | Feb 2003 | A1 |
20050066121 | Keeler | Mar 2005 | A1 |
20060080501 | Auerbach et al. | Apr 2006 | A1 |
20060143543 | Mandrell et al. | Jun 2006 | A1 |
20060253621 | Brewer et al. | Nov 2006 | A1 |
Number | Date | Country | |
---|---|---|---|
20060253650 A1 | Nov 2006 | US |