O que os diferentes valores do recurso Advanced Power Management (hdparm -B) do disco rígido afetam, exceto o spin-down?

18
O parâmetro hdparm do% p_de% é documentado como:

Get/set Advanced Power Management feature, if the drive supports it. A low value means aggressive power management and a high value means better per‐ formance. Possible settings range from values 1 through 127 (which permit spin-down), and values 128 through 254 (which do not permit spin-down). The highest degree of power management is attained with a setting of 1, and the highest I/O performance with a setting of 254. A value of 255 tells hdparm to disable Advanced Power Management altogether on the drive (not all drives support disabling it, but most do).

Isso fornece apenas dois intervalos possíveis, mas não descreve os outros efeitos que os diferentes valores possuem. Qual é a diferença entre digamos 63 e 127, etc. Não consegui encontrar mais documentação sobre isso. Está descrito em algum lugar?

    
por Petr Pudlák 21.02.2013 / 18:27

2 respostas

12

O código-fonte do hdparm mostra que apenas passa o valor para o disco, exceto que passa o comando 0x85 em vez de 0x05 quando o valor é 255. O ATA Spec mostra este detalhe:

Subcommand code 05h allows the host to enable Advanced Power Management. To enable Advanced Power Management, the host writes the Sector Count register with the desired advanced power management level and then executes a SET FEATURES command with subcommand code 05h. The power management level is a scale from the lowest power consumption setting of 01h to the maximum performance level of FEh. Table 30 shows these values.

  • Desempenho máximo FEh
  • Níveis intermediários de gerenciamento de energia sem espera 81h-FDh
  • Consumo mínimo de energia sem 80 horas de espera
  • Níveis intermediários de gerenciamento de energia com Standby 02h-7Fh
  • Consumo mínimo de energia com 01h de espera
  • FFh reservado
  • Reserved 00h

Device performance may increase with increasing power management levels. Device power consumption may increase with increasing power management levels. The power management levels may contain discrete bands. For example, a device may implement one power management method from 80h to A0h and a higher performance, higher power consumption method from level A1h to FEh. Advanced power management levels 80h and higher do not permit the device to spin down to save power. Subcommand code 85h disables Advanced Power Management. Subcommand 85h may not be implemented on all devices that implement SET FEATURES subcommand 05h.

Em outras palavras: "Não especificado, comportamento específico do dispositivo"

    
por 28.02.2013 / 07:43
4

Com crédito para www.freeminded .org

Values 1-127 permit spin-down, 128-254 do not and 255 disables advanced power management altogether (if the drive supports it). Values 1 to 240 are in 5 second steps, values 241 to 251 are steps of 30 minutes, see the table below.

Há mais informações no site.

    
por 21.02.2013 / 19:16