TWI793759B - System and method for testing read/write and upgrading on hard disk - Google Patents

System and method for testing read/write and upgrading on hard disk Download PDF

Info

Publication number
TWI793759B
TWI793759B TW110133995A TW110133995A TWI793759B TW I793759 B TWI793759 B TW I793759B TW 110133995 A TW110133995 A TW 110133995A TW 110133995 A TW110133995 A TW 110133995A TW I793759 B TWI793759 B TW I793759B
Authority
TW
Taiwan
Prior art keywords
upgrade
module
read
hard disk
test
Prior art date
Application number
TW110133995A
Other languages
Chinese (zh)
Other versions
TW202312146A (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 TW110133995A priority Critical patent/TWI793759B/en
Application granted granted Critical
Publication of TWI793759B publication Critical patent/TWI793759B/en
Publication of TW202312146A publication Critical patent/TW202312146A/en

Links

Images

Abstract

A system for testing read/write and upgrading on hard disk is disclosed in the present invention. The system for testing read/write and upgrading on hard disk includes a choosing module, a testing module, an upgrading module, an acquiring module, and a result generation module. The choosing module is utilized to choose at least one testing option. The testing module is utilized to test a hard disk with the at least one testing option. The upgrading module is utilized to upgrade a firmware version of the hard disk when the testing module tests the hard disk. The acquiring module is utilized to acquire a plurality of data of the hard disk. The result generation module is utilized to generate testing result information of the hard disk.

Description

硬碟升級讀寫測試系統及其方法 Hard disk upgrade read-write test system and method

本發明係有關於一種系統及其方法,尤其是指一種硬碟升級讀寫測試系統及其方法。 The present invention relates to a system and a method thereof, in particular to a hard disk upgrade read-write test system and a method thereof.

因應不同的使用要求,硬碟通常需要經過測試作業,藉以確認不同的工作量(workload)對硬碟的性能穩定性的影響。一般來說,測試作業包含複數種測試項目,並且會升級硬碟的一韌體版本,使韌體版本先後依序處於一升級前狀態、一升級中狀態與一升級後狀態,並分別在實際測試項目以及上述三種狀態下,各自對硬碟偵測出複數個讀寫數據值,並擷取讀寫數據值而產生一測試結果資訊。 In response to different usage requirements, hard disks usually need to be tested to confirm the impact of different workloads on the performance stability of the hard disk. Generally speaking, the test operation includes a plurality of test items, and will upgrade a firmware version of the hard disk, so that the firmware version is in a pre-upgrade state, an upgrade state and a post-upgrade state in sequence, and respectively in the actual In the test items and the above three states, a plurality of read and write data values are detected for the hard disk respectively, and the read and write data values are retrieved to generate a test result information.

然而,先前技術中,需要利用檢測員手動輸入測試項目的測試指令,並在輸入完測試指令後,再手動輸入韌體版本的升級指令,相當耗費人力與時間。再者,不同測試項目的測試指令皆不同,不同廠牌不同種類型號的硬碟的韌體版本的升級指令也不同,手動輸入容易產生人為誤差,造成指令錯誤等問題。再者,硬碟也可能同時進行多種測試項目的測試,進而提高上述問題發生的可能性。此外,在偵測出硬碟的讀寫數據值後,檢測員需要手動擷取讀寫數據值,並自行產生測試結果資訊,同樣容易產生人為誤差。而且,不同的讀寫數據值可能會有不同的單位,故直接擷取讀寫數據值,可能會使得測試結果資訊無法直觀地判斷出讀寫數據值的優劣。因此,先前技術存在改善的空間。However, in the prior art, the tester needs to manually input the test command of the test item, and after inputting the test command, manually input the upgrade command of the firmware version, which is quite labor-intensive and time-consuming. Furthermore, the test instructions for different test items are different, and the firmware version upgrade instructions for different brands and types of hard disks are also different. Manual input is prone to human error, resulting in command errors and other problems. Furthermore, the hard disk may also be tested for multiple test items at the same time, thereby increasing the possibility of the above-mentioned problems occurring. In addition, after detecting the read and write data values of the hard disk, the inspector needs to manually retrieve the read and write data values and generate the test result information by itself, which is also prone to human error. Moreover, different reading and writing data values may have different units, so directly capturing the reading and writing data values may make the test result information unable to intuitively judge the quality of the reading and writing data values. Therefore, there is room for improvement in the prior art.

有鑒於在先前技術中,手動進行測試作業所存在的耗費人力與時間、人為誤差、指令錯誤、測試結果資訊無法直觀地判斷出讀寫數據值的優劣及其衍生出的種種問題。本發明之一主要目的係提供一種硬碟升級讀寫測試系統,用以解決先前技術中的至少一個問題。In view of the manpower and time-consuming manual testing operations in the prior art, human errors, instruction errors, and test result information, it is impossible to intuitively judge the quality of read and write data values and various problems derived therefrom. One of the main objectives of the present invention is to provide a hard disk upgrade read-write test system to solve at least one problem in the prior art.

本發明為解決先前技術之問題,所採用之必要技術手段為提供一種硬碟升級讀寫測試系統,用以對一待測硬碟進行一讀寫測試作業,包含一選擇模組、一測試模組、一升級模組、一數據偵測模組與一結果產生模組。選擇模組用以受操作地在複數個內建測試項目中選擇讀寫測試作業之至少一實際測試項目。測試模組電性連接選擇模組,用以依據實際測試項目,對待測硬碟進行讀寫測試作業。升級模組用以在讀寫測試作業進行時,升級待測硬碟之一韌體版本,藉以使待測硬碟先後依序處於一升級前狀態、一升級中狀態與一升級後狀態。數據偵測模組電性連接待測硬碟、測試模組與升級模組,用以在讀寫測試作業進行時,分別在升級前狀態、升級中狀態與升級後狀態對該待測硬碟偵測出複數個讀寫數據值。結果產生模組電性連接數據偵測模組,用以將讀寫數據值產生對應實際測試項目之至少一測試結果資訊。In order to solve the problems of the prior art, the necessary technical means adopted by the present invention is to provide a hard disk upgrade read-write test system for performing a read-write test operation on a hard disk to be tested, including a selection module, a test module group, an upgrade module, a data detection module and a result generation module. The selection module is used for operating to select at least one actual test item of the read-write test operation from a plurality of built-in test items. The test module is electrically connected to the selection module for performing read and write tests on the hard disk to be tested according to actual test items. The upgrade module is used to upgrade a firmware version of the hard disk to be tested when the read/write test operation is in progress, so that the hard disk to be tested is in a pre-upgrade state, an upgrade state and a post-upgrade state in sequence. The data detection module is electrically connected to the hard disk to be tested, the test module and the upgrade module, and is used to test the hard disk to be tested respectively in the state before the upgrade, the state during the upgrade, and the state after the upgrade when the read and write test operation is in progress. Multiple read and write data values are detected. The result generation module is electrically connected to the data detection module for generating at least one test result information corresponding to the actual test item by reading and writing data values.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使硬碟升級讀寫測試系統,更包含一輸入模組,輸入模組電性連接選擇模組,用以供一使用者輸入一測試指令,並依據測試指令控制選擇模組選擇讀寫測試作業之實際測試項目。On the basis of the above-mentioned necessary technical means, an auxiliary technical means derived from the present invention is to upgrade the hard disk reading and writing test system, which further includes an input module, and the input module is electrically connected to the selection module for a use The user inputs a test command, and controls the selection module to select the actual test item of the read-write test operation according to the test command.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使硬碟升級讀寫測試系統中之升級模組,更包含一廠牌確認單元與一種類確認單元。廠牌確認單元用以確認待測硬碟之一廠牌。種類確認單元電性連接廠牌確認單元,用以在確認廠牌後,確認待測硬碟之一種類型號。On the basis of the above-mentioned necessary technical means, an auxiliary technical means derived from the present invention is an upgrade module in the hard disk upgrade read-write test system, which further includes a brand confirmation unit and a type confirmation unit. The brand confirming unit is used for confirming a brand of the hard disk to be tested. The type confirming unit is electrically connected to the brand confirming unit, and is used for confirming a type and model of the hard disk to be tested after confirming the brand.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使硬碟升級讀寫測試系統中之升級模組,更包含一指令儲存單元與一升級單元。指令儲存單元用以儲存複數個控制指令,且每一控制指令係對應一種上述之廠牌與一種上述之種類型號。升級單元電性連接指令儲存單元,用以在確認廠牌與種類型號,利用對應之控制指令升級待測硬碟之韌體版本。On the basis of the above-mentioned necessary technical means, an auxiliary technical means derived from the present invention is an upgrade module in the hard disk upgrade read-write test system, which further includes an instruction storage unit and an upgrade unit. The instruction storage unit is used to store a plurality of control instructions, and each control instruction corresponds to one of the above-mentioned brand and one of the above-mentioned types and models. The upgrade unit is electrically connected to the instruction storage unit, and is used to upgrade the firmware version of the hard disk to be tested by using the corresponding control instructions after confirming the brand and model.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使硬碟升級讀寫測試系統中之結果產生模組,更包含一接收單元與一產生單元。接收單元用以接收讀寫數據值。產生單元用以產生測試結果資訊。On the basis of the above-mentioned necessary technical means, an auxiliary technical means derived from the present invention is a result generating module in the hard disk upgrade read-write test system, which further includes a receiving unit and a generating unit. The receiving unit is used for receiving read and write data values. The generating unit is used for generating test result information.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使硬碟升級讀寫測試系統中之結果產生模組,更包含一整理單元與一轉換單元。整理單元用以接收並整理讀寫數據值。轉換單元用以將每一讀寫數據值之單位轉換成彼此相同之單位。On the basis of the above-mentioned necessary technical means, an auxiliary technical means derived from the present invention is to upgrade the hard disk to the result generation module in the read-write test system, which further includes a sorting unit and a conversion unit. The collation unit is used to receive and collate read and write data values. The conversion unit is used for converting the units of each read/write data value into the same units.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使硬碟升級讀寫測試系統,更包含一終止模組,終止模組電性連接測試模組與升級模組,用以在偵測到一異常狀態時,終止測試模組進行讀寫測試作業以及終止升級模組升級韌體版本。On the basis of the above-mentioned necessary technical means, one of the auxiliary technical means derived from the present invention is to upgrade the hard disk reading and writing test system, which further includes a termination module, the termination module is electrically connected to the test module and the upgrade module. When an abnormal state is detected, the test module is terminated to perform the read-write test operation and the upgrade module is terminated to upgrade the firmware version.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使硬碟升級讀寫測試系統,更包含一告警模組,電性連接終止模組,用以在終止模組終止測試模組進行讀寫測試作業以及終止升級模組升級韌體版本時,產生一告警資訊。On the basis of the above-mentioned necessary technical means, one of the auxiliary technical means derived from the present invention is to upgrade the hard disk reading and writing test system, which further includes an alarm module, which is electrically connected to the termination module, and is used to terminate the test at the termination module. When the module performs the read-write test operation and terminates the upgrade module upgrade firmware version, an alarm message is generated.

本發明為解決先前技術之問題,所採用之必要技術手段為另外提供一種硬碟升級讀寫測試方法,利用前述之硬碟升級讀寫測試系統加以實施,並包含以下步驟:利用選擇模組選擇實際測試項目;利用測試模組對待測硬碟進行讀寫測試作業;利用升級模組升級待測硬碟之韌體版本,藉以使待測硬碟先後依序處於升級前狀態、升級中狀態與升級後狀態;利用數據偵測模組分別在升級前狀態、升級中狀態與升級後狀態對硬碟偵測出讀寫數據值;利用結果產生模組產生測試結果資訊。In order to solve the problems of the prior art, the necessary technical means adopted by the present invention is to additionally provide a hard disk upgrade read-write test method, which is implemented by using the aforementioned hard disk upgrade read-write test system, and includes the following steps: using the selection module to select Actual test items; use the test module to perform read and write test operations on the hard disk to be tested; use the upgrade module to upgrade the firmware version of the hard disk to be tested, so that the hard disk to be tested is in the pre-upgrade state, the upgrade state and the state in sequence Post-upgrade state; use the data detection module to detect the read and write data values of the hard disk in the pre-upgrade state, the upgrade state and the post-upgrade state respectively; use the result generation module to generate test result information.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使硬碟升級讀寫測試方法中之步驟,更包含以下步驟:利用結果產生模組中之一轉換單元,將每一讀寫數據值之單位轉換成彼此相同之單位。On the basis of the above-mentioned necessary technical means, an auxiliary technical means derived from the present invention is the step in the hard disk upgrade read-write test method, which further includes the following steps: using a conversion unit in the result generation module to convert each The units of read and write data values are converted to the same units as each other.

承上所述,本發明所提供之硬碟升級讀寫測試系統及其方法,利用選擇模組、測試模組、升級模組、數據偵測模組與結果產生模組,對待測硬碟進行讀寫測試作業,並產生測試結果資訊。相較於先前技術,本發明利用選擇模組、測試模組與升級模組,可以解決耗費人力與時間、人為誤差、指令錯誤等問題。利用數據偵測模組與結果產生模組,可以解決人為擷取讀寫數據值的問題。另外,本發明利用轉換單元,可以將讀寫數據值的單位轉換為彼此相同,因此,可以直觀地從測試結果資訊中得知讀寫數據值的優劣。Based on the above, the hard disk upgrade read-write test system and method thereof provided by the present invention utilize the selection module, the test module, the upgrade module, the data detection module and the result generation module to test the hard disk to be tested. Read and write test operations, and generate test result information. Compared with the prior art, the present invention uses the selection module, the test module and the upgrade module to solve the problems of manpower and time consumption, human errors, and instruction errors. Using the data detection module and the result generation module can solve the problem of artificially extracting and reading data values. In addition, the present invention utilizes the conversion unit to convert the units of the read and write data values to be the same as each other. Therefore, the quality of the read and write data values can be intuitively known from the test result information.

下面將結合示意圖對本發明的具體實施方式進行更詳細的描述。根據下列描述和申請專利範圍,本發明的優點和特徵將更清楚。需說明的是,圖式均採用非常簡化的形式且均使用非精準的比例,僅用以方便、明晰地輔助說明本發明實施例的目的。The specific implementation manner of the present invention will be described in more detail below with reference to schematic diagrams. The advantages and features of the present invention will be more clear from the following description and claims. It should be noted that all the drawings are in very simplified form and use imprecise scales, which are only used to facilitate and clearly assist the purpose of illustrating the embodiments of the present invention.

請參閱第一圖與第二圖,其中,第一圖係顯示本發明較佳實施例所提供之硬碟升級讀寫測試系統之方塊圖;以及,第二圖係顯示本發明較佳實施例所提供之硬碟升級讀寫測試方法之流程圖。如圖所示,一種硬碟升級讀寫測試系統1用以對一待測硬碟2進行一讀寫測試作業,並包含一選擇模組11、一測試模組12、一升級模組13、一數據偵測模組14與一結果產生模組15。Please refer to the first figure and the second figure, wherein the first figure shows the block diagram of the hard disk upgrade read-write test system provided by the preferred embodiment of the present invention; and the second figure shows the preferred embodiment of the present invention The flow chart of the hard disk upgrade read/write test method provided. As shown in the figure, a hard disk upgrade read-write test system 1 is used to perform a read-write test operation on a hard disk 2 to be tested, and includes a selection module 11, a test module 12, an upgrade module 13, A data detection module 14 and a result generation module 15 .

在本實施例中,硬碟升級讀寫測試系統1更包含一輸入模組16、一終止模組17與一告警模組18。In this embodiment, the hard disk upgrade read/write test system 1 further includes an input module 16 , a termination module 17 and an alarm module 18 .

一種硬碟升級讀寫測試方法係利用如第一圖所示的硬碟升級讀寫測試系統1加以實施,並包含以下步驟S101至S105。A hard disk upgrade read-write test method is implemented by using the hard disk upgrade read-write test system 1 shown in the first figure, and includes the following steps S101 to S105.

步驟S101:利用選擇模組選擇實際測試項目。Step S101: Use the selection module to select actual test items.

選擇模組11用以受操作地在複數個內建測試項目中選擇讀寫測試作業的至少一實際測試項目。實務上,實際測試項目通常包含智慧控制(smart ctrl)操作、硬碟讀取快取(HDD write cache)打開及關閉、非對齊典型混合IO任務、測試特定區塊大小特定深度的IO任務等測試項目。The selection module 11 is used for operating to select at least one actual test item of the read-write test operation from a plurality of built-in test items. In practice, the actual test items usually include intelligent control (smart ctrl) operation, hard disk read cache (HDD write cache) on and off, non-aligned typical mixed IO tasks, testing IO tasks with specific block sizes and specific depths, etc. project.

在本實施例中,輸入模組16電性連接選擇模組11,用以供一使用者輸入一測試指令,並依據測試指令控制選擇模組11據以選擇出實際測試項目。輸入模組16可以是鍵盤、滑鼠、觸控介面等可以輸入測試指令的裝置或模組。In this embodiment, the input module 16 is electrically connected to the selection module 11 for a user to input a test command, and controls the selection module 11 to select the actual test item according to the test command. The input module 16 can be a device or module capable of inputting test commands, such as a keyboard, a mouse, or a touch interface.

步驟S102:利用測試模組對待測硬碟進行讀寫測試作業。Step S102: Use the test module to perform a read/write test operation on the hard disk to be tested.

測試模組12電性連接選擇模組11,用以依據實際測試項目對待測硬碟2進行讀寫測試作業。The test module 12 is electrically connected to the selection module 11 for performing read and write tests on the hard disk 2 to be tested according to actual test items.

因此,相較於先前技術,本發明僅需要使用者選擇實際測試項目,即可開始進行讀寫測試作業,不僅不會耗費人力,也可以達到省時的功效。Therefore, compared with the prior art, the present invention only needs the user to select the actual test item to start the reading and writing test operation, which not only does not consume manpower, but also achieves the effect of saving time.

步驟S103:利用升級模組升級待測硬碟之韌體版本,藉以使待測硬碟先後依序處於升級前狀態、升級中狀態與升級後狀態。Step S103: Utilize the upgrade module to upgrade the firmware version of the hard disk to be tested, so that the hard disk to be tested is in the pre-upgrade state, the upgrade state and the post-upgrade state in sequence.

升級模組13,係用以在讀寫測試作業進行時,升級待測硬碟2的一韌體版本,藉以使待測硬碟2先後依序處於一升級前狀態、一升級中狀態與一升級後狀態。舉例來說,目前待測硬碟2的韌體版本為ver 1.0,升級模組13會將韌體版本從ver 1.0升級為ver 2.0,此時,韌體版本為ver 1.0時的待測硬碟2為升級前狀態,韌體版本從ver 1.0升級至ver 2.0的過程中的待測硬碟2為升級中狀態,韌體版本升級為ver 2.0後的待測硬碟2為升級後狀態。The upgrade module 13 is used to upgrade a firmware version of the hard disk 2 to be tested when the read/write test operation is in progress, so that the hard disk 2 to be tested is sequentially in a pre-upgrade state, an upgrade state, and an upgrade state. Post-upgrade status. For example, the firmware version of the hard disk 2 to be tested is ver 1.0, and the upgrade module 13 will upgrade the firmware version from ver 1.0 to ver 2.0. At this time, the hard disk to be tested when the firmware version is ver 1.0 2 is the state before the upgrade, the hard disk 2 to be tested during the firmware version upgrade from ver 1.0 to ver 2.0 is the upgrading state, and the hard disk 2 to be tested after the firmware version is upgraded to ver 2.0 is the post-upgrade state.

在本實施例中,升級模組13更包含一廠牌確認單元131、一種類確認單元132、一指令儲存單元133與一升級單元134。廠牌確認單元131用以確認待測硬碟2的一廠牌。種類確認單元132電性連接廠牌確認單元131,用以在確認廠牌後,進一步確認待測硬碟2的一種類型號。指令儲存單元133用以儲存複數個控制指令,其中,每一個控制指令會對應到一種上述的廠牌與一種上述的種類型號。升級單元134電性連接指令儲存單元133,用以在確認廠牌及其種類型號後,利用對應的控制指令升級待測硬碟2的韌體版本。In this embodiment, the upgrade module 13 further includes a brand confirmation unit 131 , a type confirmation unit 132 , an instruction storage unit 133 and an upgrade unit 134 . The brand confirmation unit 131 is used for confirming a brand of the hard disk 2 to be tested. The type confirming unit 132 is electrically connected to the brand confirming unit 131 for further confirming a type of the hard disk 2 to be tested after confirming the brand. The instruction storage unit 133 is used to store a plurality of control instructions, wherein each control instruction corresponds to one of the above-mentioned brand and one of the above-mentioned type and model. The upgrading unit 134 is electrically connected to the instruction storage unit 133, and is used for upgrading the firmware version of the hard disk 2 to be tested by using the corresponding control instruction after confirming the brand and its type and model.

因此,即便是不同的廠牌以及不同的型號,本發明利用廠牌確認單元131、種類確認單元132與指令儲存單元133,可以廣泛地應用並測試不同的廠牌與不同的種類型號的待測硬碟2。Therefore, even if it is different brands and different models, the present invention utilizes the brand confirmation unit 131, the type confirmation unit 132 and the instruction storage unit 133 to widely apply and test different brands and different types and models to be tested. Hard Disk 2.

步驟S104:利用數據偵測模組分別在升級前狀態、升級中狀態與升級後狀態對硬碟偵測出讀寫數據值。Step S104 : Use the data detection module to detect the read and write data values of the hard disk in the state before the upgrade, the state during the upgrade, and the state after the upgrade respectively.

數據偵測模組14電性連接待測硬碟2、測試模組12與升級模組13,用以在讀寫測試作業進行時,分別在升級前狀態、升級中狀態與升級後狀態對待測硬碟2偵測出複數個讀寫數據值。The data detection module 14 is electrically connected to the hard disk 2 to be tested, the test module 12 and the upgrade module 13, and is used for performing the read/write test operation in the status before the upgrade, during the upgrade and after the upgrade. The hard disk 2 detects a plurality of read and write data values.

實務上,讀寫數據值通常包含:每秒的讀取次數(read_iops)、讀取帶寬(read_bw)、讀取時延遲的最小值(read_lat_min)、讀取時延遲的最大值(read_lat_max)、讀取時延遲的平均值(read_lat_avg)、讀取時的IO操作佔IO操作的95%(read_clat_9500)、讀取時的IO操作佔IO操作的99%(read_clat_9900)、讀取時的IO操作佔IO操作的99.5%(read_clat_9950)、每秒的寫入次數(write_iops)、寫入帶寬(write_bw)、寫入時延遲的最小值(write_lat_min)、寫入時延遲的最大值(write_lat_max)、寫入時延遲的平均值(write_lat_avg)、寫入時的IO操作佔IO操作的95%(write_clat_9500)、寫入時的IO操作佔IO操作的99%(write_clat_9900)、寫入時的IO操作佔IO操作的99.5%(write_clat_9950)等。In practice, read and write data values usually include: read times per second (read_iops), read bandwidth (read_bw), minimum read latency (read_lat_min), maximum read latency (read_lat_max), read The average value of time delay (read_lat_avg), IO operations during reading account for 95% of IO operations (read_clat_9500), IO operations during reading account for 99% of IO operations (read_clat_9900), IO operations during reading account for IO operations 99.5% of operations (read_clat_9950), number of writes per second (write_iops), write bandwidth (write_bw), minimum write latency (write_lat_min), maximum write latency (write_lat_max), write latency The average value of latency (write_lat_avg), IO operations during writing account for 95% of IO operations (write_clat_9500), IO operations during writing account for 99% of IO operations (write_clat_9900), IO operations during writing account for 95% of IO operations 99.5% (write_clat_9950) etc.

舉例來說,讀取次數用於衡量硬碟小塊讀取性能,讀取帶寬用於衡量硬碟大塊讀取性能,兩者皆是數值越大性能越好;讀取時延遲的平均值則是數值越小證明響應時間越短。其他讀取數據值皆為所屬技術領域中的公知常識,故不多加贅述。同理,寫入相關的讀寫數據值亦相同。For example, the number of reads is used to measure the read performance of small blocks of the hard disk, and the read bandwidth is used to measure the performance of large block reads of the hard disk. The larger the value of both, the better the performance; the average value of the delay when reading The smaller the value, the shorter the response time. Other read data values are common knowledge in the technical field, so details are not repeated here. Similarly, write related read and write data values are also the same.

步驟S105:利用結果產生模組產生測試結果資訊。Step S105: Use the result generating module to generate test result information.

結果產生模組15電性連接數據偵測模組14,用以將讀寫數據值產生對應實際測試項目的測試結果資訊。測試結果資訊的數量會對應實際測試項目的數量,當實際測試項目有三個,便會產生對應的三個測試結果資訊。The result generation module 15 is electrically connected to the data detection module 14 for generating test result information corresponding to actual test items by reading and writing data values. The number of test result information will correspond to the number of actual test items. When there are three actual test items, three corresponding test result information will be generated.

在本實施例中,結果產生模組15更包含一接收單元151、一整理單元152、一轉換單元153與一產生單元154。In this embodiment, the result generating module 15 further includes a receiving unit 151 , an organizing unit 152 , a converting unit 153 and a generating unit 154 .

接收單元151用以接收讀寫數據值。整理單元152用以接收並整理讀寫數據值,也就是將讀寫數據值條列、分類等。轉換單元153用以將每一個讀寫數據值的單位轉換成彼此相同的單位,並將數值對應的轉換,例如:將單位全部轉換成秒、毫秒等。最後,產生單元154用以產生測試結果資訊,可參閱下表一。表一僅簡單示意測試結果資訊。 讀寫數據值 升級前狀態 升級中狀態 升級後狀態 read_iops 1140 1071 1066 read_bw 194986 181279 180357 read_lat_min 67 66 68 read_lat_max 71555 1796.1K 31579 read_lat_avg 0.0013 0.0014 0.0014 read_clat_9500 2576 2832 2864 read_clat_9900 3920 4320 4384 read_clat_9950 4576 5024 5088 write_iops 2663 2500 2490 write_bw 455456 423391 421252 write_lat_min 15 16 16 write_lat_max 68502 1795.2K 28760 write_lat_avg 0.0009 0.001 0.001 write_clat_9500 2008 2224 2224 write_clat_9900 3504 3920 3984 write_clat_9950 4512 5024 5088 表一 The receiving unit 151 is used for receiving read and write data values. The sorting unit 152 is used for receiving and sorting the read and write data values, that is, to arrange and classify the read and write data values. The conversion unit 153 is used to convert the unit of each read/write data value into the same unit as each other, and convert the corresponding values, for example, convert all the units into seconds, milliseconds and so on. Finally, the generating unit 154 is used to generate test result information, which can be referred to in Table 1 below. Table 1 simply shows the test result information. read and write data values Status before upgrade Upgrading status Post-upgrade status read_iops 1140 1071 1066 read_bw 194986 181279 180357 read_lat_min 67 66 68 read_lat_max 71555 1796.1K 31579 read_lat_avg 0.0013 0.0014 0.0014 read_clat_9500 2576 2832 2864 read_clat_9900 3920 4320 4384 read_clat_9950 4576 5024 5088 write_iops 2663 2500 2490 write_bw 455456 423391 421252 write_lat_min 15 16 16 write_lat_max 68502 1795.2K 28760 write_lat_avg 0.0009 0.001 0.001 write_clat_9500 2008 2224 2224 write_clat_9900 3504 3920 3984 write_clat_9950 4512 5024 5088 Table I

因此,測試結果資訊可以直觀地判斷讀寫數據值的優劣,也可以避免人為擷取所產生的人為誤差。Therefore, the test result information can intuitively judge the pros and cons of reading and writing data values, and can also avoid human errors caused by manual retrieval.

而在本實施例中,終止模組17電性連接測試模組12與升級模組13,用以在偵測到一異常狀態時,終止測試模組12進行讀寫測試作業以及終止升級模組13升級韌體版本,可以避免產生無效讀寫數據值。異常狀態的情況很多,例如:無法升級待測硬碟的韌體版本、無法對待測硬碟進行讀寫測試作業、無法確認待測硬碟廠牌與種類型號等情形。In this embodiment, the termination module 17 is electrically connected to the test module 12 and the upgrade module 13, and is used to terminate the test module 12 to perform the read-write test operation and terminate the upgrade module when an abnormal state is detected. 13 Upgrade the firmware version to avoid invalid read and write data values. There are many cases of abnormal status, for example: unable to upgrade the firmware version of the hard disk to be tested, unable to perform read and write test operations on the hard disk to be tested, unable to confirm the brand and model of the hard disk to be tested, etc.

告警模組18電性連接終止模組17,用以在終止模組17終止測試模組12進行讀寫測試作業以及終止升級模組13升級韌體版本時,產生一告警資訊,藉以告知使用者,讀寫測試作業以及升級韌體版本已經被終止。告警模組18可以產生聲音、文字、燈光、振動等資訊,用以告知使用者。The alarm module 18 is electrically connected to the termination module 17, and is used to generate an alarm message when the termination module 17 terminates the test module 12 to perform the read-write test operation and terminates the upgrade module 13 to upgrade the firmware version, so as to inform the user , the read and write test operations and firmware version upgrades have been terminated. The alarm module 18 can generate sound, text, light, vibration and other information to inform the user.

綜上所述,本發明所提供之硬碟升級讀寫測試系統及其方法,利用選擇模組、測試模組、升級模組、數據偵測模組與結果產生模組,對待測硬碟進行讀寫測試作業,並產生測試結果資訊。相較於先前技術,本發明利用選擇模組、測試模組與升級模組,可以解決耗費人力與時間、人為誤差、指令錯誤等問題。利用數據偵測模組與結果產生模組,可以解決人為擷取讀寫數據值的問題。另外,本發明利用轉換單元,可以將讀寫數據值的單位轉換為彼此相同,因此,可以直觀地從測試結果資訊中得知讀寫數據值的優劣。To sum up, the hard disk upgrade read-write test system and method thereof provided by the present invention utilize the selection module, the test module, the upgrade module, the data detection module and the result generation module to test the hard disk to be tested. Read and write test operations, and generate test result information. Compared with the prior art, the present invention uses the selection module, the test module and the upgrade module to solve the problems of manpower and time consumption, human errors, and instruction errors. Using the data detection module and the result generation module can solve the problem of artificially extracting and reading data values. In addition, the present invention utilizes the conversion unit to convert the units of the read and write data values to be the same as each other. Therefore, the quality of the read and write data values can be intuitively known from the test result information.

藉由以上較佳具體實施例之詳述,係希望能更加清楚描述本發明之特徵與精神,而並非以上述所揭露的較佳具體實施例來對本發明之範疇加以限制。相反地,其目的是希望能涵蓋各種改變及具相等性的安排於本發明所欲申請之專利範圍的範疇內。Through the above detailed description of the preferred embodiments, it is hoped that the characteristics and spirit of the present invention can be described more clearly, and the scope of the present invention is not limited by the preferred embodiments disclosed above. On the contrary, the intention is to cover various changes and equivalent arrangements within the scope of the patent application for the present invention.

1:硬碟升級讀寫測試系統 11:選擇模組 12:測試模組 13:升級模組 131:廠牌確認單元 132:種類確認單元 133:指令儲存單元 134:升級單元 14:數據偵測模組 15:結果產生模組 151:接收單元 152:整理單元 153:轉換單元 154:產生單元 16:輸入模組 17:終止模組 18:告警模組 2:待測硬碟 S101~S105:步驟 1: Hard disk upgrade read and write test system 11: Select the module 12: Test module 13: Upgrade module 131: Brand confirmation unit 132: type confirmation unit 133: instruction storage unit 134: upgrade unit 14: Data detection module 15: Result generation module 151: Receiving unit 152: finishing unit 153: conversion unit 154: Generation unit 16: Input module 17: Terminate the mod 18:Alarm module 2: The hard disk to be tested S101~S105: steps

第一圖係顯示本發明較佳實施例所提供之硬碟升級讀寫測試系統之方塊圖;以及, 第二圖係顯示本發明較佳實施例所提供之硬碟升級讀寫測試方法之流程圖。 The first figure shows the block diagram of the hard disk upgrade read-write test system provided by the preferred embodiment of the present invention; and, The second figure is a flow chart showing the hard disk upgrade read-write test method provided by the preferred embodiment of the present invention.

1:硬碟升級讀寫測試系統 1: Hard disk upgrade read and write test system

11:選擇模組 11: Select the module

12:測試模組 12: Test module

13:升級模組 13: Upgrade module

131:廠牌確認單元 131: Brand confirmation unit

132:種類確認單元 132: type confirmation unit

133:指令儲存單元 133: instruction storage unit

134:升級單元 134: upgrade unit

14:數據偵測模組 14: Data detection module

15:結果產生模組 15: Result generation module

151:接收單元 151: Receiving unit

152:整理單元 152: finishing unit

153:轉換單元 153: conversion unit

154:產生單元 154: Generation unit

16:輸入模組 16: Input module

17:終止模組 17: Terminate the mod

18:告警模組 18:Alarm module

2:待測硬碟 2: The hard disk to be tested

Claims (10)

一種硬碟升級讀寫測試系統,係用以對一待測硬碟進行一讀寫測試作業,包含: 一選擇模組,係用以受操作地在複數個內建測試項目中選擇該讀寫測試作業之至少一實際測試項目; 一測試模組,係電性連接該選擇模組,用以依據該至少一實際測試項目,對該待測硬碟進行該讀寫測試作業; 一升級模組,係用以在該讀寫測試作業進行時,升級該待測硬碟之一韌體版本,藉以使該待測硬碟先後依序處於一升級前狀態、一升級中狀態與一升級後狀態; 一數據偵測模組,係電性連接該待測硬碟、該測試模組與該升級模組,用以在該讀寫測試作業進行時,分別在該升級前狀態、該升級中狀態與該升級後狀態對該待測硬碟偵測出複數個讀寫數據值;以及 一結果產生模組,係電性連接該數據偵測模組,用以將該些讀寫數據值產生對應該至少一實際測試項目之至少一測試結果資訊。 A hard disk upgrade read-write test system is used to perform a read-write test operation on a hard disk to be tested, including: a selection module, which is used to select at least one actual test item of the reading and writing test operation from a plurality of built-in test items; A test module, electrically connected to the selection module, for performing the read/write test operation on the hard disk to be tested according to the at least one actual test item; An upgrade module is used to upgrade a firmware version of the hard disk to be tested when the read-write test operation is in progress, so that the hard disk to be tested is sequentially in a pre-upgrade state, an upgrade state, and an upgrade state. - Post-upgrade status; A data detection module, which is electrically connected to the hard disk to be tested, the test module and the upgrade module, and is used for the pre-upgrade state, the upgrade state and the upgrade module respectively when the read-write test operation is in progress The post-upgrade status detects a plurality of read and write data values for the hard disk to be tested; and A result generation module is electrically connected to the data detection module, and is used to generate at least one test result information corresponding to at least one actual test item from these read and write data values. 如請求項1所述之硬碟升級讀寫測試系統,更包含一輸入模組,該輸入模組係電性連接該選擇模組,係用以供一使用者輸入一測試指令,並依據該測試指令控制該選擇模組選擇該讀寫測試作業之該至少一實際測試項目。The hard disk upgrade read-write test system as described in claim 1 further includes an input module, which is electrically connected to the selection module, and is used for a user to input a test command, and according to the The test command controls the selection module to select the at least one actual test item of the read/write test operation. 如請求項1所述之硬碟升級讀寫測試系統,其中,該升級模組更包含: 一廠牌確認單元,係用以確認該待測硬碟之一廠牌;以及 一種類確認單元,係電性連接該廠牌確認單元,用以在確認該廠牌後,確認該待測硬碟之一種類型號。 The hard disk upgrade read-write test system as described in claim 1, wherein the upgrade module further includes: A brand confirmation unit, which is used to confirm a brand of the hard disk to be tested; and A type confirming unit is electrically connected to the brand confirming unit, and is used for confirming a type and model of the hard disk to be tested after confirming the brand. 如請求項3所述之硬碟升級讀寫測試系統,其中,該升級模組更包含: 一指令儲存單元,係用以儲存複數個控制指令,且每一控制指令係對應一種上述之廠牌與一種上述之種類型號;以及 一升級單元,係電性連接該指令儲存單元,用以在確認該廠牌與該種類型號,利用對應之控制指令升級該待測硬碟之該韌體版本。 The hard disk upgrade read-write test system as described in claim 3, wherein the upgrade module further includes: A command storage unit is used to store a plurality of control commands, and each control command corresponds to one of the above-mentioned brands and one of the above-mentioned types and models; and An upgrading unit is electrically connected to the instruction storage unit, and is used for upgrading the firmware version of the hard disk to be tested by using the corresponding control instructions after confirming the brand and the type and model. 如請求項1所述之硬碟升級讀寫測試系統,其中,該結果產生模組更包含: 一接收單元,係用以接收該些讀寫數據值;以及 一產生單元,係用以產生該至少一測試結果資訊。 The hard disk upgrade read-write test system as described in claim 1, wherein the result generation module further includes: a receiving unit for receiving the read and write data values; and A generating unit is used for generating the at least one test result information. 如請求項1所述之硬碟升級讀寫測試系統,其中,該結果產生模組更包含: 一整理單元,係用以接收並整理該些讀寫數據值;以及 一轉換單元,係用以將每一該些讀寫數據值之單位轉換成彼此相同之單位。 The hard disk upgrade read-write test system as described in claim 1, wherein the result generation module further includes: a collating unit for receiving and collating the read and write data values; and A conversion unit is used to convert the units of each of the read and write data values into the same units. 如請求項1所述之硬碟升級讀寫測試系統,更包含一終止模組,該終止模組係電性連接該測試模組與該升級模組,用以在偵測到一異常狀態時,終止該測試模組進行該讀寫測試作業以及終止該升級模組升級該韌體版本。The hard disk upgrade read-write test system as described in claim 1 further includes a termination module, the termination module is electrically connected to the test module and the upgrade module, and is used for detecting an abnormal state , terminating the test module to perform the read-write test operation and terminating the upgrade module to upgrade the firmware version. 如請求項7所述之硬碟升級讀寫測試系統,更包含一告警模組,係電性連接該終止模組,用以在該終止模組終止該測試模組進行該讀寫測試作業以及終止該升級模組升級該韌體版本時,產生一告警資訊。The hard disk upgrade read-write test system as described in claim item 7 further includes an alarm module, which is electrically connected to the termination module, and is used to terminate the test module to perform the read-write test operation when the termination module terminates the test module and When the upgrade module is terminated to upgrade the firmware version, an alarm message is generated. 一種硬碟升級讀寫測試方法,係利用如請求項1所述之硬碟升級讀寫測試系統加以實施,並包含以下步驟: (a) 利用該選擇模組選擇該至少一實際測試項目; (b) 利用該測試模組對該待測硬碟進行該讀寫測試作業; (c) 利用該升級模組升級該待測硬碟之該韌體版本,藉以使該待測硬碟先後依序處於該升級前狀態、該升級中狀態與該升級後狀態; (d) 利用該數據偵測模組分別在該升級前狀態、該升級中狀態與該升級後狀態對該待測硬碟偵測出該些讀寫數據值; (e) 利用該結果產生模組產生該至少一測試結果資訊。 A hard disk upgrade read-write test method is implemented by using the hard disk upgrade read-write test system described in claim 1, and includes the following steps: (a) using the selection module to select the at least one actual test item; (b) using the test module to perform the read/write test operation on the hard disk to be tested; (c) Utilize the upgrade module to upgrade the firmware version of the hard disk to be tested, so that the hard disk to be tested is in the pre-upgrade state, the upgrade state and the post-upgrade state in sequence; (d) using the data detection module to detect the read and write data values of the hard disk under test respectively in the state before the upgrade, the state during the upgrade and the state after the upgrade; (e) generating the at least one test result information by using the result generation module. 如請求項9所述之硬碟升級讀寫測試方法,其中,該步驟(e)更包含以下步驟: (e1) 利用該結果產生模組中之一轉換單元,將每一該些讀寫數據值之單位轉換成彼此相同之單位。 The hard disk upgrade reading and writing test method as described in claim 9, wherein the step (e) further includes the following steps: (e1) Using a conversion unit in the result generating module to convert the units of each of the read and write data values into the same units as each other.
TW110133995A 2021-09-13 2021-09-13 System and method for testing read/write and upgrading on hard disk TWI793759B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110133995A TWI793759B (en) 2021-09-13 2021-09-13 System and method for testing read/write and upgrading on hard disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110133995A TWI793759B (en) 2021-09-13 2021-09-13 System and method for testing read/write and upgrading on hard disk

Publications (2)

Publication Number Publication Date
TWI793759B true TWI793759B (en) 2023-02-21
TW202312146A TW202312146A (en) 2023-03-16

Family

ID=86689276

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110133995A TWI793759B (en) 2021-09-13 2021-09-13 System and method for testing read/write and upgrading on hard disk

Country Status (1)

Country Link
TW (1) TWI793759B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200516475A (en) * 2003-04-28 2005-05-16 Cornice Inc Digital device configuration and method
TW200527407A (en) * 2003-11-18 2005-08-16 Toshiba Corp Optical disc, information playback apparatus, information playback method, and information recording method
CN101023490A (en) * 2004-09-17 2007-08-22 齐拉泰克斯技术有限公司 Housings and devices for disk drives
CN101346769A (en) * 2005-12-22 2009-01-14 皇家飞利浦电子股份有限公司 Device for and method of retrieval of a data file
CN101393746A (en) * 2008-09-18 2009-03-25 复旦大学 Dynamic storage method onto vertically recording medium magnetic disc by using laser assistant longitudinal magnetic head
US8949624B2 (en) * 2001-03-28 2015-02-03 Irdeto Usa, Inc. Method and system for secure access to non-volatile memory

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8949624B2 (en) * 2001-03-28 2015-02-03 Irdeto Usa, Inc. Method and system for secure access to non-volatile memory
TW200516475A (en) * 2003-04-28 2005-05-16 Cornice Inc Digital device configuration and method
TW200527407A (en) * 2003-11-18 2005-08-16 Toshiba Corp Optical disc, information playback apparatus, information playback method, and information recording method
CN101023490A (en) * 2004-09-17 2007-08-22 齐拉泰克斯技术有限公司 Housings and devices for disk drives
CN101346769A (en) * 2005-12-22 2009-01-14 皇家飞利浦电子股份有限公司 Device for and method of retrieval of a data file
CN101393746A (en) * 2008-09-18 2009-03-25 复旦大学 Dynamic storage method onto vertically recording medium magnetic disc by using laser assistant longitudinal magnetic head

Also Published As

Publication number Publication date
TW202312146A (en) 2023-03-16

Similar Documents

Publication Publication Date Title
US8086919B2 (en) Controller having flash memory testing functions, and storage system and testing method thereof
US8290735B2 (en) Test apparatus and test method for universal serial bus interface
CN102568522B (en) The method of testing of hard disk performance and device
USRE44248E1 (en) System for transferring personalize matter from one computer to another
CN103578568A (en) Method and apparatus for testing performances of solid state disks
KR20140053542A (en) Automatic testing apparatus for embedded software, automatic testing method thereof and test scenario composing method
US20120260130A1 (en) Non-volatile random access memory test system and method
US20130111268A1 (en) Testing device capable of simulating plugging and unplugging operations and method thereof
CN114664369A (en) Memory chip testing method and device
WO2021190327A1 (en) Memory test system and method
TWI793759B (en) System and method for testing read/write and upgrading on hard disk
CN113960391A (en) Abnormal power failure testing device and method for storage medium
US8997048B1 (en) Method and apparatus for profiling a virtual machine
US20090259835A1 (en) System and method for tracking and recording system configurations of electronic devices
CN115422091B (en) Firmware debugging method and device, electronic equipment and storage medium
CN1797357A (en) Circuit board for testing function of main board
CN102855166A (en) Mainboard testing system and method
US8099630B2 (en) Hardware diagnostics determination during initial program loading
CN113257334B (en) Test method, device and system for solid state disk
CN113722169A (en) Hard disk upgrade read-write test system and method thereof
CN112445670B (en) eMMC test method and device
CN105242880A (en) Method for automatically creating Raid and executing pressure testing
US10922023B2 (en) Method for accessing code SRAM and electronic device
TW202217571A (en) Automatic test system and method for testing application of device under test
US20170108546A1 (en) Testing electronic devices