Ciao a tutti!
Ho un problema con il mio hard disk: fa un po' troppi load/unload cycle count! Conosco già il problema di laptop-mode a batteria che riduce la vita dei dischi perchè imposta 1 in hdparm -B, ma ho già provveduto a modificare... e qui sta la prima domanda: cosa è meglio mettere? Se metto 254 sento che il disco non stacca le testine quasi mai, però la temperatura del disco, senza fare assolutamente niente, sale a 48°C (figuriamoci con un uso intenso...), contro i 42-43°C di media usando windows (è un dual boot). Lasciandolo a 128 la temperatura scende a 41°C, temperatura ottima, ma, a quanto pare, fa un po' troppi cicli.
Su windows ho HDDHealth che controlla la smart del disco e mi rileva che anche con windows ha un 128 impostato come powermanagement...
Altra cosa che ho notato è che il disco è sempre in funzione (con -B 128, sempre se influenza anche lo spegnimento...). Quando avevo Ubuntu e facevo sempre la stessa cosa (scrivere su Openoffice oppure lasciare il pc acceso in attesa senza programmi caricati) il disco mi si spegneva per il mancato utilizzo (avevo impostato il timer a 3 minuti).
Come faccio a sapere chi mi utilizza il disco? Ho già settato laptop-mode:
#
# Maximum time, in seconds, of work that you are prepared to lose when your
# system crashes or power runs out. This is the maximum time that Laptop Mode
# will keep unsaved data waiting in memory before spinning up your hard drive.
#
LM_BATT_MAX_LOST_WORK_SECONDS=3000
LM_AC_MAX_LOST_WORK_SECONDS=3000
#
# Should laptop mode tools control readahead?
#
CONTROL_READAHEAD=1
#
# Read-ahead, in kilobytes. You can spin down the disk while playing MP3/OGG
# by setting the disk readahead to a reasonable size, e.g. 3072 (3 MB).
# Effectively, the disk will read a complete MP3 at once, and will then spin
# down while the MP3/OGG is playing. Don't set this too high, because the
# readahead is applied to _all_ files that are read from disk.
#
LM_READAHEAD=6144
NOLM_READAHEAD=6144
#
# Should laptop mode tools add the "noatime" option to the mount options when
# laptop mode is enabled?
#
CONTROL_NOATIME=1
#
# Should laptop mode tools control the hard drive idle timeout settings?
#
CONTROL_HD_IDLE_TIMEOUT=1
#
# Idle timeout values. (hdparm -S)
# Default is 2 hours on AC (NOLM_HD_IDLE_TIMEOUT_SECONDS=7200) and 20 seconds
# for battery and for AC with laptop mode on.
#
LM_AC_HD_IDLE_TIMEOUT_SECONDS=180
LM_BATT_HD_IDLE_TIMEOUT_SECONDS=180
NOLM_HD_IDLE_TIMEOUT_SECONDS=180
#
# Should laptop mode tools control the hard drive power management settings?
#
CONTROL_HD_POWERMGMT=1
#
# Power management for HD (hdparm -B values)
#
BATT_HD_POWERMGMT=200
LM_AC_HD_POWERMGMT=200
NOLM_AC_HD_POWERMGMT=200
#
# Should laptop mode tools control the hard drive write cache settings?
#
CONTROL_HD_WRITECACHE=1
#
# Write cache settings for HD (hdparm -W values)
#
NOLM_AC_HD_WRITECACHE=1
NOLM_BATT_HD_WRITECACHE=1
LM_HD_WRITECACHE=1
In /etc/sysctl.conf ho aggiunto
vm/laptop_mode = 2
vm/dirty_writeback_centisecs = 90000
vm/dirty_expire_centisecs = 90000
vm/dirty_ratio = 95
vm/dirty_background_ratio = 20
C'è qualcos'altro che posso fare? Sopratutto sapere che programmi mi utilizzano il disco...
Grazie!
Ciao!