Giter Club home page Giter Club logo

poormon's Introduction

poormon

not SMART front end to smartctl(smartmontools)

  • only show attributes 5, 187, 188, 197, 198 that picked from Backblaze blog
  • show devstat if available
  • show DWPD (Drive Write Per Day)

examples

TOSHIBA Consumer Grade HDD

need root user or disk group

$ sudo ./poormon /dev/sdf
Device: TOSHIBA DT01ACA300 (~~)
Capacity: 2794.52 GiB (3000.59 GB)
Power On: 0.17 years (1504 hours, 62.7 days, power cycle 154)
SMART:
    5: Reallocated Sectors Count     : 0
  197: Current Pending Sector Count  : 0
  198: Uncorrectable Sector Count    : 0
Device stat:
  Write: 7.94 TiB (2.91 drive write)
  Read:  9.37 TiB
  Read/Write Ratio:  1.18
  Write per Year: 46.24 TiB/year
  Write per Day: 129.72 GiB/day (0.046 DWPD)
  Read per Year: 54.58 TiB/year
  Read per Day: 153.11 GiB/day
  Read Recovery: 0 corrected, 0 uncorrect
  Interface CRC Errors: 0
  Mechanical Start Failures: 6

this consumer grade drive support devstat(cool!).
but another one is ...

Seagate Consumer Grade HDD

Device: ST2000DL003-9VT166 (~~)
Capacity: 1863.02 GiB (2000.40 GB)
Power On: 2.25 years (19737 hours, 822.4 days, power cycle 2376)
SMART:
    5: Reallocated Sectors Count     : 0
  187: Reported Uncorrectable Errors : 0
  188: Command Timeout               : 2
  197: Current Pending Sector Count  : 0
  198: Uncorrectable Sector Count    : 0
Device stat: not supported

this one isn't.
and Command Timeout: 2, I need to watch out.

TOSHIBA Consumer Grade SSD

Device: TOSHIBA THNSNJ256GCSU (~~)
Capacity: 238.47 GiB (256.06 GB)
Power On: 0.41 years (3597 hours, 149.9 days, power cycle 406)
SMART:
    5: Reallocated Sectors Count     : 0
  197: Current Pending Sector Count  : 0
Device stat:
  Write: 1669.96 GiB (7.00 drive write)
  Read:  1103.65 GiB
  Read/Write Ratio:  0.66
  Write per Year: 3.97 TiB/year
  Write per Day: 11.14 GiB/day (0.047 DWPD)
  Read per Year: 2.62 TiB/year
  Read per Day: 7.36 GiB/day
  Endurance Indicator: 1% used
  Interface CRC Errors: 0

many of modern SSD supports Endurance Indicator.
T13 explain

percentage of device life used based on the actual device usage and the manufacturer's prediction of device life.


HGST Enterprise Grade HDD (old)

Device: Hitachi HUA722010CLA330 (~~)
Capacity: 931.51 GiB (1000.20 GB)
Power On: 3.73 years (32713 hours, 1363.0 days, power cycle 50)
SMART:
    5: Reallocated Sectors Count     : 0
  197: Current Pending Sector Count  : 0
  198: Uncorrectable Sector Count    : 0
Device stat:
  Write: 7.06 TiB (7.76 drive write)
  Read:  212.98 TiB
  Read/Write Ratio: 30.15
  Write per Year: 1.89 TiB/year
  Write per Day: 5.31 GiB/day (0.006 DWPD)
  Read per Year: 57.03 TiB/year
  Read per Day: 160.00 GiB/day
  Read Recovery: 1441 corrected, 0 uncorrect
  Interface CRC Errors: 0
  Mechanical Start Failures: 4294967295

this just about $25 at junk shop.
over 30000 hours, but still operational.
I need to be careful because of Mechanical-something looks wrong.

TODO

  • temperature stuff?

poormon's People

Contributors

sharow avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.