LinuxSir.cn,穿越时空的Linuxsir!

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

如何打开硬盘的ata66、ata100、ata133模式?各参数分别是什么意思?

[复制链接]
发表于 2002-12-16 09:54:32 | 显示全部楼层 |阅读模式
我所知道打开ata模式的两种方法:
hdparm -d1 -X69 -c3 -m16 /dev/hda
和在rc.local最后加上:
/sbin/hdparm -d1 -c3 -m16 -X69 /dev/hda
有兄弟说-X69是表示ata100,-X68表示 ata66,请知道的兄弟解释一下各参数的意思/
发表于 2002-12-16 11:43:57 | 显示全部楼层
仔细看一下这里。。
其实我们在这里就能设置了,原来咱们也有讨论过。
改动/etc/sysconfig/harddisks文件。下面是在Redhat 8.0中的配制文件。我们可以看着说明来改动它。
# USE_DMA=1如果把这行中的前面的#号去掉,就已经在开DMA了。。
然后我们系统的研究一下这个配制文件和相关的说明文件,这才是解决问题的根本方法。我和兄弟们一起来学习这个,何如?
也请弟兄们多多参与,希望洋文好的弟兄,能把此文译一下,也造福一下,我等菜鸟。

多谢。。

北南 致意!

[root@linuxsir01 sysconfig]# more harddisks
# These options are used to tune the hard drives -
# read the hdparm man page for more information

# Set this to 1 to enable DMA. This might cause some
# data corruption on certain chipset / hard drive
# combinations. This is used with the "-d" option

# USE_DMA=1

# Multiple sector I/O. a feature of most modern IDE hard drives,
# permitting the transfer of multiple sectors per I/O interrupt,
# rather than the usual one sector per interrupt.  When this feature
# is enabled, it typically reduces operating system overhead for disk
# I/O by 30-50%.  On many systems, it also provides increased data
# throughput of anywhere from 5% to 50%.  Some drives, however (most
# notably the WD Caviar series), seem to run slower with multiple mode
# enabled. Under rare circumstances, such failures can result in
# massive filesystem corruption. USE WITH CAUTION AND BACKUP.
# This is the sector count for multiple sector I/O - the "-m" option
#
# MULTIPLE_IO=16

# (E)IDE 32-bit I/O support (to interface card)
#
# EIDE_32BIT=3

# Enable drive read-lookahead
#
# LOOKAHEAD=1

# Add extra parameters here if wanted
# On reasonably new hardware, you may want to try -X66, -X67 or -X68
# Other flags you might want to experiment with are -u1, -a and -m
# See the hdparm manpage (man hdparm) for details and more options.
#
EXTRA_PARAMS=

说明文件

HDPARM(8)                                                            HDPARM(8)

NAME
       hdparm - get/set hard disk parameters

SYNOPSIS
       hdparm [ flags ] [device] ..

DESCRIPTION
       hdparm  provides  a  command line interface to various hard disk ioctls
       supported by the stock Linux ATA/IDE  device  driver  subsystem.   Some
       options  may  work  correctly  only  with the latest kernels.  For best
       results, compile hdparm with the include files from the  latest  kernel
       source code.

OPTIONS
       When no flags are given, -acdgkmnru is assumed.

       -a     Get/set sector count for filesystem read-ahead.  This is used to
              improve performance in  sequential  reads  of  large  files,  by
              prefetching  additional  blocks  in  anticipation  of them being
              needed by the running  task.   In  the  current  kernel  version
              (2.0.10)  this  has  a default setting of 8 sectors (4KB).  This
              value seems good for most purposes, but in a system  where  most
              file  accesses are random seeks, a smaller setting might provide
              better performance.  Also, many IDE drives also have a  separate
              built-in  read-ahead  function,  which alleviates the need for a
              filesystem read-ahead in many situations.

       -A     Disable/enable the IDE drive's read-lookahead  feature  (usually
              ON by default).

       -b     Get/set bus state.

       -B     Set Advanced Power Management feature, if the drive supports it.
              A low value means aggressive power management and a  high  value
              means better performance. A value of 255 will disable apm on the
              drive.

       -c     Query/enable (E)IDE 32-bit I/O support.  A numeric parameter can
              be  used  to  enable/disable  32-bit I/O support: Currently sup-
              ported values include 0 to disable  32-bit  I/O  support,  1  to
              enable 32-bit data transfers, and 3 to enable 32-bit data trans-
              fers with a special sync sequence  required  by  many  chipsets.
              The  value  3  works  with  nearly  all 32-bit IDE chipsets, but
              incurs slightly more overhead.  Note  that  "32-bit"  refers  to
              data  transfers  across  a  PCI or VLB bus to the interface card
              only; all (E)IDE drives still have only a 16-bit connection over
              the ribbon cable from the interface card.

       -C     Check  the  current  IDE power mode status, which will always be
              one  of  unknown  (drive  does  not   support   this   command),
              active/idle  (normal  operation), standby (low power mode, drive
              has spun down), or sleeping (lowest power mode,  drive  is  com-
              pletely shut down).  The -S, -y, -Y, and -Z flags can be used to
              manipulate the IDE power modes.

       -d     Disable/enable the "using_dma" flag for this drive.  This option
              now  works  with  most combinations of drives and PCI interfaces
              which support DMA and which are known to the IDE driver.  It  is
              also a good idea to use the appropriate -X option in combination
              with -d1 to ensure that the drive itself is programmed  for  the
              correct  DMA mode, although most BIOSs should do this for you at
              boot time.  Using DMA nearly always gives the best  performance,
              with  fast  I/O  throughput and low CPU usage.  But there are at
              least a few configurations of chipsets and drives for which  DMA
              does not make much of a difference, or may even slow things down
              (on really messed up hardware!).  Your mileage may vary.

       -D     Enable/disable the on-drive defect management  feature,  whereby
              the  drive firmware tries to automatically manage defective sec-
              tors by relocating them to "spare" sectors reserved by the  fac-
              tory for such.

       -E     Set  cdrom  speed.  This is NOT necessary for regular operation,
              as the drive will automatically switch speeds on its  own.   But
              if  you  want  to play with it, just supply a speed number after
              the option, usually a number like 2 or 4.

       -f     Sync and flush the buffer cache for the device  on  exit.   This
              operation is also performed as part of the -t and -T timings.

       -g     Display the drive geometry (cylinders, heads, sectors), the size
              (in sectors) of the device, and the starting offset (in sectors)
              of the device from the beginning of the drive.

                -h     Display terse usage information (help).

       -i     Display the identification info that was obtained from the drive
              at boot time, if available.  This is a  feature  of  modern  IDE
              drives,  and  may  not  be supported by older devices.  The data
              returned may or may not be current, depending on activity  since
              booting  the  system.  However, the current multiple sector mode
              count is always shown.  For a more  detailed  interpretation  of
              the  identification  info,  refer to AT Attachment Interface for
              Disk Drives (ANSI ASC X3T9.2 working draft, revision  4a,  April
              19/93).

       -I     Request  identification  info  directly from the drive, which is
              displayed in a new expanded format with considerably more detail
              than  with the older -i flag.  There is a special "no seatbelts"
              variation on this option, -Istdin which cannot be combined  with
              any  other  options,  and  which  accepts a drive identification
              block as standard input instead of using a  /dev/hd*  parameter.
              The  format of this block must be exactly the same as that found
              in the  /proc/ide/*/hd*/identify  "files".   This  variation  is
              designed for use with "libraries" of drive identification infor-
              mation, and can also be used on  ATAPI  drives  which  may  give
              media errors with the standard mechanism.

       -k     Get/set  the  keep_settings_over_reset flag for the drive.  When
              this flag is set, the driver will preserve the -dmu options over
              a  soft  reset,  (as  done  during the error recovery sequence).
              This flag defaults to off, to prevent drive  reset  loops  which
              could  be  caused by combinations of -dmu settings.  The -k flag
              should therefore only be set after one has  achieved  confidence
              in  correct  system operation with a chosen set of configuration
              settings.  In practice, all that is typically necessary to  test
              a  configuration (prior to using -k) is to verify that the drive
              can be read/written, and that no error  logs  (kernel  messages)
              are  generated in the process (look in /var/adm/messages on most
              systems).

       -K     Set the drive's  keep_features_over_reset  flag.   Setting  this
              enables the drive to retain the settings for -APSWXZ over a soft
              reset (as done during the error  recovery  sequence).   Not  all
              drives support this feature.

       -L     Set  the  drive's  doorlock flag.  Setting this to will lock the
              door mechanism of some removeable hard drives (eg. Syquest, ZIP,

            Jazz..),  and setting it to maintains the door locking mechanism
              automatically, depending  on  drive  usage  (locked  whenever  a
              filesystem  is  mounted).  But on system shutdown, this can be a
              nuisance if the root partition is on a  removeable  disk,  since
              the  root  partition is left mounted (read-only) after shutdown.
              So, by using this command to unlock the door the root filesystem
              is  remounted  read-only, one can then remove the cartridge from
              the drive after shutdown.

       -m     Get/set sector count for multiple sector I/O on  the  drive.   A
              setting  of  0 disables this feature.  Multiple sector mode (aka
              IDE Block Mode), is a feature of most modern  IDE  hard  drives,
              permitting  the  transfer of multiple sectors per I/O interrupt,
              rather than the usual one sector per interrupt.  When this  fea-
              ture  is enabled, it typically reduces operating system overhead
              for disk I/O by 30-50%.   On  many  systems,  it  also  provides
              increased  data  throughput  of  anywhere  from 5% to 50%.  Some
              drives, however (most notably the WD Caviar series), seem to run
              slower with multiple mode enabled.  Your mileage may vary.  Most
              drives support the minimum settings of 2, 4, 8, or 16 (sectors).
              Larger settings may also be possible, depending on the drive.  A
              setting of 16 or 32 seems optimal on many systems.  Western Dig-
              ital  recommends  lower  settings  of  4  to  8 on many of their
              drives, due tiny (32kB) drive buffers and non-optimized  buffer-
              ing  algorithms.   The  -i  flag can be used to find the maximum
              setting supported by an installed drive (look for MaxMultSect in
              the  output).   Some  drives claim to support multiple mode, but
              lose data at some  settings.   Under  rare  circumstances,  such
              failures can result in massive filesystem corruption.

       -M     Get/set Automatic Acoustic Management (AAM) setting. Most modern
              harddisk drives have the ability to speed down  the  head  move-
              ments  to  reduce  their  noise output.  The possible values are
              between 0 and 254. 128 is the most quiet (and therefore slowest)
              setting  and  254  the  fastest  (and loudest). Some drives have
              ownly two levels (quiet / fast), while others may have different
              levels  between  128  and 254.  THIS FEATURE IS EXPERIMENTAL AND
              NOT WELL TESTED. USE AT YOUR OWN RISK.

       -n     Get or set the "ignore write errors" flag in the driver.  Do NOT
              play with this without grokking the driver source code first.

       -p     Attempt to reprogram the IDE interface chipset for the specified
              PIO mode, or attempt to auto-tune for the "best" PIO  mode  sup-
              ported  by  the  drive.  This feature is supported in the kernel
              for only a few "known" chipsets, and even then  the  support  is
              iffy  at  best.   Some  IDE chipsets are unable to alter the PIO
              mode for a single drive, in which case this flag may  cause  the
              PIO  mode  for both drives to be set.  Many IDE chipsets support
              either fewer or more than the standard six (0 to 5)  PIO  modes,
              so  the  exact  speed  setting that is actually implemented will
              vary by chipset/driver sophistication.  Use  with  extreme  cau-
              tion!  This feature includes zero protection for the unwary, and
              an unsuccessful outcome may result in severe filesystem  corrup-
              tion!

       -P     Set  the  maximum sector count for the drive's internal prefetch
              mechanism.  Not all drives support this feature.

       -q     Handle the next flag quietly, supressing normal output.  This is
              useful   for   reducing   screen   clutter   when  running  from
              /etc/rc.c/rc.local.  Not applicable to the -i or -v or -t or  -T
              flags.

       -Q     Set  tagged  queue  depth (1 or greater), or turn tagged queuing
              off (0).  This only works with the newer 2.5.xx (or later)  ker-
              nels, and only with the few drives that currently support it.

       -r     Get/set  read-only  flag for device.  When set, write operations
              are not permitted on the device.

       -R     Register an IDE interface.  Dangerous.  See the  -U  option  for
              more information.

       -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  sec-
              onds  to respond to a subsequent disk access, though most drives
              are much quicker.  The encoding of the timeout value is somewhat
              peculiar.   A  value  of zero means "off".  Values from 1 to 240
              specify multiples of 5 seconds, for timeouts from 5  seconds  to
              20  minutes.   Values from 241 to 251 specify from 1 to 11 units
              of 30 minutes, for timeouts from 30 minutes  to  5.5  hours.   A
              value  of 252 signifies a timeout of 21 minutes, 253 sets a ven-
              dor-defined timeout, and 255 is interpreted as 21  minutes  plus
              15 seconds.

      -T     Perform timings of cache reads for benchmark and comparison pur-
              poses.   For  meaningful  results,  this  operation  should   be
              repeated  2-3  times  on  an otherwise inactive system (no other
              active processes) with at least a couple of  megabytes  of  free
              memory.   This  displays  the speed of reading directly from the
              Linux buffer cache without disk  access.   This  measurement  is
              essentially  an  indication  of the throughput of the processor,
              cache, and memory of the system under test.  If the -t  flag  is
              also specified, then a correction factor based on the outcome of
              -T will be incorporated into the  result  reported  for  the  -t
              operation.

       -t     Perform  timings  of  device  reads for benchmark and comparison
              purposes.  For meaningful  results,  this  operation  should  be
              repeated  2-3  times  on  an otherwise inactive system (no other
              active processes) with at least a couple of  megabytes  of  free
              memory.   This  displays the speed of reading through the buffer
              cache to the disk without any prior caching of data.  This  mea-
              surement  is  an  indication  of  how fast the drive can sustain
              sequential data reads under Linux, without any filesystem  over-
              head.   To  ensure  accurate  measurments,  the  buffer cache is
              flushed during the processing of -t using the  BLKFLSBUF  ioctl.
              If the -T flag is also specified, then a correction factor based
              on the outcome of  -T  will  be  incorporated  into  the  result
              reported for the -t operation.

       -u     Get/set  interrupt-unmask  flag  for  the drive.  A setting of 1
              permits the driver to unmask other interrupts during  processing
              of  a disk interrupt, which greatly improves Linux's responsive-
              ness and eliminates "serial port overrun" errors.  Use this fea-
              ture  with  caution:  some  drive/controller combinations do not
              tolerate the increased I/O latencies possible when this  feature
              is enabled, resulting in massive filesystem corruption.  In par-
              ticular, CMD-640B and RZ1000 (E)IDE interfaces can be unreliable
              (due  to  a  hardware flaw) when this option is used with kernel
              versions earlier than 2.0.13.  Disabling the IDE  prefetch  fea-
              ture  of these interfaces (usually a BIOS/CMOS setting) provides
              a safe fix for the problem for use with earlier kernels.

       -U     Un-register an IDE interface.  Dangerous.  The companion for the
              -R option.  Intended for use with hardware made specifically for
              hot-swapping (very rare!).  Use with knowledge and extreme  cau-
              tion  as this can easily hang or damage your system.  The hdparm
              source distribution includes a  'contrib'  directory  with  some
              user-donated  scripts  for  hot-swapping  on  the  UltraBay of a
              ThinkPad 600E.  Use at your own risk.

       -v     Display all settings, except -i (same as -acdgkmnru for IDE, -gr
              for  SCSI  or -adgr for XT).  This is also the default behaviour
              when no flags are specified.

       -w     Perform a device reset (DANGEROUS).  Do NOT use this option.  It
              exists for unlikely situations where a reboot might otherwise be
              required to get a confused drive back into a useable state.

       -W     Disable/enable the IDE drive's  write-caching  feature  (default
              state is undeterminable; manufacturer/model specific).

       -x     Tristate device for hotswap (DANGEROUS).

       -X     Set  the IDE transfer mode for newer (E)IDE/ATA drives.  This is
              typically used in combination with -d1 when enabling DMA to/from
              a drive on a supported interface chipset, where -X mdma2 is used
              to select multiword DMA mode2 transfers and -X sdma1 is used  to
              select  simple mode 1 DMA transfers.  With systems which support
              UltraDMA burst timings, -X udma2  is  used  to  select  UltraDMA
              mode2 transfers (you'll need to prepare the chipset for UltraDMA
              beforehand).  Apart from that, use of this flag is seldom neces-
              sary  since  most/all modern IDE drives default to their fastest
              PIO transfer mode at power-on.  Fiddling with this can  be  both
              needless  and risky.  On drives which support alternate transfer
              modes, -X can be used to switch the  mode  of  the  drive  only.
              Prior to changing the transfer mode, the IDE interface should be
              jumpered or programmed (see -p flag) for the new mode setting to
              prevent  loss  and/or corruption of data.  Use this with extreme
              caution!  For the PIO (Programmed Input/Output)  transfer  modes
              used  by Linux, this value is simply the desired PIO mode number
              plus 8.  Thus, a value of 09 sets  PIO  mode1,  10  enables  PIO
              mode2,  and  11  selects  PIO  mode3.   Setting  00 restores the
              drive's "default" PIO mode, and 01 disables IORDY.   For  multi-
              word DMA, the value used is the desired DMA mode number plus 32.
              for UltraDMA, the value is the desired UltraDMA mode number plus
              64.

       -y     Force  an  IDE drive to immediately enter the low power consump-
              tion standby mode, usually causing it to spin down.  The current
              power mode status can be checked using the -C flag.

       -Y     Force  an  IDE  drive to immediately enter the lowest power con-
              sumption sleep mode, causing it to shut down completely.  A hard
              or soft reset is required before the drive can be accessed again
              (the Linux IDE driver will automatically handle issuing a  reset
              if/when  needed).   The current power mode status can be checked
              using the -C flag.

       -z     Force a kernel re-read of the partition table of  the  specified
              device(s).

       -Z     Disable  the  automatic power-saving function of certain Seagate
              drives (ST3xxx models?), to prevent them  from  idling/spinning-
              down at inconvenient times.
发表于 2002-12-26 12:43:14 | 显示全部楼层
Red Hat8默认打开DMA模式,你可以用hdparm /dev/hda命令查询,我刚安装好的RH8显示如下:
[root@localhost root]# hdparm /dev/hda

/dev/hda:
multcount    = 16 (on)
IO_support   =  0 (default 16-bit)
unmaskirq    =  0 (off)
using_dma    =  1 (on)           表明已经开启,不用我们操心
keepsettings =  0 (off)
readonly     =  0 (off)
readahead    =  8 (on)
geometry     = 4866/255/63, sectors = 78177792, start = 0
如果查询结果没有开启,可以再按照silver810212兄弟的方法去做.
发表于 2009-1-13 20:02:37 | 显示全部楼层
                IE翻译的中文版
标题:如何打开硬盘的ata66 , ata100 , ata133模式?各参数分别是什么意思?
我所知道打开数据模式的两种方法:
hdparm - D1型- X69 - C3型的M16的/ dev / hda接
和在rc.local最后加上:
/ sbin /目录hdparm - D1型, C3型的M16 - X69的/ dev / hda接
有兄弟说, X69是表示ata100 , - X68表示ata66 ,请知道的兄弟解释一下各参数的意思/仔细看一下这里。 。
其实我们在这里就能设置了,原来咱们也有讨论过。
改动的/ etc / sysconfig /硬盘文件。下面是在红帽8.0中的配制文件。我们可以看着说明来改动它。
# USE_DMA = 1如果把这行中的前面的#号去掉,就已经在开的DMA了。 。
然后我们系统的研究一下这个配制文件和相关的说明文件,这才是解决问题的根本方法。我和兄弟们一起来学习这个,何如?
[根@ linuxsir01 sysconfig ] #更多硬盘
#这些选项可用来调整硬盘-
#阅读hdparm男子网页来获取更多信息

#设置为1 ,使的DMA 。 这可能导致一些
#数据损坏某些芯片/硬盘驱动器
#组合。 这是使用“三维”选项

# USE_DMA = 1

#多个部门的I / O 一项功能,最现代化的IDE硬盘,
#允许转让多个部门每的I / O中断,
# ,而不是通常的一个部门每中断。 当此功能
#启用,通常会减少操作系统开销磁盘
#的I / O的30-50 % 。 在许多系统,还提供了更多的数据
#吞吐量任何地方从5 %至50 % 。 有些驱动器,但是(最
#特别是WD Caviar鱼子酱系列) ,似乎运行慢多模式
#启用。 在罕见的情况下,这种失败可能会导致
#大规模文件腐败。 请小心使用和备份。
#这是该部门的多个部门计数的I / O -的“米”选项

# MULTIPLE_IO = 16

# (英文)的IDE 32位I / O支持(对接口卡)

# EIDE_32BIT = 3

#启用驱动器读取的Lookahead

# LOOKAHEAD = 1

#添加额外的参数,如果想在这里
#在合理的新的硬件,您可以尝试- X66 , - X67或- X68
#其他旗帜你可能要进行实验的科技- u1 , - A和米
#见hdparm manpage (男子hdparm )的详细资料和更多的选择。

EXTRA_PARAMS =

说明文件

HDPARM ( 8 ) HDPARM ( 8 )

名称
hdparm -获取/设置硬盘参数

综述
hdparm [旗帜] [设备] ..

描述
hdparm提供了一个命令行界面的各种硬盘ioctls
支持股票的Linux ATA / IDE设备驱动子系统。 一些
选项可能正常工作,只有与最新的内核。 为获得最佳
结果,编译hdparm与包括文件从最新的内核
源代码。

期权
当不挂旗,给出- acdgkmnru假设。

一个获取/设置部门伯爵的文件预读。 这是用来
提高性能的连续读取大型文件,通过
预取更多的盖帽,他们正在期待
所需要的运行任务。 在当前的内核版本
( 2.0.10 )本有一个默认设置的8部门( 4KB ) 。 这个
价值似乎很好的用途,但在一个系统中最
随机文件访问的要求,一个较小的设置可能会提供
更好的性能。 此外,许多IDE驱动器也有一个单独的
内置的预读功能,可以缓解需要有一个
文件预读在许多情况下。

一个禁用/启用IDE驱动器的读取的Lookahead功能(通常
默认情况下) 。

一B获取/设置总线状态。

, B组的高级电源管理功能,如果驱动器支持。
低价值的手段积极电源管理和高增值
意味着更好的性能。  A值255将禁用APM的
驾驶。

碳查询/启用(英文)的IDE 32位I / O支持。 参数可以是数字
用来启用/禁用32位I / O支持:目前抑制
端口值包括0来禁用32位I / O支持, 1至
使32位数据传输,和3 ,以使32位数据的反式
fers特别同步序列所需要的许多芯片组。
3作品的价值与几乎所有的32位的IDE芯片组,但
承担略多开销。 请注意, “ 32位”是指
数据传输跨越或碱的PCI总线的接口卡
只有所有的(英文) IDE驱动器仍然只有16位的连接
的带状电缆的接口卡。

碳检查当前的IDE功耗模式的地位,这将永远是
一个未知的(驱动器不支持此命令) ,
积极/闲置(正常运作) ,待机(低功率模式下,驱动器
已经剥离下来) ,或睡觉(最低功率模式下,驱动器是通信
pletely关闭) 。 该硫,钇, - Y和阻抗旗帜可以用来
操纵的IDE功率模式。

三维禁用/启用“ using_dma ”国旗这个驱动器上。 此选项
现在大多数的组合驱动器和PCI接口
支持DMA和已知的IDE驱动。 它是
还一个好主意,请使用适当的- x选项的组合
与- D1型,以确保驱动器本身的程序
正确的DMA模式,虽然大多数BIOSs要做到这一点为您
开机时间。 使用的DMA几乎总是给人的最佳性能,
快速I / O吞吐量,低CPU使用率。 但是,在
至少有几个配置的芯片组和硬盘的DMA为
没有多大的差别,甚至可能放慢改革的步伐
(上真是乱硬件! ) 。 您的里程可能会有所不同。

三维启用/禁用上的驱动器缺陷管理功能,即
该驱动器的固件尝试自动管理缺陷仲
子迁移到“备用”部门保留的因子
历史的这种。

娥设置光驱速度。 这是没有必要的正常运行,
作为驱动器会自动切换速度本身。 但是
如果你想发挥它,只要供应的速度人数后
选择,通常是一些喜欢2个或4个。

氟同步和刷新缓存的设备出口。 这个
操作也表现的一部分, - t和- T的时间。

接枝显示驱动几何(缸,主管,部门)的大小
(部门)的设备,开始抵消(部门)
该设备从一开始的驱动器。

小时显示简洁使用信息(帮助) 。

我的身份证信息显示这是从驱动器
在开机时,如果有的话。 这是一个现代的IDE功能
驱动器,并可能不支持旧设备。 数据
返回可能是也可能不是目前,根据活动自
控制系统启动。 然而,目前多个部门模式
伯爵总是显示。 更详细的解释
确定信息,请参阅在附件接口
磁盘驱动器(标准学会X3T9.2工作草案,修订4A条, 4月
93分之19 ) 。

,我要求鉴定信息直接从驱动器,这是
显示在一个新的扩展格式,相当多的细节
比旧我国旗。 有一种特殊的“不安全带”
变化对这个选项, - Istdin不能结合
任何其他选择,并接受鉴定的驱动器
块标准输入而不是使用在/ dev /高清*参数。
的格式,这个区块必须是完全一样的发现
在与/ proc /的IDE / * /高清* /确定“档案” 。 这种变化是
专为与“图书馆”的驱动器识别信息
象,也可以使用的ATAPI驱动器可提供
媒体错误的标准机制。

钾获取/设置keep_settings_over_reset国旗的驱动器。 何时
设定这个旗标,司机会维护,内燃动车组选项
软复位, (中所做的那样错误恢复序列) 。
此标志默认为关闭,以防止驱动器重置循环的
可能造成的组合,内燃动车组的设置。 该钾国旗
因此,应该只能设置后,取得了信心
在正确的系统运作,选择一套配置
设置。 在实践中,这一切通常是必要的,以测试
配置(之前使用钾) ,是为了验证该驱动器
可以读/写,并没有错误日志(内核的信息)
产生的过程中(期待在/ var /行政/邮件最
系统) 。

钾设置驱动器的keep_features_over_reset国旗。 设置
使硬盘能够保留设置, APSWXZ了软
复位(中所做的那样错误恢复序列) 。 并非所有
驱动器支持此功能。

左旋设置驱动器的doorlock国旗。 将其设置将锁定
门机制的一些removeable硬盘驱动器(如Syquest ,邮编,

爵士.. ) ,并设置为保持门锁机制
自动,根据驱动器的使用(锁定时
文件安装) 。 但在系统关机,这可能是一个
滋扰如果root分区是在removeable磁盘,因为
的root分区是左安装(只读)关机后。
因此,使用此命令打开大门的根文件系统
是此之前只读,那么,可以删除墨盒从
关机后的驱动器。

米获取/设置部门伯爵多个部门的I / O驱动器上。 字母a
设置为0禁用此功能。 多个部门的模式(又名
的IDE块模式) ,是一个功能最先进的IDE硬盘,
允许转让多个部门每的I / O中断,
而不是通常的每一个部门的中断。 当此有限元分析,
结构已启用,通常会降低营运系统开销
对磁盘I / O的30-50 % 。 在许多系统,还提供了
增加数据吞吐量的时间从5 %至50 % 。 一些
驱动器,但是(最显着的是WD Caviar鱼子酱系列) ,似乎运行
慢多种模式。 您的里程可能会有所不同。 多数的
驱动器支持的最低设置的二,四,八,或16 (部门) 。
更大的设置也可能是可能的,这取决于驱动器。 字母a
设置16或32似乎最佳的许多系统。 西部数字
意大利建议降低设置4日至8日对他们的许多
驱动器,由于小(的32KB )驱动器的缓冲和非优化的缓冲区
化算法。 在我旗可以用来寻找最高
设置的支援,安装驱动器(在寻找MaxMultSect
输出) 。 有些驱动器声称支持多种模式,但
丢失数据的一些设置。 在罕见的情况下,例如
故障可能会导致大规模的文件腐败。

物获取/设置自动声音管理(酰胺)的设置。 最现代化的
硬盘驱动器的能力,以加速下跌的头部运动
注释,以减少他们的噪声输出。 可能的值是
介于0和254 。  128是最安静的(因此慢)
制定和254的最快(和响) 。 有些驱动器
ownly两个层次(安静/快) ,而另一些可能有不同的
各级之间的128和254 。 此功能与实验
没有得到很好的测试。 使用自行承担风险。

氮GET或设置“忽略错误写入”标志的驱动程序。 请勿
发挥本没有grokking司机的源代码第一。

磷尝试改编的IDE接口芯片的指定
PIO模式,或试图进行自动调整为“最好”的PIO模式抑制
移植的驱动器。 此功能支持的内核
只有少数“称为”芯片组,甚至是那么的支持
iffy最好。 有些的IDE芯片组无法改变的PIO
模式的一个单一的驱动器,在这种情况下,此标志可能导致
PIO模式对硬盘进行设置。 许多的IDE芯片组支持
或者更少或更多的不是标准的6个( 0到5 ) PIO模式,
所以确切的速度设置,实际上是将实施
不同的芯片组/司机老练。 使用极端苟-
化! 此功能包括零保护粗心,和
失败的结果可能导致严重的文件corrup -
化!

磷设置最大部门计数的驱动器的内部预取
机制。 并非所有的驱动器支持此功能。

- Q报表处理未来国旗静静地,抑制正常的输出。 这是
有用以减少画面杂波运行时从
的/ etc / rc.c / rc.local 。 不适用- I或V或- T或- T的
国旗。

- Q报表设置标记队列深度( 1或更高) ,或开启标记排队
关闭( 0 ) 。 这不仅适用于新2.5.xx (或更新)克
nels ,只有为数不多的硬盘与目前支持它。

- R的获取/设置只读标志的设备。 当设置,写操作
不得在设备上。

- R的注册一个IDE接口。 危险的。 见- u选项的
更多的信息。

硫设置备用( spindown )超时的驱动器。 此值
所使用的驱动器,以确定如何长期等待(无硬盘
活动) ,然后关闭主轴电机以节省电力。
在这种情况下,驱动器可能需要长达30秒,
onds以应对以后的磁盘访问,虽然大多数硬盘
是快得多。 编码的超时值是多少
奇特。 将值设定为0意味着“关闭” 。 值从1到240
指定的倍数5秒,为超时5秒
20分钟。 值从241到251指定1日至11单位
30分钟,超时为30分钟至5.5小时。 字母a
价值252标志着超时21分钟,确定了253室
多尔定义超时,和255名被解释为21分钟加
15秒。

- T的执行时间的缓存内容为基准,比较陈建
构成。 进行有意义的结果,这一行动应
重复2-3次,否则无效系统(没有其他
活动进程)至少有一对夫妇兆的免费
内存。 这显示的速度,阅读直接从
Linux系统缓冲区没有磁盘访问。 这是衡量
基本上是一个表明吞吐量的处理器,
高速缓存和内存的系统测试。 如果- T的旗帜
还规定,然后校正因子结果的基础上
- T将被纳入报告的结果为- T的
作业。

- T的执行时间的设备读取和比较基准
目的。 进行有意义的结果,这一行动应
重复2-3次,否则无效系统(没有其他
活动进程)至少有一对夫妇兆的免费
内存。 这显示的速度读通过缓冲区
缓存到磁盘没有任何事先的缓存数据。 这种测量
surement是说明如何快速的驱动器能够维持
序列数据读取Linux下,没有任何文件过
头。 为了确保准确地测量,缓冲区缓存
涨红了脸,在处理- T的使用BLKFLSBUF ioctl 。
如果- T的国旗还规定,那么根据修正系数
的结果, T将被纳入结果
汇报- T的行动。

铀获取/设置中断揭露国旗的驱动器。 设置为1
允许司机揭露其他中断在处理过程中
磁盘中断,从而大大提高了Linux的反应,
性,并消除“串口溢出”错误。 利用这一有限元分析,
未来持谨慎态度:一些驱动器/控制器组合不
容忍增加的I / O延迟可能当此功能
已启用,造成大量档案腐败。 在标准杆
特定,西咪替丁- 640B和RZ1000 (英文)的IDE接口可以是不可靠的
(由于硬件漏洞)时,此选项是使用内核
版本早于2.0.13 。 禁用的IDE预有限元分析,
结构的这些接口(通常是BIOS /的CMOS设置)提供
安全修补程序的问题,使用与先前的内核。

聚氯乙烯取消注册一个IDE接口。 危险的。 在同伴的
- r选项。 打算用于硬件专为
热插拔(非常罕见的! ) 。 使用知识和极端苟-
化,因为这可以很容易地坑或破坏您的系统。 该hdparm
源分布包括' contrib '目录一些
用户捐赠脚本热插拔的Ultrabay上一个
的ThinkPad 600E 。 使用风险由您自行承担。

电压显示所有的设置,除非我(同- acdgkmnru使IDE ,石墨
对于SCSI或adgr的文本) 。 这也是默认行为
当没有标志指明。

钨执行器件复位(危险) 。 不使用此选项。 它
不可能存在的情况下重新启动否则可能
需要获得混淆驱动器返回到可用状态。

钨禁用/启用IDE驱动器的写入缓存功能(默认
国家undeterminable ;制造商/模式具体) 。

- x联亚装置的热切换(危险) 。

- X集的IDE传输模式的更新(英文)的IDE / ATA驱动器。 这是
通常结合使用- D1型时有利的DMA到/从
驱动器的接口芯片组的支持,在那里,使用X mdma2
选择多的DMA mode2转让和- X sdma1是用来
选择简单模式1的DMA传输。 随着系统的支持
UltraDMA爆发时间, - X udma2用于选择UltraDMA
mode2转让(您需要准备的芯片组为UltraDMA
事先) 。 此外,使用此标志,很少neces -
萨利因为大多数/所有现代IDE驱动器默认的最快
的PIO传输模式在上电。 顺藤摸瓜的这可能是这两个
不必要的和危险的。 在驱动器支持候补转让
模式, - X可以用来切换模式的驱动器只。
之前改变传输模式, IDE接口应
跳线或程序(见磷旗)为新的模式设置为
防止丢失和/或腐败的数据。 使用此极端
注意! 为先锋(程序输入/输出)传输模式
使用Linux操作系统,这个值仅仅是理想的PIO模式人数
加8 。 因此,一个价值09集的PIO模型,使先锋10
mode2 , 11选择的PIO mode3 。 设置00还原
驱动器的“默认” PIO模式,以及01禁用IORDY 。 多
字DMA ,使用的值是所期望的DMA模式人数加32 。
为UltraDMA ,其价值是所期望的UltraDMA模式人数加
64 。

肽Y的IDE驱动器部队立即进入低功率消耗
化待机模式,通常导致其减速。 目前
功率模式状态可以检查使用碳国旗。

肽Y的IDE驱动器部队立即进入最低功耗协商
消费睡眠模式,导致其完全关闭。 硬
或软重置之前,需要的驱动器可再次
( Linux的IDE驱动会自动发出复位处理
如果/需要时) 。 目前功率模式状态检查
使用碳国旗。

厂队内核重新读取分区表的指定
装置(县) 。

阻抗禁用自动省电功能的某些希捷
驱动器( ST3xxx模式? ) ,以防止他们idling/spinning-
在不方便的时候了。

Red Hat8默认打开DMA模式,你可以用hdparm /dev/hda命令查询,我刚安装好的RH8显示如下:
[root@localhost root]# hdparm /dev/hda

/dev/hda:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on) 表明已经开启,不用我们操心
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 4866/255/63, sectors = 78177792, start = 0
如果查询结果没有开启,可以再按照silver810212兄弟的方法去做
回复 支持 反对

使用道具 举报

发表于 2009-1-13 20:04:45 | 显示全部楼层
我是新手上路,请大家多多关照!
回复 支持 反对

使用道具 举报

发表于 2009-1-16 13:42:53 | 显示全部楼层
MARK ~~~收藏
回复 支持 反对

使用道具 举报

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

本版积分规则

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