TW201721426A - Method for testing a computer system - Google Patents
Method for testing a computer system Download PDFInfo
- Publication number
- TW201721426A TW201721426A TW104141039A TW104141039A TW201721426A TW 201721426 A TW201721426 A TW 201721426A TW 104141039 A TW104141039 A TW 104141039A TW 104141039 A TW104141039 A TW 104141039A TW 201721426 A TW201721426 A TW 201721426A
- Authority
- TW
- Taiwan
- Prior art keywords
- computer system
- specific module
- core
- cores
- computing
- Prior art date
Links
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
本發明係有關於一種檢查電腦系統的方法,尤指一種利用基本輸入輸出系統介面程式達到自動化檢查電腦系統的方法。The present invention relates to a method of inspecting a computer system, and more particularly to a method for automatically inspecting a computer system using a basic input/output system interface program.
產品的成功與否除了與研發技術息息相關之外,亦須要大量的測試以確保產品的穩定性,尤其是要求高穩定性、高信賴度的科技產品,如工業儀器、行動裝置、工作站、個人電腦或伺服器…等產品,對於品管測試的標準即更加嚴格。然而在先前技術當中,完整的品管測試過程可能需要大量時間,並且需要以人力輔佐才能夠完成。舉例來說,測試電腦系統的運算核心數量是否能夠正常的控制時,首先須進入基本輸入輸出系統選取欲檢測的運算核心數量,接著重新開機進入作業系統檢查電腦系統的核心數量是否正確,然後再以人工的方式重新開機進入基本輸入輸出系統以選取下一個欲檢測的運算核心數量,接著重新開機進入作業系統檢查電腦系統的核心數量是否正確…,如此不斷循環直到將所有運算核心數量都檢查完畢。如此的檢查流程不只需要大量的時間,也必須有人力於現場操作,造成品管測試的困難。In addition to being closely related to R&D technology, the success of the product requires a large number of tests to ensure the stability of the product, especially for high-stability, high-reliability technology products such as industrial instruments, mobile devices, workstations, personal computers. Or products such as servers, etc., the standards for quality control testing are more stringent. However, in the prior art, the complete quality control test process may take a lot of time and needs to be assisted by human resources. For example, when testing the number of computing cores of a computer system can be normally controlled, first enter the basic input and output system to select the number of computing cores to be detected, and then reboot into the operating system to check whether the number of cores of the computer system is correct, and then Manually reboot into the basic input and output system to select the next number of computing cores to be detected, then reboot into the operating system to check whether the number of cores in the computer system is correct... and so on until the number of all computing cores is checked. . Such an inspection process requires not only a large amount of time, but also manpower to operate on site, which makes it difficult to conduct quality control tests.
甚至於因為受限於人力及時間的壓力,許多工廠產線無法針對所有產品進行品管測試,而只能抽取少數的樣品來進行品管測試,而造成品管測試的不夠完整的問題。Even because of the pressure of manpower and time, many factory production lines cannot conduct quality control tests for all products, and only a small number of samples can be taken for quality control testing, which is not enough to complete the quality control test.
本發明之一實施例提供一種檢查電腦系統的方法,檢查電腦系統的方法包含啟動電腦系統之作業系統,於作業系統中,經由基本輸入輸出系統介面程式選擇電腦系統之所有特定模組功能,使電腦系統重新開機以致能電腦系統之所有特定模組功能並啟動作業系統,於作業系統中,記錄每一特定模組功能所對應之特定模組暫存器(Model-Specific Register,MSR)的數值,於作業系統中,經由基本輸入輸出系統介面程式選擇電腦系統之所有特定模組功能中的第一特定模組功能,使電腦系統重新開機以失能第一特定模組功能及啟動作業系統,在第一特定模組功能被失能後,對應於第一特定模組功能之第一特定模組暫存器的數值已被對應地更新,且電腦系統之所有特定模組功能中仍具有尚未檢查的第二特定模組功能時,經由基本輸入輸出系統介面程式選擇第二特定模組功能,使電腦系統重新開機以失能第二特定模組功能及啟動作業系統,及在第二特定模組功能被失能後,對應於第二特定模組功能之第二特定模組暫存器的數值已被對應地更新,且電腦系統已無其他未被檢查之特定模組功能時,判定電腦系統通過檢查。An embodiment of the present invention provides a method for inspecting a computer system. The method for inspecting a computer system includes an operating system for starting a computer system. In the operating system, all specific module functions of the computer system are selected through a basic input/output system interface program. The computer system is rebooted to enable all the specific module functions of the computer system and start the operating system. In the operating system, the value of the specific Model-Specific Register (MSR) corresponding to each specific module function is recorded. In the operating system, the first specific module function of all the specific module functions of the computer system is selected through the basic input/output system interface program, so that the computer system is restarted to disable the first specific module function and start the operating system. After the first specific module function is disabled, the value of the first specific module register corresponding to the first specific module function has been updated correspondingly, and all the specific module functions of the computer system still have not yet When the second specific module function is checked, the second specific module is selected via the basic input/output system interface program. a function of restarting the computer system to disable the second specific module function and starting the operating system, and after the second specific module function is disabled, the second specific module corresponding to the second specific module function is temporarily stored The value of the device has been updated correspondingly, and the computer system has passed the check when there is no other module function that has not been checked.
本發明之一實施例提供一種檢查電腦系統的方法,電腦系統包含複數個運算核心,檢查電腦系統的方法包含啟動電腦系統之作業系統,於作業系統中,經由基本輸入輸出系統介面程式選擇電腦系統之第一運算核心數量,第一運算核心數量不大於複數個運算核心的總數量,使電腦系統重新開機以啟動作業系統,在選擇第一運算核心數量並重新啟動作業系統後,複數個運算核心中已有對應於第一運算核心數量之運算核心被致能,且電腦系統仍具有第二運算核心數量尚未被選擇過時,經由基本輸入輸出系統介面程式選擇第二運算核心數量,第二運算核心數量係不大於複數個運算核心的總數量,使電腦系統重新開機以啟動作業系統,及在選擇第二運算核心數量並重新啟動作業系統後,複數個運算核心中已有對應於第二運算核心數量之運算核心被致能,且電腦系統已無尚未被選擇過之運算核心數量時,判定電腦系統通過檢查。An embodiment of the present invention provides a method for inspecting a computer system. The computer system includes a plurality of computing cores. The method for inspecting the computer system includes starting an operating system of the computer system, and selecting a computer system through the basic input/output system interface program in the operating system. The number of the first computing core, the number of the first computing core is not greater than the total number of the plurality of computing cores, so that the computer system is restarted to start the operating system, after selecting the first computing core number and restarting the operating system, the plurality of computing cores The computing core corresponding to the first computing core number is enabled, and the computer system still has the second computing core number not yet selected, and the second computing core number is selected via the basic input/output system interface program, and the second computing core The number is not greater than the total number of the plurality of computing cores, so that the computer system is restarted to start the operating system, and after selecting the second computing core number and restarting the operating system, the plurality of computing cores already correspond to the second computing core. The core of the number of operations is enabled, and the electricity When the system no longer has not yet been selected number of core operation, it is determined by examining the computer system.
第1圖為本發明一實施例之電腦系統100的示意圖。電腦系統100包含處理器110。電腦系統100可透過處理器110啟動基本輸入輸出系統(Basic Input/Output System,BIOS )、一般的作業系統,以及基本輸入輸出系統介面程式,基本輸入輸出系統介面程式可為基本輸入輸出系統的製造廠商所提供之介面程式,例如安邁公司(American Megatrends Inc.,AMI)所提供之程式AMI SCE Utility。基本輸入輸出系統介面程式會與電腦系統100的基本輸入輸出系統相容,因此透過基本輸入輸出系統介面程式,電腦系統100即可在啟動作業系統後,於作業系統中修改原本需在基本輸入輸出系統中才能修改的系統參數。1 is a schematic diagram of a computer system 100 in accordance with an embodiment of the present invention. Computer system 100 includes a processor 110. The computer system 100 can start a basic input/output system (BIOS), a general operating system, and a basic input/output system interface program through the processor 110. The basic input/output system interface program can be used for the manufacture of the basic input/output system. The interface program provided by the manufacturer, such as the program AMI SCE Utility provided by American Megatrends Inc. (AMI). The basic input/output system interface program is compatible with the basic input/output system of the computer system 100. Therefore, through the basic input/output system interface program, the computer system 100 can be modified in the operating system after the startup of the operating system. System parameters that can be modified in the system.
處理器110具有複數個特定模組功能,而使用者可以任意地選擇是否致能部分或全部的特定模組功能。舉例來說,使用者可以選擇是否致能快取記憶體或緩衝記憶體,以及選擇致能的記憶體大小,處理器110提供給使用者的各種選項即對應到各個不同的特定模組功能。為了能夠得知特定模組功能是否正常地被致能或失能,處理器110可包含複數個特定模組暫存器。在第1圖的實施例中,處理器110包含特定模組暫存器(Model-Specific Register,MSR)120A、120B及120C,而特定模組暫存器120A、120B及120C會分別對應到處理器110的特定模組功能130A、130B及130C。The processor 110 has a plurality of specific module functions, and the user can arbitrarily select whether to enable some or all of the specific module functions. For example, the user can select whether to enable the cache memory or the buffer memory, and select the enabled memory size. The various options provided by the processor 110 to the user correspond to different specific module functions. In order to be able to know whether a particular module function is normally enabled or disabled, the processor 110 can include a plurality of specific module registers. In the embodiment of FIG. 1, the processor 110 includes specific Model-Specific Registers (MSRs) 120A, 120B, and 120C, and the specific module registers 120A, 120B, and 120C respectively correspond to the processing. The specific module functions 130A, 130B, and 130C of the device 110.
在本發明的部分實施例中,特定模組暫存器120A、120B及120C之數值與特定模組功能130A、130B及130C之間具有特定的關係,並可由處理器110的製造廠商所定義,因此若將特定模組暫存器120A、120B及120C之數值與處理器110的製造廠商所定義的對應關係相對照,即可得知處理器110致能或失能特定模組功能130A、130B及130C的狀態。In some embodiments of the present invention, the values of the particular module registers 120A, 120B, and 120C have a specific relationship with the particular module functions 130A, 130B, and 130C, and may be defined by the manufacturer of the processor 110. Therefore, if the values of the specific module registers 120A, 120B, and 120C are compared with the corresponding relationships defined by the manufacturer of the processor 110, it can be known that the processor 110 enables or disables the specific module functions 130A, 130B. And the status of 130C.
申言之,在正常的情況下,當電腦系統100將特定模組功能130A由致能改變為失能或由失能改變為致能時,與特定模組功能130A對應之特定模組暫存器120A的數值也會隨之改變,因此透過檢查特定模組暫存器120A的數值是否改變,即可得知電腦系統100是否成功地失能或致能特定模組功能130A。同樣地,透過檢查特定模組暫存器120B或120C的數值是否改變,也可得知電腦系統100是否成功地失能或致能特定模組功能130B或130C。In other words, under normal circumstances, when the computer system 100 changes the specific module function 130A from enable to disable or from disable to enable, the specific module corresponding to the specific module function 130A is temporarily stored. The value of the device 120A will also change accordingly. Therefore, by checking whether the value of the particular module register 120A is changed, it can be known whether the computer system 100 is successfully disabled or enables the specific module function 130A. Similarly, by checking if the value of a particular module register 120B or 120C has changed, it is also known whether the computer system 100 successfully disabled or enabled a particular module function 130B or 130C.
第2圖為檢查電腦系統100之方法200的一實施例之流程圖。方法200包含步驟S210至S274。FIG. 2 is a flow diagram of an embodiment of a method 200 of inspecting computer system 100. Method 200 includes steps S210 through S274.
S210: 啟動電腦系統100之作業系統;S210: Start an operating system of the computer system 100;
S220: 於作業系統中,經由基本輸入輸出系統介面程式選擇電腦系統100之所有特定模組功能130A、130B及130C;S220: in the operating system, select all the specific module functions 130A, 130B, and 130C of the computer system 100 via the basic input/output system interface program;
S230: 使電腦系統100重新開機以致能電腦系統100之所有特定模組功能130A、130B及130C並啟動作業系統;S230: Reboot the computer system 100 to enable all of the specific module functions 130A, 130B, and 130C of the computer system 100 and activate the operating system;
S232: 若電腦系統100可正常開機進入作業系統,則進入步驟S240,否則進入步驟S274;S232: If the computer system 100 can normally boot into the operating system, then proceeds to step S240, otherwise proceeds to step S274;
S240: 於作業系統中,記錄每一特定模組功能130A、130B、130C所對應之特定模組暫存器120A、120B、120C的數值;S240: Record, in the operating system, values of the specific module registers 120A, 120B, and 120C corresponding to each of the specific module functions 130A, 130B, and 130C;
S250: 於作業系統中,經由基本輸入輸出系統介面程式選擇電腦系統100之所有特定模組功能130A、130B及130C中仍被致能的任一特定模組功能;S250: in the operating system, select any specific module function that is still enabled in all the specific module functions 130A, 130B, and 130C of the computer system 100 via the basic input/output system interface program;
S260: 使電腦系統100重新開機以失能前一步驟中被選擇的特定模組功能及啟動作業系統;S260: Reboot the computer system 100 to disable the specific module function selected in the previous step and start the operating system;
S262: 若電腦系統100可正常開機進入作業系統,則進入步驟S264,否則進入步驟S274;S262: If the computer system 100 can normally boot into the operating system, then proceeds to step S264, otherwise proceeds to step S274;
S264: 若對應於被選擇之特定模組功能的特定模組暫存器的數值已被對應地更新,則進入步驟S270,否則進入步驟S274;S264: If the value of the specific module register corresponding to the selected module function has been correspondingly updated, then proceeds to step S270, otherwise proceeds to step S274;
S270: 若電腦系統100之所有特定模組功能130A、130B及130C中仍具有尚未被失能的特定模組功能時,則進入步驟S250,否則進入步驟S272;S270: If all the specific module functions 130A, 130B and 130C of the computer system 100 still have a specific module function that has not been disabled, then proceed to step S250, otherwise proceed to step S272;
S272: 判定電腦系統100通過檢查;S272: determining that the computer system 100 passes the inspection;
S274: 判定電腦系統100未通過檢查。S274: It is determined that the computer system 100 has not passed the inspection.
透過方法200即可檢查電腦系統100是否能夠正常地各個特定模組功能。舉例來說,當利用方法200來檢查電腦系統100時,可先於步驟S210中啟動電腦系統100的作業系統,並透過步驟S220選擇電腦系統100的所有特定模組功能130A、130B及130C。若電腦系統100運作正常,則被選擇的特定模組功能130A、130B及130C會在步驟S230中重新開機之後被致能。若電腦系統100無法正常開機進入作業系統,則在步驟S232當中會被判定進入步驟S274,表示電腦系統100未通過檢查。Method 200 can be used to check whether computer system 100 is functioning properly for each particular module function. For example, when the computer system 100 is inspected by the method 200, the operating system of the computer system 100 can be started in step S210, and all the specific module functions 130A, 130B, and 130C of the computer system 100 are selected through step S220. If the computer system 100 is functioning properly, the selected particular module functions 130A, 130B, and 130C will be enabled after being rebooted in step S230. If the computer system 100 cannot boot into the operating system normally, it is determined in step S232 to proceed to step S274, indicating that the computer system 100 has not passed the inspection.
在本發明的實施例中,電腦系統100在啟動作業系統之前,會先啟動其基本輸入輸出系統,而在步驟S220中,電腦系統100所使用的基本輸入輸出系統介面程式即會與電腦系統100的基本輸入輸出系統相容,因此透過基本輸入輸出系統介面程式,電腦系統100即可在啟動作業系統後,於作業系統中修改原本需在基本輸入輸出系統中才能修改的系統參數。In the embodiment of the present invention, the computer system 100 starts its basic input/output system before starting the operating system, and in step S220, the basic input/output system interface program used by the computer system 100 is associated with the computer system 100. The basic input/output system is compatible, so through the basic input/output system interface program, the computer system 100 can modify the system parameters that can be modified in the basic input/output system in the operating system after starting the operating system.
在步驟S240中,會記錄特定模組暫存器120A、120B及120C的數值,如此一來,在之後的步驟中將特定模組功能130A、130B及130C失能時,即可將特定模組暫存器120A、120B及120C的數值與步驟S240中所記錄的數值相對照,以辨別特定模組暫存器120A、120B及120C的數值是否被對應的更新。In step S240, the values of the specific module registers 120A, 120B, and 120C are recorded, so that when the specific module functions 130A, 130B, and 130C are disabled in the subsequent steps, the specific module can be The values of the registers 120A, 120B, and 120C are compared with the values recorded in step S240 to determine whether the values of the particular module registers 120A, 120B, and 120C are correspondingly updated.
在步驟S250中,使用者可經由基本輸入輸出系統介面程式選擇電腦系統100之所有特定模組功能130A、130B及130C中仍被致能的任一特定模組功能,舉例來說,可以選擇特定模組功能130A。為了使被選擇的特聽模組功能130A失能,在步驟S260中電腦系統100會被重新開機並啟動作業系統。同樣的,若此時電腦系統無法正常開機進入作業系統,則在步驟S262中會判定進入步驟S274,表示電腦系統100未通過檢查。若電腦系統100正常開機進入作業系統,而特定模組功能130A被失能後,則接著在步驟S264當中,會進一步檢查對應於特定模組功能130A的特定模組暫存器120A的數值是否已被對應地更新,亦即在特定模組功能130A失能後,將特定模組暫存器120A的數值與在步驟S240中所記錄之特定模組暫存器120A的數值相比較,若兩者相異,則表示特定模組暫存器120A的數值已被對應地更新。在本發明的部分實施例中,電腦系統100還可以將特定模組暫存器120A與處理器110的製造廠商所定義的對應關係相對照以確認特定模組暫存器120A的數值已被正確地更新。若特定模組暫存器120A的數值並未被對應地更新,則表示電腦系統100可能無法正常控制特定模組功能130A,因此判定電腦系統100未通過檢查。In step S250, the user can select any of the specific module functions that are still enabled in all of the specific module functions 130A, 130B, and 130C of the computer system 100 via the basic input/output system interface program. For example, a specific one can be selected. Module function 130A. In order to disable the selected special module function 130A, the computer system 100 will be rebooted and the operating system will be activated in step S260. Similarly, if the computer system cannot be booted into the operating system at this time, it is determined in step S262 to proceed to step S274, indicating that the computer system 100 has not passed the check. If the computer system 100 is normally booted into the operating system and the specific module function 130A is disabled, then in step S264, it is further checked whether the value of the specific module register 120A corresponding to the specific module function 130A has been Correspondingly updated, that is, after the specific module function 130A is disabled, the value of the specific module register 120A is compared with the value of the specific module register 120A recorded in step S240, if both Different, it means that the value of the specific module register 120A has been updated correspondingly. In some embodiments of the present invention, the computer system 100 can also compare the specific module register 120A with the corresponding relationship defined by the manufacturer of the processor 110 to confirm that the value of the specific module register 120A has been correctly verified. Updated. If the value of the specific module register 120A is not updated correspondingly, it means that the computer system 100 may not be able to properly control the specific module function 130A, and thus it is determined that the computer system 100 has not passed the check.
若特定模組暫存器120A的數值已被對應地更新,則在步驟S270當中會進一步檢查是否還有尚未被檢查特定模組功能,由於特定模組功能130B及130C皆尚未被檢查過,因此方法200會重複步驟S250至S270。在部分實施例中,使用者可依序地選擇特定模組功能130B及130C,並確認特定模組暫存器120B及120C的數值皆可被對應地更新。在確認電腦系統100可正常運作並控制特定模組功能130B及130C之後,若電腦系統100中已無未被檢查之特定模組功能時,則最終在步驟S270中可判定進入步驟S272,表示電腦系統100通過檢查。If the value of the specific module register 120A has been updated correspondingly, it is further checked in step S270 whether there is still a specific module function that has not been checked, since the specific module functions 130B and 130C have not been checked yet, Method 200 repeats steps S250 through S270. In some embodiments, the user can select specific module functions 130B and 130C in sequence, and confirm that the values of the specific module registers 120B and 120C can be updated correspondingly. After confirming that the computer system 100 can operate normally and control the specific module functions 130B and 130C, if there is no specific module function in the computer system 100 that has not been checked, it is finally determined in step S270 to proceed to step S272 to indicate that the computer System 100 passes the inspection.
根據方法200,電腦系統100即可在作業系統中透過基本輸入輸出系統介面程式選擇電腦系統100之所有特定模組功能,而無須在重新開機的過程中切換至基本輸入輸出系統,因此電腦系統100可根據事先編寫好的程式碼執行步驟S210至S270,並達到自動化檢查電腦系統100的功能。申言之,透過方法200即能夠避免先前技術因為需要大量時間及人力而造成品管測試的困難。According to the method 200, the computer system 100 can select all the specific module functions of the computer system 100 through the basic input/output system interface program in the operating system without switching to the basic input/output system during the restarting process, so the computer system 100 Steps S210 to S270 can be performed according to the code written in advance, and the function of the computer system 100 is automatically checked. In other words, the method 200 can avoid the difficulty of the quality control test caused by the prior art because of the large amount of time and manpower required.
第3圖為本發明一實施例之電腦系統300的示意圖。電腦系統300包含處理器310。電腦系統300可透過處理器310啟動基本輸入輸出系統(Basic Input/ Output Operation System,BIOS )、一般的作業系統,以及基本輸入輸出系統介面程式。基本輸入輸出系統介面程式可為基本輸入輸出系統的製造廠商所提供之介面程式,例如安邁公司(American Megatrends Inc.,AMI)所提供之程式AMI SCE Utility。基本輸入輸出系統介面程式會與電腦系統300的基本輸入輸出系統相容,因此透過基本輸入輸出系統介面程式,電腦系統300即可在啟動作業系統後,於作業系統中修改原本需在基本輸入輸出系統中才能修改的系統參數。FIG. 3 is a schematic diagram of a computer system 300 in accordance with an embodiment of the present invention. Computer system 300 includes a processor 310. The computer system 300 can activate a basic input/output operation system (BIOS), a general operating system, and a basic input/output system interface program through the processor 310. The basic I/O system interface program is a programming program provided by the manufacturer of the basic I/O system, such as the program AMI SCE Utility provided by American Megatrends Inc. (AMI). The basic input/output system interface program is compatible with the basic input/output system of the computer system 300. Therefore, through the basic input/output system interface program, the computer system 300 can be modified in the operating system after the startup of the operating system. System parameters that can be modified in the system.
。透過基本輸入輸出系統介面程式,電腦系統300即可在啟動作業系統後,於作業系統中修改原本需在基本輸入輸出系統中才能修改的系統參數。. Through the basic input/output system interface program, the computer system 300 can modify the system parameters that can be modified in the basic input/output system in the operating system after starting the operating system.
處理器310具有複數個運算核心320A、320B、320C及320D,而使用者可以任意地選擇是致能運算核心320A、320B、320C及320D的數量。舉例來說,使用者可以選擇是僅致能運算核心320A、320B、320C及320D中的一個運算核心,或運算核心320A、320B、320C及320D中的三個運算核心。當然,使用者可選擇的運算核心數量不大於處理器310之運算核心320A、320B、320C及320D的總數量,且不可小於1,因此在本實施例中,使用者僅能選擇運算核心數量為1至4。在正常的情況下,使用者選擇欲致能的運算核心數量,並重新開機之後,處理器310中將只有對應數量的運算核心被致能,且電腦系統300仍能維持正常的運作。The processor 310 has a plurality of computing cores 320A, 320B, 320C, and 320D, and the user can arbitrarily select the number of enabled computing cores 320A, 320B, 320C, and 320D. For example, the user may choose to enable only one of the computing cores 320A, 320B, 320C, and 320D, or three of the computing cores 320A, 320B, 320C, and 320D. Of course, the number of computing cores selectable by the user is not greater than the total number of computing cores 320A, 320B, 320C, and 320D of the processor 310, and may not be less than 1. Therefore, in this embodiment, the user can only select the number of computing cores. 1 to 4. Under normal circumstances, after the user selects the number of computing cores to be enabled, and after rebooting, only a corresponding number of computing cores will be enabled in the processor 310, and the computer system 300 can still maintain normal operation.
第4圖為檢查電腦系統300之方法400的一實施例之流程圖。方法400可用來檢查電腦系統300是否能夠正常地選擇欲致能的運算核心數量,以及是否能在致能不同運算核心數量的情況下正常運作。方法400包含步驟S410至S454。FIG. 4 is a flow diagram of an embodiment of a method 400 of inspecting computer system 300. The method 400 can be used to check whether the computer system 300 is capable of properly selecting the number of operational cores to be enabled and whether it can function properly with the number of different computing cores enabled. Method 400 includes steps S410 through S454.
S410: 啟動電腦系統300之作業系統S410: Starting the operating system of the computer system 300
S420: 於作業系統中,經由基本輸入輸出系統介面程式選擇電腦系統300之尚未被選擇過的一運算核心數量;S420: In the operating system, select a number of computing cores of the computer system 300 that have not been selected through the basic input/output system interface program;
S430: 使電腦系統300重新開機以啟動作業系統;S430: Reboot the computer system 300 to start the operating system;
S432: 若電腦系統300可正常開機進入作業系統,則進入步驟S440,否則進入步驟S454;S432: If the computer system 300 can normally boot into the operating system, then proceeds to step S440, otherwise proceeds to step S454;
S440: 於作業系統中,檢查是否僅有對應於被選擇之運算核心數量的運算核心被致能,若是則進入步驟S450,否則進入步驟S454;S440: in the operating system, check whether only the operating core corresponding to the selected number of operating cores is enabled, and if so, proceeds to step S450, otherwise proceeds to step S454;
S450: 若電腦系統300還有尚未被選擇過之運算核心數量,進入步驟S420,否則進入步驟S452;S450: If the computer system 300 has a number of computing cores that have not been selected, proceed to step S420, otherwise proceed to step S452;
S452: 判定電腦系統300通過檢查;S452: determining that the computer system 300 passes the inspection;
S454: 判定電腦系統300未通過檢查。S454: It is determined that the computer system 300 has not passed the inspection.
當利用方法400檢查電腦系統300時,可先於步驟S410中啟動電腦系統300的作業系統,並在步驟S420中透過基本輸入輸出系統介面程式選擇電腦系統300中尚未被選擇過的一運算核心數量,舉例來說,使用者可以先選擇運算核心數量為1,亦即欲將電腦系統300中被致能的運算核心數量設定為1。若電腦系統300運作正常,則電腦系統300在步驟S430中應能夠重新開機並正常地啟動作業系統。若電腦系統100無法正常開機進入作業系統,則在步驟S432中會被判定進入步驟S454,表示電腦系統300未通過檢查。When the computer system 300 is inspected by the method 400, the operating system of the computer system 300 can be started in step S410, and the number of computing cores in the computer system 300 that have not been selected is selected through the basic input/output system interface program in step S420. For example, the user may first select the number of computing cores to be 1, that is, to set the number of computing cores enabled in the computer system 300 to 1. If the computer system 300 is functioning properly, the computer system 300 should be able to reboot and normally start the operating system in step S430. If the computer system 100 cannot boot into the operating system normally, it is determined in step S432 to proceed to step S454, indicating that the computer system 300 has not passed the inspection.
在本發明的實施例中,電腦系統300在啟動作業系統之前,會先啟動其基本輸入輸出系統,而在步驟S420中,電腦系統300所使用的基本輸入輸出系統介面程式即會與電腦系統300的基本輸入輸出系統相容,因此透過基本輸入輸出系統介面程式,電腦系統300即可在啟動作業系統後,於作業系統中修改原本需在基本輸入輸出系統中才能修改的系統參數。In the embodiment of the present invention, the computer system 300 activates its basic input/output system before starting the operating system, and in step S420, the basic input/output system interface program used by the computer system 300 is associated with the computer system 300. The basic input/output system is compatible, so through the basic input/output system interface program, the computer system 300 can modify the system parameters that can be modified in the basic input/output system in the operating system after starting the operating system.
此外,若電腦系統300運作正常,則在重新開機之後,處理器310的運算核心320A、320B、320C及320D中將只有其中一個運算核心會被致能,其他則處於失能狀態,因此在步驟S440中,若實際上電腦系統300中被致能的運算核心數量與在步驟S420中所選擇的運算核心數量1不同時,則判定進入步驟S454,表示電腦系統300未通過檢查。而若實際上電腦系統300中被致能的運算核心數量與在步驟S420中所選擇的運算核心數量1相同,則會進入到步驟S450。In addition, if the computer system 300 is operating normally, only one of the computing cores 320A, 320B, 320C, and 320D of the processor 310 will be enabled after being restarted, and the others are disabled. In S440, if the number of operational cores enabled in the computer system 300 is actually different from the number of operational cores 1 selected in step S420, the determination proceeds to step S454, indicating that the computer system 300 has not passed the check. On the other hand, if the number of operational cores enabled in the computer system 300 is actually the same as the number of operational cores 1 selected in step S420, the process proceeds to step S450.
在步驟S450中,會進一步檢查是否還有尚未被選擇過之運算核心數量,由於運算核心數量2、3及4皆尚未被檢查過,因此方法400會重複步驟S420至S450。在部分實施例中,使用者可依序地選擇運算核心數量為2、3及4,並確認實際上電腦系統300中是否有對應數量的運算核心被致能。在確認電腦系統300在致能各種數量的運算核心的情況下皆能夠正常運作之後,即電腦系統300中已尚未被選擇過之運算核心數量時,最終在步驟S450中即會判定進入步驟S452,表示電腦系統300通過檢查。In step S450, it is further checked whether there are any number of operation cores that have not yet been selected. Since the number of operation cores 2, 3, and 4 have not been checked, the method 400 repeats steps S420 to S450. In some embodiments, the user can sequentially select the number of computing cores to be 2, 3, and 4, and confirm whether a corresponding number of computing cores are actually enabled in the computer system 300. After confirming that the computer system 300 can operate normally after enabling various numbers of computing cores, that is, the number of computing cores that have not been selected in the computer system 300, finally, in step S450, it is determined to proceed to step S452. Indicates that the computer system 300 has passed the inspection.
根據方法400,電腦系統300即可在作業系統中透過基本輸入輸出系統介面程式選擇電腦系統300所欲致能的運算核心數量,而無須在重新開機的過程中切換至基本輸入輸出系統,因此電腦系統300可根據事先編寫好的程式碼執行步驟S410至S450,並達到自動化檢查電腦系統300的功能。申言之,透過方法300即能夠避免先前技術因為需要大量時間及人力而造成品管測試的困難。According to the method 400, the computer system 300 can select the number of computing cores that the computer system 300 desires to be enabled in the operating system through the basic input/output system interface program, without switching to the basic input/output system during the reboot process, so the computer The system 300 can perform steps S410 to S450 according to the previously written code and achieve the function of automatically checking the computer system 300. In other words, the method 300 can avoid the difficulty of the quality control test caused by the prior art because it requires a lot of time and manpower.
在部分的實施例中,當使用者選擇處理器310之運算核心數量為0時,實際上電腦系統300會預設地將全部的運算核心都致能,因此透過將運算核心數量設定為0,並檢查電腦系統300實際上所致能的運算核心數量即可在得知處理器310所包含的運算核心總數量。因此若欲將方法400彈性地運用到各個不同的電腦系統當中時,即可在步驟S420之前增加上述取得處理器310之運算核心總數量的步驟,如此即可確保方法400能夠檢查到處理器310之各個可能的運算核心數量。In some embodiments, when the user selects the number of computing cores of the processor 310 to be 0, the computer system 300 actually enables all the computing cores by default, so by setting the number of computing cores to 0, The total number of operational cores included in the processor 310 can be known by checking the number of operational cores that the computer system 300 actually enables. Therefore, if the method 400 is to be flexibly applied to each of the different computer systems, the step of obtaining the total number of computing cores of the processor 310 may be added before step S420, thus ensuring that the method 400 can check the processor 310. The number of possible computing cores.
另外,在本發明的部分實施例中,電腦系統300亦可支援超執行緒(Hyper Threading,HT)功能,亦即處理器310的每一個運算核心皆整合了兩個邏輯處理單元。申言之,若在電腦系統300致能超執行緒功能之前,實際上電腦系統300顯示被致能的運算核心數量為4,則在電腦系統300致能超執行緒功能之後,實際上電腦系統300顯示被致能的運算核心數量將由4變為8。In addition, in some embodiments of the present invention, the computer system 300 can also support the Hyper Threading (HT) function, that is, each of the computing cores of the processor 310 integrates two logical processing units. In other words, if the computer system 300 displays the number of enabled computing cores before the computer system 300 enables the super-threading function, the computer system 300 actually enables the super-threading function, and then the computer system 300 shows that the number of enabled cores will change from 4 to 8.
針對電腦系統300可支援超執行緒功能的情況,只要在方法400之步驟S420之前,先執行致能電腦系統300之超執行緒功能的步驟,並在之後的步驟S440中檢查是否僅有對應於被選擇之運算核心數量的運算核心被致能時,檢查是否已有被選擇之運算核心數量之兩倍的運算核心被致能,即能夠利用方法400檢查電腦系統300在致能超執行緒功能後的運作是否正常。舉例來說,在致能電腦系統300之超執行緒功能後,若於步驟S420當中選擇運算核心數量為1,則在正常的情況下,在步驟S440當中,電腦系統300實際上被致能的運算核心數量應為1的兩倍。換言之,若在步驟S440中,電腦系統300實際上被致能的運算核心數量並非2,則方法400會判定進入步驟S454,表示電腦系統300未通過檢查。For the case where the computer system 300 can support the hyper-thread function, the steps of enabling the hyper-thread function of the computer system 300 are performed before the step S420 of the method 400, and in the subsequent step S440, it is checked whether there is only corresponding to When the operation core of the selected number of operation cores is enabled, it is checked whether the operation core having twice the number of selected operation cores is enabled, that is, the method 400 can be used to check that the computer system 300 is enabled to perform the super-thread function. After the operation is normal. For example, after the super-thread function of the computer system 300 is enabled, if the number of operation cores is selected to be 1 in step S420, then in a normal case, in step S440, the computer system 300 is actually enabled. The number of computing cores should be twice that of 1. In other words, if the number of operational cores that the computer system 300 is actually enabled in step S440 is not two, the method 400 proceeds to step S454, indicating that the computer system 300 has not passed the check.
此外,在本發明的部分實施例中,亦可在致能電腦系統300之超執行緒功能之前,執行步驟S420至S450以判斷電腦系統300是否能通過檢查,並在確認電腦系統300能夠正常地選擇欲致能的運算核心數量,並能夠在致能不同運算核心數量的情況下正常運作之後,致能電腦系統300之超執行緒功能,接著再重複執行步驟S420至S450以判斷電腦系統300是否能夠在致能超執行緒功能的情況下通過檢查。In addition, in some embodiments of the present invention, before the super-thread function of the computer system 300 is enabled, steps S420 to S450 may be performed to determine whether the computer system 300 can pass the check, and confirm that the computer system 300 can normally Selecting the number of computing cores to be enabled, and enabling the super-threading function of the computer system 300 after the normal operation of the number of different computing cores is enabled, and then repeating steps S420 to S450 to determine whether the computer system 300 is Can pass the check if the super-thread function is enabled.
綜上所述,透過本發明之實施例所提供的方法,即能夠在作業系統當中,透過基本輸入輸出系統介面程式選擇電腦系統300所欲檢查的項目,而無須在重新開機的過程中切換至基本輸入輸出系統,因此可根據事先編寫好的程式碼執行本發明之實施例所提供方法的步驟,並達到自動化檢查電腦系統的功能,進而避免先前技術因為需要大量時間及人力而造成品管測試的困難。 以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。In summary, the method provided by the embodiment of the present invention can select an item to be checked by the computer system 300 through the basic input/output system interface program in the operating system without switching to the process of restarting. The basic input and output system, so that the steps of the method provided by the embodiment of the present invention can be executed according to the code prepared in advance, and the function of the computer system can be automatically checked, thereby avoiding the quality control of the prior art due to the large amount of time and manpower required. Difficulties. The above are only the preferred embodiments of the present invention, and all changes and modifications made to the scope of the present invention should be within the scope of the present invention.
100、300‧‧‧電腦系統
110、310‧‧‧處理器
120A、120B、120C‧‧‧特定模組暫存器
130A、130B、130C‧‧‧特定模組功能
320A、320B、320C、320D‧‧‧運算核心
200、400‧‧‧方法
S210至S274、S410至S454‧‧‧步驟100, 300‧‧‧ computer system
110, 310‧‧‧ processor
120A, 120B, 120C‧‧‧Specific module register
130A, 130B, 130C‧‧‧ specific module functions
320A, 320B, 320C, 320D‧‧‧ computing core
200, 400‧‧‧ method
S210 to S274, S410 to S454‧‧
第1圖為本發明一實施例之電腦系統的示意圖。 第2圖為檢查第1圖電腦系統之方法的一實施例之流程圖。 第3圖為本發明另一實施例之電腦系統的示意圖。 第4圖為檢查第3圖電腦系統之方法的一實施例之流程圖。FIG. 1 is a schematic diagram of a computer system according to an embodiment of the present invention. Figure 2 is a flow chart of an embodiment of a method of inspecting the computer system of Figure 1. FIG. 3 is a schematic diagram of a computer system according to another embodiment of the present invention. Figure 4 is a flow chart of an embodiment of a method of inspecting the computer system of Figure 3.
200‧‧‧方法 200‧‧‧ method
S210至S274‧‧‧步驟 Steps S210 to S274‧‧
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW104141039A TWI563381B (en) | 2015-12-08 | 2015-12-08 | Method for testing a computer system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW104141039A TWI563381B (en) | 2015-12-08 | 2015-12-08 | Method for testing a computer system |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI563381B TWI563381B (en) | 2016-12-21 |
TW201721426A true TW201721426A (en) | 2017-06-16 |
Family
ID=58227466
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW104141039A TWI563381B (en) | 2015-12-08 | 2015-12-08 | Method for testing a computer system |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI563381B (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6950962B2 (en) * | 2001-10-12 | 2005-09-27 | Hewlett-Packard Development Company, L.P. | Method and apparatus for kernel module testing |
US7322029B2 (en) * | 2003-05-08 | 2008-01-22 | American Megatrends, Inc. | Method and system for recovering program code in a computer system |
TWI254883B (en) * | 2004-10-15 | 2006-05-11 | Hon Hai Prec Ind Co Ltd | Method and system for checking the bios rom data |
TW201015296A (en) * | 2008-10-09 | 2010-04-16 | Inventec Corp | Method for auto-testing environment variable setting |
-
2015
- 2015-12-08 TW TW104141039A patent/TWI563381B/en active
Also Published As
Publication number | Publication date |
---|---|
TWI563381B (en) | 2016-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7908518B2 (en) | Method, system and computer program product for failure analysis implementing automated comparison of multiple reference models | |
US9747192B2 (en) | Automated operating system installation on multiple drives | |
US10776129B2 (en) | Method and apparatus for controlling a startup bootstrap program of an intelligent TV set | |
US9329959B2 (en) | Device and method for performing regression testing on bios boot information | |
KR20090118863A (en) | Reducing power-on time by simulating operating system memory hot add | |
US9645911B2 (en) | System and method for debugging firmware/software by generating trace data | |
WO2016206514A1 (en) | Startup processing method and device | |
US20140129821A1 (en) | Test system and method for computer | |
JP2018077835A (en) | System on chip integrity verification method and system | |
US8117430B2 (en) | Boot test system and method thereof | |
US20060036910A1 (en) | Automated testing framework for event-driven systems | |
US9639345B2 (en) | Methods and apparatuses for providing framework for selective execution of application features | |
US20200294587A1 (en) | Performing a test of memory components with fault tolerance | |
US20160246709A1 (en) | Source code unit testing using an indexing tool | |
US8762781B2 (en) | Method and apparatus useful in manufacturing test case operations | |
US10963371B1 (en) | Testing integration and automation system | |
CN113315675B (en) | White box switch U-Boot automatic testing method, system and storage medium | |
CN113377586B (en) | Automatic detection method and device for server and storage medium | |
CN110737985A (en) | Running data verification method and device, computer equipment and readable storage medium | |
CN112256560A (en) | Application program testing method and device and electronic equipment | |
TW201721426A (en) | Method for testing a computer system | |
US8990624B2 (en) | Emulator verification system, emulator verification method | |
CN110908725A (en) | Application program starting method and device, electronic equipment and readable medium | |
US20170153957A1 (en) | Method for testing a computer system with a basic input/output system interface program | |
TWI726434B (en) | Control method for solving abnormal operation of me |