Disk control method and apparatus
First Claim
1. An apparatus for controlling a disk drive in a computer system having a cache for storing data and the disk drive having a rotatable disk, comprising:
- a detection means for detecting a disk access request;
a sync means for writing data from the cache to the disk; and
a power management means, responsive to the detection means, for detecting a predetermined threshold of disk access requests, and enabling the sync means,wherein the sync means writes data from the cache to the disk after a predetermined period of time has elapsed after data was last written to the disk from the cache or if the predetermined threshold is greater than one.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and apparatus for controlling a hard disk drive in a computer system is disclosed. The method and apparatus reduce the hard disk'"'"'s power consumption, enhance the performance of the computer system incorporating the hard disk, and maintain data consistency. The computer system has a cache and controls the power consumption of the local hard disk drive. A cache flush writes data from the cache to the disk. Disk accesses are detected. If no disk accesses were detected, the cache is flushed after a first predetermined period of time (T2) has elapsed since the last flush. If a disk has been accessed, the cache is flushed after a second predetermined period of time (T3 or T4) has elapsed since the last disk access. Even if the predetermined period of time (T3 or T4) since the last disk access has not elapsed, if disk access were detected, the cache is flushed after a predetermined number of disk accesses.
78 Citations
12 Claims
-
1. An apparatus for controlling a disk drive in a computer system having a cache for storing data and the disk drive having a rotatable disk, comprising:
-
a detection means for detecting a disk access request; a sync means for writing data from the cache to the disk; and a power management means, responsive to the detection means, for detecting a predetermined threshold of disk access requests, and enabling the sync means, wherein the sync means writes data from the cache to the disk after a predetermined period of time has elapsed after data was last written to the disk from the cache or if the predetermined threshold is greater than one. - View Dependent Claims (2, 3, 4)
-
-
5. A computer system comprising:
-
a central processing unit; memory in communication with the central processing unit; a disk drive, in communication with the central processing unit and the memory, having a rotatable disk for storing data; a cache, in communication with the central processing unit, the memory and the disk drive, for storing data to be written to the disk; a detection means for detecting a disk access request; a sync means for writing data from the cache to the disk; and a power management means, responsive to the detection means for detecting a predetermined number of disk access requests, and enabling the sync means, wherein the sync means writes data from the cache to the disk after a predetermined period of time has elapsed after data was last written to the disk from the cache or if the predetermined threshold is greater than one. - View Dependent Claims (6, 7, 8, 12)
-
-
9. A computer system comprising:
-
a central processing unit; memory in communication with the central processing unit; a disk drive, in communication with the central processing unit, the memory, and the disk drive, for storing data to be written to the disk; a detection means for detecting a disk access request; a sync means for writing data from the cache to the disk; a determination means for determining a time since a last writing of data from cache to the disk; a power manager for enabling the sync means, if the time since a last writing of data from cache to the disk exceeds a predetermined interval. - View Dependent Claims (10, 11)
-
Specification