LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 06-04-2008, 01:11 PM   #1
Schalken
LQ Newbie
 
Registered: Mar 2006
Distribution: Debian/Ubuntu
Posts: 26

Rep: Reputation: 15
Configuring Hard Drive Spindown


I am trying to create the following congiguration for my laptop:
  1. The hard drive is turned off.
  2. All writes are being cached in memory.
  3. If a write has been cached for over 2 hours:
    1. Turn the disk on and sync all the writes.
  4. OR if data is needed that is not already cached in memory:
    1. Turn the disk on and read the required data, caching it in memory.
    2. Sync all the writes.
  5. Keep the disk on for 20 seconds incase it is needed again, then turn it off.
  6. REPEAT
In this way, the disk remains turned off for a maximum of 2 hours unless data needs to be read from it.

Could someone tell me what values for the /proc/sys/vm/* and hdparm tunables would achieve this?

Thanks in advance.
 
Old 06-07-2008, 05:15 PM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,564
Blog Entries: 34

Rep: Reputation: 2738Reputation: 2738Reputation: 2738Reputation: 2738Reputation: 2738Reputation: 2738Reputation: 2738Reputation: 2738Reputation: 2738Reputation: 2738Reputation: 2738
Hi,

You can do a 'man hdparm' and 'man smartctl' to get information to get where you want partially.

If you are using the system then the spindown will be minimal. If what you want is to shutdown after no use period then some of what you list is possible. If your 'swap' is on the hdd then you will be cycling a lot if something is active.
 
Old 01-12-2009, 04:36 PM   #3
Romanus81
Member
 
Registered: Feb 2008
Posts: 201

Rep: Reputation: 31
If a solution to this has been found I would be very interested in doing something like this.
 
Old 01-13-2009, 02:45 AM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
You will need to look into laptop-mode:
http://cvs.sourceforge.jp/cgi-bin/vi...xt?rev=1.1.1.4
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SATA drive spindown, laptop mode, and hdparm--what works and how? enigma_0Z Linux - Hardware 1 05-02-2008 03:11 PM
LXer: Using spindown to prolong the life of old hard disks LXer Syndicated Linux News 0 04-22-2008 02:41 PM
configuring eSata PCI card and Lacie 2big Dual external hard drive Flailing_Novice Linux - Hardware 18 04-17-2008 01:08 PM
problems configuring new hard drive phaidros Linux - Hardware 12 01-08-2004 11:10 AM
Configuring two hard drive in RH8.0 klmn1 Linux - Hardware 3 04-04-2003 03:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 02:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration