Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#676 Le 17/12/2007, à 13:27

boolat

Re : Vieillissement prématuré des disques durs de portables

pour l'instant je suis bien content de trouver se post !!!
il est 12H12 avec 45905 maintenant 12H25 avec 45905 big_smile

toujour pas de changement ! je suis bien content ! quand je pense qu'ubuntu pouvait détruire mon disque dure mad

bon je test pendant 24H et je vous dit quoi ....

on devrait sérieusement prévenir les utilisateur sur laptop pour se genre de problème sérieux sur la version a venir  !

Dernière modification par boolat (Le 17/12/2007, à 13:28)


Acer Aspire 9305 AWSMI - Ubuntu 9.04

Hors ligne

#677 Le 17/12/2007, à 14:30

Sorbus

Re : Vieillissement prématuré des disques durs de portables

@boolat
modifie un peu ta signature : "vous risquez" et "disque dur" wink

Et je vais être prudent... Il semblerait que ce problème existe - au moins à des degrés variés... et avec certaines configurations - sous différentes distributions Linux... et aussi sous différents systèmes d'exploitation (dont Windows).

Ce ne serait donc pas Ubuntu qui détruirait les disques dur mais un rapport complexe entre système d'exploitation - configurations et réglages - gestion de l'ACPI - disques durs.

Voir quelques messages de ce fil à partir d'ici :
http://forum.ubuntu-fr.org/viewtopic.ph … 7#p1355837

Hors ligne

#678 Le 17/12/2007, à 15:43

Sorbus

Re : Vieillissement prématuré des disques durs de portables

Là , je ne vais pas être prudent, mais affirmatif.

Mon portable a d'abord tourné pendant près d'un an et demi uniquement sous Windows XP. Depuis un an, il est en double-boot, et je suis le plus souvent sous Ubuntu (successivement Edgy, Feisty et Gutsy).

Ce matin... et jusque vers 14h, il a tourné sous Ubuntu, sur secteur pendant 6h. Il n'a augmenté que d'un Load_Cycle (au démarrage).

J'ai redémarré - juste pour voir - sous XP.

J'ai fait quelques rapports Smart avec Everest.

--> D'abord, 15' sur secteur.
Load_Cycle_Count à  14h15 : 101695
Load_Cycle_Count à  14h30 : 101703

ça fait du 32/heure (sans compter le +1 au démarrage)
Ce n'est pas énorme, mais c'est plus que zéro/6h sous Ubuntu ce matin.

Je suis en train de tester 15' sur batterie sous XP. J'édite ce message pour compléter dès que j'ai le résultat.

--> Voici la suite, 15' sur batterie
Load_Cycle_Count à  14h32 : 101704
Load_Cycle_Count à  14h47 : 101733

ça fait 116/heure
Là ... c'est déjà  plus...

Je comprends donc assez bien pourquoi j'ai un Load_Cycle relativement élevé, puisque j'avais l'habitude de tourner souvent sur batterie... et longtemps uniquement sous Windows.

En ce qui me concerne, ça n'explique pas tout... puisque le moyenne d'augmentation du Load_Cycle depuis un mois est assez similaire à  la moyenne sur l'ensemble de la durée d'utilisation de ce PC... Et depuis un mois, je suis surtout sous Ubuntu... mais il m'est arrivé, pour utiliser certains programmes de tourner sous Windows, à  plusieurs reprises. Et ceci peut expliquer les fluctuations concernant l'évolution du Load_Cycle...

Bien... je retourne vite sous Ubuntu après avoir effectué ce petit test tongue

Remarque au passage : je pense que la proportion d'utilisateurs de Windows informés de cette question doit être assez inférieure à  celle d'utilisateurs de Linux.

Dernière modification par Sorbus (Le 17/12/2007, à 15:59)

Hors ligne

#679 Le 17/12/2007, à 16:12

Super_maçoN

Re : Vieillissement prématuré des disques durs de portables

Bonjour,

Bon je me permet de vous déranger car celà  fait un moi maintenant que je regarde ce sujet et aujourd'hui je suis toujours autant paumé.

En gros il y'a un moi ( le 2 novembre exactement ^^ ) j'obtenais ces valeurs :

193 Load_Cycle_Count        0x0032   099   099   000    Old_age   Always       -       28662
bernie@Bernie-lap:~$ sudo smartctl -a /dev/sda | grep Load_Cycle
[sudo] password for bernie:
193 Load_Cycle_Count        0x0032   099   099   000    Old_age   Always       -       28683
bernie@Bernie-lap:~$

Aujourd'hui :

193 Load_Cycle_Count        0x0032   099   099   000    Old_age   Always       -       35646

Ce qui ne me semble pas énorme sachant que j'utilise mon portable quotidiennement, pour du graphisme donc entre 4 et 10h00 de Gimp par jour. Le PC a plus d'un an maintenant, et je ne le ménage pas, il est allumé quasiment 24/24 ( sauf depuis la découverte de ce topique :s ).

Mais aujourd'hui en suivant le tuto j'ai eut très peur, car j'obtient ceci :

 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       919
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       89
193 Load_Cycle_Count        0x0032   099   099   000    Old_age   Always       -       35646

Donc une grande différence entre Power_Cycle_Count et Load_Cycle_Count, et il est indiqué dans la doc qu'une trop grande différence est dangereuse.
Je ne sais donc plus trop quoi penser.

J'ai donc suivit le tuto, voici mon actuel laptop-mode.conf

###############################################################################
#
# Configuration for Laptop Mode Tools
# -----------------------------------
#
# There is a "system" to the configuration setting names:
#    CONTROL_something=0/1   Determines whether Laptop Mode Tools controls 
#                            something
#    LM_something=value      Value of "something" when laptop mode is active
#    NOLM_something=value    Value of "something" when laptop mode is NOT
#                            active
#    AC_something=value      Value of "something" when the computer is running
#                            on AC power
#    BATT_something=value    Value of "something when the computer is running
#                            on battery power
#
# There can be combinations of LM_/NOLM_ and AC_/BATT_ prefixes, but the
# available prefixes are different for each setting. The available ones are 
# documented in the manual page, laptop-mode.conf(8). If there is no LM_/
# NOLM_ in a setting name, then the value is used independently of laptop
# mode state, and similarly, if there is no AC_/BATT_, then the value is used
# independently of power state.
#
# Some options only work on ACPI systems. They are marked ACPI-ONLY.
#
# Note that this configuration file is a fragment of bash shell script: you
# can use all the features of the bash scripting language to achieve your
# desired configuration.
#
# 
# IMPORTANT: Laptop Mode Tools modules have separate configuration files, that
# can be found in /etc/laptop-mode/conf.d. Please look through these
# configuration files as well!
#
###############################################################################



###############################################################################
# Configuration debugging
# -----------------------
###############################################################################


#
# Set this to 1 if you want to see a lot of information when you start/stop 
# laptop_mode.
#
VERBOSE_OUTPUT=0



###############################################################################
# When to enable laptop mode
# --------------------------
#
# "Laptop mode" is the mode in which laptop mode tools makes the computer
# consume less power. This includes the kernel "laptop_mode" feature, which
# allows your hard drives to spin down, as well as various other settings which
# can be tweaked by laptop mode tools. You can enable or disable all of these
# settings using the CONTROL_... options further down in this config file.
###############################################################################


#
# Enable laptop mode when on battery power.
#
ENABLE_LAPTOP_MODE_ON_BATTERY=1


#
# Enable laptop mode when on AC power.
#
ENABLE_LAPTOP_MODE_ON_AC=1


#
# Enable laptop mode when the laptop's lid is closed, even when we're on AC
# power? (ACPI-ONLY)
#
ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=0



###############################################################################
# When to enable data loss sensitive features
# -------------------------------------------
#
# When data loss sensitive features are disabled, laptop mode tools acts as if
# laptop mode were disabled, for those features only.
#
# Data loss sensitive features include:
# - laptop_mode (i.e., delayed writes)
# - hard drive write cache
#
# All of the options that follow can be set to 0 in order to prevent laptop
# mode tools from using them to stop data loss sensitive features. Use this
# when you have a battery that reports the wrong information, that confuses
# laptop mode tools.
#
# Disabling data loss sensitive features is ACPI-ONLY.
###############################################################################


#
# Disable all data loss sensitive features when the battery level (in % of the
# battery capacity) reaches this value.
#
MINIMUM_BATTERY_CHARGE_PERCENT=3


#
# Disable data loss sensitive features when the battery reports its state
# as "critical".
#
DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL=1


###############################################################################
# Controlled hard drives and partitions
# -------------------------------------
#
# For spinning down your hard drives, laptop mode will remount file systems and
# adjust hard drive spindown timeouts. These parameters specify which
# devices and partitions are affected by laptop mode.
###############################################################################


#
# The drives that laptop mode controls.
# Separate them by a space, e.g. HD="/dev/hda /dev/hdb". The default is a
# wildcard, which will get you all your IDE and SCSI/SATA drives.
#
HD="/dev/[hs]d[abcdefgh]"


#
# The partitions (or mount points) that laptop mode controls.
# Separate the values by spaces. Use "auto" to indicate all partitions on drives
# listed in HD. You can add things to "auto", e.g. "auto /dev/hdc3". You can
# also specify mount points, e.g. "/mnt/data".
#
PARTITIONS="auto /dev/mapper/*"


#
# If this is enabled, laptop mode tools will assume that SCSI drives are
# really SATA drives that only _look_ like SCSI drives, and will use hdparm
# to control them. Set this to 0 if you have /dev/sd devices and you want
# laptop mode tools to use the "sdparm" command to control them. 
#
ASSUME_SCSI_IS_SATA=1


###############################################################################
# Hard drive behaviour settings
# -----------------------------
#
# These settings specify how laptop mode tools will adjust the various
# parameters of your hard drives and file systems.
###############################################################################


#
# 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=1200
LM_AC_MAX_LOST_WORK_SECONDS=360


#
# 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=3072
NOLM_READAHEAD=128


#
# Should laptop mode tools add the "noatime" option to the mount options when 
# laptop mode is enabled?
#
CONTROL_NOATIME=0


#
# 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=20
LM_BATT_HD_IDLE_TIMEOUT_SECONDS=20
NOLM_HD_IDLE_TIMEOUT_SECONDS=7200


#
# Should laptop mode tools control the hard drive power management settings?
#
CONTROL_HD_POWERMGMT=0


#
# Power management for HD (hdparm -B values)
#
BATT_HD_POWERMGMT=1
LM_AC_HD_POWERMGMT=255
NOLM_AC_HD_POWERMGMT=255


#
# Should laptop mode tools control the hard drive write cache settings?
#
CONTROL_HD_WRITECACHE=0


#
# Write cache settings for HD (hdparm -W values)
#
NOLM_AC_HD_WRITECACHE=1
NOLM_BATT_HD_WRITECACHE=0
LM_HD_WRITECACHE=0



###############################################################################
# CPU frequency scaling and throttling
# ------------------------------------
#
# Laptop mode tools can automatically adjust your kernel CPU frequency
# settings. This includes upper and lower limits and scaling governors.
# There is also support for CPU throttling, on systems that don't support
# frequency scaling.
#
# This feature only works on 2.6 kernels.
###############################################################################


#
# Should laptop mode tools control the maximum CPU frequency?
#
CONTROL_CPU_FREQUENCY=0


#
# Legal values are "slowest" for the slowest speed that your
# CPU is able to operate at, "fastest" for the fastest speed,
# "medium" for some value in the middle, or any value listed in
# /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies.
# The "governor" can be any governor installed on your system, this usually
# includes "ondemand", "conservative", and "performance". The
# "IGNORE_NICE_LOAD" setting specifies that background programs that have
# a low priority ("nice level") should not cause the CPU frequency to
# be increased. (You generally want this to be enabled in battery mode.)
#
BATT_CPU_MAXFREQ=medium
BATT_CPU_MINFREQ=slowest
BATT_CPU_GOVERNOR=ondemand
BATT_CPU_IGNORE_NICE_LOAD=1
LM_AC_CPU_MAXFREQ=fastest
LM_AC_CPU_MINFREQ=slowest
LM_AC_CPU_GOVERNOR=ondemand
LM_AC_CPU_IGNORE_NICE_LOAD=1
NOLM_AC_CPU_MAXFREQ=fastest
NOLM_AC_CPU_MINFREQ=slowest
NOLM_AC_CPU_GOVERNOR=performance
NOLM_AC_CPU_IGNORE_NICE_LOAD=0


#
# Should laptop mode tools control the CPU throttling? This is only useful
# on processors that don't have frequency scaling.
# (Only works when you have /proc/acpi/processor/CPU*/throttling.)
#
CONTROL_CPU_THROTTLING=0


#
# Legal values are "maximum" for the maximum (slowest) throttling level,
# "minimum" for minimum (fastest) throttling level, "medium" for a value
# somewhere in the middle (this is usually 50% for P4s), or any value listed
# in /proc/acpi/processor/CPU*/throttling. Be careful when using "maximum":
# this may be _very_ slow (in fact, with P4s it slows down the processor
# by a factor 8).
#
BATT_CPU_THROTTLING=medium
LM_AC_CPU_THROTTLING=medium
NOLM_AC_CPU_THROTTLING=minimum



###############################################################################
# Syslog configuration control
# ----------------------------
# 
# Syslog daemons have a tendency to sync their log files when entries are
# written to them. This causes disks to spin up, which is not very nice when
# you're trying to save power. The syslog.conf can be tweaked to *not* sync
# a given file, by prepending the log file name with a dash, like this:
#
# 	mail.*		-/var/log/mail/mail.log
#
# Using the following options, you can let laptop mode switch between
# different syslog configurations depending on whether you are working on
# battery or on AC power. To set this up, start by configuring these options
# for your syslog daemon, and then run lm-syslog-setup to create the various
# files. Then edit the laptop mode-specific syslog configuration files to
# remove the syncs only when laptop mode is active.
###############################################################################


#
# Should laptop mode tools control which syslog.conf should be used?
#
CONTROL_SYSLOG_CONF=0


#
# Laptop mode tools controls syslog.conf by replacing /etc/syslog.conf (or
# whatever you specify in SYSLOG_CONF) by a link to the files configured here.
# NOTE: these files are NOT created by default, and if they do not
# exist this feature will not work. You can run the script
# /usr/sbin/lm-syslog-setup to set things up.
#
LM_AC_SYSLOG_CONF=/etc/syslog-on-ac-with-lm.conf
NOLM_AC_SYSLOG_CONF=/etc/syslog-on-ac-without-lm.conf
BATT_SYSLOG_CONF=/etc/syslog-on-battery.conf


#
# Signal this program when syslog.conf has been replaced.
#
SYSLOG_CONF_SIGNAL_PROGRAM=syslogd


#
# This is the syslog configuration file that should be replaced by a link to
# the other files.
#
SYSLOG_CONF=/etc/syslog.conf



###############################################################################
# X display settings
# ------------------
#
# Using these settings, you can let laptop mode tools control the X display
# standby timeouts.
#
# This requires that you have installed the "xset" utility. It is part of the
# X.org server distribution and included in the package xorg-server-utils.
#
# The X settings are not automatically applied on login, and this is
# impossible fix for the user, since laptop mode tools must operate as root.
# Therefore, it is recommended to add the following line to /etc/X11/Xsession
# as well:
#
#   /usr/sbin/laptop_mode force
#
###############################################################################


#
# Should laptop mode tools control DPMS standby settings for X displays?
#
CONTROL_DPMS_STANDBY=0


#
# These settings specify the standby timeout for the X display,
# in seconds. The suspend and poweroff timeouts are somewhat
# larger values derived from these values.
#
BATT_DPMS_STANDBY=300
LM_AC_DPMS_STANDBY=1200
NOLM_AC_DPMS_STANDBY=1200



###############################################################################
# Terminal settings
# -----------------
#
# Using these settings, you can let laptop mode tools control the terminal
# blanking timeouts. This only works for linux virtual consoles.
#
###############################################################################


#
# Should laptop mode tools control terminal blanking settings?
#
CONTROL_TERMINAL=0


#
# Terminal device files that should be affected. (One terminal is enough, this
# affects all consoles. )
#
TERMINALS="/dev/tty1"


#
# These settings specify the blanking and powerdown timeouts. Note that
# the powerdown timeout is counted from the moment the screen is blanked,
# i.e. BLANK_MINUTES=2 and POWERDOWN_MINUTES=5 means the screen powers
# down after 7 minutes of inactivity. The range for all these settings is
# 1 to 60 minutes, or 0 to disable.
#
BATT_TERMINAL_BLANK_MINUTES=1
BATT_TERMINAL_POWERDOWN_MINUTES=2
LM_AC_TERMINAL_BLANK_MINUTES=10
LM_AC_TERMINAL_POWERDOWN_MINUTES=10
NOLM_AC_TERMINAL_BLANK_MINUTES=10
NOLM_AC_TERMINAL_POWERDOWN_MINUTES=50


###############################################################################
# LCD brightness settings
# -----------------------
#
# Using these settings, you can make laptop mode tools automatically adjust
# your LCD's brightness settings. The settings are extremely simple -- they
# only allow for the execution of a command, nothing more. The reason for this
# is that LCD brightness settings are very different between laptop vendors.
#
# Suggestions for commands:
#
#  * If your system has the file "/proc/acpi/video/VID/LCD/brightness" (VID may
#    be VID1 or similar), use this file as BRIGHTNESS_OUTPUT, and use
#    the command "echo <value>". The possible values can be listed using the
#    command:
#
#       cat /proc/acpi/video/VID/LCD/brightness
#
#  * If you have a file /sys/class/backlight/.../brightness, then you can use
#    that file as BRIGHTNESS_OUTPUT, and the command "echo <value>".
#
#    As far as I understand it the values are between 0 and
#    the value contained in the file /sys/class/backlight/.../max_brightness.
#
#  * For Toshiba laptops, use the command "toshset" with the -lcd or -inten
#    command. Read the toshset(1) manual page for more information on the
#    parameters for this command. If you use this command, set
#    BRIGHTNESS_OUTPUT to "/dev/null".
#
###############################################################################


#
# Should laptop mode tools control LCD brightness?
#
CONTROL_BRIGHTNESS=0


#
# Commands to execute to set the brightness on your LCD
#
BATT_BRIGHTNESS_COMMAND="echo [value]"
LM_AC_BRIGHTNESS_COMMAND="echo [value]"
NOLM_AC_BRIGHTNESS_COMMAND="echo [value]"
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD/brightness"


###############################################################################
# Auto-hibernation settings
# -------------------------
#
# Using these settings, you can make laptop mode tools automatically put your
# computer into hibernation when the battery level goes critically low.
#
# This feature only works on ACPI, and only works on computers whose batteries
# give off battery events often enough.
###############################################################################


#
# Should laptop mode tools perform auto-hibernation?
#
ENABLE_AUTO_HIBERNATION=0


#
# The hibernation command that is to be executed when auto-hibernation
# is triggered.
#
HIBERNATE_COMMAND=/usr/sbin/hibernate


#
# Auto-hibernation battery level threshold, in percentage of the battery's
# total capacity.
#
AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT=2


#
# Enable this to auto-hibernate if the battery reports that its level is
# "critical".
#
AUTO_HIBERNATION_ON_CRITICAL_BATTERY_LEVEL=1



###############################################################################
# Start/Stop Programs settings
# ----------------------------
#
# Laptop mode tools can automatically start and stop programs when entering
# various power modes. Put scripts accepting "start" and "stop" parameters
# in the directories /etc/laptop-mode/batt-stop, batt-start, lm-ac-stop,
# lm-ac-start, nolm-ac-stop and nolm-ac-start. Laptop mode will call the
# scripts in a state-"stop" directory with the "stop" parameter when entering
# the state in question, and it will call the same scripts with the "start"
# parameter when leaving the state. Scripts in a state-"start" directory are
# called with the "start" parameter when the specified state is entered, and
# with the "stop" parameter when the specified state is left.
###############################################################################


#
# Should laptop mode start and stop programs? 
#
CONTROL_START_STOP=1



###############################################################################
# Settings you probably don't want to touch
# -----------------------------------------
#
# It is usually not necessary to change these parameters. They are included
# for completeness' sake.
###############################################################################


#
# Change mount options on partitions in PARTITIONS? You don't really want to
# disable this. If you do, then your hard drives will probably not spin down
# anymore.
#
CONTROL_MOUNT_OPTIONS=1


#
# Dirty synchronous ratio.  At this percentage of dirty pages the process
# which calls write() does its own writeback.
#
LM_DIRTY_RATIO=60
NOLM_DIRTY_RATIO=40


#
# Allowed dirty background ratio, in percent.  Once DIRTY_RATIO has been
# exceeded, the kernel will wake pdflush which will then reduce the amount
# of dirty memory to dirty_background_ratio.  Set this nice and low, so once
# some writeout has commenced, we do a lot of it.
#
LM_DIRTY_BACKGROUND_RATIO=1
NOLM_DIRTY_BACKGROUND_RATIO=10


#
# kernel default settings -- don't touch these unless you know what you're 
# doing.
#
DEF_UPDATE=5
DEF_XFS_AGE_BUFFER=15
DEF_XFS_SYNC_INTERVAL=30
DEF_XFS_BUFD_INTERVAL=1
DEF_MAX_AGE=30


#
# This must be adjusted manually to the value of HZ in the running kernel
# on 2.4, until the XFS people change their 2.4 external interfaces to work in
# centisecs. This can be automated, but it's a work in progress that still
# needs some fixes. On 2.6 kernels, XFS uses USER_HZ instead of HZ for
# external interfaces, and that is currently always set to 100. So you don't
# need to change this on 2.6.
#
XFS_HZ=100


#
# Seconds laptop mode has to to wait after the disk goes idle before doing
# a sync.
#
LM_SECONDS_BEFORE_SYNC=2

J'ai changé les premières valeurs indiqué dans la doc, mais je ne sais pas quoi faire pour le parcage ( je ne sais même pas ce que cela signifie :s ) et j'avoue être très frileux a changer tout ça d'autant que je dois prendre le train demain avec mon PC.

A noter que je sens une différence depuis que j'ai activé le laptop mode, mon disque semble se reveiller a chaque fois que j'agi ( lancement de nautilius ou autre ).

Raah c'est la panique, je ne sais même pas si je suis pas en train de flinguer mon pc ( avec 10 mois de boulot dessus, je vais vite graver tout ça ), peut être devrais je juste revenir comme avant en désactivant le laptop mode, je ne sais même plus :s

Dernière modification par Super_maçoN (Le 17/12/2007, à 16:16)

Hors ligne

#680 Le 17/12/2007, à 16:13

Sorbus

Re : Vieillissement prématuré des disques durs de portables

Je complète par une copie d'écran du rapport Smart délivré par Everest sous Windows... Pour indiquer la façon dont Everest interprète ces données.

N.B., Les trois colonnes
VALUE = valeur
WORST = pire valeur
et
TRESH = seuil
ne sont pas dans le même ordre que dans un rapport délivré par smartctl.

9856084320071217150952.jpg

Dernière modification par Sorbus (Le 17/12/2007, à 16:14)

Hors ligne

#681 Le 17/12/2007, à 16:23

Sorbus

Re : Vieillissement prématuré des disques durs de portables

@Super_maçoN

Ne t'affole surtout pas. Tes valeurs sont très bonnes.
Ne compare pas Power_Cycle_Count et Load_Cycle_Count...
... ton PC fonctionne longtemps sans redémarrage... Il est normal que le rapport entre ces deux valeurs soit (relativement) fort.

La doc n'est pas au point dans son paragraphe diagnostic.
Regarde le lien que j'y ai ajouté en commentaire.
Je te remets le lien ici :
http://forum.ubuntu-fr.org/viewtopic.ph … 7#p1366017

Il est beaucoup plus instructif de comparer Power_on_Hours et Load_Cycle_Count. Dis nous ce que ça donne chez toi.

Pour des calculs plus instructifs, voir ici :
http://forum.ubuntu-fr.org/viewtopic.php?pid=1362545#p1362545
(les deux liens indiqués dans ce post)

Hors ligne

#682 Le 17/12/2007, à 16:37

Super_maçoN

Re : Vieillissement prématuré des disques durs de portables

Sorbus merci, tu viens d'enlever une sacrée pression qui montait depuis 2/3heures dans ma tête ^^

Donc en effet ton raisonement est juste ( je l'avait zappé celui là  ), j'ai toujours mon portable sur secteur, et il reboot très peu ( peut être une fois tous les 3/4 jours ) depuis que je suis complètement sous ubuntu ( environ 6mois que je ne boot plus sous win XP ).

Je n'ai pas par contre de valeur power on hour, mais juste un power on second

9 Power_On_Seconds        0x0032   090   090   000    Old_age   Always       -       1h+26m+18s

Au cas o๠la totalité de la réponse a la commende

bernie@Bernie-lap:~$ sudo smartctl -a /dev/sda
smartctl version 5.37 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Model Family:     Fujitsu MHV series
Device Model:     FUJITSU MHV2080BH PL
Serial Number:    NW9ZT6725RL8
Firmware Version: 892C
User Capacity:    80 026 361 856 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  ATA/ATAPI-7 T13 1532D revision 4a
Local Time is:    Mon Dec 17 15:26:35 2007 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever 
                                        been run.
Total time to complete Offline 
data collection:                 ( 471) seconds.
Offline data collection
capabilities:                    (0x5b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine 
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        (  55) minutes.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   100   100   046    Pre-fail  Always       -       128356
  2 Throughput_Performance  0x0005   100   100   030    Pre-fail  Offline      -       22282240
  3 Spin_Up_Time            0x0003   100   100   025    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   099   099   000    Old_age   Always       -       1367
  5 Reallocated_Sector_Ct   0x0033   100   100   024    Pre-fail  Always       -       8589934592000
  7 Seek_Error_Rate         0x000f   100   100   047    Pre-fail  Always       -       1884
  8 Seek_Time_Performance   0x0005   100   100   019    Pre-fail  Offline      -       0
  9 Power_On_Seconds        0x0032   090   090   000    Old_age   Always       -       1h+26m+18s
 10 Spin_Retry_Count        0x0013   100   100   020    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       919
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       89
193 Load_Cycle_Count        0x0032   099   099   000    Old_age   Always       -       35668
194 Temperature_Celsius     0x0022   100   100   000    Old_age   Always       -       34 (Lifetime Min/Max 10/48)
195 Hardware_ECC_Recovered  0x001a   100   100   000    Old_age   Always       -       1647
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       454688768
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x000f   100   100   060    Pre-fail  Always       -       4203
203 Run_Out_Cancel          0x0002   100   100   000    Old_age   Always       -       2632775565171
240 Head_Flying_Hours       0x003e   200   200   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]


SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

bernie@Bernie-lap:~$

Bon du coup j'ai désactivé le laptop mode dans /etc/default/acpi-support

Depuis mon premier post ( un reboot et environ 30min )

bernie@Bernie-lap:~$ sudo smartctl -a /dev/sda | grep Load_Cycle_Count
193 Load_Cycle_Count        0x0032   099   099   000    Old_age   Always       -       35668
bernie@Bernie-lap:~$

Donc je ne suis pas concerné hein ? Pas la peine que je capte hein ? Je suis sauvé ? ^^
( c'est flippant car j'entends aussi des ptits bruits réguliers venant du dur hmm, z'êtes en train de me rendre parano avec mon pc ! ^^ )

Dernière modification par Super_maçoN (Le 17/12/2007, à 16:43)

Hors ligne

#683 Le 17/12/2007, à 17:26

boolat

Re : Vieillissement prématuré des disques durs de portables

bon je suis passer de 45905 a 45906 total 5H c'est bon non ?

bon on ne sais jamais ... je préfère quand même montrer mon actuel laptop-mode.conf :

###############################################################################
#
# Configuration for Laptop Mode Tools
# -----------------------------------
#
# There is a "system" to the configuration setting names:
#    CONTROL_something=0/1   Determines whether Laptop Mode Tools controls 
#                            something
#    LM_something=value      Value of "something" when laptop mode is active
#    NOLM_something=value    Value of "something" when laptop mode is NOT
#                            active
#    AC_something=value      Value of "something" when the computer is running
#                            on AC power
#    BATT_something=value    Value of "something when the computer is running
#                            on battery power
#
# There can be combinations of LM_/NOLM_ and AC_/BATT_ prefixes, but the
# available prefixes are different for each setting. The available ones are 
# documented in the manual page, laptop-mode.conf(8). If there is no LM_/
# NOLM_ in a setting name, then the value is used independently of laptop
# mode state, and similarly, if there is no AC_/BATT_, then the value is used
# independently of power state.
#
# Some options only work on ACPI systems. They are marked ACPI-ONLY.
#
# Note that this configuration file is a fragment of bash shell script: you
# can use all the features of the bash scripting language to achieve your
# desired configuration.
#
# 
# IMPORTANT: Laptop Mode Tools modules have separate configuration files, that
# can be found in /etc/laptop-mode/conf.d. Please look through these
# configuration files as well!
#
###############################################################################



###############################################################################
# Configuration debugging
# -----------------------
###############################################################################


#
# Set this to 1 if you want to see a lot of information when you start/stop 
# laptop_mode.
#
VERBOSE_OUTPUT=0



###############################################################################
# When to enable laptop mode
# --------------------------
#
# "Laptop mode" is the mode in which laptop mode tools makes the computer
# consume less power. This includes the kernel "laptop_mode" feature, which
# allows your hard drives to spin down, as well as various other settings which
# can be tweaked by laptop mode tools. You can enable or disable all of these
# settings using the CONTROL_... options further down in this config file.
###############################################################################


#
# Enable laptop mode when on battery power.
#
ENABLE_LAPTOP_MODE_ON_BATTERY=1


#
# Enable laptop mode when on AC power.
#
ENABLE_LAPTOP_MODE_ON_AC=1


#
# Enable laptop mode when the laptop's lid is closed, even when we're on AC
# power? (ACPI-ONLY)
#
ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=1



###############################################################################
# When to enable data loss sensitive features
# -------------------------------------------
#
# When data loss sensitive features are disabled, laptop mode tools acts as if
# laptop mode were disabled, for those features only.
#
# Data loss sensitive features include:
# - laptop_mode (i.e., delayed writes)
# - hard drive write cache
#
# All of the options that follow can be set to 0 in order to prevent laptop
# mode tools from using them to stop data loss sensitive features. Use this
# when you have a battery that reports the wrong information, that confuses
# laptop mode tools.
#
# Disabling data loss sensitive features is ACPI-ONLY.
###############################################################################


#
# Disable all data loss sensitive features when the battery level (in % of the
# battery capacity) reaches this value.
#
MINIMUM_BATTERY_CHARGE_PERCENT=3


#
# Disable data loss sensitive features when the battery reports its state
# as "critical".
#
DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL=1


###############################################################################
# Controlled hard drives and partitions
# -------------------------------------
#
# For spinning down your hard drives, laptop mode will remount file systems and
# adjust hard drive spindown timeouts. These parameters specify which
# devices and partitions are affected by laptop mode.
###############################################################################


#
# The drives that laptop mode controls.
# Separate them by a space, e.g. HD="/dev/hda /dev/hdb". The default is a
# wildcard, which will get you all your IDE and SCSI/SATA drives.
#
HD="/dev/[hs]d[abcdefgh]"


#
# The partitions (or mount points) that laptop mode controls.
# Separate the values by spaces. Use "auto" to indicate all partitions on drives
# listed in HD. You can add things to "auto", e.g. "auto /dev/hdc3". You can
# also specify mount points, e.g. "/mnt/data".
#
PARTITIONS="auto /dev/mapper/*"


#
# If this is enabled, laptop mode tools will assume that SCSI drives are
# really SATA drives that only _look_ like SCSI drives, and will use hdparm
# to control them. Set this to 0 if you have /dev/sd devices and you want
# laptop mode tools to use the "sdparm" command to control them. 
#
ASSUME_SCSI_IS_SATA=1


###############################################################################
# Hard drive behaviour settings
# -----------------------------
#
# These settings specify how laptop mode tools will adjust the various
# parameters of your hard drives and file systems.
###############################################################################


#
# 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=1200
LM_AC_MAX_LOST_WORK_SECONDS=1200


#
# 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=3072
NOLM_READAHEAD=128


#
# 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=1200
LM_BATT_HD_IDLE_TIMEOUT_SECONDS=1200
NOLM_HD_IDLE_TIMEOUT_SECONDS=1200


#
# 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=1
LM_AC_HD_POWERMGMT=254
NOLM_AC_HD_POWERMGMT=254


#
# 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=0
LM_HD_WRITECACHE=1



###############################################################################
# CPU frequency scaling and throttling
# ------------------------------------
#
# Laptop mode tools can automatically adjust your kernel CPU frequency
# settings. This includes upper and lower limits and scaling governors.
# There is also support for CPU throttling, on systems that don't support
# frequency scaling.
#
# This feature only works on 2.6 kernels.
###############################################################################


#
# Should laptop mode tools control the maximum CPU frequency?
#
CONTROL_CPU_FREQUENCY=0


#
# Legal values are "slowest" for the slowest speed that your
# CPU is able to operate at, "fastest" for the fastest speed,
# "medium" for some value in the middle, or any value listed in
# /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies.
# The "governor" can be any governor installed on your system, this usually
# includes "ondemand", "conservative", and "performance". The
# "IGNORE_NICE_LOAD" setting specifies that background programs that have
# a low priority ("nice level") should not cause the CPU frequency to
# be increased. (You generally want this to be enabled in battery mode.)
#
BATT_CPU_MAXFREQ=medium
BATT_CPU_MINFREQ=slowest
BATT_CPU_GOVERNOR=ondemand
BATT_CPU_IGNORE_NICE_LOAD=1
LM_AC_CPU_MAXFREQ=fastest
LM_AC_CPU_MINFREQ=slowest
LM_AC_CPU_GOVERNOR=ondemand
LM_AC_CPU_IGNORE_NICE_LOAD=1
NOLM_AC_CPU_MAXFREQ=fastest
NOLM_AC_CPU_MINFREQ=slowest
NOLM_AC_CPU_GOVERNOR=performance
NOLM_AC_CPU_IGNORE_NICE_LOAD=0


#
# Should laptop mode tools control the CPU throttling? This is only useful
# on processors that don't have frequency scaling.
# (Only works when you have /proc/acpi/processor/CPU*/throttling.)
#
CONTROL_CPU_THROTTLING=0


#
# Legal values are "maximum" for the maximum (slowest) throttling level,
# "minimum" for minimum (fastest) throttling level, "medium" for a value
# somewhere in the middle (this is usually 50% for P4s), or any value listed
# in /proc/acpi/processor/CPU*/throttling. Be careful when using "maximum":
# this may be _very_ slow (in fact, with P4s it slows down the processor
# by a factor 8).
#
BATT_CPU_THROTTLING=medium
LM_AC_CPU_THROTTLING=medium
NOLM_AC_CPU_THROTTLING=minimum



###############################################################################
# Syslog configuration control
# ----------------------------
# 
# Syslog daemons have a tendency to sync their log files when entries are
# written to them. This causes disks to spin up, which is not very nice when
# you're trying to save power. The syslog.conf can be tweaked to *not* sync
# a given file, by prepending the log file name with a dash, like this:
#
# 	mail.*		-/var/log/mail/mail.log
#
# Using the following options, you can let laptop mode switch between
# different syslog configurations depending on whether you are working on
# battery or on AC power. To set this up, start by configuring these options
# for your syslog daemon, and then run lm-syslog-setup to create the various
# files. Then edit the laptop mode-specific syslog configuration files to
# remove the syncs only when laptop mode is active.
###############################################################################


#
# Should laptop mode tools control which syslog.conf should be used?
#
CONTROL_SYSLOG_CONF=1


#
# Laptop mode tools controls syslog.conf by replacing /etc/syslog.conf (or
# whatever you specify in SYSLOG_CONF) by a link to the files configured here.
# NOTE: these files are NOT created by default, and if they do not
# exist this feature will not work. You can run the script
# /usr/sbin/lm-syslog-setup to set things up.
#
LM_AC_SYSLOG_CONF=/etc/syslog-on-ac-with-lm.conf
NOLM_AC_SYSLOG_CONF=/etc/syslog-on-ac-without-lm.conf
BATT_SYSLOG_CONF=/etc/syslog-on-battery.conf


#
# Signal this program when syslog.conf has been replaced.
#
SYSLOG_CONF_SIGNAL_PROGRAM=syslogd


#
# This is the syslog configuration file that should be replaced by a link to
# the other files.
#
SYSLOG_CONF=/etc/syslog.conf



###############################################################################
# X display settings
# ------------------
#
# Using these settings, you can let laptop mode tools control the X display
# standby timeouts.
#
# This requires that you have installed the "xset" utility. It is part of the
# X.org server distribution and included in the package xorg-server-utils.
#
# The X settings are not automatically applied on login, and this is
# impossible fix for the user, since laptop mode tools must operate as root.
# Therefore, it is recommended to add the following line to /etc/X11/Xsession
# as well:
#
#   /usr/sbin/laptop_mode force
#
###############################################################################


#
# Should laptop mode tools control DPMS standby settings for X displays?
#
CONTROL_DPMS_STANDBY=0


#
# These settings specify the standby timeout for the X display,
# in seconds. The suspend and poweroff timeouts are somewhat
# larger values derived from these values.
#
BATT_DPMS_STANDBY=300
LM_AC_DPMS_STANDBY=1200
NOLM_AC_DPMS_STANDBY=1200



###############################################################################
# Terminal settings
# -----------------
#
# Using these settings, you can let laptop mode tools control the terminal
# blanking timeouts. This only works for linux virtual consoles.
#
###############################################################################


#
# Should laptop mode tools control terminal blanking settings?
#
CONTROL_TERMINAL=0


#
# Terminal device files that should be affected. (One terminal is enough, this
# affects all consoles. )
#
TERMINALS="/dev/tty1"


#
# These settings specify the blanking and powerdown timeouts. Note that
# the powerdown timeout is counted from the moment the screen is blanked,
# i.e. BLANK_MINUTES=2 and POWERDOWN_MINUTES=5 means the screen powers
# down after 7 minutes of inactivity. The range for all these settings is
# 1 to 60 minutes, or 0 to disable.
#
BATT_TERMINAL_BLANK_MINUTES=1
BATT_TERMINAL_POWERDOWN_MINUTES=2
LM_AC_TERMINAL_BLANK_MINUTES=10
LM_AC_TERMINAL_POWERDOWN_MINUTES=10
NOLM_AC_TERMINAL_BLANK_MINUTES=10
NOLM_AC_TERMINAL_POWERDOWN_MINUTES=50


###############################################################################
# LCD brightness settings
# -----------------------
#
# Using these settings, you can make laptop mode tools automatically adjust
# your LCD's brightness settings. The settings are extremely simple -- they
# only allow for the execution of a command, nothing more. The reason for this
# is that LCD brightness settings are very different between laptop vendors.
#
# Suggestions for commands:
#
#  * If your system has the file "/proc/acpi/video/VID/LCD/brightness" (VID may
#    be VID1 or similar), use this file as BRIGHTNESS_OUTPUT, and use
#    the command "echo <value>". The possible values can be listed using the
#    command:
#
#       cat /proc/acpi/video/VID/LCD/brightness
#
#  * If you have a file /sys/class/backlight/.../brightness, then you can use
#    that file as BRIGHTNESS_OUTPUT, and the command "echo <value>".
#
#    As far as I understand it the values are between 0 and
#    the value contained in the file /sys/class/backlight/.../max_brightness.
#
#  * For Toshiba laptops, use the command "toshset" with the -lcd or -inten
#    command. Read the toshset(1) manual page for more information on the
#    parameters for this command. If you use this command, set
#    BRIGHTNESS_OUTPUT to "/dev/null".
#
###############################################################################


#
# Should laptop mode tools control LCD brightness?
#
CONTROL_BRIGHTNESS=0


#
# Commands to execute to set the brightness on your LCD
#
BATT_BRIGHTNESS_COMMAND="echo [value]"
LM_AC_BRIGHTNESS_COMMAND="echo [value]"
NOLM_AC_BRIGHTNESS_COMMAND="echo [value]"
BRIGHTNESS_OUTPUT="/proc/acpi/video/VID/LCD/brightness"


###############################################################################
# Auto-hibernation settings
# -------------------------
#
# Using these settings, you can make laptop mode tools automatically put your
# computer into hibernation when the battery level goes critically low.
#
# This feature only works on ACPI, and only works on computers whose batteries
# give off battery events often enough.
###############################################################################


#
# Should laptop mode tools perform auto-hibernation?
#
ENABLE_AUTO_HIBERNATION=0


#
# The hibernation command that is to be executed when auto-hibernation
# is triggered.
#
HIBERNATE_COMMAND=/usr/sbin/hibernate


#
# Auto-hibernation battery level threshold, in percentage of the battery's
# total capacity.
#
AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT=2


#
# Enable this to auto-hibernate if the battery reports that its level is
# "critical".
#
AUTO_HIBERNATION_ON_CRITICAL_BATTERY_LEVEL=1



###############################################################################
# Start/Stop Programs settings
# ----------------------------
#
# Laptop mode tools can automatically start and stop programs when entering
# various power modes. Put scripts accepting "start" and "stop" parameters
# in the directories /etc/laptop-mode/batt-stop, batt-start, lm-ac-stop,
# lm-ac-start, nolm-ac-stop and nolm-ac-start. Laptop mode will call the
# scripts in a state-"stop" directory with the "stop" parameter when entering
# the state in question, and it will call the same scripts with the "start"
# parameter when leaving the state. Scripts in a state-"start" directory are
# called with the "start" parameter when the specified state is entered, and
# with the "stop" parameter when the specified state is left.
###############################################################################


#
# Should laptop mode start and stop programs? 
#
CONTROL_START_STOP=1



###############################################################################
# Settings you probably don't want to touch
# -----------------------------------------
#
# It is usually not necessary to change these parameters. They are included
# for completeness' sake.
###############################################################################


#
# Change mount options on partitions in PARTITIONS? You don't really want to
# disable this. If you do, then your hard drives will probably not spin down
# anymore.
#
CONTROL_MOUNT_OPTIONS=1


#
# Dirty synchronous ratio.  At this percentage of dirty pages the process
# which calls write() does its own writeback.
#
LM_DIRTY_RATIO=60
NOLM_DIRTY_RATIO=40


#
# Allowed dirty background ratio, in percent.  Once DIRTY_RATIO has been
# exceeded, the kernel will wake pdflush which will then reduce the amount
# of dirty memory to dirty_background_ratio.  Set this nice and low, so once
# some writeout has commenced, we do a lot of it.
#
LM_DIRTY_BACKGROUND_RATIO=1
NOLM_DIRTY_BACKGROUND_RATIO=10


#
# kernel default settings -- don't touch these unless you know what you're 
# doing.
#
DEF_UPDATE=5
DEF_XFS_AGE_BUFFER=15
DEF_XFS_SYNC_INTERVAL=30
DEF_XFS_BUFD_INTERVAL=1
DEF_MAX_AGE=30


#
# This must be adjusted manually to the value of HZ in the running kernel
# on 2.4, until the XFS people change their 2.4 external interfaces to work in
# centisecs. This can be automated, but it's a work in progress that still
# needs some fixes. On 2.6 kernels, XFS uses USER_HZ instead of HZ for
# external interfaces, and that is currently always set to 100. So you don't
# need to change this on 2.6.
#
XFS_HZ=100


#
# Seconds laptop mode has to to wait after the disk goes idle before doing
# a sync.
#
LM_SECONDS_BEFORE_SYNC=2

Corriger moi si j'ai fais une connerie dans ma conf !

z'êtes en train de me rendre parano avec mon pc +++1
Super_maçoN je suis dans le même cas que toi !


Acer Aspire 9305 AWSMI - Ubuntu 9.04

Hors ligne

#684 Le 17/12/2007, à 17:28

lekokeliko

Re : Vieillissement prématuré des disques durs de portables

lol t'inquiète pas pour ton pc il suffit juste que tu jette un coup d'oeil de temps en temps ca sufira regarde si ton LCC n'augmenta pas trop vite et reste dans des valeurs acceptables pour le temps qu'il est resté allumé
je ne panse pas que tu soit concerné avec un pc qui tourne beaucoup 35668 LCC est très acceptable

c'est flippant car j'entends aussi des ptits bruits réguliers venant du dur hmm

oui c'est flippant smile regarde après les bruits si ton LCC a augmenté (en principe oui) puis si tu juge que c'est trop souvent change laptop-mode ou désactive hdparm

tu n'est pas en urgence mais renseigne toi quand même c'est toujours utile wink


No brain, No fear !
http://www.dailymotion.com/lekokeliko    ~Tictactux~  site internet crée par moi     
On em#%*de les ingénieurs, on test et on voit si ca l'fait ou pas ;)
A Embrun

Hors ligne

#685 Le 17/12/2007, à 19:25

Sorbus

Re : Vieillissement prématuré des disques durs de portables

@Super_maçoN

mon pc ( avec 10 mois de boulot dessus

+

il est allumé quasiment 24/24

+

Power_On_Seconds        1h+26m+18s

lol

ça ressemble pas à  des heures converties en secondes d'une façon un peu simpliste ça ? (tu n'y es pour rien... mais parfois les spécifications des constructeurs de HD peuvent varier un peu... et perturber les analyses smart).

C'est donc un petit problème d'analyse des données smart, sans doute.
Je me permets de transposer dans l'autre sens :
1h = 3600 secondes
26 minutes = 1560 secondes
+ 18 secondes
total = 5178 secondes...
Qu'il faut probablement considérer comme 5178 heures.

Si ton PC tourne près de 24h/24 depuis plus de 10 mois (sauf depuis mi-novembre)... 5178 heures, ça doit être beaucoup plus proche de la réalité que 1h26 ! (5178 h = 215 jours pour un PC tournant 24h/24).

Donc je ne suis pas concerné hein ? Pas la peine que je capte hein ? Je suis sauvé ? ^^

C'est toujours intéressant de capter, mais si tu confirmes que cet ordinateur portable est en service depuis près d'un an, en ayant tourné le plus souvent 24h/24, il n'y a aucun doute, un LCC de 35668, c'est vraiment pas énorme.

c'est flippant car j'entends aussi des ptits bruits réguliers venant du dur

Ben moi, bien que je ne sois pas sourd, j'entends des petits bruits quand je lance Conky pour disposer d'un tableau de bord (mais ça ne fait pas augmenter le LCC). Par contre, je n'entends pas les petits bruits, même tout à  l'heure, quand j'étais sous XP, et que le LCC augmentait de 116/h... ce petit bruit n'est pas très fiable... il doit dépendre des disques durs.

Comme dit lekokeliko, fais plusieurs contrà´les smartctl à  quelques heures d'intervalle... tu verras de combien ça évolue.

Dernière modification par Sorbus (Le 17/12/2007, à 19:28)

Hors ligne

#686 Le 17/12/2007, à 19:38

Sorbus

Re : Vieillissement prématuré des disques durs de portables

@boolat

bon je suis passer de 45905 a 45906 total 5H c'est bon non ?

Donc... augementation de 1 LCC en 5 heures.

pour arriver à  600000 LCC (donc encore environ 554000), estimation de la durée de vie d'un HD pour le Load_Cycle_Count, il faudrait que le HD tourne encore 2777000 heures, soit 115416 jours, soit 316 ans, 24h/24.

Oui, c'est bon lol

Bon... plus sérieusement. J'ai compris que quand on modifie le laptop-mode, il faut savoir un peu ce qu'on fait. Perso, je n'ai pas étudié la question, mais si tu as suivi correctement la méthode de la documentation et les indications de DiCiCat, il ne devrait pas y avoir de problème.

Hors ligne

#687 Le 17/12/2007, à 20:11

Sorbus

Re : Vieillissement prématuré des disques durs de portables

Par contre, je n'entends pas les petits bruits, même tout à l'heure, quand j'étais sous XP, et que le LCC augmentait de 116/h... ce petit bruit n'est pas très fiable... il doit dépendre des disques durs.

Si... en tendant l'oreille près du hd, et en lançant smartctl pour vérifier chaque fois qu'il me semblait entendre un "petit bruit" un peu sec (après avoir stoppé Conky), j'ai identifié ce bruit... Ceci en faisant le dernier test que j'avais à faire : Ubuntu sur batterie pendant 15'.

Pas d'augmentation du LCC les 5 premières minutes, alors que le portable était stable, posé sur mon bureau... puis je l'ai posé sur mes genoux... en bougeant un peu... et le LCC a augmenté de 23... ça fait donc 23 en 15'... soit 92/heure... (un peu inférieur à l'augmentation du LCC sous XP... mais en conditions un peu différente... sous XP, le PC était resté stable, posé pendant les 15' sur le bureau).

Hors ligne

#688 Le 17/12/2007, à 20:11

Super_maçoN

Re : Vieillissement prématuré des disques durs de portables

Sorbus merci de nous consacrer ton temps comme ça.
Bon tu sais je caricature un chouilla, je capte un peu, a force de lire ce topique, mais c'est très flou quant même.

Bon a croire que je suis dans une autre dimension, depuis que je me suis résolu a poster ici ça ne monte quasi plus ^^
Seulement un de plus depuis cette après midi.

A savoir que je suis récemment passer sous enlightenment, je sais pas si ça pourrait influer.

Je continuerai de garder un oeil sur ces valeurs tout de même.

Encore merci sorbus.

Hors ligne

#689 Le 17/12/2007, à 23:00

boolat

Re : Vieillissement prématuré des disques durs de portables

et'il vrai que si on change le laptop-mode.conf comme expliqué sur le tuto cela peut aussi détruire le disque dur ? pour la raison que sur le forum linuxpourlesnuls j'ai poster un message et de retour j'ai eu ceci :

Salut!

On ne sait pas à  quoi le Load_Cycle_Count fait référence puisqu'il ne fait pas parti des spécifications SMART et dépend entièrement du bon vouloir du constructeur.

De plus, la méthode plébiscitée pour limiter cette augmentation est de forcer le disque à  être toujours éveillé, ce qui n'est pas bon non plus surtout dans un portable.

Le pire c'est que cette rumeur (ce n'est rien d'autre) est partie de chez quelques journalistes qui ont très mal fait leur travail.

@+

il c'est de quoi il parle ou ..... ?


Acer Aspire 9305 AWSMI - Ubuntu 9.04

Hors ligne

#690 Le 17/12/2007, à 23:21

compte supprimé

Re : Vieillissement prématuré des disques durs de portables

Peut-être que non ! hmm
http://forum.ubuntu-fr.org/viewtopic.php?pid=1257427#p1257427

#691 Le 18/12/2007, à 00:16

Sorbus

Re : Vieillissement prématuré des disques durs de portables

Sorbus merci de nous consacrer ton temps comme ça.

Aujourd'hui, j'avais prévu de passer un peu de temps pour ça... après un mois de suivi régulier de l'évolution de Load_Cycle_Count, je voulais en tirer les conclusions... comprendre quelque chose... et savoir comment réagir pour mon portable... J'en ai seulement profité pour vous répondre au passage wink

Bon tu sais je caricature un chouilla, je capte un peu, a force de lire ce topique, mais c'est très flou quant même.

A vrai dire, pour moi aussi, ça reste flou. Seules certitudes, après mes tests de la journées :

--> un de mes deux instruments de mesure sous Ubuntu faussait mes observations : Conky... lorsque je lance mon conkyrc, le Load_Cycle_Count n'évolue plus (c'était le cas pendant 6h ce matin)...  Par contre, si je stoppe Conky, le LCC évolue + ou - fortement sous Ubuntu.
--> l'augmentation du LCC sur mon portable est sensible aussi bien sous Windows XP que sous Ubuntu, et ceci aussi bien sur secteur que sur batterie. Mes derniers tests comme l'évolution moyenne du LCC depuis l'achat de cet ordinateur semblent montrer que la responsabilité des deux OS sur l'évolution du LCC, c'est du 50/50.

Pour le reste, je ne comprends rien à ce qui provoque les fluctuations (repos ou petite activité sur le PC, les résultats sont contradictoires entre Ubuntu et XP...)... L'évolution du LCC doit dépendre de multiples facteurs dont certains nous échappent.

Je n'irai pas plus loin dans mes analyses. Je laisse ici simplement le tableau de mes derniers tests.
155065624020071217232317.png
Je précise : Sous Ubuntu, avec le laptop-mode désactivé. Comprenne qui pourra.
pour mon portable, je sais maintenant quoi faire : Ubuntu + conkyrc activé...

Dernière modification par Sorbus (Le 18/12/2007, à 00:23)

Hors ligne

#692 Le 18/12/2007, à 00:45

boolat

Re : Vieillissement prématuré des disques durs de portables

c'est bizarre nous avons pas les mêmes chiffre que toi !

Sorbus,

tu pourra mettre un capture d'image de ton conkyrc ? + le script que tu utilise pour conkyrc ?

Merci


Acer Aspire 9305 AWSMI - Ubuntu 9.04

Hors ligne

#693 Le 18/12/2007, à 00:58

compte supprimé

Re : Vieillissement prématuré des disques durs de portables

Salut Sorbus,

Il y a un truc qui m'épate dans tes chiffres : le load_cycle augmente en cas d'activité sur batterie avec xp ? Pourquoi ça parquerait plus souvent quand ça travaille ?
Je vois bien une possibilité : le disque dur ne travaille pour ainsi dire pas, mais chaque fois qu'il tente de parquer, un logiciel lui demande d'écrire ou de lire (des fichiers temporaires du traitement de texte ?)... Essaye de peut-être de modifier les paramètres de sauvegarde automatique du traitement de texte, pour voir... (ou de jouer avec autre chose qu'avec le traitement de texte)

A+

Dernière modification par faustus (Le 18/12/2007, à 01:02)

#694 Le 18/12/2007, à 08:16

Sorbus

Re : Vieillissement prématuré des disques durs de portables

@boolat
je ferai dès que possible... mais je mettrai un lien vers un autre fil de discussion (plus spécialisé Conky).

@faustus
Je ne comprends pas non plus. Ni pourquoi Ubuntu actif sur secteur m'a donné un résultat supérieur à "sur batterie". Et je ne me souviens pas quels logiciels j'ai exactement utilisés et quel action j'ai exactement réalisées pendant ces tests. Cela signifie simplement que pour effectuer des comparaisons, il faut être très rigoureux... Il faudrait presque un "protocole scientifique"... On ne peut pas se contenter d'impressions. Sur un test de 15 minutes, il faudrait aussi programmer la mise en veille à plus de 15 minutes. Vraiment "au repos", il faudrait que tout les programmes soient fermés y compris Firefox, Everest et le terminal, et que Everest (sous XP) et le terminal (sous Linux) soient lancés 1 fois au début du décompte et immédiatement refermés... et seulement relancés au bout de 15'. Et des tests sur 60' au lieu de 15', ce serait mieux.

Ensuite, pour les tests "actif", il faudrait savoir exactement quels logiciels on utilise, combien de temps, et pour faire quoi. Tout ceci est très complexe. J'ai essayé, de façon très "neutre" d'effectuer quelques tests comme j'ai pu... pour comprendre un peu, pour avoir une idée. J'ai jugé utile de transmettre ici les résultats, malgré les biais... Mais je ne pense pas maintenant prendre davantage de temps pour faire davantage de tests. Si d'autres s'y collent, ils sauront qu'ils devront être plus rigoureux que moi tongue

Cela signifie aussi que pour une utilisation courante de nos ordinateurs, influent sur l'évolution du LCC non seulement la conception des disques durs, les réglages du Bios et leur utilisation par les OS (gestion de l'ACPI), mais aussi les logiciels qu'on utilise et la façon dont on les utilise.

Hors ligne

#695 Le 18/12/2007, à 12:57

boolat

Re : Vieillissement prématuré des disques durs de portables

Bonjour,

se matin j'envoie se mail chez seagate,

Bonjour,

j'ai acheté un laptop nouveaux qui date du 13/10/2007 et j'ai un Load Cycle Count de 45909 et sa augmente de minutes en minutes !

le model du disque dur est le ST9120822AS : Momentus 5400.3 SATA 120-GB Hard Drive,

et il normal que sa augmente de minutes en minutes ?

PS : Dans mes recherches j'ai lue que le Load Cycle Count voulais dire la durée de vie du disque Dur Pour les ordinateurs portables, et que les disques durs ont une capacité évaluée à  300.000 à  600.000 parcages.

Donc je commence à  me poser beaucoup de questions ! j'ai déjà  atteint un Load Cycle Count de 45909 en 2 mois !

j'ai plus de problème mais j'ai écrit comme si le problème continué ...

la réponse :

Mr/Me,

Pouvez vous tester le disque avec l'utilitaire de diagnostic SEATOOL pour DOS (a telecharger sur www.seagate.com ,centre de telechargement) et faire un formatage de bas niveau si erreur il ya ..
N'hésitez pas a nous contacter pour de plus amples informations. Pour nous permettre de traiter toutes les demandes aussi efficacement et précisément que possible, nous vous demandons de bien vouloir inclure tous les mails précédents dans votre réponse.
Cordialement,
T.D

pas grand chose dans leur réponse !

j'ai fait le test avec SEATOOL sur DOS,
test court,test longt,test acoustique est tous c'est passer sans problème, résultat pas d'erreur.

bon reste a comprendre beaucoup de chose .....


Acer Aspire 9305 AWSMI - Ubuntu 9.04

Hors ligne

#696 Le 18/12/2007, à 13:34

compte supprimé

Re : Vieillissement prématuré des disques durs de portables

@Sorbus

Absolument ! Un peu de procédure scientifique évite les on-dit souvent un peu rapides... wink

A mon avis, pour comparer, il faut juste allumer la bécane (on mesure le LCC avant de l'éteindre), puis la laisser tourner sans rien (en inactivant la mise en veille), pendant par exemple 1 heure. On peut alors raisonnablement conclure qu'une variation du LCC est en rapport avec le système d'exploitation et les services lancés au démarrage.
A contrario, et comme je l'avais déjà  fait remarquer, une activité permanente du disque en lecture ou en écriture, ne devrait se traduire par aucune augmentation du LCC (c'est facile à  démontrer : il suffit de télécharger une image iso par exemple : le LCC ne devrait pas bouger...).
On pourrait sans doute aussi faire un petit script chargé d'écrire périodiquement quelque chose sur le disque. Et regarder ce que devient le LCC en fonction de la période... A mon avis on trouverait une période critique (et ses multiples) o๠LCC augmente de façon catastrophique, et ceci indépendamment de tout réglage qu'on pourrait faire par ailleurs (un réglage modifiant seulement la valeur de cette période critique)...
Evidemment, si un logiciel (ou un service) écrit ou lit périodiquement sur le disque avec une période proche de cette éventuelle période critique, ça risque d'avoir des conséquences catastrophiques...

A+

Dernière modification par faustus (Le 18/12/2007, à 13:41)

#697 Le 18/12/2007, à 22:29

boolat

Re : Vieillissement prématuré des disques durs de portables

je ne voudrais pas mettre tous les utilisateurs Ubuntu en panique mais pourquoi les Administrateur du forum ou les responsables n'envoie pas un newsletter en informent le GROS BUG DESTRUCTEUR sur ubuntu ?

après mes recherche sur google tous le monde en parle ! mais rien n'avance à  par du bla bla blaaa !


Acer Aspire 9305 AWSMI - Ubuntu 9.04

Hors ligne

#698 Le 18/12/2007, à 22:32

makov

Re : Vieillissement prématuré des disques durs de portables

Bonsoir,

Contaminé par la rumeur sur l'usure prématurée du disque dur, j'ai consulté mon Load_Cycle_Count et ça donnait :

193 Load_Cycle_Count        0x0012   092   092   000    Old_age   Always       -       86949

et une minute après:

193 Load_Cycle_Count        0x0012   092   092   000    Old_age   Always       -       86952

Le portable étant relativement récent (acheté en juin 2007 ,feisty à  la place de vista et maj avec gusty fin octobre.), j'ai suivi les conseils de Dicicat (http://forum.ubuntu-fr.org/viewtopic.ph … 8#p1301008).

Or quand je veux lancer le laptop-mode, j'obtiens le message suivant:

~$ sudo /etc/init.d/laptop-mode start
 * Enabling laptop mode...                                                      /usr/sbin/laptop_mode: line 898: [: medium : expression de type 'entier' attendue

à  titre indicatif la ligne 898 indique :

if [ $CONTROL_CPU_THROTTLING -eq 1 ] ; then

et la commande :~$ cat /proc/sys/vm/laptop_mode m'indique 0

Quant au Load cycle count, je suis passé de 86 925 à  20h50 à  86 974 à  21h22

La situation est-elle grave ? Pourrais-je encore utiliser mon portable demain matin ? Enfin je veux dire à  combien de temps estimez-vous la durée de vie de la machine?


asus S101/ ubuntu lucid lynx

Hors ligne

#699 Le 18/12/2007, à 22:48

boolat

Re : Vieillissement prématuré des disques durs de portables

Ne tarde pas trop ! installe le laptop-mode

sudo apt-get install laptop-mode-tools

et le reste à  voir ici http://doc.ubuntu-fr.org/laptop_mode

bonne chance !


Acer Aspire 9305 AWSMI - Ubuntu 9.04

Hors ligne

#700 Le 18/12/2007, à 23:01

makov

Re : Vieillissement prématuré des disques durs de portables

merci pour le "bonne chance" mais l'installation du laptop-mode a déjà  été faite (par un sudo apt-get install laptop-mode-tools). Le problème vient du fait que je n'arrive pas à  le faire fonctionner...

et la commande :~$ cat /proc/sys/vm/laptop_mode m'indique 0

asus S101/ ubuntu lucid lynx

Hors ligne