使用几块机械硬盘搭建了NAS,企业级机械硬盘待机空转的时候功耗还挺大,使用hdparm这个工具可以设置自动休眠 由于我的系统已经自带hdparm,所以无需再次安装,直接编辑配置文件 #编辑配置文件 sudo vim /etc/hdparm.conf 加入 /dev/sdb { spindown_time = 60 } /dev/sdc { spindown_time = 60 } /dev/sdd { spi...
hdparm-W1/dev/sdh # 打开 测试磁盘和磁盘缓存读取速度: 查看磁盘信息: fdisk-l /dev/sdh hdparm/dev/sdh 评估磁盘读取速度: hdparm -t /dev/sdh 评估磁盘缓存读取速度: hdparm -T /dev/sdh 直接测试硬盘的读性能(绕过内核页缓存): hdparm -tT --direct /dev/sdh 顺序写测试: time -p bash -c "dd ...
time -p bash -c "dd if=/dev/urandom of=./dd.log bs=1M count=50000" 随机写测试(使用direct标识,绕过页缓存): fio -filename=randw-singlethread -fallocate=none -direct=1 -iodepth 1 -thread -rw=randwrite -ioengine=libaio -bs=32k -size=1000M -runtime=30s -numjobs=1 -name=hdparm-ran...
-s Set power-up in standby flag (0/1) (DANGEROUS) -S Set standby (spindown) timeout -t Perform device read timings -T Perform cache read timings -u Get/set unmaskirq flag (0/1) -U Obsolete -v Use defaults; same as -acdgkmur for IDE drives -V Display program version and exit ...
-S Set standby (spindown) timeout -t Perform device read timings -T Perform cache read timings -u Get/set unmaskirq flag (0/1) -U Obsolete -v Use defaults; same as -acdgkmur for IDE drives -V Display program version and exit immediately ...
# spindown_time = 36 # write_cache = off #} #/dev/cdroms/cdrom0 { # dma = on # interrupt_unmask = on # io32_support = 0 #} /dev/hda { mult_sect_io = 16 write_cache = off dma = on } #command_line { # hdparm -q -m16 -q -W0 -q -d1 /dev/hda ...
-S Set the standby (spindown) timeout for the drive. This value is used by the drive to determine how long to wait (with no disk activity) before turning off the spindle motor to save power. Under such circumstances, the drive may take as long as 30 seconds to respond to a ...
Set the standby (spindown) timeout for the drive. This value is used by the drive to determine how long to wait (with no disk activity) before turning off the spindle motor to save power. Under such circumstances, the drive may take as long as 30 seconds to respond to a subsequent di...
-PSet drive prefetch count-q Change next setting quietly-QGet/setDMAqueue_depth(ifsupported)-r Get/setdevice readonlyflag(DANGEROUSto set)-RGet/setdevice write-read-verify flag-s Set power-upinstandbyflag(0/1)(DANGEROUS)-SSetstandby(spindown)timeout-t Perform device read timings-TPerform ...
spindown_time = 60 } Last edited: Jan 19, 2023 E etnicor Member Jan 19, 2023 42 2 8 Jan 19, 2023 #5 Have tried without apm aswell. Default value seems to be 254 when checking with -B. Just noticed that the disk which is last in the hdparm.conf seem to go to standby mod...