Disk drive device and a method for controlling the same
First Claim
1. A method for controlling a disk drive device containing a rotating data recording disk and a cache memory which includes K queue entries (K is an integer) for storing data sent from a host processor comprising:
- (a) detecting that N queue entries in said cache memory store said data (wherein N is equal to or smaller than K, and N is an integer), (b) successively writing said data stored in said N queue entries into said rotating data recording disk, (c) detecting that an error rate at said writing of said data exceeds a predetermined level, and (d) decreasing said K queue entries by a predetermined number X, wherein X is equal to or less than K−
N, and X is an integer.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention provides a disk drive device containing a cache memory having K queue entries (K is an integer) to operate in a write cache mode and a method for controlling the disk drive device. The number of the queue entries to be used in the write cache mode can be gradually decreased from the number K to a decreased number by a predetermined number, and the number of the queue entries to be used in the write cache mode can be gradually increased from the decreased number towards the number K by a predetermined number, in response to values of parameters, such as an error rate and Non Repeatable Run Out or Repeatable Run Out of the rotating data recording disk at writing of data from the cache memory to a rotating data recording disk.
53 Citations
20 Claims
-
1. A method for controlling a disk drive device containing a rotating data recording disk and a cache memory which includes K queue entries (K is an integer) for storing data sent from a host processor comprising:
-
(a) detecting that N queue entries in said cache memory store said data (wherein N is equal to or smaller than K, and N is an integer), (b) successively writing said data stored in said N queue entries into said rotating data recording disk, (c) detecting that an error rate at said writing of said data exceeds a predetermined level, and (d) decreasing said K queue entries by a predetermined number X, wherein X is equal to or less than K−
N, and X is an integer.- View Dependent Claims (2, 3, 4, 5)
(a) detecting that a command to be processed does not exist, and starting an idle mode, wherein said idle mode comprises;
(i) detecting that the said K queue entries are decreased by at least said predetermined number X, (ii) writing test data in a region for test in said rotating data recording disk, (iii) detecting that said writing of said test data succeeds, and (iv) increasing the number of said decreased queue entries by a predetermined number.
-
-
4. A method for controlling a disk drive device according to claim 3, wherein said (i) through (iv) are repeated until the number of said deceased queue entries are restored to ssaid K queue entries.
-
5. A method for controlling a disk drive device according to claim 3, wherein said detecting detects that an error rate at said writing of said data exceeds a predetermined level, and that Non Repeatable Run Out or Repeatable Run Out of said rotating data recording disk at said writing of said data exceeds a predetermined level.
-
6. A method for controlling a disk drive device containing a rotating data recording disk and a cache memory which includes K queue entries, wherein, K is an integer for storing data sent from a host processor comprising:
-
(a) detecting that at least one queue entry in said cache memory stores said data, (b) writing said data stored in said queue entry into said rotating data recording disk, (c) detecting an occurrence of error at said writing of said data, (d) performing one of error recovery steps for said data, and rewriting said data into said rotating data recording disk, (e) detecting that an error rate at said rewriting of said data into said rotating data recording disk exceeds a predetermined level, and (f) decreasing said K queue entries by a predetermined number X, wherein X is equal to or less than K−
N, N is the number of queue entries into which said data are stored, and N and X are integer.- View Dependent Claims (7)
-
-
8. A method for controlling a disk drive device containing a rotating data recording disk and a cache memory which includes a plurality of queue entries for storing data sent from a host processor, to operate in a write cache mode comprising:
-
(a) detecting that at least one queue entry in said cache memory stores said data, (b) writing said data stored in said queue entry into a target sector of said rotating data recording disk, (c) detecting an occurrence of error at said writing of said data into said target sector, (d) performing one of error recovery steps for said data and rewriting said data into said target sector, (e) detecting that all error recovery steps are performed for said data, and that said rewriting of said data into said target sector fails, (f) writing said data into an alternative sector of said rotating data recording disk, (g) detecting that said writing of said data into said alternative sector succeeds, (h) detecting that Non Repeatable Run Out or Repeatable Run Out of said rotating data recording disk exceeds a predetermined level, and (i) informing said host processor of that a status of said disk drive device is switched to a status in which said disk drive device does not operate in said write cache mode.
-
-
9. A method for controlling a disk drive device containing a rotating data recording disk and a cache memory which includes a plurality of queue entries for storing data sent from a host processor, to operate in a write cache mode comprising:
-
(a) detecting that at least one queue entry in said cache memory stores said data, (b) writing said data stored in said queue entry into a target sector of said rotating data recording disk, (c) detecting an occurrence of error at said writing of said data in said target sector, (d) performing one of error recovery steps for said data and rewriting said data into said target sector, (e) detecting that all error recovery steps are performed for said data, and that said rewriting of said data into said target sector fails, (f) writing said data into an alternative sector of said rotating data recording disk, (g) detecting that said writing of said data into said alternative sector fails, (h) rewriting said data into said target sector, (i) detecting that said rewriting of said data into said target sector in said rewriting succeeds and (j) informing said host processor of that a status of said disk drive device is switched to a status in which said disk drive device does not operate in said write cache mode.
-
-
10. A disk drive device containing a rotating data recording disk and a cache memory which includes K queue entries (K is an integer) for storing data sent from a host processor comprising:
-
(a) a detector for detecting that N queue entries in said cache memory store said data (wherein N is equal to or smaller than K, and N is an integer), (b) a write circuit for successively writing said data stored in said N queue entries into said rotating data recording disk, (c) an error rate detector for detecting that an error rate at said writing of said data exceeds a predetermined level, and (d) a subtractor for decreasing said K queue entries by a predetermined number X, wherein X is equal to or less than K−
N, and X is an integer.- View Dependent Claims (11, 12, 13, 14)
(a) a command detector for detecting that a command to be processed does not exist, and starting an operation of an idle mode means, wherein said idle mode circuit comprises;
(i) a K queue detector for detecting that the said K queue entries are decreased by at least said predetermined number X, (ii) a test date write device for writing test data in a region for test in said rotating data recording disk, (iii) a success detector for detecting that said writing of said test data succeeds, and (iv) an incrementor for increasing the number of said decreased queue entries by a predetermined number.
-
-
13. A disk drive device according to claim 12, wherein operation of said (i) K queue detector through (iv) incrementor continuously until the number of said decreased queue entries are restored to said K queue entries.
-
14. A disk drive device according to claim 12, wherein said error rate detector (c) detects that an error rate at said writing of said data exceeds a predetermined level, and that Non Repeatable Run Out or Repeatable Run Out of said rotating data recording disk at said writing of said data exceeds a predetermined level.
-
15. A disk drive device containing a rotating data recording disk and a cache memory which includes K queue entries, wherein K is an integer, for storing data sent from a host processor comprising:
-
(a) a detector for detecting that at least one queue entry in said cache memory stores said data, (b) a write circuit for writing said data stored in said queue entry into said rotating data recording disk, (c) an error detector for detecting an occurrence of error at said writing of said data, (d) an error recovery device for performing one of error recovery steps for said data, and rewriting said data into said rotating data recording disk, (e) an error rate detector for detecting that an error rate at said rewriting of said data into said rotating data recording disk exceeds a predetermined level, and (f) a subtractor for decreasing said K queue entries by a predetermined number X, wherein X is equal to or less than K−
N, N is the number of queue entries into which said data are stored, and N and X are integer.- View Dependent Claims (16)
-
-
17. A disk drive device containing a rotating data recording disk and a cache memory which includes a plurality of queue entries for storing data sent from a host processor, to operate in a write cache mode comprising:
-
(a) a detector for detecting that at least one queue entry in said cache memory stores said data, (b) a write device for writing said data stored in said queue entry into a target sector of said rotating data recording disk, (c) a error detector for detecting an occurrence of error at said writing of said data into said target sector, (d) an error recovery circuit for performing one of error recovery steps for said data and rewriting said data into said target sector, (e) an error recovery detector for detecting that all error recovery steps are performed for said data, and that said rewriting of said data into said target sector fails, (f) an alternative writing device for writing said data into an alternative sector of said rotating data recording disk, (g) an alternative detector for detecting that said writing of said data into said alternative sector succeeds, (h) a threshold detector for detecting that Non Repeatable Run Out or Repeatable Run Out of said rotating data recording disk exceeds a predetermined level, and (i) a sensor for informing said host processor of that a status of said disk drive device is switched to a status in which said disk drive device does not operate in said write cache mode.
-
-
18. A disk drive device containing a rotating data recording disk and a cache memory which includes a plurality of queue entries for storing data sent from a host processor, to operate in a write cache mode comprising:
-
(a) a detector for detecting that at least one queue entry in said cache memory stores said data, (b) a write circuit for writing said data stored in said queue entry into a target sector of said rotating data recording disk, (c) a error detector for detecting an occurrence of error at said writing of said data in said target sector, (d) a error recovery circuit for performing one of error recovery steps for said data and rewriting said data into said target sector, (e) an error recovery detector for detecting that all error recovery steps are performed for said data, and that said rewriting of said data into said target sector fails, (f) an alternative write device for writing said data into an alternative sector of said rotating data recording disk, (g) an alternative detector for detecting that said writing of said data into said alternative sector fails, (h) a rewrite device for rewriting said data into said target sector, (i) a rewrite detector for detecting that said rewriting of said data into said target sector in said step (h) succeeds, and (j) a sensor for informing said host processor of that a status of said disk drive device is switched to a status in which said disk drive device does not operate in said write cache mode.
-
-
19. A method for controlling a memory device containing a data recording medium and a cache memory which includes K queue entries, wherein K is an integer for storing data sent from a host processor comprising:
-
(a) detecting that N queue entries in said cache memory store said data, wherein N is equal to or smaller than K, and N is an integer, (b) successively writing said data stored in said N queue entries into said data recording medium, (c) detecting that an error rate at said writing of said data exceeds a predetermined level, and (d) decreasing said K queue entries by a predetermined number X, wherein X is equal to or less than K−
N, and X is an integer.
-
-
20. A memory device containing a data recording medium and a cache memory which includes K queue entries (K is an integer) for storing data sent from a host processor comprising:
-
(a) a detector for detecting that N queue entries in said cache memory store said data, wherein N is equal to or smaller than K, and N is an integer, (b) a write circuit for successively writing said data stored in said N queue entries into said data recording medium, (c) an error rate detector for detecting that an error rate at said writing of said data exceeds a predetermined level, and (d) a subtractor for decreasing said K queue entries by a predetermined number X, wherein X is equal to or less than K−
N, and X is an integer.
-
Specification