Pagina 1 di 1

Accessi Hd

Inviato: giovedì 7 maggio 2009, 9:20
da tomfool85
Cari ubuntiani ho fatto numerose ricerche su questo argomento ma a dire la verità non ci ho capito molto!
Vorrei ridurre i numeri di accessi all'hd in modo tale che esso mi rimane in standby il piu a lungo possibile.
Sapete per caso spiegarmi la differenza tra noatime e relatime?
è possibile usare la RAM come hd?
Grazie a tutti come sempre!

Re: Accessi Hd

Inviato: giovedì 7 maggio 2009, 11:41
da steff
in laptop-mode c'è questa funzione e altro (ne so niente, ho modificato solo idle che mi s' spegneva/accendeva su batteria troppe volte)

Codice: Seleziona tutto

 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=600                                             
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 use relatime instead of noatime? The "relatime" mount option has
# more standards-compliant semantics, and allows more applications to work,     
# while retaining a low level of atime updates (i.e., disk writes).             
USE_RELATIME=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=900                                            
LM_BATT_HD_IDLE_TIMEOUT_SECONDS=900                                          
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=254                      
NOLM_AC_HD_POWERMGMT=254                    


#
# 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                              


Re: Accessi Hd

Inviato: giovedì 7 maggio 2009, 11:52
da ueghio
Se vuoi mettere in standby un hard disk puoi usare hdparm

Codice: Seleziona tutto

sudo hdparm -S n /dev/sda
dove n è un numero compreso tra 1(l'hd entra in standby dopo 5 secondi di inattività) e 255 (21 minuti)
N.B.l'intervallo 241<251 comprende i multipli di mezzora,quindi ad esempio con

Codice: Seleziona tutto

sudo hdparm -S 242 /dev/sda
l'HD "sda" entrerà in standby dopo 1h di inattività (fino ad un massimo di 5 ore e mezza con 251).
Ovviamente per decidere che hard disk fermare dai

Codice: Seleziona tutto

sudo fdisk -l
Poi puoi monitorare lo stato dei tuoi hd con

Codice: Seleziona tutto

sudo hdparm -C /dev/sdx
Leggiti il manuale per ulteriori chiarimenti,questo è un comando potenzialmente pericoloso

Re: Accessi Hd

Inviato: giovedì 7 maggio 2009, 16:16
da tomfool85
Il problema è che ci entra in stanby ma dura solo qualche secondo e poi riparte come se qualcosa avesse bisogno dell'uso dell'hd!anche se non faccio niente...

Re: Accessi Hd

Inviato: lunedì 11 maggio 2009, 0:17
da ueghio
Io lo utilizzo però su hd secondari,quelli per intenderci che non ospitano il sistema operativo..