Второй день не могу решить одну проблему...
######## Дано:
Сервер у провайдера через SSH
Медленная работа файловой системы
######## Требуется:
Локализовать причину медленной работы диска
######## Информация о системе:
FreeBSD 7.1-RELEASE i386
# dmidecode -t baseboard
# dmidecode -t processorSMBIOS 2.4 present.
Handle 0x0005, DMI type 2, 16 bytes
Base Board Information
Manufacturer: Intel
Product Name: S3000AHLX
Version: D40858-207
Serial Number: AZAX71401064
Asset Tag: Not Specified
Features:
Board is a hosting board
Board is replaceable
Location In Chassis: Not Specified
Chassis Handle: 0x0000
Type: Motherboard
Contained Object Handles: 0
######## И еще немного информации о диске:SMBIOS 2.4 present.
Handle 0x0000, DMI type 4, 35 bytes
Processor Information
Socket Designation: Intel(R) Genuine processor
Type: Central Processor
Family: Core 2
Manufacturer: Intel(R) Corporation
ID: F6 06 00 00 FF FB EB BF
Signature: Type 0, Family 6, Model 15, Stepping 6
Flags:
FPU (Floating-point unit on-chip)
VME (Virtual mode extension)
DE (Debugging extension)
PSE (Page size extension)
TSC (Time stamp counter)
MSR (Model specific registers)
PAE (Physical address extension)
MCE (Machine check exception)
CX8 (CMPXCHG8 instruction supported)
APIC (On-chip APIC hardware supported)
SEP (Fast system call)
MTRR (Memory type range registers)
PGE (Page global enable)
MCA (Machine check architecture)
CMOV (Conditional move instruction supported)
PAT (Page attribute table)
PSE-36 (36-bit page size extension)
CLFSH (CLFLUSH instruction supported)
DS (Debug store)
ACPI (ACPI supported)
MMX (MMX technology supported)
FXSR (Fast floating-point save and restore)
SSE (Streaming SIMD extensions)
SSE2 (Streaming SIMD extensions 2)
SS (Self-snoop)
HTT (Hyper-threading technology)
TM (Thermal monitor supported)
PBE (Pending break enabled)
Version: Intel(R) Core(TM)2 CPU 6320 @ 1.86GHz
Voltage: 1.6 V
External Clock: 266 MHz
Max Speed: 4000 MHz
Current Speed: 1866 MHz
Status: Populated, Enabled
Upgrade: Other
L1 Cache Handle: 0x0002
L2 Cache Handle: 0x0001
L3 Cache Handle: Not Provided
Serial Number: Not Specified
Asset Tag: Intel(R) Genuine processor
Part Number: Not Specified
# diskinfo -ctv /dev/ad4
######## Запускаем команду DU и получаем замедление работы файловой системы/dev/ad4
512 # sectorsize
160041885696 # mediasize in bytes (149G)
312581808 # mediasize in sectors
310101 # Cylinders according to firmware.
16 # Heads according to firmware.
63 # Sectors according to firmware.
ad:6PT2ZRJ1 # Disk ident.
I/O command overhead:
time to read 10MB block 0.120868 sec = 0.006 msec/sector
time to read 20480 sectors 1.572706 sec = 0.077 msec/sector
calculated command overhead = 0.071 msec/sector
Seek times:
Full stroke: 250 iter in 7.024621 sec = 28.098 msec
Half stroke: 250 iter in 4.918300 sec = 19.673 msec
Quarter stroke: 500 iter in 7.662957 sec = 15.326 msec
Short forward: 400 iter in 2.465271 sec = 6.163 msec
Short backward: 400 iter in 2.497200 sec = 6.243 msec
Seq outer: 2048 iter in 0.163802 sec = 0.080 msec
Seq inner: 2048 iter in 0.177534 sec = 0.087 msec
Transfer rates:
outside: 102400 kbytes in 1.395189 sec = 73395 kbytes/sec
middle: 102400 kbytes in 1.645013 sec = 62249 kbytes/sec
inside: 102400 kbytes in 2.889748 sec = 35436 kbytes/sec
# time du -h -d 1 / >> /tmp/du.tmp &
# diskinfo -ctv /dev/ad4[1] 23935
# atacontrol list/dev/ad4
512 # sectorsize
160041885696 # mediasize in bytes (149G)
312581808 # mediasize in sectors
310101 # Cylinders according to firmware.
16 # Heads according to firmware.
63 # Sectors according to firmware.
ad:6PT2ZRJ1 # Disk ident.
I/O command overhead:
time to read 10MB block 1.796394 sec = 0.088 msec/sector
time to read 20480 sectors 55.935900 sec = 2.731 msec/sector
calculated command overhead = 2.644 msec/sector
Seek times:
Full stroke: 250 iter in 9.310262 sec = 37.241 msec
Half stroke: 250 iter in 6.788846 sec = 27.155 msec
Quarter stroke: 500 iter in 13.846293 sec = 27.693 msec
Short forward: 400 iter in 7.200401 sec = 18.001 msec
Short backward: 400 iter in 7.498912 sec = 18.747 msec
Seq outer: 2048 iter in 6.825475 sec = 3.333 msec
Seq inner: 2048 iter in 7.668199 sec = 3.744 msec
Transfer rates:
outside: 102400 kbytes in 15.297608 sec = 6694 kbytes/sec
middle: 102400 kbytes in 12.685097 sec = 8072 kbytes/sec
inside: 102400 kbytes in 21.405603 sec = 4784 kbytes/sec
# atacontrol mode ad4ATA channel 0:
Master: no device present
Slave: no device present
ATA channel 1:
Master: no device present
Slave: no device present
ATA channel 2:
Master: ad4 <ST3160811AS/3.AAE> Serial ATA II
Slave: no device present
ATA channel 3:
Master: no device present
Slave: no device present
# smartctl -a /dev/ad4current mode = SATA150
Помогите разобраться!smartctl version 5.38 [i386-portbld-freebsd7.1] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.9 family
Device Model: ST3160811AS
Serial Number: 6PT2ZRJ1
Firmware Version: 3.AAE
User Capacity: 160,041,885,696 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 7
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Tue Jun 23 11:45:35 2009 MSD
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 430) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 54) minutes.
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 109 079 006 Pre-fail Always - 0
3 Spin_Up_Time 0x0003 095 095 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 16
5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 088 060 030 Pre-fail Always - 796915572
9 Power_On_Hours 0x0032 093 093 000 Old_age Always - 6520
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 17
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 064 051 045 Old_age Always - 36 (Lifetime Min/Max 23/49)
194 Temperature_Celsius 0x0022 036 049 000 Old_age Always - 36 (0 23 0 0)
195 Hardware_ECC_Recovered 0x001a 072 046 000 Old_age Always - 330
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0
202 TA_Increase_Count 0x0032 100 253 000 Old_age Always - 0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Short captive Completed without error 00% 5754 -
# 2 Short captive Completed without error 00% 5754 -
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

Одна голова хорошо, две еще лучше, а вот три уже некрасиво
