TWI687921B - Host, shingled magnetic recording hard disk drive and operation method thereof - Google Patents

Host, shingled magnetic recording hard disk drive and operation method thereof Download PDF

Info

Publication number
TWI687921B
TWI687921B TW108104018A TW108104018A TWI687921B TW I687921 B TWI687921 B TW I687921B TW 108104018 A TW108104018 A TW 108104018A TW 108104018 A TW108104018 A TW 108104018A TW I687921 B TWI687921 B TW I687921B
Authority
TW
Taiwan
Prior art keywords
hard disk
host
usage
media cache
delay time
Prior art date
Application number
TW108104018A
Other languages
Chinese (zh)
Other versions
TW202030725A (en
Inventor
黃意中
傅子瑜
Original Assignee
宏碁股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 宏碁股份有限公司 filed Critical 宏碁股份有限公司
Priority to TW108104018A priority Critical patent/TWI687921B/en
Application granted granted Critical
Publication of TWI687921B publication Critical patent/TWI687921B/en
Publication of TW202030725A publication Critical patent/TW202030725A/en

Links

Images

Abstract

The disclosure provides a host, a shingled magnetic recording (SMR) hard disk drive (HDD) and an operating method thereof. The SMR HDD includes a main storage area, a media cache, and a hard disk controller. The main storage area includes a plurality of stacked first tracks. The media cache includes a plurality of second tracks that surround the main storage area, wherein data are written to the second tracks in response to a plurality of write requests from the host. The hard disk controller is configured to: monitor an usage of the media cache; in response to the usage of the media cache reaching a first threshold of a plurality of usage thresholds, send a first link packet to the host to request the host to add a first delay time corresponding to the first threshold between the write requests.

Description

主機、疊瓦式磁記錄硬碟及其運作方法Host, shingled magnetic recording hard disk and operation method thereof

本發明是有關於一種主機、疊瓦式磁記錄(shingled magnetic recording,SMR)硬碟及其運作方法,且特別是有關於一種依據SMR硬碟的媒體快取而在寫入請求間加上延遲時間的主機、SMR硬碟及其運作方法。The invention relates to a host, shingled magnetic recording (SMR) hard disk and its operating method, and in particular to a media cache based on the SMR hard disk and adding a delay between write requests Time host, SMR hard drive and its operation method.

目前傳統硬碟(hard disk drive,HDD)之主流磁技術已演變為SMR。與超巨磁電阻(colossal magnetoresistance,CMR)HDD不同,SMR HDD在磁技術上將主儲存區(main store area)的磁軌如屋瓦般堆疊以增加磁密度大小。由於堆疊的磁軌增加了寫入資料的複雜度,因此在執行隨機寫入時將會導致延遲時間過長以致於拖累處理能力。因此,SMR HDD在碟片的外圈磁軌仍使用CMR的方式設計排列,而此區域稱為媒體快取(media cache)。在SMR HDD所連接的主機對SMR HDD執行隨機資料寫入時,主機會先將資料寫進媒體快取中,以維持隨機寫入時的效能。At present, the mainstream magnetic technology of traditional hard disk drives (HDD) has evolved into SMR. Unlike super giant magnetoresistance (CMR) HDDs, SMR HDDs magnetically stack the magnetic tracks of the main store area like roof tiles to increase the magnetic density. Since the stacked magnetic tracks increase the complexity of writing data, the delay time when performing random writing will be so long that it will drag on the processing capacity. Therefore, the SMR HDD is still designed and arranged in the CMR way on the outer track of the disc, and this area is called the media cache. When the host connected to the SMR HDD performs random data writing to the SMR HDD, the host will first write the data into the media cache to maintain the performance during random writing.

在隨機資料被寫入至媒體快取後,SMR HDD會在沒接收到主機指令的空閒時間進行背景活動(background activity),以將資料從媒體快取搬移至資料原本應放置的主儲存區中的磁軌。然而,當媒體快取區域已滿載,而主機又不斷發出隨機寫入請求時,SMR HDD需要先將一部份的資料從媒體快取搬移至主儲存區,再將新資料寫入媒體快取。如此反覆的動作將使得SMR HDD處理時間變得非常緩慢。After the random data is written to the media cache, the SMR HDD will perform background activities during idle time when no host command is received to move the data from the media cache to the main storage area where the data should be placed Magnetic track. However, when the media cache area is full and the host continuously issues random write requests, the SMR HDD needs to first move a part of the data from the media cache to the main storage area, and then write the new data to the media cache . Such repeated actions will make the SMR HDD processing time very slow.

有鑑於此,本發明提出一種主機、SMR硬碟及其運作方法,其可用以解決上述技術問題。In view of this, the present invention proposes a host, SMR hard disk and its operating method, which can be used to solve the above technical problems.

本發明提供一種疊瓦式磁記錄硬碟,其連接於一主機。疊瓦式磁記錄硬碟包括主儲存區、媒體快取及硬碟控制器。主儲存區包括堆疊的多個第一磁軌。媒體快取包括環繞於主儲存區的多個第二磁軌,其因應於主機的多個寫入請求而被寫入多個資料。硬碟控制器經配置以:監控媒體快取的一使用量;反應於媒體快取的使用量到達多個使用量門限值中的一第一門限值,發送一第一鏈結封包至主機,以要求主機在前述寫入請求之間加上對應於第一門限值的一第一延遲時間。The invention provides a shingled magnetic recording hard disk, which is connected to a host. The shingled magnetic recording hard disk includes a main storage area, a media cache, and a hard disk controller. The main storage area includes a plurality of stacked first magnetic tracks. The media cache includes multiple second magnetic tracks surrounding the main storage area, which are written with multiple data in response to multiple write requests from the host. The hard disk controller is configured to: monitor a usage of the media cache; respond to the usage of the media cache reaching a first threshold among the multiple usage thresholds, and send a first link packet to the host To request the host to add a first delay time corresponding to the first threshold between the aforementioned write requests.

本發明提供一種疊瓦式磁記錄硬碟的運作方法,其中疊瓦式磁記錄硬碟連接於一主機,並包括一主儲存區、一媒體快取及一硬碟控制器,主儲存區包括堆疊的多個第一磁軌,媒體快取包括環繞於主儲存區的多個第二磁軌,其因應於主機的多個寫入請求而被寫入多個資料。所述方法包括:由硬碟控制器監控媒體快取的一使用量;以及反應於媒體快取的使用量到達多個使用量門限值中的一第一門限值,由硬碟控制器發送一第一鏈結封包至主機,以要求主機在前述寫入請求之間加上對應於第一門限值的一第一延遲時間。The invention provides an operation method of a shingled magnetic recording hard disk, wherein the shingled magnetic recording hard disk is connected to a host and includes a main storage area, a media cache and a hard disk controller. The main storage area includes A plurality of stacked first magnetic tracks, the media cache includes a plurality of second magnetic tracks surrounding the main storage area, which is written with multiple data in response to multiple write requests of the host. The method includes: the hard disk controller monitors a usage amount of the media cache; and, in response to the media cache usage reaching a first threshold value among the plurality of usage threshold values, the hard disk controller sends A first link packet is sent to the host to require the host to add a first delay time corresponding to the first threshold between the aforementioned write requests.

本發明提供一種主機,其連接於一疊瓦式磁記錄硬碟,包括:一處理器,其經配置以    對疊瓦式磁記錄硬碟發出多個寫入請求以將多個資料寫入至疊瓦式磁記錄硬碟的一媒體快取;從疊瓦式磁記錄硬碟接收一第一鏈結封包,其中疊瓦式磁記錄硬碟反應於媒體快取的使用量到達多個使用量門限值中的一第一門限值而透過第一鏈結封包要求主機在前述寫入請求之間加上一第一延遲時間;解析第一鏈結封包,並相應地在前述寫入請求之間加上第一延遲時間。The present invention provides a host connected to a shingle-type magnetic recording hard disk, including: a processor configured to issue multiple write requests to the shingle-type magnetic recording hard disk to write multiple data to A media cache for a shingled magnetic recording hard disk; receiving a first link packet from the shingled magnetic recording hard disk, wherein the shingled magnetic recording hard disk reaches multiple usage in response to the usage of the media cache A first threshold value among the threshold values requires the host to add a first delay time between the aforementioned write requests through the first link packet; the first link packet is parsed and the corresponding Time plus the first delay time.

基於上述,在本發明中,當SMR HDD執行隨機寫入工作時,可自我監控媒體快取的使用量,並在使用量達到第一門限值時要求主機在寫入請求之間加入延遲時間。藉此,可避免SMR HDD因媒體快取滿載而導致系統服務時間過長的情況。Based on the above, in the present invention, when the SMR HDD performs random writing, it can self-monitor the usage of the media cache, and require the host to add a delay time between write requests when the usage reaches the first threshold . In this way, it is possible to avoid the situation that the system service time of the SMR HDD is too long due to full media cache.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above-mentioned features and advantages of the present invention more obvious and understandable, the embodiments are specifically described below in conjunction with the accompanying drawings for detailed description as follows.

請參照圖1A及圖1B,其中圖1A是依據本發明之一實施例繪示的SMR HDD俯視圖,而圖1B是依據圖1B繪示的主儲存區示意圖。在本實施例中,SMR HDD 100包括主儲存區102、媒體快取104及硬碟控制器106。主儲存區102包括堆疊的多個第一磁軌102a,如圖1B所示。應了解的是,雖各第一磁軌102a於圖1B中係繪示為橫向長條狀,但其僅用於協助理解各第一磁軌102a的堆疊方式。在實際結構中,各第一磁軌102a應為環形,但本發明可不限於此。Please refer to FIGS. 1A and 1B, wherein FIG. 1A is a top view of an SMR HDD according to an embodiment of the present invention, and FIG. 1B is a schematic diagram of a main storage area according to FIG. 1B. In this embodiment, the SMR HDD 100 includes a main storage area 102, a media cache 104, and a hard disk controller 106. The main storage area 102 includes a plurality of stacked first magnetic tracks 102a, as shown in FIG. 1B. It should be understood that although each of the first magnetic rails 102a is shown as a horizontally long strip in FIG. 1B, it is only used to help understand the stacking manner of the first magnetic rails 102a. In an actual structure, each first magnetic rail 102a should be ring-shaped, but the present invention may not be limited to this.

媒體快取104包括環繞於主儲存區102的多個第二磁軌104a。硬碟控制器106可受控於主機199而控制讀取頭106a及寫入頭106b對主儲存區102及媒體快取進行讀取/寫入資料的操作。在不同的實施例中,主機199例如是電腦中的晶片組、中央處理器或是其他可控制SMR HDD 100的元件,但可不限於此。The media cache 104 includes a plurality of second magnetic tracks 104a surrounding the main storage area 102. The hard disk controller 106 can be controlled by the host 199 to control the reading head 106a and the writing head 106b to read/write data to the main storage area 102 and the media cache. In different embodiments, the host 199 is, for example, a chipset in a computer, a central processing unit, or other components that can control the SMR HDD 100, but it is not limited thereto.

在一實施例中,媒體快取104可因應於主機199的多個寫入請求WR(其例如是隨機寫入請求)而被寫入多個資料。更具體來說,硬碟控制器106可在從主機199收到寫入請求WR時,相應地控制寫入頭106b將資料寫入至媒體快取104中,並在未接收到寫入請求WR時將媒體快取104中的資料搬移至主儲存區102中。In an embodiment, the media cache 104 may be written to multiple data in response to multiple write requests WR (which are, for example, random write requests) of the host 199. More specifically, when the hard disk controller 106 receives the write request WR from the host 199, it accordingly controls the write head 106b to write the data to the media cache 104, and when the write request WR is not received At the time, the data in the media cache 104 is moved to the main storage area 102.

在一實施例中,為避免媒體快取104中的資料因無法被即時地搬移至主儲存區102中而導致SMR HDD 100的處理時間增加的情況,本發明提出以下的方法,用以改善SMR HDD 100的運作效能。In one embodiment, in order to avoid the situation that the data in the media cache 104 cannot be moved to the main storage area 102 in real time and increase the processing time of the SMR HDD 100, the present invention proposes the following methods to improve SMR The operating efficiency of the HDD 100.

請參照圖2,其是依據本發明之一實施例繪示的SMR HDD的運作方法流程圖。本實施例的方法可由圖1A及圖1B的SMR HDD 100執行,以下即搭配圖1A及圖1B所示的元件說明圖2各步驟的細節。Please refer to FIG. 2, which is a flowchart illustrating an operation method of the SMR HDD according to an embodiment of the invention. The method of this embodiment can be performed by the SMR HDD 100 of FIGS. 1A and 1B. The details of each step of FIG. 2 are described below with the components shown in FIGS. 1A and 1B.

在步驟S210中,硬碟控制器106可監控媒體快取104的使用量。在一實施例中,硬碟控制器106可執行自我監測、分析及報告技術(Self-Monitoring Analysis and Reporting Technology,SMART)。具體來說,SMART為一種自動硬碟狀態檢測與預警系統和規範,其可透過在硬碟硬體內的檢測指令對硬碟的硬體(例如磁頭、碟片、馬達、電路)的執行情況進行監控、記錄。在SMART中,除了已經被使用被列入公用規格的屬性值外,尚有供應商特定暫存器(Vendor Specific Register),其可允許供應商(Vendor)自行定義需要紀錄的資訊。In step S210, the hard disk controller 106 may monitor the usage of the media cache 104. In one embodiment, the hard disk controller 106 can execute self-monitoring analysis and reporting technology (SMART). Specifically, SMART is an automatic hard disk status detection and early warning system and specification, which can perform the execution of the hard disk hardware (such as head, disk, motor, circuit) through the detection instructions in the hard disk hardware Monitor and record. In SMART, in addition to the attribute values that have been included in the public specification, there is a vendor-specific register (Vendor Specific Register), which allows the vendor (Vendor) to define the information that needs to be recorded.

因此,在一實施例中,硬碟控制器106可執行SMART來定期或不定期地監控媒體快取104的使用量,並將媒體快取104的使用量記錄於SMART的供應商特定暫存器中,但本發明可不限於此。在本實施例中,用於記錄媒體快取104的使用量的供應商特定暫存器可經重新定義為媒體快取使用量暫存器,其可記錄媒體快取104當下的使用量。在一實施例中,媒體快取104的使用量例如可表徵為一百分比。舉例而言,若媒體快取104當下有50%的區域被用於儲存資料,則媒體快取104的使用量即可為50%,而硬碟控制器106即可在媒體快取使用量暫存器記錄50%。另外,若媒體快取104當下有70%的區域被用於儲存資料,則媒體快取104的使用量即可為70%,而硬碟控制器106即可在媒體快取使用量暫存器記錄70%,但本發明可不限於此。Therefore, in one embodiment, the hard disk controller 106 can execute SMART to periodically or irregularly monitor the usage of the media cache 104 and record the usage of the media cache 104 in SMART's vendor-specific register However, the present invention may not be limited to this. In this embodiment, the vendor-specific register used to record the usage of the media cache 104 may be redefined as a media cache usage register, which may record the current usage of the media cache 104. In one embodiment, the usage of the media cache 104 may be characterized as a percentage, for example. For example, if 50% of the area of the media cache 104 is currently used to store data, the usage of the media cache 104 can be 50%, and the hard disk controller 106 can temporarily use the media cache. The memory records 50%. In addition, if 70% of the area of the media cache 104 is currently used to store data, the usage of the media cache 104 can be 70%, and the hard disk controller 106 can be used in the media cache usage register. Record 70%, but the invention may not be limited to this.

之後,在步驟S220中,反應於媒體快取104的使用量到達多個使用量門限值中的第一門限值,硬碟控制器106可發送一第一鏈結封包(link packet)至主機199,以要求主機199在前述寫入請求WR之間加上對應於第一門限值的第一延遲時間。After that, in step S220, in response to the usage of the media cache 104 reaching the first threshold among the multiple usage thresholds, the hard disk controller 106 may send a first link packet to the host 199, to require the host 199 to add a first delay time corresponding to the first threshold value between the aforementioned write requests WR.

此外,在其他實施例中,反應於媒體快取104的使用量到達前述使用量門限值中的一第二門限值,硬碟控制器106可發送一第二鏈結封包至主機199,以要求主機199將第一延遲時間置換為對應於第二門限值的第二延遲時間。換言之,當硬碟控制器106判定媒體快取104的使用量已達到前述使用量門限值中的另一門限值時,硬碟控制器106可發出對應於所述另一門限值的一鏈結封包至主機199,以要求主機199調整寫入請求WR之間的延遲時間。在一實施例中,若所述另一門限值小於第一門限值,則硬碟控制器106可要求主機199縮短寫入請求WR之間的延遲時間。相反地,若所述另一門限值大於第一門限值,則硬碟控制器106可要求主機199增加寫入請求WR之間的延遲時間,但本發明可不限於此。In addition, in other embodiments, in response to the usage of the media cache 104 reaching a second threshold value among the aforementioned usage threshold values, the hard disk controller 106 may send a second link packet to the host 199 to The host 199 is required to replace the first delay time with the second delay time corresponding to the second threshold value. In other words, when the hard disk controller 106 determines that the usage of the media cache 104 has reached another threshold among the aforementioned usage thresholds, the hard disk controller 106 may issue a link corresponding to the other threshold The packet is sent to the host 199 to request the host 199 to adjust the delay time between the write requests WR. In an embodiment, if the other threshold value is less than the first threshold value, the hard disk controller 106 may request the host 199 to shorten the delay time between write requests WR. Conversely, if the other threshold value is greater than the first threshold value, the hard disk controller 106 may require the host 199 to increase the delay time between write requests WR, but the invention may not be limited to this.

由上可知,不同的使用量門限值對應於不同的延遲時間及鏈結封包。並且,在本發明的實施例中,越高的使用量門限值可對應於越長的延遲時間。為便於說明,以下提供使用量門限值與延遲時間的對應關係,但其僅用以舉例,並非用以限定本發明可能的實施方式。

Figure 108104018-A0305-0001
表1 From the above, different usage thresholds correspond to different delay times and link packets. Moreover, in the embodiments of the present invention, a higher usage threshold may correspond to a longer delay time. For ease of description, the correspondence between the usage threshold value and the delay time is provided below, but it is only used as an example and is not intended to limit possible implementations of the present invention.
Figure 108104018-A0305-0001
Table 1

以表1為例,當媒體快取104的使用量到達60%時,硬碟控制器106可相應地發送一鏈結封包至主機199,以要求主機199在前述寫入請求WR之間加上數值為1 ms的延遲時間。另外,當媒體快取104的使用量到達70%時,硬碟控制器106可相應地發送另一鏈結封包至主機199,以要求主機199在前述寫入請求WR之間加上數值為5 ms的延遲時間。應了解的是,當媒體快取104的使用量到達50%時,即代表媒體快取104處於相對空的狀態,因此硬碟控制器106可透過相應的鏈結封包將寫入請求WR之間的延遲時間調整為0 ms(即,不延遲),以讓SMR HDD 100可依習知的方式運作,但本發明可不限於此。Taking Table 1 as an example, when the usage of the media cache 104 reaches 60%, the hard disk controller 106 may send a link packet to the host 199 accordingly to request the host 199 to add between the aforementioned write requests WR The value is a delay time of 1 ms. In addition, when the usage of the media cache 104 reaches 70%, the hard disk controller 106 may send another link packet to the host 199 accordingly, requiring the host 199 to add a value of 5 between the aforementioned write requests WR Delay time in ms. It should be understood that when the usage of the media cache 104 reaches 50%, it means that the media cache 104 is in a relatively empty state, so the hard disk controller 106 can write between the write requests WR through the corresponding link packets The delay time is adjusted to 0 ms (ie, no delay) to allow the SMR HDD 100 to operate in a conventional manner, but the present invention is not limited to this.

在一實施例中,硬碟控制器106可基於一裝置發起電源管理(device initiated power management,DIPM)技術發送第一鏈結封包至主機199。相應地,主機199亦可經程式化而具有解析第一鏈結封包的能力。並且,在一實施例中,在主機199收到來自SMR HDD 100的鏈結封包之後,還可依自身的當下情況來決定是否相應地在寫入請求WR之間加入延遲時間。若是,則主機199可相應地回傳一確認(acknowledge,ACK)訊息至SMR HDD 100,並在之後傳送的寫入請求WR之間加入鏈結封包所對應的延遲時間。相反地,若主機199有需要及時處理之指令,則主機199可回應一否認(negative acknowledge,NAK)訊息至SMR HDD 100。In one embodiment, the hard disk controller 106 may send the first link packet to the host 199 based on a device initiated power management (DIPM) technology. Accordingly, the host 199 can also be programmed to have the ability to parse the first link packet. Moreover, in an embodiment, after the host 199 receives the link packet from the SMR HDD 100, it can also decide whether to add a delay time between the write requests WR according to its current situation. If yes, the host 199 can return an acknowledgement (ACK) message to the SMR HDD 100 accordingly, and add the delay time corresponding to the link packet between the write requests WR sent later. Conversely, if the host 199 has an instruction that needs to be processed in time, the host 199 may respond to a negative acknowledge (NAK) message to the SMR HDD 100.

為使本發明的概念更為清楚,以下另以圖3為例作進一步說明。請參照圖3,其是依據本發明之一實施例繪示的應用情境示意圖。在圖3中,假設主機199傳送了多筆寫入請求WR至SMR HDD 100,而這些寫入請求WR將如先前所述地被寫入至SMR HDD 100的媒體快取104中。同時,硬碟控制器106將會監控並記錄媒體快取104的使用量。In order to make the concept of the present invention clearer, the following uses FIG. 3 as an example for further explanation. Please refer to FIG. 3, which is a schematic diagram of an application scenario according to an embodiment of the present invention. In FIG. 3, it is assumed that the host 199 transmits multiple write requests WR to the SMR HDD 100, and these write requests WR will be written to the media cache 104 of the SMR HDD 100 as described previously. At the same time, the hard disk controller 106 will monitor and record the usage of the media cache 104.

在一實施例中,假設媒體快取104的使用量到達60%,則硬碟控制器106可依據表1的內容而發出對應的鏈結封包P1至主機199,以要求主機199在寫入請求WR之間加上對應於60%的延遲時間DT1(即,1 ms)。In an embodiment, assuming that the usage of the media cache 104 reaches 60%, the hard disk controller 106 may issue a corresponding link packet P1 to the host 199 according to the content of Table 1, to request the host 199 to write a request The delay time DT1 corresponding to 60% (ie, 1 ms) is added between the WRs.

在主機199接收並解析鏈結封包P1之後,若主機199依當下情況判定可在寫入請求WR之間加上鏈結封包P1所指定的延遲時間,即可回覆確認訊息ACK至SMR HDD 100,並在之後發送的寫入請求WR之間皆加入延遲時間DT1。在此情況下,硬碟控制器106即可在延遲時間DT1中將媒體快取104中的資料搬移至主儲存區102。After the host 199 receives and parses the link packet P1, if the host 199 determines according to the current situation that it can add the delay time specified by the link packet P1 between the write request WR, it can reply the confirmation message ACK to the SMR HDD 100, And the delay time DT1 is added between the write requests WR sent afterwards. In this case, the hard disk controller 106 can move the data in the media cache 104 to the main storage area 102 within the delay time DT1.

此外,假設媒體快取104的使用量上升至70%,則硬碟控制器106還可依據表1的內容而發出對應的鏈結封包P2至主機199,以要求主機199在寫入請求WR之間加上對應於70%的延遲時間DT2(即,5 ms)。In addition, assuming that the usage of the media cache 104 rises to 70%, the hard disk controller 106 can also send a corresponding link packet P2 to the host 199 according to the content of Table 1, to request the host 199 to write the request WR Time plus delay time DT2 corresponding to 70% (ie, 5 ms).

在主機199接收並解析鏈結封包P2之後,若主機199依當下情況判定可在寫入請求WR之間加上鏈結封包P2所指定的延遲時間,即可回覆確認訊息ACK至SMR HDD 100,並在之後發送的寫入請求WR之間皆加入延遲時間DT2。在此情況下,硬碟控制器106即可在延遲時間DT2中將媒體快取104中的資料搬移至主儲存區102。After the host 199 receives and parses the link packet P2, if the host 199 determines according to the current situation that it can add the delay time specified by the link packet P2 between the write request WR, it can reply the confirmation message ACK to the SMR HDD 100, And the delay time DT2 is added between the write requests WR sent afterwards. In this case, the hard disk controller 106 can move the data in the media cache 104 to the main storage area 102 within the delay time DT2.

在其他實施例中,若媒體快取104的使用量下降至50%(或更低),則硬碟控制器106還可依據表1的內容而發出對應的鏈結封包(未繪示)至主機199,以要求主機199在寫入請求WR之間加上對應於50%的延遲時間(即,0 ms)。在主機199接收並解析此鏈結封包之後,若主機199依當下情況判定可在寫入請求WR之間加上鏈結封包所指定的延遲時間,即可回覆確認訊息ACK至SMR HDD 100,並在之後發送的寫入請求WR之間皆加入數值為0 ms的延遲時間(即,不延遲)。In other embodiments, if the usage of the media cache 104 drops to 50% (or lower), the hard disk controller 106 may also issue a corresponding link packet (not shown) according to the contents of Table 1. The host 199 requires the host 199 to add a delay time corresponding to 50% (ie, 0 ms) between the write requests WR. After the host 199 receives and parses the link packet, if the host 199 determines according to the current situation that it can add the delay time specified by the link packet between the write request WR, it can reply the confirmation message ACK to the SMR HDD 100, and A delay time of 0 ms (ie, no delay) is added between the write requests WR sent thereafter.

應了解的是,雖圖3中主機199在寫入請求WR的任二者之間加入延遲時間,但在其他實施例中,主機199亦可調整為每N個寫入請求WR才加入一個延遲時間(N為大於1的整數),而不限於圖3所示態樣。It should be understood that although the host 199 in FIG. 3 adds a delay time between any two of the write requests WR, in other embodiments, the host 199 may also be adjusted to add only one delay for every N write requests WR Time (N is an integer greater than 1), not limited to the form shown in Figure 3.

綜上所述,在本發明中,當SMR HDD執行隨機寫入工作時,可自我監控媒體快取的使用量,進而據以判斷是否需要求主機在寫入請求之間加入延遲時間。若媒體快取的使用量達到某一使用量門限值,則SMR HDD可發出相應的鏈結封包以通知主機。待主機回應確認訊息後,主機可在之後發送的寫入請求之間加入鏈結封包所指定的延遲時間。如此一來,SMR HDD即可適時地將媒體快取內的資料搬移至主儲存區,進而避免因媒體快取滿載而導致系統服務時間過長的情況。In summary, in the present invention, when the SMR HDD performs random writing, it can self-monitor the usage of the media cache, and then determine whether to require the host to add a delay time between write requests. If the usage of the media cache reaches a certain usage threshold, the SMR HDD can send a corresponding link packet to notify the host. After the host responds with the confirmation message, the host can add the delay time specified by the link packet between the write requests sent thereafter. In this way, SMR HDD can move the data in the media cache to the main storage area in a timely manner, thereby avoiding the situation that the system service time is too long due to the full media cache.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed as above with examples, it is not intended to limit the present invention. Any person with ordinary knowledge in the technical field can make some changes and modifications without departing from the spirit and scope of the present invention. The scope of protection of the present invention shall be subject to the scope defined in the appended patent application.

100:SMR HDD 102:主儲存區 102a:第一磁軌 104:媒體快取 104a:第二磁軌 106:硬碟控制器 106a:讀取頭 106b:寫入頭 199:主機 ACK:確認訊息 DT1、DT2:延遲時間 P1、P2:鏈結封包 S210、S220:步驟 WR:寫入請求100: SMR HDD 102: Main storage area 102a: first track 104: Media cache 104a: second track 106: Hard disk controller 106a: read head 106b: write head 199: Host ACK: confirmation message DT1, DT2: delay time P1, P2: link packet S210, S220: steps WR: write request

圖1A是依據本發明之一實施例繪示的SMR HDD俯視圖。 圖1B是依據圖1B繪示的主儲存區示意圖。 圖2是依據本發明之一實施例繪示的SMR HDD的運作方法流程圖。 圖3是依據本發明之一實施例繪示的應用情境示意圖。 FIG. 1A is a top view of an SMR HDD according to an embodiment of the invention. FIG. 1B is a schematic diagram of the main storage area shown in FIG. 1B. FIG. 2 is a flowchart of an SMR HDD operating method according to an embodiment of the invention. FIG. 3 is a schematic diagram of an application scenario according to an embodiment of the invention.

S210、S220:步驟 S210, S220: steps

Claims (13)

一種疊瓦式磁記錄硬碟,其連接於一主機,包括: 一主儲存區,其包括堆疊的多個第一磁軌; 一媒體快取,其包括環繞於該主儲存區的多個第二磁軌,其因應於該主機的多個寫入請求而被寫入多個資料; 一硬碟控制器,其經配置以: 監控該媒體快取的一使用量; 反應於該媒體快取的該使用量到達多個使用量門限值中的一第一門限值,發送一第一鏈結封包至該主機,以要求該主機在該些寫入請求之間加上對應於該第一門限值的一第一延遲時間。 A shingled magnetic recording hard disk, which is connected to a host, includes: A main storage area, which includes a plurality of stacked first magnetic tracks; A media cache, which includes a plurality of second magnetic tracks surrounding the main storage area, which is written with multiple data in response to multiple write requests of the host; A hard disk controller, which is configured to: Monitor the usage of the media cache; In response to the usage of the media cache reaching a first threshold among the usage thresholds, a first link packet is sent to the host to request the host to add between the write requests Up corresponds to a first delay time of the first threshold value. 如申請專利範圍第1項所述的疊瓦式磁記錄硬碟,其中該硬碟控制器基於一自我監測、分析及報告技術監控該媒體快取的該使用量,並將該媒體快取的該使用量記錄於該自我監測、分析及報告技術的一供應商特定暫存器中。The shingled magnetic recording hard disk as described in item 1 of the patent scope, wherein the hard disk controller monitors the usage of the media cache based on a self-monitoring, analysis and reporting technology, and caches the media The usage is recorded in a vendor-specific register of the self-monitoring, analysis and reporting technology. 如申請專利範圍第1項所述的疊瓦式磁記錄硬碟,其中該硬碟控制器更經配置以: 反應於該媒體快取的該使用量到達該些使用量門限值中的一第二門限值,發送一第二鏈結封包至該主機,以要求該主機將該第一延遲時間置換為對應於該第二門限值的一第二延遲時間。 The shingled magnetic recording hard disk as described in item 1 of the patent application scope, wherein the hard disk controller is further configured to: In response to the usage of the media cache reaching a second threshold among the usage thresholds, a second link packet is sent to the host to request the host to replace the first delay time with the corresponding A second delay time at the second threshold. 如申請專利範圍第1項所述的疊瓦式磁記錄硬碟,其中該些使用量門限值對應於多個延遲時間,該些延遲時間包括該第一延遲時間,且該第一門限值正相關於該第一延遲時間。The shingled magnetic recording hard disk as described in item 1 of the patent application scope, wherein the usage thresholds correspond to a plurality of delay times, the delay times include the first delay time, and the first threshold value It is positively related to this first delay time. 如申請專利範圍第1項所述的疊瓦式磁記錄硬碟,其中該硬碟控制器基於一裝置發起電源管理技術發送該第一鏈結封包至該主機。The shingled magnetic recording hard disk as described in item 1 of the patent application scope, wherein the hard disk controller sends the first link packet to the host based on a device-initiated power management technology. 如申請專利範圍第1項所述的疊瓦式磁記錄硬碟,其中該硬碟控制器因應於該些寫入請求之間的該第一延遲時間而將該些資料搬移至該主儲存區。The shingled magnetic recording hard disk as described in item 1 of the patent scope, wherein the hard disk controller moves the data to the main storage area in response to the first delay time between the write requests . 一種疊瓦式磁記錄硬碟的運作方法,其中該疊瓦式磁記錄硬碟連接於一主機,並包括一主儲存區、一媒體快取及一硬碟控制器,該主儲存區包括堆疊的多個第一磁軌,該媒體快取包括環繞於該主儲存區的多個第二磁軌,其因應於該主機的多個寫入請求而被寫入多個資料,所述方法包括: 由該硬碟控制器監控該媒體快取的一使用量;以及 反應於該媒體快取的該使用量到達多個使用量門限值中的一第一門限值,由該硬碟控制器發送一第一鏈結封包至該主機,以要求該主機在該些寫入請求之間加上對應於該第一門限值的一第一延遲時間。 An operation method of a shingled magnetic recording hard disk, wherein the shingled magnetic recording hard disk is connected to a host and includes a main storage area, a media cache and a hard disk controller, the main storage area includes a stack A plurality of first magnetic tracks, the media cache includes a plurality of second magnetic tracks surrounding the main storage area, which are written to a plurality of data in response to a plurality of write requests of the host, the method includes : The hard disk controller monitors a usage of the media cache; and In response to the usage of the media cache reaching a first threshold among a plurality of usage thresholds, the hard disk controller sends a first link packet to the host to request the host to A first delay time corresponding to the first threshold value is added between write requests. 如申請專利範圍第7項所述的方法,其中由該硬碟控制器監控該媒體快取的該使用量的步驟包括: 由該硬碟控制器基於一自我監測、分析及報告技術監控該媒體快取的該使用量,並將該媒體快取的該使用量記錄於該自我監測、分析及報告技術的一供應商特定暫存器中。 The method according to item 7 of the patent application scope, wherein the step of monitoring the usage of the media cache by the hard disk controller includes: The hard disk controller monitors the usage of the media cache based on a self-monitoring, analysis and reporting technology, and records the usage of the media cache in a vendor specific of the self-monitoring, analysis and reporting technology In the scratchpad. 如申請專利範圍第7項所述的方法,更包括: 反應於該媒體快取的該使用量到達該些使用量門限值中的一第二門限值,由該硬碟控制器發送一第二鏈結封包至該主機,以要求該主機將該第一延遲時間置換為對應於該第二門限值的一第二延遲時間。 The method described in item 7 of the patent application scope further includes: In response to the usage of the media cache reaching a second threshold among the usage thresholds, the hard disk controller sends a second link packet to the host to request the host to A delay time is replaced with a second delay time corresponding to the second threshold value. 如申請專利範圍第7項所述的方法,其中該些使用量門限值對應於多個延遲時間,該些延遲時間包括該第一延遲時間,且該第一門限值正相關於該第一延遲時間。The method as described in item 7 of the patent application scope, wherein the usage thresholds correspond to a plurality of delay times, the delay times include the first delay time, and the first threshold is positively related to the first delay. 如申請專利範圍第7項所述的方法,其中由該硬碟控制器發送該第一鏈結封包至該主機的步驟包括: 由該硬碟控制器基於一裝置發起電源管理技術發送該第一鏈結封包至該主機。 The method of claim 7 of the patent application, wherein the step of sending the first link packet to the host by the hard disk controller includes: The hard disk controller sends the first link packet to the host based on a device-initiated power management technology. 如申請專利範圍第7項所述的方法,更包括: 由該硬碟控制器因應於該些寫入請求之間的該第一延遲時間而將該些資料搬移至該主儲存區。 The method described in item 7 of the patent application scope further includes: The hard disk controller moves the data to the main storage area in response to the first delay time between the write requests. 一種主機,其連接於一疊瓦式磁記錄硬碟,經配置以: 對該疊瓦式磁記錄硬碟發出多個寫入請求以將多個資料寫入至該疊瓦式磁記錄硬碟的一媒體快取; 從該疊瓦式磁記錄硬碟接收一第一鏈結封包,其中該疊瓦式磁記錄硬碟反應於該媒體快取的該使用量到達多個使用量門限值中的一第一門限值而透過該第一鏈結封包要求該主機在該些寫入請求之間加上一第一延遲時間; 解析該第一鏈結封包,並相應地在該些寫入請求之間加上該第一延遲時間。 A host computer connected to a stack of tiled magnetic recording hard disks, configured to: Issue multiple write requests to the shingled magnetic recording hard disk to write multiple data to a media cache of the shingled magnetic recording hard disk; Receiving a first link packet from the shingle-type magnetic recording hard disk, wherein the shingle-type magnetic recording hard disk reaches a first threshold among a plurality of usage thresholds in response to the usage of the media cache Value to request the host to add a first delay time between the write requests through the first link packet; Parse the first link packet and add the first delay time between the write requests accordingly.
TW108104018A 2019-02-01 2019-02-01 Host, shingled magnetic recording hard disk drive and operation method thereof TWI687921B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108104018A TWI687921B (en) 2019-02-01 2019-02-01 Host, shingled magnetic recording hard disk drive and operation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108104018A TWI687921B (en) 2019-02-01 2019-02-01 Host, shingled magnetic recording hard disk drive and operation method thereof

Publications (2)

Publication Number Publication Date
TWI687921B true TWI687921B (en) 2020-03-11
TW202030725A TW202030725A (en) 2020-08-16

Family

ID=70767276

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108104018A TWI687921B (en) 2019-02-01 2019-02-01 Host, shingled magnetic recording hard disk drive and operation method thereof

Country Status (1)

Country Link
TW (1) TWI687921B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06236241A (en) * 1993-02-09 1994-08-23 Sharp Corp Hard disk device using flash memory
TW380248B (en) * 1997-03-27 2000-01-21 Ibm Disk drive device and method for controlling the same
EP1030305A2 (en) * 1999-02-15 2000-08-23 Mitsubishi Denki Kabushiki Kaisha Hierarchical data storage system and data caching method
US20070070829A1 (en) * 2005-09-27 2007-03-29 Fujitsu Limited Disk storage device and cache control method for disk storage device
WO2009046353A1 (en) * 2007-10-05 2009-04-09 Diskeeper Corporation Solid state drive optimizer
WO2011066236A2 (en) * 2009-11-25 2011-06-03 Cleversafe, Inc. Localized dispersed storage memory system
TW201513102A (en) * 2013-08-30 2015-04-01 Lsi Corp Systems and methods for multi-level encoding and decoding
WO2015168609A1 (en) * 2014-05-02 2015-11-05 Marvell World Trade Ltd. Caching systems and methods for hard disk drives and hybrid drives
US20160224260A1 (en) * 2015-02-02 2016-08-04 HGST Netherlands B.V. Logical block address mapping for hard disk drives
US20180260332A1 (en) * 2017-03-09 2018-09-13 Kabushiki Kaisha Toshiba Smr drive with multi-level write-cache for high random-write performance
US20180314636A1 (en) * 2017-05-01 2018-11-01 Seagate Technology Llc Shingled magnetic recording storage system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06236241A (en) * 1993-02-09 1994-08-23 Sharp Corp Hard disk device using flash memory
TW380248B (en) * 1997-03-27 2000-01-21 Ibm Disk drive device and method for controlling the same
EP1030305A2 (en) * 1999-02-15 2000-08-23 Mitsubishi Denki Kabushiki Kaisha Hierarchical data storage system and data caching method
US20070070829A1 (en) * 2005-09-27 2007-03-29 Fujitsu Limited Disk storage device and cache control method for disk storage device
WO2009046353A1 (en) * 2007-10-05 2009-04-09 Diskeeper Corporation Solid state drive optimizer
WO2011066236A2 (en) * 2009-11-25 2011-06-03 Cleversafe, Inc. Localized dispersed storage memory system
TW201513102A (en) * 2013-08-30 2015-04-01 Lsi Corp Systems and methods for multi-level encoding and decoding
WO2015168609A1 (en) * 2014-05-02 2015-11-05 Marvell World Trade Ltd. Caching systems and methods for hard disk drives and hybrid drives
US20160224260A1 (en) * 2015-02-02 2016-08-04 HGST Netherlands B.V. Logical block address mapping for hard disk drives
US20180260332A1 (en) * 2017-03-09 2018-09-13 Kabushiki Kaisha Toshiba Smr drive with multi-level write-cache for high random-write performance
US20180314636A1 (en) * 2017-05-01 2018-11-01 Seagate Technology Llc Shingled magnetic recording storage system

Also Published As

Publication number Publication date
TW202030725A (en) 2020-08-16

Similar Documents

Publication Publication Date Title
JP5781010B2 (en) Disk storage device and method
TW200818200A (en) Disk drive with nonvolatile memory for storage of failure-related data
JP5681511B2 (en) Information recording apparatus and information recording method
EP2602707A2 (en) Environmental-based device operation
US8868950B2 (en) Reliability-aware disk power management
JP4240496B2 (en) Apparatus and method for access control
JP2009163647A (en) Disk array device
US20100146205A1 (en) Storage device and method of writing data
US8922930B1 (en) Limit disc nodes by band usage
US8117491B2 (en) Disk-drive device and method for error recovery thereof
US8736994B2 (en) Disk storage apparatus and write control method
TWI687921B (en) Host, shingled magnetic recording hard disk drive and operation method thereof
CN105808161A (en) Reading method of bad sector data of hard disk
US20150062739A1 (en) Information recording device and data recovery method
JP5621801B2 (en) Magnetic disk control device, magnetic disk device, and magnetic disk control method
JP2014086116A (en) Magnetic disk device and data write method
JP5939582B2 (en) Reduction of tape drive buffer power consumption
US20070070829A1 (en) Disk storage device and cache control method for disk storage device
JP4706029B2 (en) Storage device, data writing method, and data writing program
JP2010152988A (en) Disk storage device and area management method
JPH04111113A (en) Hard disk emulator
JP2000235456A (en) Magnetic disk device and its disk access method
US9348529B1 (en) Peak power efficient data storage drives
WO2010003384A1 (en) Semiconductor memory device and its early-warning system and method
KR100723512B1 (en) Cache buffer control method and disk drive using the same