Magnetic disk device

The magnetic disk device addresses ATI by estimating block interference and prohibiting writes to affected areas, ensuring data readability and maintaining performance.

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

Patent Information

Application Number
JP2023033560
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-06
Publication Date
2024-09-19
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Magnetic disk devices experience Adjacent Track Interference (ATI) that leads to data becoming difficult to read from adjacent tracks due to frequent writes, necessitating costly and performance-degrading ATI refresh operations.

Method used

A magnetic disk device with a controller that estimates ATI influence on blocks, sets specific blocks as unwritable when the influence reaches a threshold, and copies data to other available blocks, eliminating the need for ATI refresh operations.

Benefits of technology

Prevents data read difficulties by stopping ATI accumulation without requiring ATI refresh, thus maintaining write performance and data integrity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024125624000001
    Figure 2024125624000001
Patent Text Reader

Abstract

To provide a magnetic disk device that suppresses execution of rewrites according to ATI in a cache area on a magnetic disk.SOLUTION: A first area having a plurality of blocks and a second area designated by a host as a written destination are provided on a magnetic disk. A first memory is a volatile memory that receives write data received from the host. A controller estimates a degree of ATI influence for each of the plurality of blocks and sets a first block having a degree of ATI influence reaching a first threshold and two adjacent blocks to be unwritable. The controller selects one of one or more blocks that are not set to be unwritable and have free space among the plurality of blocks and stores a copy of the write data in the first memory in the selected one block during at least a period until the write data is written to the second area.SELECTED DRAWING: Figure 13
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present embodiment relates to a magnetic disk device. [Background technology]

[0002] Conventionally, there are magnetic disk drives that have a cache area on the magnetic disk, and in such magnetic disk drives, data that is requested to be written by a host can be temporarily stored in the cache area.

[0003] Adjacent Track Interference (ATI) is known as one of the effects on adjacent tracks when writing to a magnetic disk. Depending on the number of writes to one track, the effect of ATI on adjacent tracks accumulates, and it eventually becomes difficult to read the data on the adjacent tracks. Therefore, before it becomes difficult to read the data on the adjacent tracks, all data is rewritten to the adjacent tracks. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] U.S. Pat. No. 1,086,0490 Summary of the Invention [Problem to be solved by the invention]

[0005] An object of one embodiment is to provide a magnetic disk device that suppresses execution of rewrites in a cache area on a magnetic disk according to an ATI. [Means for solving the problem]

[0006] According to one embodiment, a magnetic disk device includes a magnetic disk, a first memory, a magnetic head, and a controller. The magnetic disk includes a first area including a plurality of blocks, and a second area designated by a host as a write destination. The first memory is a volatile memory that receives write data received from the host. The magnetic head writes data to and reads data from the magnetic disk. The controller estimates the degree of influence of ATI (Adjacent Track Interference) for each of the plurality of blocks. The controller sets a first block, among the plurality of blocks, in which the degree of influence of ATI has reached a first threshold value, and two blocks adjacent to the first block among the plurality of blocks, as unwriteable. The controller selects one of the one or more blocks among the plurality of blocks that are not set as unwriteable and have free space, and stores a copy of the write data in the first memory in the selected one block for at least a period until the write data is written to the second area. [Brief description of the drawings]

[0007] [Figure 1] FIG. 1 is a schematic diagram showing an example of the configuration of a magnetic disk device according to an embodiment. [Diagram 2] FIG. 2 is a diagram illustrating an example of a configuration of a magnetic disk according to the embodiment. [Diagram 3] FIG. 3 is a diagram showing an example of a plurality of areas arranged in the radial direction of the recording surface of the magnetic disk according to the embodiment. [Figure 4] FIG. 4 is a schematic diagram illustrating an example of a configuration of a memory included in the magnetic disk device of the embodiment. [Diagram 5] FIG. 5 is a schematic diagram for explaining an example of a plurality of blocks provided in each media cache area according to the embodiment. [Figure 6] FIG. 6 is a schematic diagram illustrating an example of a data structure of the ATI management table according to the embodiment. [Figure 7]FIG. 7 is a flowchart illustrating an example of an operation of the magnetic disk device according to the embodiment in response to reception of write data. [Figure 8] FIG. 8 is a flowchart showing an example of an operation related to the PLP function of the magnetic disk device of the embodiment. [Figure 9] FIG. 9 is a flowchart showing an example of an operation of writing temporarily stored data in a buffer area to an LBA area in the magnetic disk device of the embodiment. [Figure 10] FIG. 10 is a flowchart illustrating an example of an operation of incrementing the ATI counter according to the embodiment. [Figure 11] FIG. 11 is a flowchart illustrating an example of an operation of resetting the ATI counter according to the embodiment. [Figure 12] FIG. 12 is a flowchart illustrating an example of an operation for setting write disable based on the ATI counter according to the embodiment. [Figure 13] FIG. 13 is a schematic diagram for explaining a specific example of the operation illustrated in FIGS. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0008] 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.

[0009] (Embodiment) FIG. 1 is a schematic diagram showing an example of the configuration of a magnetic disk device 1 according to an embodiment.

[0010] 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.

[0011] 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.

[0012] The access command includes a logical address. The magnetic disk device 1 provides a logical address space to the host 2. The logical address indicates a location in the address space. The host 2 uses the logical address to specify a location to write data to or a location to read data from. In other words, the logical address is location information specified by the host 2. The logical address is expressed as LBA (Logical Block Address).

[0013] 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, and a Flash Read Only Memory (FROM) 28.

[0014] 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.

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

[0016] 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.

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

[0018] 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.

[0019] The HDC 23 controls the transmission and reception of data to and from the host 2 via the I / F bus.

[0020] The RAM 27 is used as a buffer for data to be written to the magnetic disk 11 and data read from the magnetic disk 11 .

[0021] The RAM 27 is also 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 types of management data are temporarily stored.

[0022] The RAM 27 is composed of a volatile memory capable of high-speed operation. The type of memory constituting the RAM 27 is not limited to a specific type. The RAM 27 may be composed of, for example, a dynamic random access memory (DRAM), a static random access memory (SRAM), or a combination of these. The RAM 27 may also be composed of any non-volatile memory. The method of using the RAM 27 will be described in detail later.

[0023] The RWC 25 performs modulation such as error correction coding on the data to be written supplied from the HDC 23 on a sector-by-sector basis, and supplies the modulated data to the head IC 24. The RWC 25 also performs demodulation including error correction on a sector-by-sector basis on the signal 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.

[0024] The processor 26 is, for example, a CPU (Central Processing Unit). A RAM 27 and a ROM (Flash Read Only Memory) 28 are connected to the processor 26.

[0025] The FROM 28 is a non-volatile memory that stores firmware (program data) and various operating parameters.

[0026] The processor 26 performs overall control of the magnetic disk device 1 in accordance with firmware stored in the FROM 28. 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.

[0027] Furthermore, the FROM 28 is used as a save destination for the data in the RAM 27 in the event of a power outage.

[0028] 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 or a ROM 28) in addition to these.

[0029] The firmware program may be stored on the magnetic disk 11. In addition, 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).

[0030] 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.

[0031] 2 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).

[0032] 2 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 43 are provided in the radial direction of the magnetic disk 11. A plurality of sectors are provided on the tracks 43 in the data area 42, each of which has a predetermined size of data written therein. The predetermined size is the sector size.

[0033] 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 43 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 43, 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 43 defined by the gray code and the burst pattern from the ideal shape of the track 43.

[0034] 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.

[0035] The recording surface of the magnetic disk 11 is divided into at least two areas with different uses. One of the at least two areas is an LBA area, and the other of the at least two areas is a media cache area.

[0036] FIG. 3 is a diagram showing an example of a plurality of areas arranged in the radial direction of the recording surface of the magnetic disk 11 according to the embodiment.

[0037] In the example shown in FIG. 3, the recording surface 100 of the magnetic disk 11 is provided with, in this order from the inner side to the outer side, an LBA area 110a, a media cache area 120a, an LBA area 110b, a media cache area 120b, an LBA area 110c, a media cache area 120c, an LBA area 110d, and a media cache area 120d.

[0038] Hereinafter, each of the LBA areas 110a, 110b, 110c, and 110d may be referred to as an LBA area 110. Each of the media cache area 120a, 120b, 120c, and 120d may be referred to as a media cache area 120.

[0039] An LBA is mapped to each LBA area 110. Therefore, the host 2 can specify a write destination location or a read destination location among all the LBA areas 110. Each LBA area 110 is used as the final storage destination for data (hereinafter referred to as write data) requested to be written by a write command from the host 2.

[0040] Each media cache area 120 is used as a temporary storage location for write data.

[0041] The number and positions of the media cache areas 120 provided on the recording surface 100 are not limited to the example shown in Fig. 3. Furthermore, the number and positions of the LBA areas 110 provided on the recording surface 100 are not limited to the example shown in Fig. 3. In addition to the LBA areas 110 and the media cache areas 120, the recording surface 100 may be provided with areas for any purpose.

[0042] Each media cache area 120 is an example of a first area. Each LBA area 110 is an example of a second area.

[0043] FIG. 4 is a schematic diagram showing an example of the configuration of the memory (that is, the RAM 27 and the ROM 28) included in the magnetic disk device 1 of the embodiment.

[0044] A buffer area 271 is allocated to the RAM 27. Write data received from the host 2 is first stored in the buffer area 271. In other words, the buffer area 271 receives the write data received from the host 2.

[0045] The RAM 27 is a volatile memory. Therefore, the write data stored in the buffer area 271 is lost from the buffer area 271 when the power is turned off. The magnetic disk device 1 of the embodiment has a power loss protection (PLP) function to prevent the write data from being lost from the magnetic disk device 1 due to the write data being lost in the buffer area 271.

[0046] According to the PLP function, when a power outage occurs, the magnetic disk device 1 uses spare power such as back electromotive force generated by the SPM 12 to save the write data in the buffer area 271 to the FROM 28. Saving is by transfer, movement, or copying. The FROM 28 is provided with a PLP save area 281, which is an area for saving the write data. Since the FROM 28 is a non-volatile memory, the write data saved to the PLP save area 281 is not lost even after the power is cut off. This protects the write data received in the buffer area 271 from loss due to a power outage.

[0047] In the embodiment, as an example, the capacity of the PLP save area 281 is smaller than the capacity of the buffer area 271. Therefore, each time the amount of write data newly stored in the buffer area 271 reaches a predetermined amount that can be saved to the PLP save area 281 (for example, the same size as the capacity of the PLP save area 281), the controller 30 copies the write data newly stored in the buffer area 271 to any of the media cache areas 120. The predetermined amount that can be saved to the PLP save area 281 is hereinafter referred to as a first amount.

[0048] Of the write data stored in the buffer area 271, the original write data, a copy of which has been written to the media cache area 120, is lost from the buffer area 271 when a power outage occurs. After the power supply is resumed, write data identical to the original write data is restored in the buffer area 271 based on the copy stored in the media cache area 120.

[0049] Of the write data stored in the buffer area 271, the amount of write data that has not yet been copied to any of the media cache areas 120 is controlled to be equal to or less than a first amount. Therefore, of the write data stored in the buffer area 271, all of the write data that has not yet been copied to any of the media cache areas 120 is evacuated to the PLP evacuation area 281 in response to a power outage.

[0050] Therefore, all of the write data stored in the buffer area 271 is prevented from being lost from the magnetic disk device 1 due to a power outage.

[0051] Hereinafter, write data that has been received from the host 2 and has not yet been written to any LBA area 110 will be referred to as temporarily stored data. The temporarily stored data includes write data stored in the buffer area 271, a copy of the write data stored in the media cache area 120, and write data saved in the PLP save area 281.

[0052] Furthermore, write data in the buffer area 271, the copy of which has not yet been written to any of the media cache areas 120, is referred to as unprotected temporarily stored data.

[0053] Furthermore, the copy of the write data written to each media cache area 120 is referred to as copy data.

[0054] The RAM 27 stores an ATI management table 50. The ATI management table 50 is used to estimate the degree of ATI influence. Each media cache area 120 is divided into a plurality of blocks, and the degree of ATI influence is estimated for each block based on the ATI management table 50.

[0055] 5 is a schematic diagram for explaining an example of a plurality of blocks provided in each media cache area 120. In this diagram, the media cache area 120a is shown as a representative of the media cache areas 120a to 120d.

[0056] The media cache area 120a is divided into eight MC blocks as a plurality of blocks. The eight MC blocks are given identification numbers from #0 to #7. The identification numbers of the MC blocks are referred to as MC block numbers.

[0057] Each of the eight MC blocks has a capacity equal to or slightly larger than the first amount, such that a copy of the first amount of unprotected temporarily stored data can be stored in each of the eight MC blocks.

[0058] Each of the eight MC blocks may occupy an area of ​​less than one track, or may occupy an area of ​​one track or more. Each of the eight MC blocks may be composed of one track. Furthermore, the capacity of each of the eight MC blocks is not limited to the above example. Each of the eight MC blocks may have a capacity of more than twice the first amount.

[0059] The number of MC blocks provided in each media cache area 120 is arbitrary as long as it is plural. The number of MC blocks provided in one media cache area 120 may or may not be the same among the media cache areas 120a to 120d.

[0060] 6 is a schematic diagram showing an example of the data structure of the ATI management table 50. In the example shown in this figure, the ATI management table 50 includes a sub-table 51 for each media cache area 120. Each sub-table 51 is a table in which an ATI counter is recorded for each MC block number.

[0061] When new copy data is written to a certain MC block, the ATI counters of the MC blocks on either side of the MC block in which copy data of any temporary storage data has already been stored are incremented by 1. When the original temporary storage data in the buffer area 271 corresponding to all copy data stored in a certain MC block are written to the LBA area 110, the ATI counters of that MC block are reset to 0.

[0062] That is, the ATI counter represents the number of times that writing has been performed on an adjacent MC block in which copy data is stored. In the embodiment, as an example, the difference of the ATI counter of each MC block from the minimum value of the ATI counter in each media cache area 120 is regarded as an estimate of the degree of the ATI influence.

[0063] Generally, the influence of ATI on adjacent tracks accumulates according to the number of writes to one track, and the data on the adjacent tracks eventually becomes difficult to read. For example, in each LBA area 110, the controller 30 executes a rewrite of all data on the adjacent tracks 43 before it becomes difficult to read the data on the adjacent tracks 43. Such a rewrite for preventing the data from becoming difficult to read due to the influence of ATI is referred to as an ATI refresh operation.

[0064] Here, a technique compared with the embodiment will be described. The technique compared with the embodiment will be referred to as a comparative example. According to the comparative example, similar to the embodiment, the amount of unprotected temporary storage data is copied to the media cache area at appropriate times so that the amount does not exceed the first amount. In addition, an ATI refresh operation is also performed in the media cache area.

[0065] In the comparative example, when an ATI refresh operation is performed in the media cache area, the ATI refresh operation causes a delay in the process of copying the temporarily stored data to the media cache area. As a result, the rate at which new write data is accepted from the host decreases. In other words, the ATI refresh operation in the media cache area may deteriorate the write performance of the magnetic disk device.

[0066] In the embodiment, in order to make the ATI refresh operation unnecessary in the media cache area 120, when an estimated value of the degree of the ATI influence received by a certain MC block (referred to as a first MC block) reaches a predetermined level (referred to as a first threshold), the controller 30 sets the MC blocks on both sides of the first MC block to be unwritable. By prohibiting writing to the MC blocks on both sides of the first MC block, the accumulation of the ATI influence received by the first MC block stops. This prevents the data in the first MC block from becoming difficult to read, even if an ATI refresh operation is not performed on the first MC block.

[0067] Next, the operation of the magnetic disk device 1 of the embodiment will be described in detail.

[0068] 7 is a flowchart showing an example of an operation of the magnetic disk device 1 according to the embodiment in response to receiving write data. Note that the series of operations shown in this figure is executed, for example, every time the magnetic disk device 1 receives write data.

[0069] When the magnetic disk device 1 receives write data from the host 2 (S101), the controller 30 stores the write data in the buffer area 271 (S102). Then, the controller 30 determines whether the amount of unprotected temporarily stored data in the buffer area 271 has reached a first amount (S103).

[0070] If the amount of unprotected temporarily stored data in the buffer area 271 has not reached the first amount (S103: No), the operation related to the write data received by the processing of S101 ends.

[0071] If the amount of unprotected temporarily stored data in the buffer area 271 reaches a first amount (S103: Yes), the controller 30 selects one MC block from among all MC blocks that are not set as write-disabled and have free space (S104).

[0072] In the process of S104, the controller 30 selects one MC block based on command reordering. That is, the controller 30 selects an MC block that can be written to the earliest or as soon as possible based on the current position and movement speed of the magnetic head 22 and the positions of all MC blocks that are not set as unwritable and have space.

[0073] The controller 30 copies the first amount of unprotected temporarily stored data in the buffer area 271 to the MC block selected by the process of S104 (S105). Then, the operation in response to the reception of the write data is completed.

[0074] FIG. 8 is a flowchart showing an example of an operation related to the PLP function of the magnetic disk device 1 according to the embodiment.

[0075] When the power supply to the magnetic disk device 1 from the outside is stopped, the controller 30 detects the stop of the power supply as a power outage (S201).

[0076] For example, the controller 30 monitors the voltage of a power line (not shown) through which power is supplied from the outside. When the voltage of the power line falls below a predetermined value, the controller 30 determines that a power outage has occurred. Note that the method of detecting a power outage is not limited to this.

[0077] In response to detection of a power outage, the controller 30 saves the unprotected temporarily stored data in the buffer area 271 to the PLP save area 281 (S202). The process of S202 is executed, for example, by using a back electromotive force generated by the SPM 12. The amount of unprotected temporarily stored data in the buffer area 271 is controlled to be equal to or less than a first amount by a series of operations shown in FIG. 7. Therefore, in the process of S202, the controller 30 can save all of the unprotected temporarily stored data in the buffer area 271 to the PLP save area 281.

[0078] Following the process of S202, the magnetic disk device 1 stops operation (S203).

[0079] Thereafter, when power supply to the magnetic disk device 1 is resumed, the controller 30 transfers the temporarily stored data in the PLP save area 281 and the copy data in the media cache area 120 to the buffer area 271 (S204). As a result, the temporarily stored data that was stored in the buffer area 271 immediately before the power outage is restored to the buffer area 271. Then, the operation related to the PLP function is completed.

[0080] FIG. 9 is a flowchart showing an example of an operation of writing temporarily stored data in the buffer area 271 to the LBA area 110 in the magnetic disk device 1 of the embodiment.

[0081] The controller 30 judges whether the magnetic disk device 1 is in an idle state (S301). The idle state is, for example, a state in which a period during which no access command has been received from the host 2 exceeds a predetermined time.

[0082] If the magnetic disk device 1 is not in an idle state (S301: No), the process of S301 is executed again.

[0083] When the magnetic disk device 1 is in an idle state (S301: Yes), the controller 30 selects write data related to one write command from the temporarily stored data in the buffer area 271 (S302). Here, the controller 30 selects the write data based on command reordering. In other words, it selects the write data that can be written to the write destination sector earliest or as quickly as possible.

[0084] The controller 30 writes the selected write data to the LBA area 110 (S303). Then, the controller 30 invalidates the write data in the buffer area 271 that has been written to the LBA area 110 and the copy data of that write data in the media cache area 120 (S305). Then, the controller 30 executes the process of S301 again.

[0085] Invalidation means making data unavailable. Invalidation may also mean erasing. Hereinafter, the state of data that is not invalidated will be referred to as valid.

[0086] 9, the temporarily stored data is written to the LBA area 110 when the magnetic disk device 1 is in an idle state. The conditions for writing the temporarily stored data to the LBA area 110 are not limited to this. For example, the temporarily stored data may be written to the LBA area 110 when the buffer area 271 becomes full of valid temporarily stored data.

[0087] Through the operations shown in Figures 7 and 9, copy data corresponding to the original write data is stored in the MC block for the period from when the original write data is stored in the buffer area 271 to when the original write data is written to the LBA area 110.

[0088] FIG. 10 is a flowchart illustrating an example of an operation of incrementing the ATI counter according to the embodiment.

[0089] The controller 30 executes writing to one MC block (S401). The processing of S40 specifically corresponds to the processing of S105 shown in Fig. 7. The MC block to which the copy data is written by the processing of S401 is referred to as a first target MC block.

[0090] Following the process of S401, the controller 30 increments by 1 the ATI counter of the MC block in which valid copy data is stored, among the MC blocks on both sides of the first target MC block (S402). The operation of incrementing the ATI counter is then completed.

[0091] The series of operations shown in FIG. 10 is executed every time the process of S105 shown in FIG. 7 is executed.

[0092] FIG. 11 is a flowchart illustrating an example of an operation of resetting the ATI counter according to the embodiment.

[0093] 9, the copy data in each MC block is invalidated in units of write commands. Therefore, valid copy data and invalid copy data may be mixed in one MC block.

[0094] 9 is executed one or more times to complete invalidation of all copy data stored in one MC block (S501), the controller 30 resets the ATI counter of that MC block to 0 (S502). Then, the ATI counter reset operation is completed.

[0095] FIG. 12 is a flowchart illustrating an example of an operation for setting write disable based on the ATI counter according to the embodiment.

[0096] The controller 30 determines whether or not there is an MC block in any of the media cache areas 120 whose ATI counter difference from the minimum ATI counter value in the range of the individual media cache area 120 has reached a first threshold value (S601). An MC block whose ATI counter difference from the minimum ATI counter value in the range of the individual media cache area 120 has reached the first threshold value is referred to as a second target MC block.

[0097] If there is a second target MC block (S601: Yes), the controller 30 sets the second target MC block and the MC blocks on both sides of the second target MC block to be write-unavailable (S602).The controller 30 then cancels the write-unavailable setting of the other MC blocks (more precisely, all MC blocks other than the second target MC block and the MC blocks on both sides of the second target MC block) (S603).Note that if there are no other MC blocks set to be write-unavailable, the controller 30 does nothing in the process of S603.

[0098] If there is no second target MC block (S601: No), the controller 30 skips the process of S602.

[0099] After the process of S603, the controller 30 executes the process of S601 again.

[0100] Fig. 13 is a schematic diagram for explaining a specific example of the operation illustrated in Fig. 10 to Fig. 12. Fig. 13 illustrates a sub-table 51 related to a certain media cache area 120 among the sub-tables 51 included in the ATI management table 50.

[0101] In the explanation of the example shown in FIG. 13, the first threshold value is assumed to be "10."

[0102] According to sub-table 51 shown in Figure 13 (A), MC blocks #0 to #3, #5, and #6 are empty, which means that the ATI counters for MC blocks #0 to #3, #5, and #6 are all "0". MC block #4 stores valid copy data, and the ATI counter for MC block #4 is "9". MC block #7 also stores valid copy data, and the ATI counter for MC block #7 is "5".

[0103] Note that "empty" means that no valid copy data is stored, i.e., "empty" is synonymous with the MC block itself being free.

[0104] When the ATI counters for each MC block are in the state shown in FIG. 13A, the controller 30 executes writing of copy data to MC block #3 (S701). Then, as shown in FIG. 13B, the controller 30 increments by "1" the ATI counters for MC block #2, which is an MC block adjacent to MC block #3, and MC block #4, which is an MC block in which valid copy data is stored, by MC block #4. As a result, the difference of the ATI counter for MC block #4 from "0", which is the minimum value of the ATI counters recorded in the sub-table 51, reaches the first threshold value of "10". Therefore, the controller 30 sets MC block #4 and MC blocks #3 and #5, which are adjacent to MC block #4, as unwriteable (S702).

[0105] That is, to prevent further accumulation of ATI effects in MC block #4, writing to MC block #5 is prohibited even though MC block #5 is empty.

[0106] 13(C), when the controller 30 has completed invalidating all copy data in MC block #4, the controller 30 resets the ATI counter for MC block #4 to "0" and cancels the write disable setting for MC block #4 and MC blocks #3 and #5 on either side of MC block #4 (S703). This makes it possible for the controller 30 to write to empty MC blocks #4 and #5.

[0107] In the above description, the controller 30 writes a copy of the unprotected temporarily stored data in the first amount to the media cache area 120. The amount of copy data written to the media cache area 120 at one time is not limited to this.

[0108] For example, the PLP save area 281 may not be provided in the FROM 28, and the controller 30 may be configured to copy all the temporarily stored data stored in the buffer area 271 to the media cache area 120 at any timing.

[0109] Also, the difference of the ATI counter of each MC block from the minimum value of the ATI counter in the individual media cache area 120 was regarded as an estimate of the degree of ATI influence. Examples of the estimate of the degree of ATI influence are not limited to this.

[0110] In one example, the controller 30 may treat the ATI counter itself as an estimate of the degree of ATI influence. In another example, the controller 30 may treat the difference of the ATI counter of each MC block from the minimum value of the ATI counters in all media cache areas 120 as an estimate of the degree of ATI influence.

[0111] As described above, according to the embodiment, the controller 30 estimates the degree of influence of the ATI for each of the multiple MC blocks, and sets as unwriteable an MC block (referred to as a first MC block) in which the degree of influence of the ATI has reached a first threshold value, and two MC blocks adjacent to the first MC block among the multiple MC blocks. The controller 30 selects one of the one or more MC blocks among the multiple blocks that is not set as unwriteable and has free space, and stores a copy of the write data in the buffer area 271 in the selected one block for at least the period until the write data is written to the LBA area 110.

[0112] Therefore, it is possible to prevent data reading from becoming difficult due to the influence of ATI without requiring the execution of an ATI refresh operation in any of the media cache areas 120. Since an ATI refresh operation is not executed in any of the media cache areas 120, deterioration of the write performance of the magnetic disk device 1 is suppressed.

[0113] Furthermore, according to the embodiment, the magnetic disk device 1 copies the temporarily stored data that has not yet been copied to the media cache area 120 to a selected MC block each time the amount of the temporarily stored data received in the buffer area 271 and that has not yet been copied to the media cache area 120 reaches a first amount. When a power outage occurs, the controller 30 saves the temporarily stored data that has not yet been copied to the media cache area 120 to the PLP save area 281. When power supply is resumed after a power outage, the controller 30 restores the temporarily stored data in the buffer area 271 based on the copy data stored in the media cache area 120 and the temporarily stored data saved in the PLP save area 281.

[0114] This prevents the write data in the buffer area 271 from being lost from the magnetic disk device 1 due to a power outage.

[0115] According to the embodiment, the controller 30 manages a group of ATI counters for each MC block. When the controller 30 writes copy data to a certain MC block (hereinafter referred to as a second MC block), the controller 30 increments the ATI counter for the MC block that stores valid copy data, that is, a copy of temporarily stored data that has not yet been written to the LBA area 110, among two MC blocks adjacent to the second MC block. The controller 30 resets the ATI counter for the MC block in which invalidation of all stored copy data has been completed. The controller 30 estimates the degree of ATI influence for each MC block based on the ATI counter. Specifically, the controller 30 identifies the MC block in which the difference of the ATI counter from the minimum value reaches a first threshold value as the first MC block.

[0116] Therefore, the controller 30 can stop the accumulation of the ATI effect on the first MC block before it becomes difficult to read the copy data stored in the first MC block.

[0117] As described above, the controller 30 may use the ATI counter as an estimate of the degree of the ATI influence. Also, the controller 30 may use the difference of the ATI counter from the minimum value of the ATI counters in all the media cache areas 120 as an estimate of the degree of the ATI influence. In other words, the controller 30 can estimate the degree of the ATI influence based on the ATI counter.

[0118] 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]

[0119] 1 magnetic disk device, 2 host, 11 magnetic disk, 12 spindle motor, 13 lamp, 15 actuator arm, 16 VCM, 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, 30 controller, 41 servo area, 42 data area, 43 track, 50 ATI management table, 51 sub table, 100 recording surface, 110, 110a, 110b, 110c, 110d LBA area, 120, 120a, 120b, 120c, 120d media cache area, 271 buffer area, 281 PLP evacuation area.

Claims

1. a magnetic disk provided with a first area having a plurality of blocks and a second area designated by a host as a write destination; a volatile first memory for receiving write data received from the host; a magnetic head for writing data to and reading data from the magnetic disk; Estimating a degree of influence of adjacent track interference (ATI) for each of the plurality of blocks; setting a first block of the plurality of blocks in which a degree of the ATI effect has reached a first threshold value and two blocks of the plurality of blocks adjacent to the first block as unwritable; Select one of the plurality of blocks that is not set to be write-disabled and has free space, storing a copy of the write data in the first memory in the selected one block at least until the write data is written to the second area; A controller; A magnetic disk device comprising:

2. A second non-volatile memory is provided, The controller: storing the write data that has not yet been copied to any of the plurality of blocks in one block selected from the plurality of blocks every time an amount of the write data received in the first memory that has not yet been copied to any of the plurality of blocks reaches a first amount; When a power outage occurs, the write data that has not yet been copied to any of the plurality of blocks is saved in the second memory; when power supply is resumed after the power cut, recovering the write data in the first memory based on one or more copies stored in the plurality of blocks and the write data saved in the second memory; 2. The magnetic disk drive according to claim 1.

3. The controller: managing a plurality of counters, each counter being associated with one of the plurality of blocks; When a copy of the write data in the first memory is written to a second block that is one of the plurality of blocks, a counter associated with a block in which a copy of the original write data that has not yet been written to the second area is stored, among two blocks adjacent to the second block among the plurality of blocks, is incremented; resetting a counter for a block in which writing of original write data of all copies stored in the plurality of blocks to the second area has been completed; estimating a degree of the ATI effect for each of the plurality of blocks based on the plurality of counters; 3. The magnetic disk drive according to claim 1.

4. the controller identifies, as the first block, a block whose difference from a minimum value of the plurality of counters reaches the first threshold value; 4. The magnetic disk drive according to claim 3.

Citation Information

Patent Citations

  • Distributed media cache

    US10860490B2