Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Mar 2010 19:06:51 -0700
From:      John Long <fbsd2@sstec.com>
To:        freeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   8.x Amd64, ATA SATA mode reporting
Message-ID:  <5.2.1.1.2.20100324180724.0321b1c8@mail.sstec.com>

next in thread | raw e-mail | index | archive | help
Moved from another thread
 >> I csupd to stable amd64 8.0 and rebuilt then noticed from dmesg that I 
went from SATA150 (it should be SATA300) to >> udma100 SATA.
 >
 >This is a bug/quirk of some changes in ata(4).  Your drive should be
 >operating at full SATA speed (probably SATA300).  You can bring this up
 >in another thread if you want, but it's purely cosmetic as far as I
 >know.  atacontrol(8) and diskinfo(8) -t and -c will come in handy.

I am looking for stability and find this possibly disconcerting.
It looks like you are right about cosmetic for the speed test is about the 
same in either. In Generic atacontrol cannot determine the mode at all and 
in stable it shows up but as the wrong thing, udma100 SATA instead of SATA300.

dmesg reports on both the same:
atapci0: <Intel ICH7 SATA300 controller> port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 31.2 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]

I noticed the following line in stable compile from sysctl, I find out it 
reports that in generic also.
hptmv.status: RocketRAID 18xx SATA Controller driver Version v1.16
So I added nodevice	hptmv
rebuild and It took it out but there was no improvement in results.
Kernel additions at the end.

So, if it is of no matter then cool, if you want me to do something just 
let me know.

thx,

John

8 stable:
dmesg	ad0: 953868MB <WDC WD1001FALS-00J7B0 05.00K05> at ata0-master UDMA100 
SATA
%atacontrol list
ATA channel 0:
     Master:  ad0 <WDC WD1001FALS-00J7B0/05.00K05> SATA revision 2.x
     Slave:       no device present
ATA channel 1:
     Master: acd0 <CREATIVE CD5230E/C1.01> ATA/ATAPI revision 0
     Slave:       no device present

%atacontrol mode ad0
current mode = UDMA100 SATA

%diskinfo -t ad0
ad0
         512             # sectorsize
         1000203804160   # mediasize in bytes (932G)
         1953523055      # mediasize in sectors
         0               # stripesize
         0               # stripeoffset
         1938018         # Cylinders according to firmware.
         16              # Heads according to firmware.
         63              # Sectors according to firmware.
         WD-WMATV5906953 # Disk ident.

Seek times:
         Full stroke:      250 iter in   4.930305 sec =   19.721 msec
         Half stroke:      250 iter in   3.434680 sec =   13.739 msec
         Quarter stroke:   500 iter in   5.588974 sec =   11.178 msec
         Short forward:    400 iter in   1.601327 sec =    4.003 msec
         Short backward:   400 iter in   2.187711 sec =    5.469 msec
         Seq outer:       2048 iter in   0.391555 sec =    0.191 msec
         Seq inner:       2048 iter in   0.243926 sec =    0.119 msec
Transfer rates:
         outside:       102400 kbytes in   0.945528 sec =   108299 kbytes/sec
         middle:        102400 kbytes in   1.066398 sec =    96024 kbytes/sec
         inside:        102400 kbytes in   1.775079 sec =    57688 kbytes/sec

%diskinfo -c ad0
ad0
         512             # sectorsize
         1000203804160   # mediasize in bytes (932G)
         1953523055      # mediasize in sectors
         0               # stripesize
         0               # stripeoffset
         1938018         # Cylinders according to firmware.
         16              # Heads according to firmware.
         63              # Sectors according to firmware.
         WD-WMATV5906953 # Disk ident.

I/O command overhead:
         time to read 10MB block      0.105669 sec       =    0.005 msec/sector
         time to read 20480 sectors   2.138126 sec       =    0.104 msec/sector
         calculated command overhead

=========================================================
8 Generic:
dmesg	ad0: 953868MB <WDC WD1001FALS-00J7B0 05.00K05> at ata0-master SATA150
%atacontrol list
ATA channel 0:
     Master:  ad0 <WDC WD1001FALS-00J7B0/05.00K05> SATA revision 2.x
     Slave:       no device present
ATA channel 1:
     Master: acd0 <CREATIVE CD5230E/C1.01> ATA/ATAPI revision 0
     Slave:       no device present

%atacontrol mode ad0
current mode = ???

%diskinfo -t ad0
ad0
  512         # sectorsize
  1000203804160# mediasize in bytes (932G)
  1953523055  # mediasize in sectors
  0           # stripesize
  0           # stripeoffset
  1938018     # Cylinders according to firmware.
  16          # Heads according to firmware.
  63          # Sectors according to firmware.
  WD-WMATV5906953# Disk ident.

Seek times:
         Full stroke:      250 iter in   4.990163 sec =   19.961 msec
         Half stroke:      250 iter in   3.460091 sec =   13.840 msec
         Quarter stroke:   500 iter in   5.572893 sec =   11.146 msec
         Short forward:    400 iter in   1.601550 sec =    4.004 msec
         Short backward:   400 iter in   2.187599 sec =    5.469 msec
         Seq outer:       2048 iter in   0.378502 sec =    0.185 msec
         Seq inner:       2048 iter in   0.248222 sec =    0.121 msec
Transfer rates:
         outside:       102400 kbytes in   0.955476 sec =   107172 kbytes/sec
         middle:        102400 kbytes in   1.067399 sec =    95934 kbytes/sec
         inside:        102400 kbytes in   1.776965 sec =    57626 kbytes/sec

%diskinfo -c ad0
ad0
         512             # sectorsize
         1000203804160   # mediasize in bytes (932G)
         1953523055      # mediasize in sectors
         0               # stripesize
         0               # stripeoffset
         1938018         # Cylinders according to firmware.
         16              # Heads according to firmware.
         63              # Sectors according to firmware.
         WD-WMATV5906953 # Disk ident.

I/O command overhead:
         time to read 10MB block      0.090332 sec       =    0.004 msec/sector
         time to read 20480 sectors   2.140744 sec       =    0.105 msec/sector
         calculated command overhead                     =    0.100 msec/sector

=======================================================
#
# SSTEC custom -- FreeBSD/amd64
#
# $FreeBSD: src/sys/amd64/conf/GENERIC,v 1.531.2.8 2010/01/18 00:53:21 imp 
Exp $

include         GENERIC

ident           SSTEC

#
# CPU control pseudo-device. Provides access to MSRs, CPUID info and
# microcode update feature.
###
#device          cpuctl

## ======================================================================
## Additions for Firewall / Divert

options         IPFIREWALL              #firewall
options         IPFIREWALL_VERBOSE      #enable logging to syslogd(8)
options         IPFIREWALL_VERBOSE_LIMIT=100    #limit verbosity
options         IPFIREWALL_FORWARD      #packet destination changes
options         IPDIVERT          #divert sockets

###
#options         IPFIREWALL_NAT          #ipfw kernel nat support
# libalias library, performing NAT required for IPFIREWALL_NAT
###
#options         LIBALIAS

# Statically Link in accept filters
options         ACCEPT_FILTER_DATA
options         ACCEPT_FILTER_HTTP
###
options         ACCEPT_FILTER_DNS

# DUMMYNET it is advisable to also have at least "options HZ=1000" to achieve
# a smooth scheduling of the traffic.
options         DUMMYNET
###
options         HZ=1000

## ======================================================================

#excludes
nodevice                hptmv           # Highpoint RocketRAID 182x




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.2.1.1.2.20100324180724.0321b1c8>