Magnetic disk device and control method
The magnetic disk device adjusts the guaranteed number of writes using invalidated parity sectors to optimize performance by reducing ATI failures and maintaining processing speed.
Patent Information
- Application Number
- JP2023046719
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-23
- Publication Date
- 2024-10-04
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Adjacent Track Interference (ATI) causes data on adjacent tracks to become difficult to read due to excessive writing, necessitating a guaranteed number of writes to be adjusted before shipment, which may not be optimal for all tracks.
A magnetic disk device with tracks containing data sectors and parity sectors for error correction, using a controller to adjust the guaranteed number of writes by invalidating parity sectors during random access and utilizing these sectors to determine an optimal write count through repeated writes and reads.
The solution allows for adjusting the guaranteed number of writes to an optimal value during operation, improving performance by reducing ATI failures and maintaining processing speed without affecting the device's operation.
Smart Images

Figure 2024135836000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a magnetic disk device and a control method. [Background technology]
[0002] Adjacent track interference (ATI) is known as one of the effects that can be exerted on adjacent tracks when writing data to a magnetic disk. Depending on the number of writes to one track, the effects of ATI on adjacent tracks accumulate, and it eventually becomes difficult to read data on the adjacent tracks. Therefore, if a certain number of writes is exceeded before it becomes difficult to read data on the adjacent tracks, a rewrite process is performed on all data on the adjacent tracks. This number of writes is adjusted before the magnetic disk drive is shipped. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] U.S. Pat. No. 1,136,0671 [Patent Document 2] JP 2010-152988 A [Patent Document 3] US Patent Application Publication No. 2010 / 0188767 Summary of the Invention [Problem to be solved by the invention]
[0004] An object of one embodiment is to provide a high-performance magnetic disk device by adjusting the guaranteed number of writes to an optimal value. [Means for solving the problem]
[0005] The magnetic disk device of the embodiment comprises a magnetic disk having a plurality of tracks, each of which has a plurality of first sectors in which data segments are stored and a second sector in which parity for error correction is stored, a magnetic head that performs write / read operations on the magnetic disk, and a controller that uses invalid second sectors to perform an adjustment process of a guarantee count, which indicates the number of writes to guarantee a read from an adjacent track. [Brief description of the drawings]
[0006] [Figure 1] FIG. 1 is a schematic diagram showing an example of the configuration of a magnetic disk device according to an embodiment. [Figure 2A] FIG. 2A is a diagram illustrating an example of a configuration of a magnetic disk according to an embodiment. [Figure 2B] FIG. 2B is a schematic diagram showing an example of a zone in the magnetic disk of the embodiment. [Diagram 3] FIG. 3 is a schematic diagram showing an example of the configuration of one track according to the embodiment. [Figure 4] FIG. 4 is a schematic diagram illustrating an example of a data structure of ATI management information according to the embodiment. [Diagram 5] FIG. 5 is a diagram illustrating an example of a data structure of the parity sector table according to the embodiment. [Figure 6] FIG. 6 is a diagram illustrating an example of a data structure of the guaranteed write count table according to the embodiment. [Figure 7] FIG. 7 is a flowchart illustrating an example of a procedure for adjusting the guaranteed number of writes according to the embodiment. [Figure 8] FIG. 8 is a flowchart illustrating an example of a procedure for adjusting the guaranteed number of writes according to the embodiment. [Figure 9] FIG. 9 is a diagram showing an example of a graph showing the relationship between a number of tracks and the guaranteed number of writes at the time of shipment in the embodiment. [Figure 10] FIG. 10 is a diagram showing an example of the state of sectors of a plurality of tracks at the time of shipment in the embodiment. [Figure 11] FIG. 11 is a diagram showing an example of the state of sectors of a plurality of tracks when an invalid parity sector occurs in the embodiment. [Figure 12] FIG. 12 is a diagram showing an example of the state of sectors on a plurality of tracks when invalid parity sectors occur on a predetermined number of tracks or more in this embodiment. [Figure 13] FIG. 13 is a diagram showing an example of a graph showing the relationship between a plurality of tracks and the guaranteed number of write attempts in a state in which the adjustment process for the guaranteed number of write attempts has been performed once in the embodiment. [Figure 14] FIG. 14 is a diagram showing an example of a graph showing the relationship between a plurality of tracks and the guaranteed number of write attempts in a state in which adjustment processing for the guaranteed number of write attempts is performed on tracks in the outer circumferential zone in the embodiment. [Figure 15] FIG. 15 is a diagram showing an example of a graph showing the relationship between a plurality of tracks and the guaranteed number of write attempts in a state in which the adjustment process for the guaranteed number of write attempts has been performed for tracks in all zones in the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0007] A magnetic disk device according to an embodiment will be described in detail below with reference to the accompanying drawings. Note that the present invention is not limited to the embodiment.
[0008] (Embodiment) FIG. 1 is a schematic diagram showing an example of the configuration of a magnetic disk device 1 according to an embodiment.
[0009] The magnetic disk device 1 is connected to a host 2. The magnetic disk device 1 can receive access commands, such as a write command and a read command, from the host 2.
[0010] The magnetic disk device 1 includes a magnetic disk 11 having a magnetic layer formed on its surface. The magnetic disk device 1 writes data to the magnetic disk 11 and reads data from the magnetic disk 11 in response to an access command.
[0011] Data is written and read via a magnetic head 22. In addition to a magnetic disk 11, the magnetic disk device 1 includes a spindle motor 12, a ramp 13, an actuator arm 15, a voice coil motor (VCM) 16, a motor driver IC (Integrated Circuit) 21, a magnetic head 22, a hard disk controller (HDC) 23, a head IC 24, a read / write channel (RWC) 25, a processor 26, a RAM 27, a Flash Read Only Memory (FROM) 28, and a buffer memory 29.
[0012] The magnetic disk 11 is rotated at a predetermined rotation speed by a spindle motor 12 attached coaxially thereto. The spindle motor 12 is driven by a motor driver IC 21.
[0013] The processor 26 controls the rotation of the spindle motor 12 and the rotation of the VCM 16 via the motor driver IC 21 .
[0014] The magnetic head 22 writes and reads information to and from the magnetic disk 11 using a write core 22w and a read core 22r provided therein. The magnetic head 22 is attached to the tip of an actuator arm 15. The magnetic head 22 is moved in the radial direction of the magnetic disk 11 by a VCM 16. Note that a single magnetic head 22 may be provided with a plurality of write cores 22w and / or a plurality of read cores 22r.
[0015] When the magnetic disk 11 is not rotating, the magnetic head 22 is moved onto the ramp 13. The ramp 13 is configured to hold the magnetic head 22 at a position separated from the magnetic disk 11.
[0016] During a read operation, the head IC 24 amplifies and outputs a signal read by the magnetic head 22 from the magnetic disk 11, and supplies the signal to the RWC 25. During a write operation, the head IC 24 amplifies a signal corresponding to the data to be written, which is supplied from the RWC 25, and supplies the signal to the magnetic head 22.
[0017] The HDC 23 controls the transmission and reception of data between the host 2 and the HDC 23 via the I / F bus, and controls the buffer memory 29 .
[0018] The buffer memory 29 is used as a buffer for data transmitted and received between the host 2. For example, the buffer memory 29 is used to temporarily store data to be written or data read from the magnetic disk 11.
[0019] The buffer memory 29 is composed of a volatile memory capable of high-speed operation. The type of memory constituting the buffer memory 29 is not limited to a specific type. The buffer memory 29 may be composed of, for example, a dynamic random access memory (DRAM), a static random access memory (SRAM), or a combination of these. The buffer memory 29 may also be composed of any non-volatile memory.
[0020] The RWC 25 performs modulation such as error correction coding on the data to be written that is supplied from the HDC 23, and supplies the modulated data to the head IC 24. The RWC 25 also performs demodulation, including error correction processing, on the signal that is read from the magnetic disk 11 and supplied from the head IC 24, and outputs the demodulated signal to the HDC 23 as digital data.
[0021] The processor 26 is, for example, a CPU (Central Processing Unit). A RAM 27, a FROM (Flash Read Only Memory) 28, and a buffer memory 29 are connected to the processor 26.
[0022] The FROM 28 is a non-volatile memory. Firmware (program data) and various operation parameters are stored in the FROM 28. The firmware may be stored in the magnetic disk 11.
[0023] The RAM 27 is configured by, for example, DRAM, SRAM, or a combination of these. The RAM 27 is used as an operating memory by the processor 26. The RAM 27 is used as an area into which firmware is loaded and an area in which various management data is temporarily stored.
[0024] The processor 26 performs overall control of the magnetic disk device 1 in accordance with firmware stored in the FROM 28 or the magnetic disk 11. For example, the processor 26 loads firmware from the FROM 28 or the magnetic disk 11 into the RAM 27, and controls the motor driver IC 21, the head IC 24, the RWC 25, the HDC 23, and the like in accordance with the loaded firmware.
[0025] The configuration including the HDC 23, the RWC 25, and the processor 26 can be regarded as a controller 30 that controls the operation of the magnetic disk device 1. The controller 30 may include other elements (such as a RAM 27, a ROM 28, or a buffer memory 29) in addition to these.
[0026] The firmware program may be stored on the magnetic disk 11. Some or all of the functions of the processor 26 may be realized by a hardware circuit such as a field-programmable gate array (FPGA) or an application specific integrated circuit (ASIC).
[0027] The number of magnetic disks 11 provided in the magnetic disk device 1 is not limited to one. The magnetic disk device 1 may have actuator arms 15 and magnetic heads 22 in a number corresponding to the number of magnetic disks 11. When the magnetic disk device 1 has a plurality of magnetic heads 22, the plurality of magnetic heads 22 may be moved as a unit, or the plurality of magnetic heads 22 may be configured as a plurality of groups that can move independently.
[0028] 2A is a diagram showing an example of the configuration of the magnetic disk 11 according to the embodiment. Servo data used for positioning the magnetic head 22 is written in a magnetic layer formed on the surface of the magnetic disk 11 by, for example, a servo writer or by self-servo writing (SSW).
[0029] 2A shows servo areas 41 arranged radially as an example of the arrangement of servo areas in which servo data is written. In the circumferential direction, a data area 42 in which data can be written is provided between two servo areas 41. A plurality of concentric tracks 50 are provided in the radial direction of the magnetic disk 11. A plurality of sectors are provided on the track 50 in the data area 42 in which data of a predetermined size (sector size) is written.
[0030] The servo data includes a servo mark, a gray code, a burst pattern, and a post code. The servo mark indicates the start of the servo data. The gray code includes an ID for identifying each track 50 provided on the magnetic disk 11, i.e., a track number, and an ID for identifying each servo sector (i.e., servo area 41) on the track 50, i.e., a servo sector number. The burst pattern is data used to detect the amount of positional deviation from the center of the track indicated by the track number included in the gray code. The track number included in the gray code is given as an integer value, for example, and it is possible to obtain a decimal offset amount based on the position indicated by the track number by demodulating the burst pattern. In other words, the current position of the magnetic head 22 in the radial direction is obtained by demodulating the burst pattern. The post code is data for correcting the positional deviation of the shape of the track 50 defined by the gray code and the burst pattern from the ideal shape of the track 50.
[0031] When writing data to the magnetic disk 11 or reading data from the magnetic disk 11, the controller 30 performs positioning of the magnetic head 22, i.e., seek control and tracking control, based on the servo data read by the magnetic head 22 from the servo area 41.
[0032] 2B is a schematic diagram showing an example of a zone on the magnetic disk 11 of the embodiment. In this embodiment, zones consisting of a plurality of tracks 50 are set on concentric circles. The outermost zone is designated as zone 0, and the zone numbers increase toward the inner circumference. The innermost zone is called the maximum zone.
[0033] 3 is a schematic diagram showing an example of the configuration of one track 50 in the embodiment. In this diagram, the servo area 41 is omitted. In addition, this diagram shows the write / read direction. The write / read direction is the direction in which the magnetic head 22 moves relative to the track 50 as the magnetic disk 11 rotates. The magnetic head 22 writes data to each track 50 or reads data therefrom in the write / read direction.
[0034] Each sector in the track 50 is identified by a sector number. A sector with a sector number of x is represented as sector #x. In the example shown in Fig. 3, the track 50 has 11 sectors, from sector #0 to sector #10.
[0035] The data written to each sector contains an error correction code. The RWC 25 can correct errors in data read from a sector by using the error correction code on a sector-by-sector basis.
[0036] The error correction coding scheme for the sector-based error correction is not limited to a specific scheme. In one example, a low-density parity-check code is applied as the error correction coding scheme for the sector-based error correction.
[0037] The 11 sectors are arranged in the order of sector numbers from the reference position in the write / read direction. In other words, the reference position is the position where the sector with the smallest sector number is located in the track 50. In this specification, the start and end are defined based on the reference position and the write / read direction.
[0038] For example, in the section from when the magnetic head 22 passes the reference position until the next time, i.e., sector #0 to sector #10, the sector that the magnetic head 22 passes first, i.e., sector #0, is referred to as the leading sector. In the section from sector #0 to sector #10, the sector that the magnetic head 22 passes last, i.e., sector #10, is referred to as the last sector.
[0039] The position on a sector where the magnetic head 22 starts to pass is referred to as the beginning of the sector, and the position on a sector where the magnetic head 22 finishes to pass is referred to as the end of the sector.
[0040] The last sector #10 is used as a sector for storing parity. That is, writing in units of track 50 is executed, for example, as follows. First, data is written to sectors #0 to #9 in the order of the sector numbers. Parity generated based on the group of data written to sectors #0 to #9 is written to the last sector #10 of track 50.
[0041] The parity written to sector #10 protects the group of data written to sectors #0 to #9 from errors. In other words, the parity written to sector #10 protects data on a track-by-track basis. Error correction using the parity written to sector #10 is referred to as track-by-track error correction.
[0042] Sectors in which data is stored, such as sectors #0 to #9, are referred to as data sectors. Data written to data sector #x may be referred to as data #x. Data #x is an example of a data segment. Sectors in which parity is stored, such as sector #10, are referred to as parity sectors.
[0043] The error correction coding method for the track-by-track error correction is not limited to a specific method. In one example, parity is generated by performing XOR for each bit position on data #0 to data #9.
[0044] When data is written to one track 50 (referred to as the first track 50), the track 50 adjacent to the first track 50 (the second track 50) is affected by ATI. The effect of ATI on the second track 50 accumulates according to the number of writes to the first track 50. If the effect of ATI on the second track 50 becomes too large, it becomes difficult to read the data stored in the second track 50.
[0045] The controller 30 rewrites data before it becomes difficult to read data from each track 50 due to the effect of ATI.
[0046] The controller 30 estimates the degree of ATI influence on each track 50 using the ATI management information 271, for example.
[0047] FIG. 4 is a schematic diagram showing an example of the data structure of the ATI management information 271 according to the embodiment. The ATI management information 271 is stored in the RAM 27. The ATI management information 271 has a data structure of a table in which an ATI counter is recorded for each track 50. When the controller 30 writes data to a track 50, it increments the ATI counter for a track 50 adjacent to the write destination track 50. The value added in one increment is determined by the designer in any manner. In one example, the closer to the write destination track 50, the larger the increment value. In other words, the AIT counter indicates the degree of influence of the ATI accumulated in the corresponding track 50.
[0048] The controller 30 compares the ATI counter of each track 50 with the guaranteed number of writes as a threshold value. If an ATI counter that exceeds the guaranteed number of writes is found, the controller 30 executes a track-by-track rewrite for the track 50 corresponding to the ATI counter. After the rewrite, the controller 30 resets the ATI counter of the rewritten track 50.
[0049] The guaranteed write count is the number of writes to a target track that guarantees that data on a track adjacent to the target track can be read. In other words, the guaranteed write count is the number of writes for determining the timing of executing a rewrite to a data sector to eliminate adjacent track interference (ATI). The guaranteed write count is adjusted and set in advance during the manufacturing process of the magnetic disk device 1, i.e., before shipment. The guaranteed write count is sometimes called the guaranteed ATI write count.
[0050] The ideal guaranteed number of write attempts depends on the medium characteristics of the magnetic disk 11 and the characteristics of the magnetic head 22, and therefore may differ for each magnetic head 22 and track 50.
[0051] In the comparative example, in the manufacturing process of the magnetic disk device, in order to shorten the lead time, the write guarantee count is adjusted at specific positions of the magnetic disk, for example, at three positions, the inner circumference, the middle circumference, and the outer circumference, and set in the ROM or the like. Then, the rewrite process is performed using the same write guarantee count on the tracks in the three peripheral areas of the inner circumference, the middle circumference, and the outer circumference, where the write guarantee count is set. Therefore, the timing of the rewrite process on the track away from the track where the write guarantee count is adjusted may deviate from the ideal timing. Therefore, in the magnetic disk device of the comparative example, the possibility of ATI failure occurring increases, and as a result, the performance of the magnetic disk device may deteriorate.
[0052] For this reason, in this embodiment, the guaranteed number of writes is adjusted and set at positions other than the specific positions (for example, inner circumference, middle circumference, outer circumference) of the magnetic disk 11 where the guaranteed number of writes was adjusted and set before shipping, during operation of the magnetic disk device 1 after shipping. As a result, in this embodiment, the guaranteed number of writes is adjusted to an optimal value, improving the performance of the magnetic disk device 1.
[0053] Specifically, in this embodiment, the controller 30 executes the process of adjusting the guaranteed number of write attempts by using the invalid parity sector.
[0054] For example, when track-by-track writing is performed on a certain track 50 (referred to as the third track 50), in other words, when sequential writing is performed, all data in the third track 50 is protected by parity. In other words, the parity sector is valid, and protection by parity is effective.
[0055] On the other hand, when the controller 30 overwrites some of the data sectors of the third track 50, that is, when it performs random access writing to the data sectors, all data in the third track 50 is not protected by parity. In other words, the parity sectors become invalid, and the protection by parity becomes invalid. The invalid parity sectors are not used for error correction.
[0056] For this reason, in the magnetic disk device 1 of this embodiment, when a write is performed to a data sector by random access in this manner, i.e., when a write is performed to some of the data sectors, the controller 30 performs an adjustment process of the guaranteed write count using the parity sector that has been invalidated by the write.
[0057] Here, when invalid parity sectors exist consecutively for a predetermined number of tracks in radially adjacent tracks 50, the controller 30 executes an adjustment process for the guaranteed number of write attempts using the invalid parity sectors.
[0058] The adjustment process of the write guarantee count is a process of repeatedly executing the write to the invalid parity sector and the read of the parity sector of the track adjacent to the track having the written parity sector, and determining the write guarantee count based on the number of writes when the parity sector cannot be read. The number of times corresponds to, for example, 1000 to 10000 times, but is not limited thereto.
[0059] Specifically, the controller 30 sets the guaranteed number of writes as, for example, 50% or 20% of the upper limit (limit value) of the number of writes when it becomes impossible to read from the parity sector of the adjacent track. However, the number of writes is not limited to this.
[0060] 5 is a diagram showing an example of a data structure of the parity sector table 273 according to the embodiment. The parity sector table 273 is a table showing the valid / invalid state of the parity sector. The parity sector table 273 is stored in the RAM 27.
[0061] As shown in Fig. 5, the parity sector table 273 has a data structure in which track numbers and parity sector valid / invalid flags are associated with each other. The parity sector valid / invalid flag is a flag indicating whether the parity sector of the track of the track number is valid or invalid, with "0" indicating valid and "1" indicating invalid. In the example of Fig. 5, it can be seen that the track number is 1, and the parity sectors of tracks M to M+3 are invalid. And, the parity sectors of tracks M to M+3 correspond to consecutive invalid parity sectors.
[0062] When writing is performed on a data sector by random access, the controller 30 sets the valid / invalid flag of the parity sector corresponding to the track number of the track where writing is performed to "1" (invalid) in the parity sector table 273. In addition, the controller 30 refers to the parity sector table 273 to search for consecutive invalid parity sectors.
[0063] Then, the controller 30 performs an adjustment process of the guaranteed number of write attempts for tracks in which invalid parity is continuous in all zones. Specifically, the controller 30 performs an adjustment process of the guaranteed number of write attempts for zones in which the adjustment process of the guaranteed number of write attempts has not been performed, that is, for tracks in zones in which the adjustment process of the guaranteed number of write attempts has not been performed, from the outermost zone 0 to the innermost maximum zone.
[0064] 6 is a diagram illustrating an example of a data structure of the guaranteed write count table 275 according to the embodiment. The guaranteed write count table 275 is a table that indicates the guaranteed write count and whether or not the adjustment has been performed for each zone. The guaranteed write count table 275 is stored in the RAM 27.
[0065] As shown in FIG. 6, the guaranteed write count table 275 includes a zone, a guaranteed write count, The adjusted flag is associated with the write guarantee number. The adjusted flag is a flag indicating whether the adjustment process of the write guarantee number has been performed or not, with "1" indicating that it has been performed and "0" indicating that it has not been performed. In the example of FIG. 6, it is indicated that the outer circumferential zones 0, 1, 2, the middle circumferential zones O, O+1, O+2, the inner circumferential zones P+1, P+2, and the maximum zone (Max) have been performed. In addition, in this embodiment, the outer circumferential zones 0, 1, 2, the middle circumferential zones O, O+1, O+2, the inner circumferential zones P+1, P+2, the inner circumferential zones P+1, P+2, and the maximum zone (Max) have already been subjected to the adjustment process of the write guarantee number before shipping. Here, among the multiple tracks belonging to a zone, a zone having a track on which the adjustment process of the write guarantee number has not been performed is regarded as not being performed.
[0066] The controller 30 refers to the guaranteed write count table 275 and performs an adjustment process of the guaranteed write count for zones whose adjustment flag is flagged as "0", indicating that the adjustment process has not been performed. As a result, the adjustment process of the guaranteed write count is performed for tracks in all zones where invalid parity is continuous.
[0067] Next, a process for adjusting the number of write operations performed by the magnetic disk device 1 according to the present embodiment configured as above will be described. 7 and 8 are flowcharts illustrating the procedure of the process for adjusting the guaranteed number of writes according to the embodiment.
[0068] First, before the magnetic disk device 1 is shipped, an adjustment process for the guaranteed write count has already been performed on the tracks in three zones, the outer periphery, the middle periphery, and the inner periphery of the magnetic disk 11, and the guaranteed write count and an adjustment completion flag are set in the guaranteed write count table 275. The guaranteed write count table 275 in FIG. 6 shows the state at the time of shipment.
[0069] 9 is a diagram showing an example of a graph showing the relationship between a number of tracks and the guaranteed number of writes at the time of shipment in an embodiment. The horizontal axis indicates the radial position of the track on the magnetic disk 11, with the left side indicating the outer periphery and the right side indicating the inner periphery. The vertical axis indicates the guaranteed number of writes.
[0070] 9, dotted line 1405 indicates the optimal guaranteed number of writes for each track. Black circles indicate tracks for which the guaranteed number of writes has been adjusted before shipping the magnetic disk device 1, and white circles indicate tracks for which the guaranteed number of writes has not been adjusted before shipping the magnetic disk device 1. Reference numeral 1401 indicates a track for which the guaranteed number of writes has not been adjusted, and reference numeral 1403 indicates a track for which the guaranteed number of writes has not been adjusted.
[0071] As shown in Fig. 9, at the time of shipment, the guaranteed write count is adjusted only for the inner, middle and outer tracks of the magnetic disk 11, and the guaranteed write count for other tracks for which the adjustment of the guaranteed write count has not been performed uses the guaranteed write count of nearby tracks for which the adjustment has been performed. This can also be seen from Fig. 6, which shows the state of the guaranteed write count table 275 at the time of shipment. Also, at the time of shipment, the white circle points match the code 1401 indicating the track for which the adjustment of the guaranteed write count has not been performed, and the black circle points match the code 1403 indicating the track for which the adjustment of the guaranteed write count has been performed.
[0072] Figure 10 is a diagram showing an example of the state of sectors of multiple tracks at the time of shipment in an embodiment. Reference numeral 1001 indicates a data sector, and reference numeral 1101 indicates a parity sector. Note that reference numerals are attached only to some of the data sectors and some of the parity sectors in Figure 10. When the parity sector 1101 is white, it indicates that the parity is valid.
[0073] 7, when the magnetic disk device 1 is operated after shipment, the controller 30 first determines whether or not a random write has occurred to a data sector (S11). If a random write has not occurred (S11: No), the controller 30 enters a state of waiting for the occurrence of a random write.
[0074] When random writing occurs to a data sector (S11: Yes), the controller 30 judges whether a certain time has elapsed since the start of operation (S13). If the certain time has not elapsed, the process returns to S11. Here, when random writing occurs to a data sector, the parity sector of the track having the randomly written data sector becomes invalid. In other words, an invalid parity sector occurs in the track.
[0075] 11 is a diagram showing an example of the state of sectors in multiple tracks when an invalid parity sector occurs in an embodiment. The blackened parity sector 1103 is an invalid parity sector. The white parity sector 1101 is a valid parity sector. When a random write occurs to a data sector 1001, as shown in FIG. 11, the parity sector of the track of the randomly accessed data sector becomes an invalid parity sector 1103.
[0076] 7, if a certain period of time has elapsed since the start of operation in S13 (S13: Yes), the controller 30 determines whether or not a write or read request has been made to any track (S15). If a write or read request has been made to any track (S15: Yes), the process returns to S11.
[0077] If there is no write or read request for any track (S15: No), the controller 30 sets zone 0 as the target zone for the process of adjusting the guaranteed number of writes (S17).
[0078] In this embodiment, the adjustment process is started from zone 0 toward the inner periphery, but the present invention is not limited to this. For example, the controller 30 may be configured to start the adjustment process from the maximum zone toward the outer periphery.
[0079] Then, the controller 30 refers to the adjustment completion flag corresponding to the track number of the track in the target zone in the guaranteed write count table 275, and determines whether or not the adjustment process of the guaranteed write count has been executed for the track in the target zone (S19).
[0080] If all tracks in the target zone have already undergone the adjustment process for the guaranteed number of write attempts (S19: Yes), the controller 30 sets the next zone, i.e., the zone one zone closer to the inner circumference, as the target zone for the adjustment process for the guaranteed number of write attempts (S21). Then, the process returns to S19.
[0081] In S19, if the adjustment process for the guaranteed number of writes has not been performed on any of the tracks in the target zone (S19: No), the valid / invalid flag of the parity sector of the track in the target zone in the parity sector table 273 is referenced to determine whether or not invalid parity sectors exist in succession for a predetermined number of tracks or more (S23).
[0082] Fig. 12 is a diagram showing an example of the state of sectors on multiple tracks when invalid parity sectors occur on more than a predetermined number of tracks in an embodiment. The example of Fig. 12 shows that invalid parity sectors 1103 exist on 11 consecutive tracks. The predetermined number of tracks is determined arbitrarily, and can be set to a value of 2 or more as the predetermined number of tracks, but is not limited to this.
[0083] 7, if there are no invalid parity sectors for a certain number of consecutive tracks or more in S23 (S23: No), the controller 30 sets the next zone, i.e., the zone one zone closer to the inner periphery, as the target zone for the process of adjusting the guaranteed number of write attempts (S21). Then, the process returns to S19.
[0084] In S23, if invalid parity sectors exist for a certain number of consecutive tracks or more (S23: Yes), the controller uses these invalid parity sectors that exist for a certain number of consecutive tracks or more to perform adjustment processing for the guaranteed number of write attempts (S25).
[0085] Next, proceeding to FIG. 8, the controller 30 sets the guaranteed write count determined by the process of adjusting the guaranteed write count to the guaranteed write count corresponding to the track number of the track in the guaranteed write count table 275 (S27).
[0086] 13 is a diagram showing an example of a graph showing the relationship between a number of tracks and the guaranteed number of write attempts in a state where the adjustment process for the guaranteed number of write attempts has been performed once in the embodiment. The horizontal axis indicates the radial position of the track on the magnetic disk 11, with the left side indicating the inner circumference side and the right side indicating the outer circumference side. The vertical axis indicates the guaranteed number of write attempts.
[0087] FIG. 13 shows that as a result of performing the adjustment process for the guaranteed number of write attempts on the track 1401a, the guaranteed number of write attempts on the track 1401a has come close to an ideal guaranteed number of write attempts.
[0088] Returning to Fig. 8, the controller 30 judges whether the current target zone is the maximum zone, i.e., the innermost zone (S29). If the current target zone is not the maximum zone (S29: No), the process proceeds to S21, where the controller 30 sets the next zone, i.e., the zone one step closer to the inner periphery, as the target zone for the process of adjusting the guaranteed number of write attempts (S21). Then, the process returns to S19.
[0089] 14 is a diagram showing an example of a graph showing the relationship between a plurality of tracks and the guaranteed number of write attempts in a state where adjustment processing of the guaranteed number of write attempts is performed on tracks in some zones in an embodiment. The horizontal axis indicates the radial position of the track on the magnetic disk 11, with the left side indicating the inner circumference side and the right side indicating the outer circumference side. The vertical axis indicates the guaranteed number of write attempts.
[0090] In FIG. 14, as a result of performing an adjustment process for the guaranteed number of write attempts on tracks in the outer zone, the guaranteed number of write attempts on tracks in the outer zone, indicated by reference numeral 1401a, has approached the ideal guaranteed number of write attempts.
[0091] Returning to Fig. 8, if the current target zone is the maximum zone in S29 (S29: Yes), the controller 30 judges whether or not all zones have performed the adjustment process for the guaranteed number of writes (S31). If any zone has not performed the adjustment process for the guaranteed number of writes (S31: No), the process returns to S11. On the other hand, if all zones have performed the adjustment process for the guaranteed number of writes (S31: Yes), the process ends.
[0092] 15 is a diagram showing an example of a graph showing the relationship between a plurality of tracks and the guaranteed number of write attempts in a state where the adjustment process for the guaranteed number of write attempts is performed for tracks in all zones in the embodiment. The horizontal axis indicates the radial position of the track on the magnetic disk 11, with the left side indicating the outer periphery and the right side indicating the inner periphery. The vertical axis indicates the guaranteed number of write attempts.
[0093] FIG. 15 shows that, as a result of performing the adjustment process for the guaranteed write count for tracks in all zones, the guaranteed write count for tracks in all zones, as indicated by reference numeral 1401a, has approached the ideal guaranteed write count.
[0094] Thus, in this embodiment, the magnetic disk device 1 includes a magnetic disk 11 having a plurality of tracks, each of which includes a plurality of data sectors in which data segments are stored and a parity sector in which parity for error correction is stored, a magnetic head 22 that performs writing / reading in the write / read direction for each of the plurality of tracks, and a controller 30 that performs an adjustment process of the write guarantee count, which indicates the number of writes to guarantee reading from an adjacent track, using an invalid parity sector. Also, the control method performed in the magnetic disk device of this embodiment performs an adjustment process of the write guarantee count using an invalid parity sector. Here, the adjustment process of the write guarantee count is a process of repeatedly writing to the invalid parity sector and reading the parity sector of the adjacent track, and determining the guarantee count based on the number of writes when it becomes impossible to read from the adjacent parity sector.
[0095] For this reason, in this embodiment, the invalid parity sectors are not used for error correction, and therefore even if such unnecessary parity sectors are written to multiple times, there is little possibility of affecting the operation of the magnetic disk device 1. For this reason, according to this embodiment, the write guarantee number can be performed without any effect by using such invalid parity sectors, and the write guarantee number can be adjusted to an optimal value, thereby making it possible to improve the performance of the magnetic disk device 1.
[0096] Furthermore, in this embodiment, the controller 30 executes an adjustment process of the guaranteed number of writes by using the invalidated parity sectors after the shipment of the magnetic disk device 1. Therefore, according to this embodiment, the guaranteed number of writes can be adjusted at the stage when the magnetic disk device 1 is actually used, so that it is possible to adjust the guaranteed number of writes to a more optimal value and improve the performance of the magnetic disk device 1.
[0097] In addition, in this embodiment, when a data sector is written by random access, the controller 30 executes an adjustment process of the guaranteed number of writes using the parity invalidated by the write. Therefore, according to this embodiment, the invalid parity sector generated by performing random write is not used for error correction, so that even if this invalid parity sector is used, the magnetic disk device 1 is not adversely affected, and the rewrite process can be executed with the optimal number of writes that matches the characteristics of the medium of the magnetic disk and the magnetic head. Therefore, in this embodiment, the influence of the ATI failure due to insufficient rewrite processing can be reduced, and the decrease in processing speed due to excessive rewrite processing can be prevented, and as a result, a magnetic disk device 1 with higher performance can be provided. Furthermore, according to this embodiment, the guaranteed number of writes can be adjusted during the actual operation of the magnetic disk device 1, so there is no need to adjust the guaranteed number of writes for all zones in the manufacturing process of the magnetic disk device, and the lead time can be shortened.
[0098] In addition, in this embodiment, when invalid parity sectors exist consecutively for a predetermined number of tracks in tracks adjacent to each other in the radial direction of the magnetic disk 11, the controller 30 executes an adjustment process of the write guarantee count using the invalid parity sector. Therefore, in this embodiment, even if a parity sector of an adjacent track is affected by writing multiple times to any of the invalid parity sectors existing consecutively for a predetermined number of tracks, the parity sector of the adjacent track existing consecutively is invalid and is not used for error correction, so that the operation of the magnetic disk device 1 is not adversely affected. Therefore, in this embodiment, the write guarantee count is adjusted to a more optimal value, so that the effect of ATI failure due to insufficient rewrite processing can be reduced, and a decrease in processing speed due to excessive rewrite processing can be prevented.
[0099] In this embodiment, the magnetic disk 11 has a plurality of zones each consisting of a plurality of tracks, and the controller 30 executes an adjustment process of the guaranteed number of writes for all the zones using the invalidated parity sectors. Therefore, in this embodiment, the guaranteed number of writes can be adjusted for all the tracks of the magnetic disk 11, and the guaranteed number of writes can be adjusted to a more optimal value, thereby reducing the influence of ATI failures due to insufficient rewrite processes and preventing a decrease in processing speed due to excessive rewrite processes.
[0100] Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and spirit of the invention, and are included in the scope of the invention and its equivalents described in the claims. [Explanation of symbols]
[0101] 1...magnetic disk device, 2...host, 11...magnetic disk, 12...spindle motor, 13...ramp, 15...actuator arm, 21...motor driver IC, 22...magnetic head, 22r...read core, 22w...write core, 23...HDC, 24...head IC, 25...RWC, 26...processor, 27...RAM, 28...FROM, 29...buffer memory, 30...controller, 41...servo area, 42...data area, 50...track, 271...ATI management information, 273...parity sector table, 275...write guarantee count table.
Claims
1. a magnetic disk having a plurality of tracks, each of which has a plurality of first sectors for storing a data segment and a second sector for storing a parity for error correction; a magnetic head for writing / reading to the magnetic disk; a controller that uses the invalid second sector to perform an adjustment process of a guarantee count that indicates the number of writes to guarantee a read from an adjacent track; A magnetic disk device comprising:
2. the controller executes the adjustment process using the invalid second sector after shipping of the magnetic disk device.
2. The magnetic disk drive according to claim 1.
3. when writing is performed on the first sector by random access, the controller executes the adjustment process by using the second sector that has been invalidated by the writing.
3. The magnetic disk drive according to claim 2.
4. the controller executes the adjustment process by using the invalid second sectors when the invalid second sectors exist continuously for a predetermined number of tracks in radially adjacent tracks; 4. The magnetic disk drive according to claim 3.
5. the magnetic disk has a plurality of zones each made up of the plurality of tracks, the controller executes the adjustment process using the invalidated second sector for all zones.
5. The magnetic disk drive according to claim 4.
6. The adjustment process is a process of repeatedly writing to the invalid second sector and reading the second sector of the adjacent track, and determining the guaranteed number of times based on the number of times of writing when the second sector cannot be read.
6. The magnetic disk drive according to claim 1.
7. A control method executed in a magnetic disk device, comprising: The magnetic disk device includes a magnetic disk having a plurality of tracks, each of which has a plurality of first sectors for storing data segments and a second sector for storing parity for error correction; a magnetic head for writing / reading data to / from the magnetic disk; Using the invalid second sector, a process of adjusting the guarantee count indicating the number of writes for guaranteeing a read from the adjacent track is performed. The control method includes:
Citation Information
Patent Citations
Disk storage device and area management method
JP2010152988A
Region-specific directed offline scan for hard disk drive
US11360671B2
Disk drive and write control method therein
US20100188767A1
