LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1483|回复: 6

hdparam 显示我的硬盘没缓存,可是实际有8M,如何设置?

[复制链接]
发表于 2006-8-17 15:16:27 | 显示全部楼层 |阅读模式
我的硬盘有8M缓存,可是hdparam 显示没有BuffType=unknow ,BuffSize=0kB
如何设置呢?谢谢,

hdparam -tT 测试结果
-------------------------------------
/dev/hda:
Timing cached reads:   592 MB in  2.00 seconds = 295.60 MB/sec
Timing buffered disk reads:   66 MB in  3.06 seconds =  21.60 MB/sec



hdparam -iI显示结果
--------------------------------------
$hdparam -iI /dev/hda

/dev/hda:

Model=TOSHIBA MK4025GAS, FwRev=KA100A, SerialNo=83121823S
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=48
BuffType=unknown, BuffSize=0kB, MaxMultSect=16, MultSect=off
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=78140160
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes:  pio0 pio1 pio2 pio3 pio4
DMA modes:  sdma0 sdma1 sdma2 mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2 udma3 udma4 udma5
AdvancedPM=yes: unknown setting WriteCache=enabled
Drive conforms to: Unspecified:  ATA/ATAPI-1 ATA/ATAPI-2 ATA/ATAPI-3 ATA/ATAPI-4 ATA/ATAPI-5 ATA/ATAPI-6

* signifies the current active mode


ATA device, with non-removable media
        Model Number:       TOSHIBA MK4025GAS                       
        Serial Number:      83121823S
        Firmware Revision:  KA100A  
Standards:
        Supported: 6 5 4
        Likely used: 6
Configuration:
        Logical                max        current
        cylinders        16383        16383
        heads                16        16
        sectors/track        63        63
        --
        CHS current addressable sectors:   16514064
        LBA    user addressable sectors:   78140160
        device size with M = 1024*1024:       38154 MBytes
        device size with M = 1000*1000:       40007 MBytes (40 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        Standby timer values: spec'd by Standard, no device specific minimum
        R/W multiple sector transfer: Max = 16        Current = ?
        Advanced power management level: unknown setting (0x0080)
        DMA: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 udma0 udma1 *udma2 udma3 udma4 udma5
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled        Supported:
           *        SMART feature set
                    Security Mode feature set
           *        Power Management feature set
           *        Write cache
           *        Look-ahead
           *        Host Protected Area feature set
           *        WRITE_VERIFY command
           *        WRITE_BUFFER command
           *        READ_BUFFER command
           *        NOP cmd
           *        Advanced Power Management feature set
                    SET_MAX security extension
           *        Device Configuration Overlay feature set
           *        Mandatory FLUSH_CACHE
           *        SMART error logging
           *        SMART self-test
Security:
        Master password revision code = 65534
                supported
        not        enabled
        not        locked
                frozen
        not        expired: security count
        not        supported: enhanced erase
        36min for SECURITY ERASE UNIT.
HW reset results:
        CBLID- above Vih
        Device num = 0 determined by the jumper
Checksum: correct
----------------------------------------
发表于 2006-8-17 15:30:07 | 显示全部楼层
设置来干嘛呢?这块缓存不需要驱动和系统去管的吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-17 18:58:48 | 显示全部楼层
我的意思是如何设置才能用到这块缓存,hdparam -iI显示BuffType=unknow ,BuffSize=0kB是没有启用硬盘缓存的意思吧,谢谢
回复 支持 反对

使用道具 举报

发表于 2006-8-19 22:17:18 | 显示全部楼层
系统不应该管硬盘里的缓存吧
回复 支持 反对

使用道具 举报

发表于 2006-8-20 21:55:56 | 显示全部楼层
我也同意楼上的,这个缓存是硬盘的控制器管的。操作系统应该管不着吧!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-26 18:15:56 | 显示全部楼层
哦,那奇怪它怎么报没有cache?是bug?
回复 支持 反对

使用道具 举报

发表于 2006-8-26 18:24:14 | 显示全部楼层
我的有认出来。
BuffType=unknown, BuffSize=2048kB, MaxMultSect=16, MultSect=off
如果这是它的一个BUG,那你通过它来重新设置似乎比较危险了。最好不要随便改变硬件层上的东西吧。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表