The invention discloses a method for realizing SMART information monitoring, which is characterized in that the increase of exception collecting module and exception reporting in the hard disk controller; the abnormal collection module according to the preset abnormal condition monitoring hard working condition, when the hard disk is abnormal and abnormal conditions meet the preset time and will notify the host controller the abnormal situation in the record abnormal report; the host only after receiving a hard disk controller abnormal notification, abnormal report host read the hard disk or SMART information. By canceling the regular read operation of the SMART information when no exception occurs on the hard disk, the performance loss of the host detected by the hard disk is reduced to the minimum, so as to improve the data throughput performance of the host computer.
【技術實現步驟摘要】
一種SMART信息監控的實現方法
本專利技術涉及存儲
,尤其涉及一種SMART信息監控的實現方法。
技術介紹
SMART(Self-Monitoring,Analysis,andReportingTechnology)是指硬盤內部管理器對硬盤自我監測和分析,并生成的狀態報告包括硬盤健康度和異常信息,通過分析該報告可以用來預測分析硬盤的潛在問題?,F有SATASSD不會主動向主機Host匯報硬盤健康度/異常信息,需要Host定期通過查詢SMART信息進行判斷,為SMART信息查詢命令為Legacy命令,所以命令下發時需要獨占SSDIO通路;并非由于此命令數據量較大導致。因此定期對SMART查詢將影響Host數據吞吐性能。
技術實現思路
針對以上缺陷,本專利技術目的在于如何降低主機因為讀取SMART信息而造成對IO資源的占用,如何降低對Host數據吞吐性能的影響。為了實現上述目的,本專利技術提供了一種SMART信息監控的實現方法,其特征在于在硬盤控制器中增加設置異常收集模塊和異常報告;所述異常收集模塊根據預先設定的異常條件監控硬盤的工作狀態,當硬盤發生異常且滿足預先設定的異常條件時硬盤控制器通知主機并將異常情況記錄在異常報告中;主機只有在收到硬盤控制器發生異常通知時,主機才讀取硬盤的異常報告或者SMART信息。所述的SMART信息監控的實現方法,其特征在于在主機訪問硬盤的操作命令返回值中增加硬盤異常使能標識,當硬盤發生異常時,硬盤控制器將最新的主機訪問硬盤的操作命令返回值中硬盤異常使能標識從無效修改為使能;主機檢查到硬盤異常使能標識后,通過發送獲取異常報告指令 ...
【技術保護點】
一種SMART信息監控的實現方法,其特征在于在硬盤控制器中增加設置異常收集模塊和異常報告;所述異常收集模塊根據預先設定的異常條件監控硬盤的工作狀態,當硬盤發生異常且滿足預先設定的異常條件時硬盤控制器通知主機并將異常情況記錄在異常報告中;主機只有在收到硬盤控制器發生異常通知時,主機才讀取硬盤的異常報告或者SMART信息。
【技術特征摘要】
1.一種SMART信息監控的實現方法,其特征在于在硬盤控制器中增加設置異常收集模塊和異常報告;所述異常收集模塊根據預先設定的異常條件監控硬盤的工作狀態,當硬盤發生異常且滿足預先設定的異常條件時硬盤控制器通知主機并將異常情況記錄在異常報告中;主機只有在收到硬盤控制器發生異常通知時,主機才讀取硬盤的異常報告或者SMART信息。2.根...
【專利技術屬性】
技術研發人員:韓道靜,吳嫻,
申請(專利權)人:記憶科技深圳有限公司,
類型:發明
國別省市:廣東,44
還沒有人留言評論。發表了對其他瀏覽者有用的留言會獲得科技券。