Magnetic disk device and control method

By adjusting the write guarantee times of the disk device and using invalid parity sectors to adjust the write guarantee times, the problem of difficulty in data reading caused by adjacent track interference is solved, and the performance and stability of the disk device are improved.

CN118692501APending Publication Date: 2024-09-24KK TOSHIBA +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310757030.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-23
Filing Date
2023-06-26
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing disk devices have difficulty reading data due to adjacent track interference (ATI) when writing to adjacent tracks. It is necessary to rewrite the data after the write guarantee number reaches a certain number to prevent data reading difficulties. However, this process may cause Performance deteriorates.

Method used

By adjusting the number of write guarantees, using invalid parity sectors to adjust the number of write guarantees, and repeatedly performing writing of invalid parity sectors and reading of parity sectors of adjacent tracks, Determine the optimal number of write guarantees to reduce ATI interference.

Benefits of technology

It improves the performance of the disk device, reduces the impact of ATI failures caused by insufficient rewrite processing, prevents the reduction in processing speed caused by excessive rewrite processing, and realizes the adjustment of the number of write guarantees in the actual use stage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118692501A
    Figure CN118692501A
Patent Text Reader

Abstract

The present invention provides a high-performance magnetic disk device and a control method by adjusting the number of write assurance times to an optimal value. A magnetic disk device is provided with: a magnetic disk provided with a plurality of tracks in which a plurality of first sectors in which data segments are stored and a second sector in which parity for error correction is stored are arranged; a magnetic head that performs write / read on the magnetic disk; and a controller that uses the second sector that has become invalid to execute adjustment processing of the number of safeguards indicating the number of writes for safeguarding the reading from the adjacent track.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority based on Japanese Patent Application No. 2023-046719 (filing date: March 23, 2023) as a prior application. The present application incorporates the entire contents of the prior application by reference. Technical Field

[0002] Embodiments of the present invention relate to a magnetic disk device and a control method. Background Art

[0003] Adjacent Track Interference (ATI) is known as one of the effects on adjacent tracks when writing to a disk. The effects of ATI on adjacent tracks accumulate in accordance with the number of writes to a track, and the data on the adjacent tracks will soon become difficult to read. Therefore, before the reading of data on adjacent tracks becomes difficult, when writing exceeds a certain guaranteed number of writes, all data on the adjacent tracks is rewritten. The guaranteed number of writes is pre-adjusted before the disk device is shipped. Summary of the invention

[0004] The embodiments of the present invention adjust the write guarantee times to an optimal value, and provide a high-performance magnetic disk device and a control method.

[0005] The magnetic disk device involved in the implementation method comprises: a magnetic disk, which is provided with multiple tracks, and the multiple tracks are respectively configured with multiple first sectors for storing data segments and second sectors for storing parity checks for error correction; a head, which performs writing / reading on the magnetic disk; and a controller, which uses the second sector that has become invalid to perform adjustment processing of the guarantee number, and the guarantee number represents the number of writes used to ensure reading from adjacent tracks. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] Figure 1 It is a schematic diagram showing an example of the configuration of a magnetic disk device according to an embodiment.

[0007] Figure 2A This is a diagram showing an example of the structure of a magnetic disk according to the embodiment.

[0008] Figure 2B This is a schematic diagram showing an example of partitions in a magnetic disk according to an embodiment.

[0009] Figure 3 It is a schematic diagram showing an example of the structure of one track in the embodiment.

[0010] Figure 4 FIG. 1 is a schematic diagram showing an example of the data structure of ATI management information according to the embodiment.

[0011] Figure 5 It is a diagram showing an example of the data structure of the parity sector table involved in the embodiment.

[0012] Figure 6 1 is a diagram showing an example of the data structure of the write guarantee count table according to the embodiment.

[0013] Figure 7 This is a flowchart showing an example of a procedure for adjusting the guaranteed number of write times according to the embodiment.

[0014] Figure 8 This is a flowchart showing an example of a procedure for adjusting the guaranteed number of write times according to the embodiment.

[0015] Fig. 9 This is a diagram showing an example of a graph showing the relationship between a plurality of tracks and the guaranteed number of writes at the time of shipment in the embodiment.

[0016] Fig.10 This is a diagram showing an example of the status of sectors of multiple tracks at the time of shipment in the embodiment.

[0017] Fig.11 This 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.

[0018] Fig.12 This is a diagram showing an example of the state of sectors in a plurality of tracks when invalid parity sectors exceeding a predetermined number of tracks are generated in the embodiment.

[0019] Fig.13 This is a diagram showing an example of a graph showing the relationship between a plurality of tracks and the guaranteed number of write times in a state where the adjustment process of the guaranteed number of write times is performed once in the embodiment.

[0020] Fig.14 This is a diagram showing an example of a graph showing the relationship between a plurality of tracks and the number of write guarantee times in a state where the adjustment process of the number of write guarantee times is performed on the tracks of the partition on the outer peripheral side in the embodiment.

[0021] Fig.15 This is a diagram showing an example of a graph showing the relationship between a plurality of tracks and the number of write guarantee times in a state where the adjustment process of the number of write guarantee times is performed on the tracks of all partitions in the embodiment. DETAILED DESCRIPTION

[0022] Hereinafter, the magnetic disk device according to the embodiment will be described in detail with reference to the drawings. However, the present invention is not limited to the embodiment.

[0023] (Implementation Method)

[0024] Figure 1 It is a schematic diagram showing an example of the configuration of the magnetic disk device 1 according to the embodiment.

[0025] The magnetic disk device 1 is connected to a host computer 2. The magnetic disk device 1 can receive access commands such as a write command and a read command from the host computer 2.

[0026] The magnetic disk device 1 includes a magnetic disk 11 having a magnetic layer formed on the surface thereof. The magnetic disk device 1 writes data to the magnetic disk 11 and reads data from the magnetic disk 11 in accordance with an access command.

[0027] Data is written and read via a magnetic head 22. 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 FROM (Flash Read Only Memory) 28, and a buffer memory 29 in addition to the magnetic disk 11.

[0028] The magnetic disk 11 is rotated at a predetermined rotation speed by a coaxially mounted spindle motor 12 . The spindle motor 12 is driven by a motor driver IC 21 .

[0029] The processor 26 controls the rotation of the spindle motor 12 and the rotation of the VCM 16 via the motor driver IC 21 .

[0030] The magnetic head 22 writes and reads information to and from the magnetic disk 11 through the write core 22w and the read core 22r it has. In addition, the magnetic head 22 is mounted on the front end of the actuator arm 15. The magnetic head 22 moves in the radial direction of the magnetic disk 11 through the VCM 16. In addition, either one of the write core 22w and the read core 22r of the magnetic head 22 or both of them can also be provided with a plurality of them with respect to a single magnetic head 22.

[0031] When the rotation of the magnetic disk 11 stops, the magnetic head 22 moves onto the ramp 13. The ramp 13 is configured to hold the magnetic head 22 at a position away from the magnetic disk 11.

[0032] In the read operation, the head IC 24 amplifies the signal read by the magnetic head 22 from the magnetic disk 11, outputs it, and supplies it to the RWC 25. In the write operation, the head IC 24 amplifies the signal corresponding to the write target data supplied from the RWC 25, and supplies it to the magnetic head 22.

[0033] The HDC 23 controls data transmission and reception with the host computer 2 via the I / F bus, controls the buffer memory 29 , and the like.

[0034] The buffer memory 29 is used as a buffer for data transmitted and received with 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.

[0035] 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 can be composed of, for example, DRAM (Dynamic Random Access Memory), SRAM (Static Random Access Memory), or a combination of these. In addition, the buffer memory 29 can also be composed of any non-volatile memory.

[0036] RWC25 modulates the write target data supplied from HDC23 by error correction coding and the like, and supplies the modulated data to head IC24. RWC25 also demodulates the signal read from magnetic disk 11 and supplied from head IC24, including error correction processing, and outputs the demodulated signal to HDC23 as digital data.

[0037] The processor 26 is, for example, a CPU (Central Processing Unit). The processor 26 is connected to a RAM 27 , a FROM (Flash Read Only Memory) 28 , and a buffer memory 29 .

[0038] The FROM 28 is a nonvolatile memory. The FROM 28 stores firmware (program data) and various operating parameters. The firmware may also be stored in the magnetic disk 11 .

[0039] The RAM 27 is composed of, for example, a DRAM, an SRAM, or a combination of these. The RAM 27 is used as a memory for operation by the processor 26. The RAM 27 is used as an area for loading firmware and an area for temporarily storing various management data.

[0040] The processor 26 controls the entire magnetic disk device 1 according to the firmware stored in the FROM 28 or the magnetic disk 11. For example, the processor 26 loads the firmware from the FROM 28 or the magnetic disk 11 to the RAM 27, and controls the motor driver IC 21, the head IC 24, the RWC 25, the HDC 23, etc. according to the loaded firmware.

[0041] The configuration including the HDC 23, the RWC 25, and the processor 26 can also be regarded as the controller 30 that controls the operation of the magnetic disk device 1. The controller 30 may include other elements (for example, the RAM 27, the FROM 28, or the buffer memory 29) in addition to these.

[0042] In addition, the firmware program may be stored in the magnetic disk 11. In addition, part or all of the functions of the processor 26 may be implemented by a hardware circuit such as an FPGA (Field-Programmable Gate Array) or an ASIC (Application Specific Integrated Circuit).

[0043] In addition, the number of magnetic disks 11 provided in the magnetic disk device 1 is not limited to one. In addition, 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. In addition, when the magnetic disk device 1 has a plurality of magnetic heads 22, the plurality of magnetic heads 22 may be moved integrally or may constitute a plurality of groups that can be moved independently.

[0044] Figure 2A 1 is a diagram showing an example of the structure of the magnetic disk 11 according to the embodiment. Servo data used for positioning the magnetic head 22 is written in the magnetic layer formed on the surface of the magnetic disk 11 by, for example, a servo writer or self servo writing (SSW).

[0045] exist Figure 2A 1 shows a servo area 41 arranged radially as an example of the arrangement of the servo area in which the servo data is written. In the circumferential direction, a data area 42 in which data can be written is set between two servo areas 41. A plurality of concentric tracks 50 are arranged in the radial direction of the magnetic disk 11. On the tracks 50, a plurality of sectors are arranged in the data area 42 in which data of a predetermined size (sector size) is written.

[0046] 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 disk 11, that is, a track number, and an ID for identifying each servo sector (that is, a servo area 41) on the track 50, that is, a servo sector number. The burst pattern is data used to detect the position deviation amount from the center of the track represented by the track number included in the Gray code. The track number included in the Gray code is provided as an integer value, for example, and by demodulating the burst pattern, the offset below the decimal point based on the position represented by the track number can be obtained. That is, by demodulating the burst pattern, the current position of the head 22 in the radial direction is obtained. The post code is data used to correct the position deviation of the shape of the track 50 specified by the Gray code and the burst pattern from the ideal shape of the track 50.

[0047] When writing data to or reading data from the magnetic disk 11 , the controller 30 performs positioning of the magnetic head 22 , that is, seek control and tracking control, based on servo data read by the magnetic head 22 from the servo area 41 .

[0048] Figure 2B 1 is a schematic diagram showing an example of a zone in the magnetic disk 11 of the embodiment. In the embodiment, zones including a plurality of tracks 50 are set on concentric circles. The outermost zone is zone 0, and the zone numbers increase as they go toward the inner circumference. The innermost zone is called the largest zone.

[0049] Figure 3 1 is a schematic diagram showing an example of the structure of a track 50 of an embodiment. In this figure, the servo area 41 is omitted. In addition, the write / read direction is illustrated in this figure. The write / read direction is the direction in which the magnetic head 22 moves relative to the track 50 by the rotation of the magnetic disk 11. The magnetic head 22 writes data or reads data to each track 50 in the write / read direction.

[0050] Each sector provided in the track 50 is identified by a sector number. A sector having a sector number x is recorded as sector #x. Figure 3 In the example shown, track 50 has 11 sectors from sector #0 to sector #10.

[0051] The data written in each sector includes an error correction code. The RWC 25 can perform sector-based error correction on the data read from one sector using the error correction code.

[0052] The error correction coding method for error correction in sector units is not limited to a specific method. In one example, as the error correction coding method for error correction in sector units, a low-density parity-check code is applied.

[0053] The 11 sectors are arranged in the writing / reading direction in the order of sector numbers from the reference position. In other words, the reference position is the position where the sector with the smallest sector number is arranged in the track 50. In this specification, the beginning and the end are defined based on the reference position and the writing / reading direction.

[0054] For example, regarding the interval from when the magnetic head 22 passes the reference position to when it passes the reference position next time, i.e., sector #0 to sector #10, the sector that the magnetic head 22 passes first, i.e., sector #0, is recorded as the leading sector. Regarding sectors #0 to sector #10, the sector that the magnetic head 22 passes last, i.e., sector #10, is recorded as the trailing sector.

[0055] In addition, the position on the sector where the magnetic head 22 starts to pass is recorded as the head of the sector, and the position on the sector where the magnetic head 22 ends to pass is recorded as the end of the sector.

[0056] The sector #10 at the end is used as a sector for storing parity. That is, for example, writing of the unit of track 50 is performed as follows. First, data is written in the order of sector numbers in sectors #0 to #9. Parity generated based on the data group written in sectors #0 to #9 is written to sector #10 at the end of track 50.

[0057] The parity written in sector #10 protects the data group written in sectors #0 to #9 from errors. That is, the parity written in sector #10 protects data in units of tracks. Error correction using the parity written in sector #10 is recorded as error correction in units of tracks.

[0058] Sectors storing data such as sectors #0 to #9 are recorded as data sectors. Data written in data sector #x is sometimes recorded as data #x. Data #x is an example of a data segment. Sectors storing parity such as sector #10 are recorded as parity sectors.

[0059] The method of error correction coding for error correction in units of tracks is not limited to a specific method. In one example, parity is generated by performing XOR (exclusive OR) of each bit position on data #0 to data #9.

[0060] When data is written to one track 50 (recorded as the first track 50), the track 50 (the second track 50) adjacent to the first track 50 is affected by ATI. The influence of ATI on the second track 50 accumulates according to the number of writes to the first track 50. When the influence of ATI on the second track 50 is too great, it becomes difficult to read the data stored in the second track 50.

[0061] The controller 30 rewrites the data before reading the data becomes difficult in each track 50 due to the influence of ATI.

[0062] The controller 30 estimates the degree of influence of ATI on each track 50 by using the ATI management information 271 , for example.

[0063] Figure 4 2 is a schematic diagram showing an example of the data structure of the ATI management information 271 according to the embodiment.

[0064] 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 the ATI counter is recorded for each track 50. When the controller 30 writes data to the track 50, it increases the ATI counter associated with the track 50 near the track 50 of the write destination. The value to be added by one addition is determined by the designer in an arbitrary method. In one example, the closer the track 50 to the write destination, the larger the value is. That is, the AIT counter indicates the degree of influence of the ATI accumulated in the corresponding track 50.

[0065] The controller 30 compares the ATI counter of each track 50 with the write guarantee number of times as a threshold. If an ATI counter is found to exceed the write guarantee number of times, the controller 30 rewrites the track 50 corresponding to the ATI counter in units of tracks. After rewriting, the controller 30 resets the ATI counter of the rewritten track 50.

[0066] The write guarantee number is the number of writes to the target track to ensure that data of the track adjacent to the target track can be read. In other words, the write guarantee number is the number of writes used to determine the timing of rewriting the data sector to eliminate adjacent track interference (ATI). The write guarantee number is pre-adjusted and set in the manufacturing process of the magnetic disk device 1, that is, before shipment. The write guarantee number is sometimes also called the ATI write guarantee number.

[0067] The ideal guaranteed number of writes 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 each track 50 .

[0068] In the comparative example, in order to shorten the reading time, the write guarantee times are adjusted at specific positions of the disk, such as the inner circumference, the middle circumference, and the outer circumference, and are set in the ROM, etc. In addition, the tracks around the inner circumference, the middle circumference, and the outer circumference where the write guarantee times are set are rewritten using the same write guarantee times. Therefore, the timing of the rewrite process in the tracks away from the tracks where the write guarantee times are adjusted may deviate from the ideal timing. Therefore, in the magnetic disk device of the comparative example, the possibility of ATI failure becomes higher, and as a result, the performance of the magnetic disk device may deteriorate.

[0069] Therefore, in this embodiment, at positions other than the specific positions (e.g., inner circumference, middle circumference, outer circumference) of the magnetic disk 11 where the write guarantee number of times is adjusted and set before shipment, the write guarantee number of times is adjusted and set when the magnetic disk device 1 is in operation after shipment. Thus, in this embodiment, the write guarantee number of times is adjusted to the optimal value, thereby improving the performance of the magnetic disk device 1.

[0070] Specifically, in the present embodiment, the controller 30 uses the invalidated parity sector to perform the adjustment process of the guaranteed number of write times.

[0071] For example, when a track 50 (recorded as the third track 50) is written in units of tracks, in other words, when sequential writing is performed, the third track 50 becomes a state where all data is protected by parity. That is, the parity sector is valid, and protection based on the parity becomes valid.

[0072] On the other hand, when the controller 30 overwrites a part of the data sectors of the third track 50, that is, writes the data sectors based on random access, the third track 50 becomes a state where all data is not protected by parity. In other words, the parity sectors become invalid, and the protection based on the parity becomes invalid. The invalid parity sectors are not used for error correction.

[0073] Therefore, in the magnetic disk device 1 of this embodiment, when data sectors are written by random access, that is, when part of data sectors are written, the controller 30 uses the parity sectors that have become invalid due to the writing to perform adjustment processing of the guaranteed number of writes.

[0074] Here, when invalid parity sectors exist continuously for a predetermined number of tracks in radially adjacent tracks 50 , the controller 30 performs adjustment processing of the guaranteed number of writes using the invalid parity sectors.

[0075] The write guarantee number adjustment process refers to the following process: repeatedly performing writing to the invalid parity sector and reading the parity sector of the track adjacent to the track having the written parity sector, and determining the write guarantee number based on the number of writes when reading from the parity sector becomes impossible. The multiple times include, for example, 1000 to 10000 times, but are not limited to this.

[0076] Specifically, as an example, the controller 30 sets the guaranteed number of writes to 50% or 20% of the upper limit (limit value) of the number of writes when reading from the parity sector of the adjacent track is impossible. However, the present invention is not limited to this.

[0077] Figure 5 2 is a diagram showing an example of the data structure of the parity sector table 273 according to the embodiment. The parity sector table 273 is a table showing the valid or invalid state of the parity sector. The parity sector table 273 is stored in the RAM 27 .

[0078] like Figure 5 As shown, the parity sector table 273 is a data structure that associates the track number and the parity sector valid / invalid flag. The parity sector valid / invalid flag is a flag indicating whether the parity sector of the track with the track number is valid or invalid, "0" indicates valid, and "1" indicates invalid. Figure 5 In the example of , it can be seen that the parity sectors of the tracks numbered 1, M to M+3 are invalid. Furthermore, the parity sectors of the tracks M to M+3 are parity sectors that have become invalid consecutively.

[0079] When the controller 30 writes data sectors by random access, the controller 30 sets the valid / invalid flag of the parity sector corresponding to the track number of the track to which the data is written to "1" (invalid) in the parity sector table 273. In addition, the controller 30 refers to the parity sector table 273 to search for parity sectors that have become invalid continuously.

[0080] Furthermore, the controller 30 performs the adjustment process of the write guarantee times on the tracks with invalid parity checks in all the partitions. Specifically, the controller 30 performs the adjustment process of the write guarantee times on the partitions from the outermost partition 0 to the innermost maximum partition where the write guarantee times adjustment process has not been performed, that is, the tracks of the partitions where there are tracks that have not been performed.

[0081] Figure 62 is a diagram showing an example of the data structure of the write guarantee count table 275 according to the embodiment. The write guarantee count table 275 is a table showing the write guarantee count and whether the adjustment of the write guarantee count has been completed for each partition. The write guarantee count table 275 is stored in the RAM 27 .

[0082] like Figure 6 As shown, the write guarantee number table 275 associates the partition, the write guarantee number, and the adjustment completion flag. The adjustment completion flag is a flag indicating whether the adjustment process of the write guarantee number has been completed. "1" indicates that it has been completed, and "0" indicates that it has not been implemented. Figure 6 In the example, it is shown that the outer partitions 0, 1, 2, the middle partitions O, O+1, O+2, the inner partitions P+1, P+2, and the maximum partition (Max) are implemented. In addition, in this embodiment, before shipment, the outer partitions 0, 1, 2, the middle partitions O, O+1, O+2, the inner partitions P+1, P+2, the inner partitions P+1, P+2, and the maximum partition (Max) have been adjusted for the number of write guarantees. Here, among the multiple tracks belonging to the partition, the partitions of the tracks that have not been adjusted for the number of write guarantees are set as not implemented.

[0083] The controller 30 refers to the write guarantee count table 275 and performs the write guarantee count adjustment process on the partition whose adjustment completion flag indicates "0" which is not implemented. As a result, the write guarantee count adjustment process is performed on the invalid parity continuous tracks of all partitions.

[0084] Next, a description will be given of a process for adjusting the number of writes of the magnetic disk device 1 according to the present embodiment configured as described above.

[0085] Figure 7 , Figure 8 This is a flowchart showing the procedure of the adjustment process of the guaranteed number of write times according to the embodiment.

[0086] First, before the magnetic disk device 1 is shipped, the write guarantee number adjustment process has been performed in the partitioned tracks of the three parts of the outer periphery, middle periphery, and inner periphery of the magnetic disk 11, and the write guarantee number and adjustment completion flag have been set in the write guarantee number table 275. Figure 6 The guaranteed write count table 275 indicates the status at the time of shipment.

[0087] Fig. 9 This is an example of a graph showing the relationship between multiple tracks and the guaranteed write times at the time of shipment in the embodiment. The horizontal axis is the radial position of the magnetic disk 11 of the track, the left side represents the outer circumference, and the right side represents the inner circumference. The vertical axis represents the guaranteed write times.

[0088] exist Fig. 9 In the curve graph, dotted line 1405 indicates the optimal write guarantee times for each track. Black circles are tracks for which the write guarantee times have been adjusted before the magnetic disk device 1 is shipped, and white circles are tracks for which the write guarantee times have not been adjusted before the magnetic disk device 1 is shipped. Reference numeral 1401 indicates a track for which the write guarantee times have not been adjusted, and reference numeral 1403 indicates a track for which the write guarantee times have not been adjusted.

[0089] like Fig. 9 As shown, at the time of shipment, only the inner, middle, and outer tracks of the disk 11 have had their write guarantee times adjusted, and the write guarantee times of other tracks that have not had their write guarantee times adjusted directly use the write guarantee times of nearby tracks that have already had their write guarantee times adjusted. This is based on the state of the write guarantee times table 275 that indicates the time of shipment. Figure 6 Also, at the time of shipment, the number 1401 indicating that the adjustment of the guaranteed number of write times has not been performed matches the white circle, and the number 1403 indicating that the adjustment of the guaranteed number of write times has been performed matches the black circle.

[0090] Fig.10 1 is a diagram showing an example of the state of sectors of multiple tracks at the time of shipment in the embodiment. Reference numeral 1001 denotes a data sector, and reference numeral 1101 denotes a parity sector. Fig.10 In the diagram, only some data sectors and some parity sectors are labeled. When the parity sector 1101 is white, it means that the parity is valid.

[0091] return Figure 7 When the magnetic disk device 1 is operated after shipment, the controller 30 first determines whether random writing has occurred to the data sector (S11). If random writing has not occurred (S11: No), the controller 30 enters a state of waiting for random writing to occur.

[0092] When random writing occurs to the data sector (S11: Yes), the controller 30 determines whether a certain time has passed since the start of the operation (S13). And, when the certain time has not passed, the process returns to S11. Here, when random writing occurs to the data sector, the parity sector of the track having the data sector to which random writing is performed becomes invalid. In other words, an invalid parity sector is generated in the track.

[0093] Fig.111 is a diagram showing an example of the state of sectors of multiple tracks when an invalid parity sector is generated in the embodiment. The parity sector 1103 painted black is an invalid parity sector. The parity sector 1101 painted white is a valid parity sector. When random writing is generated to the data sector 1001, as shown in FIG. Fig.11 As shown, the parity sector of the track of the data sector that is randomly accessed becomes an invalid parity sector 1103.

[0094] return Figure 7 In S13, if a certain time has passed since the start of the operation (S13: Yes), the controller 30 determines whether there is a request for writing or reading for any track (S15). If there is a request for writing or reading for any track (S15: Yes), the process returns to S11.

[0095] When there is no request for writing or reading to any track ( S15 : No), the controller 30 sets the partition 0 as the partition to be processed for adjusting the guaranteed number of write times ( S17 ).

[0096] In addition, in the present embodiment, the adjustment process is started from the partition 0 toward the inner circumference, but the present invention is not limited to this. For example, the controller 30 may be configured to start the adjustment process from the largest partition toward the outer circumference.

[0097] Then, the controller 30 refers to the adjustment completion flag corresponding to the track number of the target partition in the write guarantee count table 275 to determine whether the adjustment process of the write guarantee count has been completed for the track of the target partition (S19).

[0098] When the write guarantee number adjustment process has been completed for all tracks of the target partition (S19: Yes), the controller 30 sets the next partition, ie, one inner partition, as the target partition for the write guarantee number adjustment process (S21). Then, the process returns to S19.

[0099] In S19, when any track of the object partition has not completed the adjustment process of the write guarantee number (S19: No), refer to the valid and invalid flags of the parity sectors of the tracks of the object partition in the parity sector table 273 to determine whether there are invalid parity sectors for more than a predetermined number of consecutive tracks (S23).

[0100] Fig.12 FIG. 1 is a diagram showing an example of the state of sectors of a plurality of tracks when invalid parity sectors exceeding a predetermined number of tracks are generated in the embodiment. Fig.12In the example of FIG. 1 , invalid parity sectors 1103 are shown to exist continuously for 11 tracks. The predetermined number of tracks is determined arbitrarily, and a value of 2 or more may be determined as the predetermined number of tracks, but the present invention is not limited thereto.

[0101] return Figure 7 In S23, if invalid parity sectors do not exist for more than a certain number of consecutive tracks (S23: No), the controller 30 sets the next partition, that is, an inner partition, as the partition to be processed for adjusting the guaranteed number of writes (S21). Then, the process returns to S19.

[0102] In S23, when invalid parity sectors exist for more than a certain number of tracks continuously (S23: Yes), the controller performs adjustment processing of the guaranteed number of writes using the invalid parity sectors that exist for more than a certain number of tracks continuously (S25).

[0103] Next, enter Figure 8 The controller 30 sets the write guarantee number of times determined by the write guarantee number adjustment process as the write guarantee number of times corresponding to the track number of the track in the write guarantee number table 275 (S27).

[0104] Fig.13 This is an example of a graph showing the relationship between a plurality of tracks and the write guarantee number of times when the write guarantee number adjustment process is performed in the embodiment. The horizontal axis is the radial position of the magnetic disk 11 of the track, the left side represents the inner circumference side, and the right side represents the outer circumference side. The vertical axis represents the write guarantee number of times.

[0105] exist Fig.13 3 shows the result of performing the adjustment process of the write guarantee number on the track labeled 1401a. The write guarantee number of the track labeled 1401a is close to the ideal write guarantee number.

[0106] return Figure 8 , the controller 30 determines whether the current target partition is the largest partition, that is, the innermost partition (S29). And, if the current target partition is not the largest partition (S29: No), the process goes to S21, and the controller 30 sets the next partition, that is, an inner partition, as the partition for the adjustment process of the write guarantee number (S21). Then, the process returns to S19.

[0107] Fig.14 This is a diagram showing an example of a graph of the relationship between a plurality of tracks and the write guarantee number of times when the write guarantee number of times adjustment processing is performed on the tracks of a part of the partitions in the embodiment. The horizontal axis is the radial position of the magnetic disk 11 of the track, the left side represents the inner circumference side, and the right side represents the outer circumference side. The vertical axis represents the write guarantee number of times.

[0108] exist Fig.14 3 shows the result of adjusting the write guarantee number of tracks of the partition on the outer peripheral side. The write guarantee number of tracks of the partition on the outer peripheral side indicated by reference numeral 1401a is close to the ideal write guarantee number of tracks.

[0109] return Figure 8 In S29, if the current target partition is the largest partition (S29: Yes), the controller 30 determines whether all partitions have completed the adjustment process of the write guarantee number (S31). If any partition has not completed the adjustment process of the write guarantee number (S31: No), the process returns to S11. On the other hand, if all partitions have completed the adjustment process of the write guarantee number (S31: Yes), the process ends.

[0110] Fig.15 This is a diagram showing an example of a graph of the relationship between a plurality of tracks and the write guarantee number of times when the write guarantee number adjustment process is performed on the tracks of all partitions in the embodiment. The horizontal axis is the radial position of the magnetic disk 11 of the track, the left side represents the outer circumference side, and the right side represents the inner circumference side. The vertical axis represents the write guarantee number of times.

[0111] exist Fig.15 2 shows the result of adjusting the write guarantee number of tracks of all partitions. The write guarantee number of tracks of all partitions represented by label 1401a is close to the ideal write guarantee number.

[0112] Thus, in the present embodiment, the magnetic disk device 1 comprises: a magnetic disk 11, which is provided with a plurality of tracks, each of which is provided with a plurality of data sectors storing data segments and a parity sector storing parity for error correction; a magnetic head 22, which performs writing / reading on each of the plurality of tracks in the writing / reading direction; and a controller 30, which uses the parity sector that has become invalid to perform an adjustment process of the write guarantee number, wherein the write guarantee number indicates the number of writes for guaranteeing reading from adjacent tracks. In addition, the control method performed in the magnetic disk device of the present embodiment uses the parity sector that has become invalid to perform the adjustment process of the above-mentioned write guarantee number. Here, the adjustment process of the write guarantee number is a process as follows: repeatedly writing to the parity sector that has become invalid and reading of the parity sector of the adjacent track, and determining the guarantee number based on the number of writes when it becomes impossible to read from the adjacent parity sector.

[0113] Therefore, in the present embodiment, since the invalid parity sector is not used for error correction, even if such unnecessary parity sectors are written multiple times, there is little possibility of affecting the operation of the magnetic disk device 1. Therefore, according to the present embodiment, such invalid parity sectors can be used to adjust the write guarantee number of times without any influence, and the write guarantee number of times can be adjusted to the optimal value, so that the magnetic disk device 1 has high performance.

[0114] In addition, in the present embodiment, the controller 30 uses the invalid parity sector to perform the adjustment process of the write guarantee number after the shipment of the magnetic disk device 1. Therefore, according to the present embodiment, the write guarantee number can be adjusted in the stage where the magnetic disk device 1 is actually used, so that the write guarantee number can be further adjusted to the optimal value, so that the magnetic disk device 1 has higher performance.

[0115] In addition, in the present embodiment, when the data sector is written by random access, the controller 30 uses the parity that has become invalid due to the writing to perform the adjustment process of the write guarantee number. Therefore, according to the present embodiment, since the invalid parity sector generated by random writing is not conducive to error correction, even if the invalid parity sector is used, there is no adverse effect on the magnetic disk device 1, and the rewrite process can be performed with the optimal number of writes that conforms to the characteristics of the medium and the head of the magnetic disk. Therefore, in the present embodiment, the influence of ATI failure caused by insufficient rewrite processing can be reduced, and the reduction of processing speed caused by excessive rewrite processing can be prevented, and as a result, a higher performance magnetic disk device 1 can be provided. In addition, according to the present embodiment, the write guarantee number can be adjusted during the actual operation of the magnetic disk device 1, so that the read time can be shortened without adjusting the write guarantee number for all partitions in the manufacturing process of the magnetic disk device.

[0116] In addition, in the present embodiment, when a predetermined number of invalid parity sectors exist continuously in radially adjacent tracks of the magnetic disk 11, the controller 30 uses the invalid parity sectors to perform adjustment processing of the write guarantee times. Therefore, in the present embodiment, even if multiple writes are performed to any of the invalid parity sectors that exist continuously for a predetermined number of tracks and the writes affect the parity sectors of the adjacent tracks, since the parity sectors of the consecutive adjacent tracks are invalid and are not used for error correction, there will be no adverse effect on the operation of the magnetic disk device 1. Therefore, in the present embodiment, the write guarantee times can be further adjusted to the optimal value, reducing the impact of ATI failures caused by insufficient rewrite processing, and preventing a reduction in processing speed caused by excessive rewrite processing.

[0117] In addition, in the present embodiment, the disk 11 has a plurality of partitions each consisting of a plurality of tracks, and the controller 30 uses the invalid parity sectors to perform the adjustment process of the write guarantee times for all the partitions. Therefore, in the present embodiment, the write guarantee times can be adjusted for all the tracks of the disk 11, and the write guarantee times can be further adjusted to an optimal value, thereby reducing the influence of the ATI failure caused by insufficient rewrite processing, and preventing the reduction of the processing speed caused by excessive rewrite processing.

[0118] Several embodiments have been described, but these embodiments are presented as examples and are not intended to limit the scope of the invention. These new embodiments can be implemented in various other ways, and various omissions, substitutions, and changes can be made without departing from the scope of the purpose of the invention. These embodiments and their variations are included in the scope and purpose of the invention, and are included in the invention described in the claims and their equivalents.

Claims

1. A magnetic disk device comprising: A magnetic disk having a plurality of tracks, wherein the plurality of tracks are respectively configured with a plurality of first sectors storing data segments and a second sector storing parity for error correction; a magnetic head that performs writing / reading on the magnetic disk; and The controller, which uses the second sector that has become invalid, performs adjustment processing of the guarantee number indicating the number of writes for guaranteeing reading from the adjacent track.

2. The magnetic disk device according to claim 1, After the magnetic disk device is shipped, the controller executes the adjustment process using the invalid second sector.

3. The magnetic disk device according to claim 2, When writing is performed on the first sector by random access, the controller executes the adjustment process using the second sector that has become invalid due to the writing.

4. The magnetic disk device according to claim 3, When a predetermined number of tracks of the invalid second sectors are continuously present in radially adjacent tracks, the controller executes the adjustment process using the invalid second sectors.

5. The magnetic disk device according to claim 4, The disk has a plurality of partitions respectively constituted by the plurality of tracks, The controller performs the adjustment process on all partitions using the second sector that has become invalid.

6. The magnetic disk device according to claim 1, The adjustment process is a process of repeatedly performing 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 writing occurs when reading becomes impossible.

7. A control method, which is a control method executed in a magnetic disk device, The magnetic disk device comprises: A magnetic disk having a plurality of tracks, wherein the plurality of tracks are respectively configured with a plurality of first sectors storing data segments and a second sector storing parity for error correction; and a magnetic head, which performs writing / reading on the magnetic disk, The control method include: Using the invalid second sector, an adjustment process of the guarantee number indicating the number of writes for guaranteeing reading from adjacent tracks is performed.

8. The control method according to claim 7, Execute the adjustment process include: After the magnetic disk device is shipped, the adjustment process is performed using the invalid second sector.

9. The control method according to claim 8, Execute the adjustment process include: When writing is performed on the first sector by random access, the adjustment process is performed using the second sector that has become invalid due to the writing.

10. The control method according to claim 9, Execute the adjustment process include: When a predetermined number of tracks of the invalid second sectors are continuously present in radially adjacent tracks, the adjustment process is performed using the invalid second sectors.

11. The control method according to claim 10, The disk has a plurality of partitions respectively constituted by the plurality of tracks, Execute the adjustment process include: The adjustment process is performed on all partitions using the second sector that has become invalid.

12. The control method according to claim 7, The adjustment process is performed by repeating 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 writing occurs when reading becomes impossible.