One of the tasks a computer performs when a disk is being formatted is detecting bad sectors on the disk and relocating them to minimize their interference with performance. Such relocations are known as primary or static relocations and are effected by a relocation algorithm called a slipping algorithm. Bad sectors and debris may also be discovered after formatting is complete, causing the sectors to be relocated after the disk is in service. These relocations are called secondary or dynamic relocations. Secondary relocations are typically performed using an algorithm called a replacement algorithm.
Error information regarding bad sectors encountered during formatting and during subsequent disk usage are typically stored in a specified area on the disk, sometimes called the primary defect list (PDL) and the secondary defect list (SDL) respectively. This information indicates which sectors should not be used to store data, and will cause processing commands (e.g., read, write, verify) to either skip the bad sectors or search other specified physical locations on the disk for those sectors.
Whereas slipping algorithms have a minimal effect on drive performance, replacement algorithms adversely affect the performance of a disk drive, both during the write process and subsequently during the read process. Dynamic relocations are time consuming due to the excessive seek time they require. During a normal write process, the drive accesses process sectors in the prime or standard user area of the disk. When a bad sector is encountered in the standard user area, the drive seeks to a dedicated defect management area (DMA) and sets up a relocated sector for the data that was to be placed in the bad sector. The DMA is physically separated from the standard user area. Whenever the bad sector is referenced, the drive is then translated to the appropriate DMA where the relocated sector lies. After the data in the relocated sector has been processed, the drive seeks back to the standard user area and continues.
The process of seeking to the DMA, processing the relocation, and then seeking back to the standard user area is repeated every time a relocation is needed. Thus, a seek-process-seek delay is encountered every time a relocated sector needs to be accessed. This time penalty grows linearly with the number of defective sectors in an extent.
Prior efforts at reducing this time penalty have included providing multiple DMA areas on the disk. The computer selects the DMA area closest to the bad sector whenever a relocation must be performed. This method reduces the constant associated with the linear time penalty because the seek step takes less time. However, the linear nature of the time penalty has not been altered.
The transfer rate of disk drives is severely degraded by relocations due to the linear time penalty associated with the typical defect management process. As data densities increase, the effect of debris and reduction in margins will increase the number of relocations for disk drive systems.
There is a need for a process that reduces the time required to conduct a post-formatting relocation. There is also a need for a process that allows the seek steps of several relocations to be combined, thereby encouraging batch relocations.
The present invention generally pertains to a process for efficiently performing multiple post-formatting relocations of bad disk sectors by allowing multiple relocations to be performed simultaneously. The amount of debris or other physical flaws present on removable media such as disk 50 typically increases over time. Further, unlike defective sectors that are identified during formatting, these post-formatting defects are not managed using the sector slipping algorithm, and it is time consuming to address such flaws. The time required for managing these secondary/dynamic relocations are minimized in accordance with the present invention.
The process of the present invention involves processing (writing, reading, verifying, etc.) the data in the prime area of the disk. As bad sectors are encountered during the processing, the relocations are saved collectively in memory for later processing. The data processing continues in this manner until completion is achieved. Upon completion of the data processing in the prime area, a single seek step is used to access a designated DMA. All of the relocations are then processed in the DMA.
Accordingly, the present invention provides for completing all of the prime disk area processing first and only then batch processing the secondary relocations. This process avoids implementing a lengthy linear replacement algorithm to address the post-formatting defects, which would otherwise call multiple seek operations for each defective sector identified on disk 50. The approach of the present invention reduces the linear time penalty in the number of relocations to a near constant time.
a is a diagram illustrating the disk layout after formatting but before defective sector relocations have been processed; and
b is a diagram again illustrating the disk layout, however now shown after defective sector relocations have been processed.
Referring now to
During disk formatting, in accordance with the present invention, the primary relocation, also known as static relocation, erases the data in the sectors of disk 50 and checks the surface of disk 50 for any defective sectors. When bad sectors are identified, their physical locations are stored by data storage system 10 in RAM 60, and the physical/logical sector relationship is mapped out using a sector slipping algorithm. When disk 50 is new and the formatting process identifies bad sectors, such sectors are typically truly defective and are therefore unusable for the life of the disk. A sector slipping algorithm provides for a relatively fast means of identifying and managing bad sectors and debris found during formatting, thereby minimizing the disk access time required by disk drive 40 to format disk 50.
As indicated, the data storage system uses a sector slipping algorithm during formatting, which causes disk drive 40 to merely skip over defective sectors when there is an attempt to access them. Thus, the time associated with the formatting process is minimized due to the short period needed to skip a disk sector, which is typically the time necessary to read a sector.
Once disk 50 has been formatted, the disk is available for standard processing in the prime disk area. Standard processing typically includes activities such as writing to the disk, reading from the disk, or verifying data on the disk. When defective sectors and debris are encountered during the standard processing, secondary sector relocations are implemented. Secondary sector relocations adjust logical sectors that are mapped to defective physical sectors in a Prime Disk Area (PDA) of disk 50 and maps them to good physical sectors in a defect management area (DMA) of disk 50.
a shows a post-formatted disk 50 in accordance with the present invention, where the disk has 1000 physical sectors and none of the physical sectors have yet been determined to be defective.
In operation, all standard data processing (e.g., reads, writes, verifies) in the PDA of disk 50 is performed first without processing any relocations in the DMA of disk 50. Accordingly, during the standard data processing, disk drive 40 does not access the DMA, even if defects are encountered. Rather, as defective sectors are encountered by disk drive 40 during the initial standard data processing, information regarding those sectors is simultaneously stored in RAM 60 for subsequent processing. Because disk drive 40 does not access the DMA of disk 50 for each defective sector encountered, the access times involved with this first step are comparable to the initial formatting, which is typically the same time necessary to read/write/verify a sector, depending on the operation being performed.
Next, once the initial standard data processing of the prime disk area is complete, all secondary relocations are batch processed. In order to perform the secondary relocations, disk drive 40 executes only a single seek-process, which seeks to the DMA of disk 50, and then performs the necessary relocation batch processing for multiple defective sectors. The batch processing is accomplished by disk drive 40 accessing RAM 60, retrieving the necessary defective sector information stored therein, and then executing the relocations based on that information.
By way of example, in accordance with the present invention post-formatting disk usage may manage subsequent defects as shown in
Once the write command to sectors 0–10 in the PDA is otherwise completed, disk drive 40 then seeks once to the DMA of disk 50 and processes the relocation of the physical sectors that were identified as defective during execution of the write command. The data storage system 10 processes the relocation of those sectors only after disk drive 40 writes or at least attempts to write to each of the physical sectors in the PDA. In this example, after the standard processing completes the write command, logical sectors 4 and 9 are re-mapped in batch to the DMA based on the defect information in RAM 60; disk drive 40 seeks to the DMA and then writes the logical sector 4 and 9 data to the corresponding physical sectors in the DMA, as shown in
Those skilled in the art will further appreciate that the present invention may be embodied in other specific forms without departing from the spirit or central attributes thereof. In that the foregoing description of the present invention discloses only exemplary embodiments thereof, it is to be understood that other variations are contemplated as being within the scope of the present invention. Accordingly, the present invention is not limited in the particular embodiments which have been described in detail therein. Rather, reference should be made to the appended claims as indicative of the scope and content of the present invention.
This application claims the benefit of U.S. Provisional Application No. 60/426,721, filed Nov. 15, 2002.
Number | Name | Date | Kind |
---|---|---|---|
4924331 | Robinson et al. | May 1990 | A |
5404357 | Ito et al. | Apr 1995 | A |
5974544 | Jeffries et al. | Oct 1999 | A |
6025966 | Nemazic et al. | Feb 2000 | A |
6034831 | Dobbek et al. | Mar 2000 | A |
6052804 | Thowe et al. | Apr 2000 | A |
6101619 | Shin | Aug 2000 | A |
6189110 | Saitoh et al. | Feb 2001 | B1 |
6212647 | Sims et al. | Apr 2001 | B1 |
6263459 | Schibilla | Jul 2001 | B1 |
6301644 | Andoh et al. | Oct 2001 | B1 |
6338153 | Sasaki et al. | Jan 2002 | B1 |
6341109 | Kayanuma | Jan 2002 | B1 |
6377524 | Ko | Apr 2002 | B1 |
6384997 | Wu et al. | May 2002 | B1 |
6427215 | Rafanello et al. | Jul 2002 | B2 |
6442715 | Wilson | Aug 2002 | B1 |
6728899 | Ng et al. | Apr 2004 | B1 |
6771575 | Park et al. | Aug 2004 | B1 |
6868511 | Ko | Mar 2005 | B2 |
6940796 | Ariyama | Sep 2005 | B2 |
7016275 | Lee et al. | Mar 2006 | B1 |
7047438 | Smith et al. | May 2006 | B2 |
7050369 | Lee et al. | May 2006 | B2 |
20010042223 | Hoskins | Nov 2001 | A1 |
20020035704 | Wilson | Mar 2002 | A1 |
Number | Date | Country |
---|---|---|
60226026 | Nov 1985 | JP |
5094672 | Apr 1993 | JP |
6208769 | Jul 1994 | JP |
6290547 | Oct 1994 | JP |
Number | Date | Country | |
---|---|---|---|
20040153743 A1 | Aug 2004 | US |
Number | Date | Country | |
---|---|---|---|
60426721 | Nov 2002 | US |