English 中文(简体)
Hard disk drive and RAM memory - Dynamic Power Management
原标题:

From what I have seen there is a pretty good support for dynamic power management in the both Windows and Linux when it comes to the CPU (scaling frequency so as to reduce energy consumption). Is there similar support for managing the Hard Disk Drive and the RAM (spinning down the HDD, lowering RAM frequency or anything that might result in power consumption reduction)?

问题回答

For the HDD, use hdparm with -S to define after how much time it should spin down. To make this work, you must disable all processes which access the disk regularly like cron and flushd. The latter is a bit dangerous because it flushes memory caches to disk. You can simulate it by calling sync manually but if your computer crashes unexpectedly, then you can loose a lot of data.

So in the end, sending the disk to sleep doesn t really help unless you re not using your computer for long periods of time. But there are other methods to make it use less power:

  • Let it run. Spinning the disk up needs a lot of power.
  • Mount with noatime reduces the write accesses a lot.
  • Replace the disk with an SSD. Even a small SSD for the OS plus the swap partition goes a long way.
  • Replace the disk with a smaller one (i.e. 3.5" -> 2.5" -> 1.8").

As for the RAM, I know nothing what you can manipulate. I guess you could switch off RAM areas which aren t in use but current OSs use free RAM as a hard disk cache, so you won t find much "free" RAM that can be switched off. So here, your best option is to installed less RAM.





相关问题
C++: Uninitialized variables garbage

int myInt; cout << myInt; // Garbage like 429948, etc If I output and/or work with uninitialized variables in C++, what are their assumed values? Actual values in the memory from the "last ...

How do I know if my PHP application is using too much memory?

I m working on a PHP web application that let s users network with each other, book events, and message eachother. There s only about 100 users. I set up the application on a VPS with Ubuntu 9.10, ...

Reserve RAM in C

I need ideas on how to write a C program that reserve a specified amount of MB RAM until a key [ex. the any key] is pressed on a Linux 2.6 32 bit system. * /.eat_ram.out 200 # If free -m is execute ...

How do I limit RAM to test low memory situations?

I m trying to reproduce a bug that seems to appear when a user is using up a bunch of RAM. What s the best way to either limit the available RAM the computer can use, or fill most of it up? I d ...

How does PHP handle variables in RAM?

I am curious how PHP handles variables in memory? If I have 100 constants or variables set that hold values related to my application and not on a per user basis, like site name, version number, ...

Hard disk drive and RAM memory - Dynamic Power Management

From what I have seen there is a pretty good support for dynamic power management in the both Windows and Linux when it comes to the CPU (scaling frequency so as to reduce energy consumption). Is ...

What should I load into memory when my app loads?

I have objects I am saving to the file system using serialization. When I load the app, should I load all the objects into memory or just stubs (for searching capabilities)? If I load just stubs, ...

热门标签