TW594470B - Pressure testing method for file system - Google Patents
Pressure testing method for file system Download PDFInfo
- Publication number
- TW594470B TW594470B TW92112303A TW92112303A TW594470B TW 594470 B TW594470 B TW 594470B TW 92112303 A TW92112303 A TW 92112303A TW 92112303 A TW92112303 A TW 92112303A TW 594470 B TW594470 B TW 594470B
- Authority
- TW
- Taiwan
- Prior art keywords
- test
- thread
- file
- scope
- item
- Prior art date
Links
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
594470 五、發明說明(1) 【發明之技術領域 本發明係為一種檔案系统 利用多執行緒及多檔幸择作 、α方法’特別是 法。 田案糸統進行壓力測 【先前技術】 檔案系統是電腦作業系統的 作需要電腦儲存設備和作章 要、、且成部份,其 度。在壓力越大的時候! = 行協調配合,合 時,構案系統越容易出現:;疋操作十分 所以通過類比實際的操; 壓力測試就顯得十分重要。 t才田案糸 σ檔案系統進行壓力測試的目的是給邏輯驅動器 案&.作的壓力’其操作物件包括硬碟(Hard Di sk vice) 了私動 5己憶體(Removeable Storage)、 動器(CDROM)、軟碟驅動器(n〇ppy Disk)及網路驅 (Network Device)等,檔案操作包括讀、寫、拷 動、創建及刪除等。 目别對福案糸統的測試.一般是對單個槽案進行 通過檐案操作路徑的不同和檔案創建方式的不同來 際播案操作。檔案的儲存是從最先發現的空白簇開 後在最臨近的空白簇繼續儲存,當檔案刪除後,原 的簇被釋放,被釋放的第一個簇將是下一個儲存檔 一個藥,如果再儲存檔案還將覆蓋原先釋放的蔟。 對單個檔案進行操作就只能在一個固定的儲存區内 一種對 試的方 正常工 理調 繁忙 器時尤 統進行 增加檔 光碟驅 動器 貝、移 操作, 類比實 始,然 先佔用 案的第 顯然, 進行,594470 V. Description of the invention (1) [Technical Field of the Invention] The present invention is a file system using multiple threads and multiple files, and α method ', especially method. Tiananmeng conducts pressure measurement. [Prior technology] The file system is a computer operating system. It requires computer storage equipment and chapters. When the pressure is greater! = Coordination and coordination, the more likely it is that the case-building system will appear in time: 疋 The operation is very important, so the analogy with the actual operation; The stress test becomes very important. The purpose of the stress test of the Caitian Case 糸 file system is to put pressure on the logical drive case. The operating objects include hard disk drives (Removeable Storage) and actuators. (CDROM), floppy disk drive (n0ppy Disk) and network drive (Network Device), etc., file operations include reading, writing, copying, creating and deleting. The test of the blessing case system is generally performed on a single slot case through different eaves case operation paths and different file creation methods. The storage of the file is to continue to store in the nearest blank cluster after opening the blank cluster found first. When the file is deleted, the original cluster is released. The first cluster released will be the next storage file and a medicine. Restoring the file will also overwrite the previously released puppet. The operation of a single file can only be performed in a fixed storage area. The normal operation of a busy machine is especially to increase the volume of the disc drive and move the operation. The analogy starts, but the first obvious use of the case , get on,
第5頁 594470 五、發明說明(2) 法對整個儲存區進行測試。如 ^ 〜 圍就只能通過增加檔案:要擴大測試的儲存區 案再大,㈣仍然只能儲:: = ;只寫不刪?單個稽 反復創建和删除,—旦對較臨近的區域晨,而且 二:能損壞磁片;只寫不刪雖然也擴大了 ‘目前播案測試的方= 删除時間過長。 小,效率低,同時在對先雄刀明顯,不但測試壓力 驅動器(Floppy Disk D…驅^益(CDR〇M DriVer)及軟碟 (MUUUhreaJng):V;^ 檔案操作’此時,京尤迫切要一::很好的類比實際的 大測試覆蓋區域,_試:試壓力’擴 來解決上述問題。 羊的桮案糸統壓力測試方法 發明内容】 有繁於此,本發明為解 系統的壓力測試方法,通 /夕、^ ^ 、而提出了一種擋案 t ^ ^ ^ ^過多執行緒和多檔宏饩A + 測斌壓力,擴大測試覆蓋範 =案紅作來增加 更接近現實環境下的檔案操作。门 」式壓力,使测試 本务明所提之一種檔案系統的壓 下步驟:啟動複數個槽案測試執行緒;由作ί法,包括如 數個執行緒中選取一個當前 2業糸統從該複 期間順序執行其測試操作 、:每二:::行緒在選中 如下步驟:提高自身在作“統中的優先緒包括 邏輯驅動器的剩餘儲存空間,並設定測試運行Κ :::Page 5 594470 V. Description of Invention (2) The method tests the entire storage area. Such as ^ ~ Wai can only be increased by adding files: to expand the test storage area No matter how big the case is, ㈣ can still only store: =; Just write without deleting? Single inspector repeatedly creates and deletes, once the nearer area is in the morning, and two: can damage the magnetic disk; write only not delete, although it also expands ‘the current test method of the case = delete time is too long. Small, low efficiency, at the same time it is obvious to the first male knife, not only test the pressure drive (Floppy Disk D ... drive ^ benefit (CDROM DriVer) and floppy disk (MUUUhreaJng): V; ^ file operation 'At this time, Beijing is particularly urgent One :: Good analogy to the actual large test coverage area, _ try: test pressure 'expanded to solve the above problems. Sheep's Cup system pressure test method Summary of content] There is a lot of this, the present invention is a solution system Stress test method, pass / evening, ^ ^, and proposed a case of t ^ ^ ^ ^ ^ too many threads and multiple Acer A + test bin pressure, expand test coverage = case red work to increase closer to the real environment The file operation under the "door" type pressure makes the testing steps of a file system mentioned in this matter: start a plurality of slot test thread; by the method, including selecting one of the current threads 2 The industry will sequentially perform its test operations from this period: every two ::: The thread is selected as follows: increase its priority in the system, including the remaining storage space of the logical drive, and set the test run. :::
第6頁 594470 五、發明說明(3) 該檢測結果及該運行時間,執行該測試執行緒中的檔案操 作;結束該測試執行緒。 與傳統的檢測方法相比,本發明提供的方法使用多執 行緒和多檔案操作來提高檔案系統測試的壓力及覆蓋區 域,通過特定演算法合理調度各個執行緒,監控邏輯驅動 器的剩餘儲存空間,從而更好的類比現實環境下的檔案操 作。在對光碟驅動器執行測試時,通過共用方式打開光碟 上的檔案來讀取對整張光碟;在對軟碟驅動器執行測試 時,每個執行緒只寫入一個儘量小的檔案,縮短回應時 間,從而使針對光碟、軟碟驅動器的測試可支援更多執行 緒,實現了真正的多執行緒,提高了測試效率及壓力。 有關本發明之詳細内容及方法,茲就配合圖示說明如 下: 【實施方式】 下面結合附圖對本發明進行詳細說明: 請參見『第1圖』來說明"該圖係為本發明之檔案系 統的壓力測試方法之總體流程圖,說明如下: 首先啟動複數個檔案測試執行緒(步驟11 0);然後 由作業系統從該複數個執行緒中選取一個當前執行緒(步 驟1 2 0);最後該當前執行緒在選中期間順序執行其測試 操作(步驟1 3 0);每一個測試執行緒包括如下步驟:提 高自身在作業系統的的優先執行順序(步驟1 40);檢測 邏輯驅動器的剩餘儲存空間,並設定測試運行時間(步驟 1 5 0);根據該檢測結果及該運行時間,執行該測試執行Page 6 594470 V. Description of the invention (3) The test result and the running time are executed in the file operation of the test thread; the test thread is ended. Compared with traditional detection methods, the method provided by the present invention uses multiple threads and multiple files operations to increase the stress and coverage area of the file system test, reasonably schedule each thread through a specific algorithm, and monitor the remaining storage space of the logical drive. Thereby a better analogy of file operations in the real environment. When performing a test on an optical disc drive, open the file on the optical disc to read the entire disc by using a shared method. When performing a test on a floppy disc drive, each thread writes only one file as small as possible to reduce the response time. Therefore, the test for the optical disk and the floppy disk drive can support more threads, realize a real multi-thread, and improve the test efficiency and pressure. The detailed content and method of the present invention are described below with reference to the drawings: [Embodiment] The following describes the present invention in detail with reference to the drawings: Please refer to "Fig. 1" to illustrate " This figure is a file of the present invention The overall flowchart of the system's stress test method is described as follows: First, start a plurality of file test threads (step 110); then the operating system selects a current thread from the plurality of threads (step 1 2 0); Finally, the current thread executes its test operations in sequence during the selection period (step 13 0); each test thread includes the following steps: improve its priority execution order in the operating system (step 1 40); detect the logical drive's The remaining storage space and set the test run time (step 15 0); according to the test results and the run time, execute the test execution
五、發明說明(4) ____ —_ |緒中的檔案操作(步驟丨6 · 170)。 ,結束該測試執行緒(步驟 、 挪試執行緒中的檔案操作由 過程,也可以只包含有—個:可以包含多個擋案操作 類型有關。當測試物件為』案操作過程,與测試物件的 備,則包含多個檔案押你、M f驅動器等儲存容量較大的設 量較小的設備,則: #匕私,如果是則軟碟驅動器等容 I〆案操作“二案及 寺。 茶舄入祂案及讀寫檔案 本發明的執扞Ά θ 1 I為作業系統的多内外兩層控制程式組成,外層 緒’並從中選擇—個預備‘理::二用來啟動多個執行 檔案翊試執行緒的控制仃、®丽測試執行緒;内層為 執行緒的優先順序r产、則、r ▲:用來提高作業系統選擇出的 定測試運行時間並控驅動器的剩餘儲存空間及設 在測试過程中,士甘 為向邏輯驅動器内寫U ς中有多個執行緒的操作過程均 互相通訊而不能相=;案=各執行緒之間因為沒有 卜造成系統死機。$就需要因=輯驅動器被寫滿 仃緒的檔案操作方式;::$ ii牙王式根據各個執 檢測:況’合理控制整個測;動器的剩餘儲存空間的 存空間的覆蓋情况;行:通法街其儲 丨*保“案糸統的壓力測試能正常運行,不至J = 湖 m 第8頁 594470 五、發明說明(5) 輯驅動器儲存空間被寫滿而死機 執行緒的之前檢測一遍其儲存空',y = 母次執行測試 而合理控制邏輯驅動器内儲存;二的:’f :測演算法,從 一個即能保證測試壓力,又能保證測‘ =2 =二為其設定 間最小值,使測試更加真實。該剩吊運仃的剩餘空 憶體所在邏輯驅動器上的虛擬記情雕^ ^必須超過虛擬記 體實際上使用的是邏輯驅動器的‘二办二(因為虛擬記憶 越多,對邏輯驅動器儲存空間及 Τ試執行緒 大。 號°己脰的需求就越 檢測演算對於硬盤來 硬盤容量祕則可以繼續操作,:間超過 y容量的η,則結束當前的檔案系統測=空= Κ固經驗數值,可根據具體 =…里的 :試運行時間也是—個重要的測試參;動 、=/,ΪΓ?動器内儲存空間的覆蓋空間也== 試運行時間的測試運時間。㈣ 如果驅動器時’運行時間相應短-些; 器儲存*間的牛赞石碟’則可以長- ^。與檢測邏輯驅動 大= …即要保證測試覆蓋範圍足夠 系統死機。b為璉輯驅動器内儲存空間被寫滿而導致 檔案系統的壓力測試的物件可以是各種儲存設備’例V. Description of the invention (4) ____ —_ | File operation in the thread (steps 丨 6 · 170). , End the test thread (steps, move the file operation in the test thread by process, or it can contain only one: it can include multiple types of file operation operations. When the test object is a "case operation process, it is related to the test The preparation of the object includes multiple files, such as a storage device, an M f drive, and a device with a large storage capacity and a small amount of equipment. Temple. Enter the case and read and write files. The implementation of the present invention. Θ 1 I is composed of multiple internal and external control programs for the operating system. The execution file controls the test thread and the test thread; the inner layer is the priority order of the thread. 产, 、, r ▲: It is used to improve the fixed test run time selected by the operating system and control the remaining storage of the drive. In the space and during the testing process, Shigan wrote multiple threads to the logical drive. The operation processes of multiple threads are communicating with each other and cannot be connected to each other. The case is that there is no system crash between the threads. $ Needs to be = The drive operation method is filled with the thread; :: $ ii The King of the King type is tested according to each execution: status' reasonable control of the entire test; coverage of the remaining storage space of the actuator; coverage: Tongfa Street The storage test guarantees that the system's stress test can run normally without J = Lake m Page 8 594470 V. Description of the invention (5) The storage space of the drive is full and the thread is tested before it crashes. Empty ', y = parent and secondary test execution and reasonable control of storage in the logical drive; the second:' f: measurement algorithm, which can ensure the test pressure from one, and also ensure the measurement '= 2 = two set the minimum value for it To make the test more real. The virtual memory on the logical drive where the remaining empty memory of the leftover 仃 is ^ ^ must exceed the virtual memory's actual use of the logical drive's second operation (because the more virtual memory The storage space for logical drives and T test threads are large. The number of requirements is greater and the calculation will be detected. For hard disks, the hard disk capacity can continue to operate. If the η capacity exceeds y, the current file system will end. Measure = empty = KK solid empirical value, which can be based on the following:… The test run time is also an important test parameter; the coverage of the storage space in the actuator is also equal to the test run time. Test run time. ㈣ If the drive 'run time is correspondingly shorter-some; storage of Niuzan stone disc' can be long-^. And the detection logic drive is large = ... that is to ensure that the test coverage is sufficient for the system to crash. B The object of the stress test of the file system because the storage space in the editing drive is full can be various storage devices.
五、發明說明(6) 1碟驅動器、軟碟 哭^ ^- 器等。 、光碟驅動器及移動铸存驅動 見說明本發明的流程。 禾幺圖』,綠® ^ 執行緒優先順序之流程圖"^係為本發明所提之提高測試 首先獲取該例軾執 §兄明如下: 據該編號提高該測試編號(步驟210);然後根 (步驟22 0);最後進入牛驟在^業系統中的優先執行順序 檔案系統的操作是c 業系統為了提高多執行二二的較高層次的操作,作 先順序相對其他操作而言:一忐,=配給檔案操作的優 的壓力測試項與其他測“項同二:二,樣」在樓案按系統 由於其優先順序較低,對车 灯守’该壓力測試的項 驅動器進行標案系統壓力測試時:::厍各個邏輯 低’甚至幾乎為零,這就違背了壓:以::: =解 =個問㉟,只能提高作業系統中播案操作執行緒= 在作業系統中,執行緒管理機制通過為每個 配一個編號’從而方便對不同執行緒進行識別和執— Windows作業:統中’通過調用Window“ρι函婁;就:獲: 執行緒的編號,然後根據該編號來找到相應的執彳-緒、甬 過檔案測試執行緒的控制機制提高其優先順序。T ^ 在這裏需要注意的是,檔案操作的優先順序提高後, 在單獨運行檔案系統壓力測試的測試項時,rDTU , 、J m ( Central 第10頁 594470 五、發明說明(7) P r 〇 c e s s i n g U n i t中央處理器)時間的佔用率會到 1 0 0%,其他的測試項將無法正常運行。為解決這個問 題,本發明在檔案系統壓力測試中引入一個測試間隔 (T e s t I n t e r v a 1 )參數,使檔案系統在每一次檔案操作 後都挂起一段時間,將CPU時間讓給其他測試項,當檔案 系統就緒後再次得到CPU的優先回應。這樣,不僅使對系 統儲存設備的測試壓力明顯提高,而且也不會對其他測試 項的測試造成影像,從而提高了系統測試的效率。V. Description of the invention (6) 1-disc drive, floppy disc ^ ^-device, etc. , Optical disc drive and mobile casting drive See the process for explaining the invention. "Hetu diagram", Green ® ^ Flow chart of priority order of the thread " ^ is the improvement test mentioned in the present invention. First obtain the example of execution. § Brother states as follows: Increase the test number according to the number (step 210); Then root (step 22 0); finally enter the priority execution order of the system in the industry system. The operation of the file system is to increase the number of higher-level operations performed by the industry system. : 1 忐, = The optimal stress test item for the distribution file operation is the same as the other tests. During the pressure test of the bidding system: ::: each logic low 'or even almost zero, which violates the pressure: with ::: ==== question, can only improve the thread of the broadcast operation in the operating system = In the system, the thread management mechanism facilitates the identification and execution of different threads by assigning a number to each — — Windows Jobs: In the system, “by calling Window”, we get: the number of the thread, and then according to Number to find the corresponding execution-thread and thread-test thread control mechanism to increase its priority. T ^ It should be noted here that after the priority of the file operation is increased, the file system stress test is run separately. Time, rDTU,, J m (Central, page 10, 594470) 5. Description of the invention (7) P r occessing U nit CPU time will reach 100%, other test items will not run normally In order to solve this problem, the present invention introduces a test interval (T est Interva 1) parameter in the stress test of the file system, so that the file system hangs for a period of time after each file operation, giving CPU time to other test items. When the file system is ready, it will get the priority response from the CPU again. In this way, not only will the test pressure on the system storage equipment be significantly increased, but it will not cause images to test other test items, thereby improving the efficiency of system testing.
在檔案系統的壓力測試過程中,由於測試的需要,會 在進行測試的當前邏輯驅動器上產生一些測試的暫存槽 案,如果在測試過程中5測試程式非正常退出,清理這些 暫存檔案會十分繁瑣,而且如果清理不完全就會佔用驅動 器的儲存空間,為此,本發明為解決這個問題,為每個測 試執行緒建立一個臨時目錄,並將這些暫存檔案存入該目 錄中,這樣,測試完成後的暫存檔案清理就變得更為簡 單,只需要將臨時目錄刪除即可。 請參見『第3圖』,該圖係為本發明所提之根據該檢 測結果及該運行時間執行該測試執行緒中的檔案操作之流 程圖,說明如下:During the stress test of the file system, due to the needs of the test, some temporary storage slots will be generated on the current logical drive for testing. If the test program exits abnormally during the test, cleaning these temporary files will It is very tedious, and if it is not completely cleaned up, it will occupy the storage space of the drive. Therefore, in order to solve this problem, the present invention creates a temporary directory for each test thread, and stores these temporary files in the directory. , After the test is completed, the temporary file cleaning becomes simpler, just delete the temporary directory. Please refer to "Figure 3", which is a flowchart of the file operation in the execution of the test thread according to the test result and the runtime according to the present invention, as described below:
步驟1 4 0之後,當該邏輯驅動器無剩餘儲存空間時, 結束該測試執行緒步驟(3 1 0);當該邏輯驅動器有剩餘 儲存空間,且測試執行時間在該運行時間之内時,則繼續 執行該測試執行緒中的檔案操作(步驟3 2 0);當該邏輯 驅動器有剩餘儲存空間,但測試執行時間超出該運行時間After step 140, when the logical drive has no remaining storage space, end the test thread step (3 1 0); when the logical drive has remaining storage space and the test execution time is within the running time, then Continue to execute the file operation in the test thread (step 3 2 0); when the logical drive has remaining storage space, but the test execution time exceeds the running time
第11頁 (8) (8) 五、發明說明 時,結束 ” 根據 當其剩餘 輯驅動器 空間該大 儲存空間 試運行時 進行該測 間時,說 請參 複數個執 說明如下 步驟 選取一個 當前 個檔案測 續進行檔 成。 下面 測試 執行寫入 1亥測試热r a 檢測演曾、,(步驟33〇)。 檢測邏輯驅動器 的剩餘儲;:於該剩餘空間最小值日卜情況: 於剩餘”;:間不足,肖束該測試執」兄明該邏 足夠::小值時1明該邏剩餘 Η沾步判斷執行啫的:動器的剩餘 試執行緒,ϊ :時間小於運行時間:;疋的: 明測試過π r 時間按等於或者+繼續 忒過柽超時,結 飞者大於運時 見『第4圖』,#°亥測武執行緒。 行緒中分g彳^ θ ^為本發明所提< .平刀盼父替選取〜個| f 杈之返回從該 . 田刖執仃绪之流程圖, 1 6 〇之後,返回由作幸 當前執行緒之步驟f t統從該複數個執行緒中 測試執行緒執行410)。 試執行緒中選擇:個尚:J新由操作系統從複數 案系統的壓力測試, 仃的測試執行緒,繼 直到整個測試過程全部完 用車又佳的實例來說明 物件以硬碟驅動器C·操作流程。 檔案操作的測試。 在Windows下對該硬碟 594470 五、發明說明(9)Page 11 (8) (8) V. End of the description of the invention "According to the test room when the large storage space is in trial operation when the remaining drive space is tested, please refer to several instructions and select the current one as follows. The file test continues to be filed. The following test is performed to write the 1H test to test the test ra, (Step 33). The remaining storage of the logical drive is detected; : There is not enough time, Xiao Shu should test the test. "Brother knows that the logic is sufficient :: When the value is small, 1 indicates that the logic is left. Judge step execution: The remaining test thread of the actuator, ϊ: less than the running time :; : Tested π r time by equal to or + to continue 忒 柽 柽 over time, see the "figure 4", the flying person is greater than the fortune time, # ° 海 测 武 thread. In the line, g 彳 ^ θ ^ is referred to in the present invention. <Ping Dao hopes that his father will choose ~~ | f branch of the return from this. The flow chart of Tian Xi's execution of the line, after 16 0, return Step ft of the current thread tests the execution of the thread from the plurality of threads 410). The choice of test thread: Personality: J new by the operating system from the stress test of the multiple case system, the test thread of the test, followed by the entire test process is a good example to illustrate the object to the hard drive C. Operating procedures. Testing of archive operations. The hard disk under Windows 594470 V. Description of the invention (9)
, 首先,啟動兩個測試執行緒1 〇及20,各侗勃 A 兩個執行寫入檔案操作過程,如上述 仃、、者包括 丨操作系統的執行緒管理機制選擇執行緒=:=過 試執行緒的控制機制提高執行緒i 庠.:通過測 創建一個擋案明為Flle System_10的臨碟内 卜時樯案A、B;檢測硬碟的當前儲存 苗、子放測試 定操作時間按為3秒;通 春义間覆孤情况,並設 足夠,判斷執行緒的執行時門、L則硬碟剩餘儲存空間 行時間為1秒,執行執行緒^疋品否細作操作時間,當前執 A;然後再次檢測硬碟的當 ^办門=硬碟中寫入檔案 碟儲存空間依然足夠,4存二間覆蓋情況,當前硬 作時間,當前執行時間」執\緒±的執行時間是否操作操 作:向硬碟中寫入檔案L ^ %繼績執行該執行緒丨〇的操 空間覆蓋情况,當前硬’、、^再次檢測硬碟的當前儲存 行時間是否操作操作時間,!:f足夠’判斷執行緒的執 的操作時間相㈤,該 =執行時間為3秒,與設定 測試項。 、、以出CPU,將CPU時間交給其他 當檔案操作再次士 ,假設過操作系統的:日:缺f他測試項把CPU時間交 ,並通過剛試執行緒: :::理機制選擇執行為2。執 ,碟内創建—個:::制提高執行為2。的優先順 ,存放剛試臨時擋案^木明^ FUe System — 2_臨時目 ’ ^測硬碟的當前儲存空間覆 第13頁 -EL '發明說明(10) 盖情況,並設定操作時間 ,餘儲存空間足夠,判斷執:緒的執W檢洌,當前硬碟 捋間’當前執行時間為1#、、、仃:間是否操作操作 碟中寫入檔案B ;秋 丁執灯、、者20的操作,向 愔π,a& …、傻再_人檢測硬碟的當前饉户咖 更 J·月况,當丽硬碟儲存空間足田,儲存空間覆蓋 否刼作操作時間,當前 執订绪的執行時間是 緒20的操作:向硬碟中窝入Jf f.2和/繼續執行該執行 當前儲存空間覆芸情' 杏二”,然後再次檢測硬碟的 斷執行緒的執行g門I_ ^珂硬碟儲存空間依然足夠,判 退出CPU,並將CPI^B t相问,刪除臨時目錄’該執行緒 ,,LPI%間交給其他測試項。 測Ξ你ί次測試過程全部完畢。 執行寫λ檔案驅=器為例,在Windows下對該軟碟 測試的時候,右—6測式。傳統方法對軟碟即行多執行緒 容量只有1· 44MB,1 =率?報錯現象,原因是由於軟碟的 時間太長,容易田Z 夕執行緒操作,由於相應軟碟的 其進行了改進,—f寫滿軟碟而造成程式出錯。本發明對 小,並提高執行:固,!緒只寫入一個槽案,構案儘量 軟碟的測試可支浐纟優先順序,縮短了回應時間,使針對 J文挺更多執行緒。 緒編號 惠互緖10 執行緖20 操作内容 案 A, 槽案b 4First, start two test threads 10 and 20, and each of the two A performs the write file operation process, as described above, including the operating system's thread management mechanism to select the thread =: = tried The thread control mechanism improves the thread i 庠.: Create a file named Flle System_10 when the files are stored in the file A and B through testing; detect the current storage seedlings and sub-amps of the hard disk. The test operation time is as follows: 3 seconds; cover the situation in Tongchunyi, and set enough to determine the execution time of the thread, the remaining storage space of the hard disk is 1 second, the execution time of the thread ; Then check again when the hard disk is opened. The storage space for writing files in the hard disk is still sufficient, and the two hard disks are overwritten. The current hard work time and the current execution time are executed. : Write the file L ^% to the hard disk following the execution of the thread space coverage of this thread. The current hard ',, ^ check whether the current storage time of the hard disk is operating time again! : F is enough ’to judge the execution time of the thread, the = execution time is 3 seconds, and the test item is set. 2. Take out the CPU and give the CPU time to other file operations again. Assume that the operating system: day: lack of other test items to hand over the CPU time and pass the newly tested thread: ::: The mechanism chooses to execute Is 2. Execute, create one :::: system to improve execution to 2. The priority is to store the temporary file just tested ^ Mu Ming ^ FUe System — 2_ Temporary Project '^ Measure the current storage space of the hard disk cover page 13-EL' Explanation of the invention (10) Cover situation, and set the operating time The remaining storage space is sufficient, and the judgment is performed. The current execution time of the current hard disk drive is 1 # ,,, and: the file B is stored in the operation disk; 20 operations, 愔 π, a &…, stupid _ people detect the current hard drive of the hard drive J. monthly status, when the storage space of the hard drive is enough, whether the storage space covers the operating time, the current implementation The execution time of the thread is the operation of thread 20: insert Jf f.2 into the hard disk and / or continue to execute the current storage space to cover the situation 'Kingji', and then check the execution of the broken thread of the hard disk again. Door I_ ^ Ke hard disk storage space is still sufficient, it is judged to exit the CPU, and asked CPI ^ B t, delete the temporary directory 'This thread, LPI%, and hand it over to other test items. Test you all the test process After writing the λ file driver = as an example, when testing the floppy disk under Windows, right —6 test type. The traditional method has a multi-thread capacity of only 1.44MB on the floppy disk, and 1 = rate? An error is reported because the time of the floppy disk is too long, and it is easy to perform thread operations on the floppy disk. It has been improved—f has filled the floppy disk and caused a program error. The present invention is small and improves the execution: solid, only one slot is written, and the test of the floppy disk can support the priority order, Shorten the response time, make more threads for J. thread number Huihu thread 10 thread 20 operation content case A, slot case b 4
檔案C 594470 五、發明說明(11) 首先,啟動彡個測試執行緒10、20及30,每個執彳— 包括一個執行寫入核案彳呆作過程,如上述表格所示,=μ 過操作系統的執行緒官理機制選擇執行緒1 〇執行,並=$ 測試執行緒的控制機制提高執行緒1 0的優先順序;在^ = 創建一個檔案明為Fl le System一 10的臨時目錄,人石^ 測 内創建 試臨時檔案A ;檢測軟碟的當前儲存空間覆蓋情況,、, 定操作時間按為3秒;通過檢測,當前軟碟:‘儲存3二 足夠,判斷執行緒的執行時間是否操作操作時間,#^_間 行時間為2秒,執行執行緒1〇的操作,向硬碟中/則執 A;然後該執行緒退出CPU,將CPU時間交給其他測=案 ,假設過操作系統的執行緒管理以=PU時間交 ,並通過測試執行緒的控制機制=執仃緒2 0執 ;在軟碟内創建一個槽案明為1 =執行、绪20的優先順 錄,存放測試臨時檔㈣;⑯測軟砰二JT:1;20的臨時 情況,並設定操作時間按為3孕、=的田則储存空間覆 餘儲存空間足夠,判斷執行的過檢测,當前軟碟 間,當前執行時間為2秒二的時間是否操作” 中寫入播案B;然後該執行緒^出=20的操作,向硬 他測試項。 ’將c P u時間交給 當檔案操作再次就緒時,其 ▲、 假設過操作系統的執行緒管理:试,把CPU時間交 行,並通過測試執行緒的控制機、=遥擇執行緒3 0執 1提高執行緒30的優先頻 顧 弟15頁 594470 五、發明說明(12) ___^ 序;在軟碟内創建一個檔案 錄,存放測試臨時檔案C ; ”檢測硬碟^= = 3二的臨時目 情況,當前硬碟儲存允門、"、田刖儲存空間覆蓋 退出㈣,並將心:ί他時目錄,, 至此本次測試過程全部完畢。 測減物件以光碟驅動 執行讀取槽案操作的測試。===下對該軟碟 專案甲,唯讀取—個* 2^方去對先碟驅動器的測試File C 594470 V. Description of the invention (11) First, start a test thread 10, 20, and 30, each execution — including an execution write check process, as shown in the table above, μ μ The thread management mechanism of the operating system selects thread 1 0 for execution, and = $ tests the thread control mechanism to increase the priority of thread 10; at ^ = creates a temporary directory named File System 10 Human Stone ^ Create a temporary file A during the test; check the current storage space coverage of the floppy disk, and set the operation time to 3 seconds; by testing, the current floppy disk: 'save 3 2 is enough to determine the execution time of the thread Whether to operate the operation time, # ^ _ interval time is 2 seconds, execute the operation of thread 10, and execute A to the hard disk; then the thread exits the CPU and passes the CPU time to other tests. The thread management through the operating system is transmitted in PU time, and the control mechanism of the test thread is tested. The execution of the thread is performed by 2 0; a slot is created in the floppy disk, which is indicated as 1 = the execution and the priority of thread 20. Storing test temporary files; guessing soft bang II JT: 1; 20 Temporary situation, and set the operating time according to 3 pregnant, = Tian Ze storage space is sufficient to reserve storage space, to judge the over-testing performed, the current floppy disk, the current execution time is 2 seconds 2 whether to operate " Play case B; then the thread ^ out = 20 operation, test the item to the other hard. 'Leave c Pu time to when the file operation is ready again, its ▲, assuming operating system thread management: try Pass the CPU time and test the control machine of the thread. = Remotely select the thread 3 0 execute 1 Increase the priority of the thread 30 Gu Di 15 pages 594470 V. Description of the invention (12) ___ ^ Preface; on the floppy disk Create a file directory to store the test temporary file C; "Detect the temporary status of the hard disk ^ = = 32. The current hard disk storage allows the door, ", and the storage space of the storage space to exit and exit. Time directory, so far this test process is complete. The test object is driven by the optical disc. === Download the first project of this floppy disc, only read-a * 2 ^ square to test the disc drive
WindowsA# ^ ^ · 6X咏案,當該檔案較小時, windows马徒南糸統性能,合 才 樣,對光碟驅動哭的> 田案储存到緩存中,這 沒有達到實際測;=作3成了對系統緩存進行操作, 張光碟進行讀取j這产 發明針對其進行了改進,對整WindowsA # ^ ^ 6X Wing case, when the file is small, the performance of the Windows system is the same as before, and the crying disc drive is saved to the cache, which does not reach the actual measurement; 3 became the operation of the system cache, read the optical disc, this invention has improved it,
Widows對光碟驅動^ ’糸、统的緩存就不斷被刷新,迫使 作是純粹的單執行错。方+接刼作,而先前技術對光碟的操 上的標案,從而;;通過共用方式打開光碟 貝見了真正的多執行緒。 緖編號 10 者 20 25Sa,檔案c —~___ 乍内容2 Μ i取檔案d 光碟由於其檔案只能行 零^ 及軟碟有所區別,是通=:取,所以測試方法與硬碟 上來完成的。 11咳取光碟内的檔案並拷貝到硬碟 百先’啟動執行緒10及2°’每個執行緒包括兩個執行 ,47〇 ,、發明說明(13) 丨執行::ΐ t:過紅’如上述表格所示’假設過操作系統的 :選擇執行緒10執行,並通過測試執行緒的 案::制^執行緒10的優先順序;在硬碟内創建一個標 >、、月為f ile System — ΙΟ的臨時目錄,存放測試臨時標案 丨$ p,没定操作時間按為3秒;判斷執行緒的執行時間是 =作操作時間’當前執行時間為缈,執行執行緒ι〇: ,±§買取光碟中的檔案A並寫入硬碟的File System_10 UI =目錄内,然後然後再次判斷執行緒的執行時間是否 :乍,作時間,當前執行時間為2秒,執行執 讀取光碟中的權案B並寫入硬碟的File System—= s: a::錄内,判斷執行緒的執行時間是否操作操 I當可執行時間為3秒’與設定的操作時間相同,該執行緒 |退出CPU ’將CPU時間交給其他測試項。 當檔案操作再次就緒時,其他測試項把CPU時間交 4,饭汉過刼作系統的執行緒管理機制選擇執行緒2 〇執 Γ,並通過測試執行緒的控制機制提高執行緒“的優先順 〔,碟内創建一個檔案明為FUe System —2〇的臨時目 ^枯存放測試臨時檔案C、D;設定操作時間按為3秒;判 匕二的//于時間是否操作操作時間,f前執行時間為 y ’執仃執仃緒20的刼作,讀取光碟中的檔案寫入硬 碟=FU'Syst二_20的臨時目錄内;然後然後再次判斷執 灯'、者的執仃時間是否操作操作時間,當前執行時間為2 :’執行執行緒20的操作’讀取光碟中的標案碰寫入硬 碟的Fiie System_20的臨時目錄内;判斷執行緒的執行時 第17頁 594470 五、發明說明(14) 間是否操作操作時間,當前執行時間為3秒,與設定的操 作時間相同,該執行緒退出CPU,將CPU時間交給其他測試 項。 至此,本次測試過程全部完畢。 以上所述者,僅為本發明其中的較佳實施例而已,並 非用來限定本發明的實施範圍;即凡依本創作申請專利範 圍所作的均等變化與修飾,皆為本創作專利範圍所涵蓋。Widows keeps refreshing the disc drive ^ ’, the system ’s cache is constantly refreshed, forcing it to be a purely single execution error. Fang + continued work, and the previous technology on the operation of the optical disc, so ;; open the disc through a shared method. I saw a real multi-threaded. 10 # 20 25Sa, file c — ~ ___ Contents 2 Μ i fetch files d. The disc can only be zero ^ and the floppy disc is different, it is common =: fetch, so the test method is completed with the hard disc of. 11 Take the file from the CD and copy it to the hard disk Baixian 'Start thread 10 and 2 °' Each thread includes two executions, 47 °, Description of invention (13) 丨 Execution:: ΐ t: Over red 'As shown in the above table' Assuming an operating system: Select thread 10 for execution and pass the test thread :: ^ Thread 10 priority order; create a standard >, and month on the hard disk File System — Temporary directory of ΙΟ, which holds the test temporary bid 丨 $ p, the indefinite operation time is 3 seconds; it is judged that the execution time of the thread is = operation time, the current execution time is 缈, and the execution thread is executed. :, ± § Buy the file A in the disc and write it to the File System_10 UI = directory of the hard disk, and then judge again whether the execution time of the thread is: first, the time, the current execution time is 2 seconds, and the execution read File B in the optical disc and write it to the File System of the hard disc— = s: a :: record, determine whether the execution time of the thread is operating. When the executable time is 3 seconds, it is the same as the set operating time. Threads | Exit CPU 'Leave CPU time to other tests . When the file operation is ready again, the other test items give the CPU time 4 and the thread management mechanism of the fan-man operation system selects the thread 2 〇 Γ, and improves the priority of the thread by testing the thread control mechanism. 〔Create a temporary file named FUe System —2 in the disc to store the test temporary files C and D; set the operation time to 3 seconds; determine whether the operation time is at the second time, before f The execution time is y's execution of the operation 20, read the files in the disc and write them into the temporary directory of the hard disk = FU'Syst 2_20; then judge the execution time of the light 'and the person again. Whether to operate the operation time, the current execution time is 2: 'Run the operation of thread 20' Read the project in the CD and write it into the temporary directory of Fiie System_20 on the hard disk; determine the execution time of the thread Page 17 594470 5 3. Description of the invention: Whether the operation time is operated between (14) and the current execution time is 3 seconds, which is the same as the set operation time. The thread exits the CPU and passes the CPU time to other test items. At this point, the test process is all completed. The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of implementation of the present invention; that is, all equivalent changes and modifications made in accordance with the scope of the patent application for this creation are covered by the scope of the creation patent .
第18頁 594470 圖式簡單說明 第1圖係為本發明之檔案系統的壓力測試方法之總體 流程圖; 第2圖係為本發明所提之提高測試執行緒優先順序之 流程圖; 1 第3圖係為本發明所提之根據該檢測結果及該運行時 間執行該測試執行緒中的檔案操作之流程圖;及 第4圖係為本發明所提之返從該複數個執行緒中分時 交替選取一個當前執行緒之流程圖。 【圖式符號說明】 步驟1 1 0 啟動複數個檔案測試執行緒 步驟1 2 0 由作業系統從該複數個執行緒中分時交替選 取一個當前執行緒 步驟1 3 0 該當前執行緒在選中期間順序執行其測試操 作 步驟1 4 0 提高自身在作業系統的優先執行順序 步驟1 5 0 檢測邏輯驅動器的剩餘儲存空間,設定測試 運行時間 步驟1 6 0 根據檢測結果及運行時間,執行測試執行緒 中的檔案操作 步驟1 7 0 結束測試執行緒 步驟2 1 0 獲取該測試執行緒的編號 步驟2 2 0 根據該編號提高該測試執行緒在作業系統中 的的優先執行順序Page 594470 Brief description of the diagram. Figure 1 is a general flowchart of the stress testing method of the file system of the present invention; Figure 2 is a flowchart of improving the priority of the test thread according to the present invention; Figure 4 is a flowchart of performing file operations in the test thread according to the detection result and the running time according to the present invention; and Figure 4 is a time sharing method from the multiple threads according to the present invention. Alternately select a flowchart of the current thread. [Illustration of graphical symbols] Step 1 1 0 Start a plurality of file test threads Step 1 2 0 The operating system selects a current thread from the plurality of threads alternately at a time Step 1 3 0 The current thread is selected Perform its test operations in sequence during the step 1 4 0 Increase its priority execution order in the operating system Step 1 5 0 Check the remaining storage space of the logical drive and set the test run time Step 1 6 0 Execute the test thread based on the test results and run time Step 1 7 0 End the test thread Step 2 1 0 Get the number of the test thread Step 2 2 0 Increase the priority of the test thread in the operating system according to the number
第19頁 594470 圖式簡單說明 步驟3 1 0 當該邏輯驅動器無剩餘儲存空間時,結束該 測試執行緒 步驟3 2 0 當該邏輯驅動器有剩餘儲存空間,且測試執 行時間在該運行時間内之時,則繼續執行該測試執行緒中 的槽案操作 步驟3 3 0 當該邏輯驅動器有剩餘儲存空間,但測試執 行時間超出該運行時間時,結束該測試執行緒 步驟4 1 0 返回由作業系統從該複數個執行緒中選取一 個當前執行緒之步驟Page 594470 Simple illustration of step 3 1 0 When the logical drive has no remaining storage space, end the test thread. Step 3 2 0 When the logical drive has remaining storage space and the test execution time is within the running time. When the test thread continues to perform the operation step 3 3 0 When the logical drive has remaining storage space, but the test execution time exceeds the running time, end the test thread Step 4 1 0 Return to the operating system Steps to select a current thread from the plurality of threads
第20頁Page 20
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW92112303A TW594470B (en) | 2003-05-06 | 2003-05-06 | Pressure testing method for file system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW92112303A TW594470B (en) | 2003-05-06 | 2003-05-06 | Pressure testing method for file system |
Publications (2)
Publication Number | Publication Date |
---|---|
TW594470B true TW594470B (en) | 2004-06-21 |
TW200424839A TW200424839A (en) | 2004-11-16 |
Family
ID=34076151
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW92112303A TW594470B (en) | 2003-05-06 | 2003-05-06 | Pressure testing method for file system |
Country Status (1)
Country | Link |
---|---|
TW (1) | TW594470B (en) |
-
2003
- 2003-05-06 TW TW92112303A patent/TW594470B/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
TW200424839A (en) | 2004-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10698726B2 (en) | Techniques for switching threads within routes | |
US20120131456A1 (en) | Capture and Playback for GUI-Based Tasks | |
JP4485795B2 (en) | Method and system for scheduling media export | |
JP5260802B2 (en) | Method, system, and computer program product for operating a copy function | |
US6148417A (en) | Method for determining a source of failure during a file system access | |
US9268650B2 (en) | Storage device, controller, and non-transitory computer-readable recording medium for backing up data without lowering I/O capabilities | |
KR101693683B1 (en) | Virtual database rewind | |
JP5186098B2 (en) | Method, system, and computer program for backing up data | |
CN110168507B (en) | Speculative replay of executable code | |
EP0972256B1 (en) | Computer file system providing looped file structure for post-occurrence data collection of asynchronous events | |
CN105354109B (en) | The backup method and device of video monitoring index data | |
US5983368A (en) | Method and system for facilitating hierarchical storage management (HSM) testing | |
US6961812B2 (en) | Universal disk format volumes with variable size | |
US7174359B1 (en) | Apparatus and methods for sequentially scheduling a plurality of commands in a processing environment which executes commands concurrently | |
JP5729479B2 (en) | Virtual tape device and control method of virtual tape device | |
TW594470B (en) | Pressure testing method for file system | |
US20110202903A1 (en) | Apparatus and method for debugging a shared library | |
CN104810037B (en) | Data recording equipment | |
CN117854580B (en) | Method, device, equipment and storage medium for rapidly detecting hard disk bad track | |
JP2008084327A (en) | Method, apparatus, system, program, and recording medium for data backup | |
US10410671B2 (en) | Apparatus and method for recording and erasing user data on a recordable optical disc | |
JPH08272655A (en) | Operating system and file deletion method | |
JPH01144116A (en) | In-operation test system for magnetic disk | |
TWI309006B (en) | System and method for programme dynamically burnt | |
JP2010122906A (en) | Remote backup system and remote backup method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |