#45 Please do a sync on a HDD before a standby/spindown timeout

closed-wont-fix
nobody
None
5
2012-09-28
2011-05-14
Ivan
No

The flag -S which sets a standby/spindown timeout is nearly useless on a journaling filesystem (except you are in Redmont where no journaling filesystems exist).

It it possible to make a sync BEFORE an timeout-based a standby/spindown?

Empirical proof that no sync is done currently:

Scenario A)
1) send an HDD to standby mode [HDD spins down]
2) do sync (from command line) [HDD spins up again!!!]

Scenario B)
0) do sync first
1) send an HDD to standby mode [HDD spins down]
2) do sync again [HDD stays off!!!]

Discussion

  • Ivan

    Ivan - 2011-05-14

    Sorry, had to find out that in Scenario B the HDD only sometimes stays off. I don't know on what it depends.

     
  • Mark Lord

    Mark Lord - 2012-09-28
    • status: open --> closed-wont-fix
     
  • Mark Lord

    Mark Lord - 2012-09-28

    The -S timeout based spin down is done by the drive itself.
    So it is not really possible for hdparm to do a sync() every time
    just before the drive itself decides to spin-down.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks