Changes between Version 41 and Version 42 of jazz/Performance_Tuning


Ignore:
Timestamp:
Apr 8, 2012, 10:45:45 PM (13 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/Performance_Tuning

    v41 v42  
    230230 * [http://ubuntuforums.org/showthread.php?t=200004 iowait problem] - 顯示了使用 vmstat , iostat , hdparm 的技巧
    231231
     232 * 在 Linux 底下查硬碟型號(hard disk model and serial number)
     233   * [參考一] [http://taiwanwolf.blogspot.com/2009/02/linux.html 查看 Linux 系統資訊常用指令]
     234   * [參考二] [http://www.cyberciti.biz/faq/linux-getting-scsi-ide-harddisk-information/ Linux: Find out serial / model number and vendor information for SATA and IDE hard disk]
     235   * [參考三] [http://dbaspot.com/forums/linux-misc/245398-hard-disk-model-manufacturer.html Hard-disk model and manufacturer - linux-misc]
     236   * [工具一] hdparm - [http://packages.debian.org/hdparm Debian 有 hdparm 套件] - 可以拿來測試硬碟效能
     237{{{
     238jazz@Wdebian:~$ sudo apt-get install hdparm
     239jazz@Wdebian:~$ sudo hdparm -I /dev/sda | grep "Model Number"
     240        Model Number:       ST31500341AS
     241}}}
     242   * 如果要測試硬碟 I/O 速度,可以用 '''hdparm -t'''
     243{{{
     244jazz@Wdebian:~$ sudo hdparm -t /dev/sda
     245}}}
     246   * [工具二] smartctl - [http://packages.debian.org/smartmontools Debian 有 smartmontools 套件] - [http://unixfoo.blogspot.com/2007/11/disk-information-using-smartctl.html 也可以拿來測試硬碟效能]
     247{{{
     248jazz@Wdebian:~$ sudo apt-get install smartmontools
     249jazz@Wdebian:~$ sudo smartctl -a /dev/sda | grep "Device Model:"
     250Device Model:     ST31500341AS
     251}}}
     252   * [低階指令一] 如果是 SCSI 或 SATA 硬碟,可以查 /proc/scsi/scsi
     253{{{
     254jazz@Wdebian:~$ cat /proc/scsi/scsi
     255Attached devices:
     256Host: scsi0 Channel: 00 Id: 00 Lun: 00
     257  Vendor: ATA      Model: ST31500341AS     Rev: CC1H
     258  Type:   Direct-Access                    ANSI  SCSI revision: 05
     259Host: scsi1 Channel: 00 Id: 00 Lun: 00
     260  Vendor: TSSTcorp Model: DVD-ROM TS-H353B Rev: D500
     261  Type:   CD-ROM                           ANSI  SCSI revision: 05
     262Host: scsi2 Channel: 00 Id: 00 Lun: 00
     263  Vendor: ATA      Model: ST3640323AS      Rev: SD35
     264  Type:   Direct-Access                    ANSI  SCSI revision: 05
     265}}}
     266   * [低階指令二] 如果是 IDE 硬碟,可以查 /proc/ide/hd*/model
     267{{{
     268jazz@lenny:~$ sudo cat /proc/ide/hda/model
     269VBOX HARDDISK
     270}}}
     271
    232272== Network Performance Tuning ==
    233273