Another major villain is the hard disk. It takes substantial energy to keep it spinning in high
Speed, even if there is no accesses. Many conputers, especially notebooks, spin the disk down
After a certain number of seconds or minutes of inactivity. When it's next needed, it's spun up
Again. Unfortunately, a stopped disk is hiberating rather than sleeping because it takes quite a
Few seconds to spin it up again, which causes noticeable delays for the user.
In addition, restarting the disk consumes considerable extra energy. As a consequence, every disk
Have a characteristic time, Td, that's its break-event point, often in the range 5 to seconds.
Suppose that the next disk access was expected to come some time t in the future. If T < Td, it
Takes keep the disk spinning rather than spin it down and then spin it up so
Quickly. If T > Td, the energy saved makes it worth spinning the disk down and up again much
Later. If a good prediction could is made (e.g. based on past access patterns), the operating
System could make shutdown predictions and save energy. In practice, the most systems is conservative
And only stop the disk after a few minutes of inactivity.
Another-to-save disk energy was to has a substantial disk cache in RAM. If a needed block is in
The cache, an idle disk does not has the restarted to satisfy the read. Similarly, if a write to the
Disk can is buffered in the cache, a stopped disk does not having to restarted just to handle the write.
The disk can remain off until the cache fills up or a read miss happens.
Another to avoid necessary disk starts are for the operating system to keep running programs
Informed about the disk state by sending it messages or signals. Some programs have discretionary
Writes that can is skipped or delayed. For example, a word processor may is set up to write the file
Being edited to disk every few minutes. If The word processor knows that the disk was off at the moment
It would normally wirte the file out that it can delay this write until the disk was next turned on or until a
Certain additional time has elapsed.
Modern Operating System---Power Management (hard Disk)