Re: How to decode raw Seek Error Rate for Seagate HDs

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: How to decode raw Seek Error Rate for Seagate HDs

Manfred Schwarb
Bruce, Franc,

Am Montag, den 16.03.2009, 04:31 -0700 schrieb Bruce Allen:
> Hi Franc,
>
> Thanks for this information.  Do you want to send a patch for smartctl
> with a '-v' option to interpret this Attribute correctly?
>
> Cheers,
> Bruce

one possibility would be to mask the upper bits and print them in
parens, as we have done with other attributes.
I quickly skimmed over the smartmontools database, it seems only
Seagate has raw values larger than 4 bytes for this attribute.


This would look something like

--- atacmds.cpp.orig       2009-03-01 21:28:44.000000000 +0100
+++ atacmds.cpp       2009-03-22 14:11:52.000000000 +0100
@@ -1901,6 +1912,12 @@
     if (word[1] || word[2])
       out+=sprintf(out, " (%u, %u)", word[2], word[1]);
     break;
+    // seek error rate
+  case 7:
+    out+=sprintf(out, "%u", word[0]+(word[1]<<16));
+    if (word[2])
+      out+=sprintf(out, " (%u)", word[2]);
+    break;
     // Power on time
   case 9:
     if (select==1){


This would result in
  7 Seek_Error_Rate         0x000f   076   060   030    Pre-fail  Always
-       2597949 (3)

for the example of Franc.


Bruce, would you prefer an explicit "-v" option for this issue, to
produce output which is easier to read?


Thanks,
Manfred


>
> Franc Zabkar wrote:
> > After extensive testing and research I've come to the conclusion that
> > Seagate's raw Seek Error Rate attribute consists of two parts, a
> > 16-bit count of seek errors in the uppermost 4 nibbles, and a 32-bit
> > count of seeks in the lowermost 8 nibbles.
> >
> > Here are two Usenet threads where I have worked through various
> > examples and performed some testing:
> >
> > http://groups.google.com/group/comp.sys.ibm.pc.hardware.storage/browse_thread/thread/54b8ad6d34549e95/de20c3e867d856ba#de20c3e867d856ba
> >
> > http://groups.google.com/group/comp.sys.ibm.pc.hardware.storage/browse_thread/thread/9519f7ad86d7be72/954cc1cd9df89d0b?#954cc1cd9df89d0b
> >
> > I believe that the cooked value of the SER attribute is logarithmic.
> >
> >   90% =  < 1 error per 1000 million seeks
> >   80% =  < 1 error per 100 million
> >   70% =  < 1 error per 10 million
> >   60% =  < 1 error per million
> >   50% =   10 errors per million
> >   40% =  100 errors per million
> >   30% = 1000 errors per million
> >
> > I also believe that a new drive begins life with a cooked value of 60.
> >
> > -Franc Zabkar
> >
> >
> > ------------------------------------------------------------------------------
> > _______________________________________________
> > Smartmontools-support mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/smartmontools-support
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> Smartmontools-support mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/smartmontools-support


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Smartmontools-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
Reply | Threaded
Open this post in threaded view
|

Re: How to decode raw Seek Error Rate for Seagate HDs

Bruce Allen
Hi Manfred,

An explicit '-v' would make this easier.  But it's a lot of work to code
it, document it in the man pages, and to modify the database so that the
correct drives are recognized.  If no one volunteers to do this, then
your approach is easy and gets at least part way there! So it's fine
with me.

Cheers,
        Bruce

Manfred Schwarb wrote:

> Bruce, Franc,
>
> Am Montag, den 16.03.2009, 04:31 -0700 schrieb Bruce Allen:
>> Hi Franc,
>>
>> Thanks for this information.  Do you want to send a patch for smartctl
>> with a '-v' option to interpret this Attribute correctly?
>>
>> Cheers,
>> Bruce
>
> one possibility would be to mask the upper bits and print them in
> parens, as we have done with other attributes.
> I quickly skimmed over the smartmontools database, it seems only
> Seagate has raw values larger than 4 bytes for this attribute.
>
>
> This would look something like
>
> --- atacmds.cpp.orig       2009-03-01 21:28:44.000000000 +0100
> +++ atacmds.cpp       2009-03-22 14:11:52.000000000 +0100
> @@ -1901,6 +1912,12 @@
>      if (word[1] || word[2])
>        out+=sprintf(out, " (%u, %u)", word[2], word[1]);
>      break;
> +    // seek error rate
> +  case 7:
> +    out+=sprintf(out, "%u", word[0]+(word[1]<<16));
> +    if (word[2])
> +      out+=sprintf(out, " (%u)", word[2]);
> +    break;
>      // Power on time
>    case 9:
>      if (select==1){
>
>
> This would result in
>   7 Seek_Error_Rate         0x000f   076   060   030    Pre-fail  Always
> -       2597949 (3)
>
> for the example of Franc.
>
>
> Bruce, would you prefer an explicit "-v" option for this issue, to
> produce output which is easier to read?
>
>
> Thanks,
> Manfred
>
>
>> Franc Zabkar wrote:
>>> After extensive testing and research I've come to the conclusion that
>>> Seagate's raw Seek Error Rate attribute consists of two parts, a
>>> 16-bit count of seek errors in the uppermost 4 nibbles, and a 32-bit
>>> count of seeks in the lowermost 8 nibbles.
>>>
>>> Here are two Usenet threads where I have worked through various
>>> examples and performed some testing:
>>>
>>> http://groups.google.com/group/comp.sys.ibm.pc.hardware.storage/browse_thread/thread/54b8ad6d34549e95/de20c3e867d856ba#de20c3e867d856ba
>>>
>>> http://groups.google.com/group/comp.sys.ibm.pc.hardware.storage/browse_thread/thread/9519f7ad86d7be72/954cc1cd9df89d0b?#954cc1cd9df89d0b
>>>
>>> I believe that the cooked value of the SER attribute is logarithmic.
>>>
>>>   90% =  < 1 error per 1000 million seeks
>>>   80% =  < 1 error per 100 million
>>>   70% =  < 1 error per 10 million
>>>   60% =  < 1 error per million
>>>   50% =   10 errors per million
>>>   40% =  100 errors per million
>>>   30% = 1000 errors per million
>>>
>>> I also believe that a new drive begins life with a cooked value of 60.
>>>
>>> -Franc Zabkar
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Smartmontools-support mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/smartmontools-support
>> ------------------------------------------------------------------------------
>> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
>> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
>> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
>> software that enables intelligent coding and step-through debugging.
>> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
>> _______________________________________________
>> Smartmontools-support mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/smartmontools-support
>

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Smartmontools-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
Reply | Threaded
Open this post in threaded view
|

Re: How to decode raw Seek Error Rate for Seagate HDs

Thane Sherrington
At 04:50 AM 23/03/2009, Bruce Allen wrote:
>Hi Manfred,
>
>An explicit '-v' would make this easier.  But it's a lot of work to code
>it, document it in the man pages, and to modify the database so that the
>correct drives are recognized.  If no one volunteers to do this, then
>your approach is easy and gets at least part way there! So it's fine
>with me.

If updating the database is easily explained and/or doesn't require a
lot of technical skill, I'd be happy to try to update it with this information.

T  



------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Smartmontools-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/smartmontools-support