Modern Operating System---Power Management (hard Disk)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.