TWI875600B - System and method for collecting execution information of hyper-threading in different states - Google Patents
System and method for collecting execution information of hyper-threading in different states Download PDFInfo
- Publication number
- TWI875600B TWI875600B TW113120042A TW113120042A TWI875600B TW I875600 B TWI875600 B TW I875600B TW 113120042 A TW113120042 A TW 113120042A TW 113120042 A TW113120042 A TW 113120042A TW I875600 B TWI875600 B TW I875600B
- Authority
- TW
- Taiwan
- Prior art keywords
- state
- hyperthread
- operation information
- central processing
- processing unit
- Prior art date
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
本發明係有關於一種運行信息收集系統及方法,尤其是指一種超執行緒處於不同狀態下之運行信息收集系統及方法。The present invention relates to a system and method for collecting operation information, and more particularly to a system and method for collecting operation information of a hyperthread in different states.
執行緒(thread)是作業系統進行運算排程的最小單位,並且運行於處理器核心中。在先前技術中,由於每一處理器核心僅包含一條執行緒,因此在第一條指令執行完畢之前,無法同時執行第二條執行緒。A thread is the smallest unit for scheduling operations in an operating system and runs in a processor core. In the prior art, since each processor core only contains one thread, a second thread cannot be executed simultaneously before the first instruction is completed.
然而,不是所有指令都會佔滿處理器的運算資源,因此英特爾提出了超執行緒(hyper-threading, HT)技術,在中央處理器(central processing unit, CPU)進入超執行緒開啟狀態後,每一處理器核心可以提供兩條平行處理執行緒,在運算資源充足的情況下,執行更多指令。However, not all instructions will occupy the processor's computing resources, so Intel proposed the hyper-threading (HT) technology. After the central processing unit (CPU) enters the hyper-threading state, each processor core can provide two parallel processing threads to execute more instructions when computing resources are sufficient.
對於系統廠來說,往往需要購買大量的中央處理器並且將其應用於自家產品中,而在購買後亦需要花費大量時間收集運行信息,一來是確認中央處理器是否能正確在超執行緒開啟狀態與超執行緒關閉狀態之間來回切換,也就是確認中央處理器是否故障而需要更換,二來是確認自家產品的運行在中央處理器分別位於超執行緒開啟狀態與超執行緒關閉狀態時是否皆符合預期。System manufacturers often need to purchase a large number of CPUs and apply them to their own products. After the purchase, they also need to spend a lot of time collecting operating information. First, they need to confirm whether the CPU can correctly switch between the hyperthreading on state and the hyperthreading off state, that is, to confirm whether the CPU is faulty and needs to be replaced. Second, they need to confirm whether the operation of their own products meets expectations when the CPU is in the hyperthreading on state and the hyperthreading off state.
然而,在先前技術中,缺乏中央處理單元在超執行緒開啟狀態與超執行緒關閉狀態切換的同時收集運行信息的系統,也就是說,操作者需要一邊操作中央處理單元進入超執行緒開啟狀態或超執行緒關閉狀態,一邊進行對應狀態的運行信息收集,不但需要大量的步驟,亦需要花費大量的時間。However, in the prior art, there is a lack of a system for collecting operating information while the central processing unit is switching between the hyperthreaded on state and the hyperthreaded off state. In other words, the operator needs to operate the central processing unit to enter the hyperthreaded on state or the hyperthreaded off state while collecting the operating information of the corresponding state, which not only requires a large number of steps, but also takes a lot of time.
有鑒於在先前技術中,普遍存在耗費大量時間進行運行信息收集的問題。本發明之主要目的在於提供一種超執行緒處於不同狀態下之運行信息收集系統及方法,係透過設定超執行緒開關參數,用以使狀態判斷模組將超執行緒開啟信號或超執行緒關閉信號發送至中央處理單元,藉以使中央處理單元進入超執行緒開啟狀態或超執行緒關閉狀態,再利用收集模組與儲存模組收集開啟狀態運行信息或關閉狀態運行信息並加以儲存,據以縮短運行信息收集流程而解決上述問題。In view of the fact that it generally takes a lot of time to collect operation information in the prior art, the main purpose of the present invention is to provide a system and method for collecting operation information of a hyperthread in different states, which is to set the hyperthread switch parameter so that the state judgment module sends a hyperthread on signal or a hyperthread off signal to the central processing unit, so that the central processing unit enters the hyperthread on state or the hyperthread off state, and then use the collection module and the storage module to collect the on state operation information or the off state operation information and store it, thereby shortening the operation information collection process and solving the above problem.
據此,本發明為解決先前技術之問題所採用之第一種必要技術手段係為提供一種超執行緒處於不同狀態下之運行信息收集系統(以下簡稱「運行信息收集系統」),係運行於一運算裝置。運算裝置包含一中央處理單元(central processing unit, CPU)。中央處理單元係受操作地在一超執行緒開啟狀態與一超執行緒關閉狀態之間切換。Accordingly, the first necessary technical means adopted by the present invention to solve the problems of the prior art is to provide a system for collecting operation information of hyperthreads in different states (hereinafter referred to as "operation information collection system"), which is operated on a computing device. The computing device includes a central processing unit (CPU). The central processing unit is operated to switch between a hyperthread on state and a hyperthread off state.
運行信息收集系統包含一收集模組、一設定介面、一儲存模組與一狀態判斷模組。收集模組係用以在超執行緒開啟狀態時收集中央處理單元之一開啟狀態運行信息,並用以在超執行緒關閉狀態時收集中央處理單元之一關閉狀態運行信息。The operation information collection system includes a collection module, a setting interface, a storage module and a state judgment module. The collection module is used to collect the operation information of the central processing unit in the open state when the hyperthread is in the open state, and is used to collect the operation information of the central processing unit in the closed state when the hyperthread is in the closed state.
設定介面係受操作地將一超執行緒開關參數設定為一開啟狀態參數或一關閉狀態參數。儲存模組包含一信息儲存單元與一配置文件儲存單元。The setting interface is operated to set a hyperthread switch parameter to an on state parameter or a off state parameter. The storage module includes an information storage unit and a configuration file storage unit.
信息儲存單元係在超執行緒開啟狀態時接收開啟狀態運行信息後加以儲存,並在超執行緒關閉狀態時接收關閉狀態運行信息後加以儲存。配置文件儲存單元係儲存有一配置文件,配置文件係儲存藉由設定介面所設定之超執行緒開關參數。The information storage unit receives and stores the on-state operation information when the hyperthread is in the on-state, and receives and stores the off-state operation information when the hyperthread is in the off-state. The configuration file storage unit stores a configuration file, and the configuration file stores the hyperthread switch parameters set through the configuration interface.
狀態判斷模組係自配置文件讀取超執行緒開關參數,在超執行緒開關參數為開啟狀態參數時,將一超執行緒開啟信號發送至中央處理單元,使中央處理單元進入超執行緒開啟狀態,並在超執行緒開關參數為關閉狀態參數時,將一超執行緒關閉信號發送至中央處理單元,使中央處理單元進入超執行緒關閉狀態。The state judgment module reads the hyperthread switch parameter from the configuration file, and when the hyperthread switch parameter is an on state parameter, sends a hyperthread on signal to the central processing unit, so that the central processing unit enters the hyperthread on state, and when the hyperthread switch parameter is an off state parameter, sends a hyperthread off signal to the central processing unit, so that the central processing unit enters the hyperthread off state.
以上述必要技術手段為基礎,可再衍生出以下附屬技術手段,較佳者,運算裝置可為桌上型電腦、筆記型電腦、工業電腦、平板電腦、伺服器或手機。較佳者,狀態判斷模組可為基本輸入輸出系統(Basic Input/Output System, BIOS)或統一可延伸韌體介面(Unified Extensible Firmware Interface, UEFI)。Based on the above necessary technical means, the following additional technical means can be derived. Preferably, the computing device can be a desktop computer, a laptop computer, an industrial computer, a tablet computer, a server or a mobile phone. Preferably, the status judgment module can be a Basic Input/Output System (BIOS) or a Unified Extensible Firmware Interface (UEFI).
較佳者,開啟狀態運行信息與關閉狀態運行信息皆可包含運行核心數,運行頻率與廠商名稱。較佳者,配置文件可受加密,且運行信息收集系統更可包含一解密判斷模組,係在判斷出配置文件受加密時,將一解密信號傳送至配置文件儲存單元,用以解密配置文件,供該狀態判斷模組判斷解密後之該配置文件中之該超執行緒開關參數。Preferably, both the on-state operation information and the off-state operation information may include the number of operating cores, the operating frequency and the manufacturer name. Preferably, the configuration file may be encrypted, and the operation information collection system may further include a decryption determination module, which, when determining that the configuration file is encrypted, transmits a decryption signal to the configuration file storage unit to decrypt the configuration file, so that the state determination module can determine the hyperthread switch parameter in the decrypted configuration file.
較佳者,運行信息收集系統更可包含一重啟判斷模組,係用以判斷是否重啟運算裝置,並在判斷為重啟該運算裝置時將一重啟信號傳送至中央處理單元,用以使運算裝置重新啟動。Preferably, the operation information collection system may further include a restart determination module for determining whether to restart the computing device, and when it is determined that the computing device is to be restarted, a restart signal is sent to the central processing unit to restart the computing device.
本發明為解決先前技術之問題所採用之另外一種必要技術手段係為提供一種超執行緒處於不同狀態下之運行信息收集方法(以下簡稱「運行信息收集方法」),係利用上述運行信息收集系統加以實施,並且包含步驟(a)至步驟(c)。Another necessary technical means adopted by the present invention to solve the problems of the prior art is to provide a method for collecting operation information of a hyperthread in different states (hereinafter referred to as "operation information collection method"), which is implemented using the above-mentioned operation information collection system and includes steps (a) to (c).
首先,步驟(a)係啟動運算裝置,並利用狀態判斷模組判斷超執行緒開關參數為開啟狀態參數或關閉狀態參數。First, step (a) is to start the computing device and use the state determination module to determine whether the hyperthread switch parameter is an on state parameter or a off state parameter.
接著,步驟(b)係在步驟(a)判斷出超執行緒開關參數為開啟狀態參數時,利用狀態判斷模組將超執行緒開啟信號發送至中央處理單元,使中央處理單元進入超執行緒開啟狀態,並且利用收集模組收集中央處理單元之開啟狀態運行信息,並將開啟狀態運行信息儲存於信息儲存單元。Next, in step (b), when it is determined in step (a) that the hyperthread switch parameter is an on-state parameter, the state determination module is used to send a hyperthread on-signal to the central processing unit, so that the central processing unit enters the hyperthread on-state, and the collection module is used to collect the on-state operation information of the central processing unit, and the on-state operation information is stored in the information storage unit.
最後,步驟(c)係在步驟(a)判斷出超執行緒開關參數為關閉狀態參數時,利用狀態判斷模組將超執行緒關閉信號發送至中央處理單元,使中央處理單元進入超執行緒關閉狀態,並且利用收集模組收集中央處理單元之關閉狀態運行信息,並將關閉狀態運行信息儲存於信息儲存單元。Finally, in step (c), when it is determined in step (a) that the hyperthread switch parameter is a closed state parameter, the state determination module is used to send a hyperthread closed signal to the central processing unit, so that the central processing unit enters the hyperthread closed state, and the collection module is used to collect the closed state operation information of the central processing unit, and the closed state operation information is stored in the information storage unit.
以上述必要技術手段為基礎,可再衍生出以下附屬技術手段,較佳者,步驟(a)可包含一步驟(a1),係在運行信息收集系統之解密判斷模組判斷出配置文件受加密時,利用解密判斷模組將一解密信號傳送至配置文件儲存單元,用以解密配置文件,供該狀態判斷模組判斷解密後之該配置文件中之該超執行緒開關參數。Based on the above necessary technical means, the following subsidiary technical means can be derived. Preferably, step (a) can include a step (a1), which is when the decryption judgment module of the operation information collection system determines that the configuration file is encrypted, the decryption judgment module transmits a decryption signal to the configuration file storage unit to decrypt the configuration file for the state judgment module to determine the hyperthread switch parameters in the decrypted configuration file.
承上所述,步驟(a)更可包含一步驟(a2),係利用設定介面將超執行緒開關參數設定為開啟狀態參數與關閉狀態參數。As mentioned above, step (a) may further include a step (a2), which is to use a setting interface to set the hyperthread switch parameter to an on state parameter and a off state parameter.
較佳者,運行信息收集方法在步驟(b)或步驟(c)後更包含一步驟(d),係在運行信息收集系統之重啟判斷模組在判斷重啟該運算裝置時,利用該重啟判斷模組將一重啟信號傳送至該中央處理單元,使該運算裝置重新啟動並且返回步驟(a) 並在重啟判斷模組判斷出不重啟該運算裝置時,結束該步驟(d)。Preferably, the operation information collection method further includes a step (d) after step (b) or step (c), wherein when the restart determination module of the operation information collection system determines to restart the computing device, the restart determination module transmits a restart signal to the central processing unit, so that the computing device restarts and returns to step (a) and when the restart determination module determines not to restart the computing device, the step (d) is terminated.
綜合以上所述,本發明所提供之超執行緒處於不同狀態下之運行信息收集系統及方法係透過設定超執行緒開關參數,用以使狀態判斷模組將超執行緒開啟信號或超執行緒關閉信號發送至中央處理單元,藉以使中央處理單元進入超執行緒開啟狀態或超執行緒關閉狀態,再利用收集模組與儲存模組收集開啟狀態運行信息或關閉狀態運行信息並加以儲存,據以縮短運行信息收集流程而解決上述問題。In summary, the system and method for collecting operation information of a hyperthread in different states provided by the present invention is to set the hyperthread switch parameter so that the state judgment module sends a hyperthread on signal or a hyperthread off signal to the central processing unit, so that the central processing unit enters the hyperthread on state or the hyperthread off state, and then uses the collection module and the storage module to collect the on state operation information or the off state operation information and store it, thereby shortening the operation information collection process and solving the above-mentioned problem.
本創作所採用的具體實施例,將藉由以下之實施例及圖式作進一步之說明。The specific implementation examples adopted in this creation will be further explained through the following implementation examples and drawings.
由於本發明所提供之超執行緒處於不同狀態下之運行信息收集系統及方法,可廣泛運用於各種運算裝置,故在此不再一一贅述,僅列舉其中較佳的一個實施例來加以具體說明,且此實施例僅用以方便、明晰地輔助說明本發明實施例的目的與功效。Since the system and method for collecting operation information of hyperthreads in different states provided by the present invention can be widely used in various computing devices, they will not be described one by one here. Only a preferred embodiment is listed for specific explanation, and this embodiment is only used to conveniently and clearly assist in explaining the purpose and effect of the embodiment of the present invention.
請參閱第一圖,第一圖係顯示本發明所提供之超執行緒處於不同狀態下之運行信息收集系統之系統方塊圖。如第一圖所示,一種超執行緒處於不同狀態下之運行信息收集系統(以下簡稱「運行信息收集系統」)100係運行於一運算裝置200。Please refer to the first figure, which is a system block diagram of the hyperthread operation information collection system provided by the present invention in different states. As shown in the first figure, a hyperthread operation information collection system in different states (hereinafter referred to as "operation information collection system") 100 is running on a
在本發明中,運算裝置200可為桌上型電腦、筆記型電腦、工業電腦、平板電腦、伺服器或手機。運算裝置200包含一中央處理單元(central processing unit, CPU)201。中央處理單元201係受操作地在一超執行緒開啟狀態與一超執行緒關閉狀態之間切換。In the present invention, the
超執行緒(hyper-threading, HT)技術係由英特爾公司所提出,使一個物理運算核心可以提供兩個執行緒用於平行處理指令,充分利用運算核心之運算資源,也可以將其看作為兩個虛擬運算核心。在中國大陸又稱其為超線程技術。而超執行緒技術之詳細結構與工作原理係為先前技術,在本實施例中不再予以贅述。Hyper-threading (HT) technology was proposed by Intel Corporation, which enables one physical computing core to provide two threads for parallel processing of instructions, making full use of the computing resources of the computing core, and can also be regarded as two virtual computing cores. In mainland China, it is also called hyperthreading technology. The detailed structure and working principle of hyperthreading technology are prior arts and will not be elaborated in this embodiment.
運行信息收集系統100包含一收集模組1、一設定介面2、一儲存模組3、一狀態判斷模組4、一解密判斷模組5與一重啟判斷模組6。收集模組1係用以在超執行緒開啟狀態時以一收集信號S1收集中央處理單元201之一開啟狀態運行信息,並用以在超執行緒關閉狀態以收集信號S1收集中央處理單元201之一關閉狀態運行信息。The operation
開啟狀態運行信息與關閉狀態運行信息皆包含運行核心數、運行頻率與廠商名稱。在超執行緒開啟狀態時,由於一個物理運算核心包含兩個虛擬運算核心,因此中央處理單元201於超執行緒開啟狀態時之運行核心數係為中央處理單元201於超執行緒關閉狀態時之運行核心數的兩倍。Both the on-state running information and the off-state running information include the number of running cores, the running frequency, and the vendor name. When the hyperthreading is on, since one physical computing core includes two virtual computing cores, the number of running cores of the
另外,若是給中央處理單元201下達負載較重的運算指令,則中央處理單元201於超執行緒開啟狀態時的運行頻率會明顯低於中央處理單元201於超執行緒關閉狀態時的運行頻率。In addition, if a heavy-load computing instruction is issued to the
反過來說,若是給中央處理單元201下達負載較輕的運算指令,則運行頻率則可以維持固定。在其他實施例中,開啟狀態運行信息與關閉狀態運行信息可以包含其他與中央處理單元201相關之參數。設定介面2係受操作地將一超執行緒開關參數設定為一開啟狀態參數或一關閉狀態參數。在實務上,可以分別將開啟狀態參數或一關閉狀態參數定義為1與0,分別代表著開啟與關閉狀態。此外,在本發明中,設定介面2可為手動設定介面或自動設定介面。在設定介面2為手動設定介面時,一操作者可以手動設定超執行緒開關參數,通常手動設定介面係為螢幕中顯示之使用者畫面。在設定介面2為自動設定介面時,超執行緒開關參數可以透過程式腳本自動設定。On the other hand, if a lightly loaded computing instruction is issued to the
儲存模組3包含一信息儲存單元31與一配置文件儲存單元32。信息儲存單元31係在超執行緒開啟狀態時以一儲存信號S2接收開啟狀態運行信息後加以儲存,並在超執行緒關閉狀態時以一儲存信號S2接收該關閉狀態運行信息後加以儲存。在本發明中,信息儲存單元31係為硬碟中之資料文件夾,並且可以對應不同運行信息而分別存放於不同名稱之資料文件夾中。The
配置文件儲存單元32係儲存有一配置文件,配置文件係儲存藉由設定介面2所設定之超執行緒開關參數。在本發明中,配置文件儲存單元32係為主機板之記憶體晶片。The configuration
狀態判斷模組4自配置文件讀取超執行緒開關參數,在超執行緒開關參數為開啟狀態參數時,將一超執行緒開啟信號S3發送至中央處理單元201,使中央處理單元201進入超執行緒開啟狀態,並在超執行緒開關參數為關閉狀態參數時,將一超執行緒關閉信號S4發送至中央處理單元,使中央處理單元201進入超執行緒關閉狀態。The state judgment module 4 reads the hyperthread switch parameter from the configuration file, and when the hyperthread switch parameter is an on state parameter, sends a hyperthread on signal S3 to the
在本發明中,狀態判斷模組4可為基本輸入輸出系統(Basic Input/Output System, BIOS)或統一可延伸韌體介面(Unified Extensible Firmware Interface, UEFI)。基本輸入輸出系統與統一可延伸韌體介面為主機板韌體的兩種類型,定義了運算裝置200如何開機,從哪個硬碟開機,並且皆為先前技術,在本實施例中不再予以贅述。In the present invention, the state determination module 4 can be a Basic Input/Output System (BIOS) or a Unified Extensible Firmware Interface (UEFI). The Basic Input/Output System and the Unified Extensible Firmware Interface are two types of motherboard firmware, which define how the
解密判斷模組5係在判斷出配置文件受加密時,將一解密信號S5傳送至配置文件儲存單元32,用以解密配置文件。不僅是超執行緒的開關與否,配置文件係儲存有各式能影響中央處理單元201運行表現的參數,因此在大多數情況,配置文件會受加密保護,而解密信號S5係對應地為解密用的密碼。When the
重啟判斷模組6係用以判斷是否重啟運算裝置200,並在判斷為重啟運算裝置200時,將一重啟信號S6發送至中央處理單元201,用以使運算裝置200重新啟動。The
請參閱第二圖,第二圖係顯示本發明所提供之超執行緒處於不同狀態下之運行信息收集方法之步驟流程圖,並請一併參閱第一圖。如第二圖所示,超執行緒處於不同狀態下之運行信息收集方法(以下簡稱「運行信息收集方法」)係利用運行信息收集系統100加以實施,並且包含步驟S110至S220。Please refer to FIG. 2, which is a flowchart showing the steps of the method for collecting operation information of a hyperthread in different states provided by the present invention, and please refer to FIG. 1 together. As shown in FIG. 2, the method for collecting operation information of a hyperthread in different states (hereinafter referred to as "the method for collecting operation information") is implemented using the operation
首先,步驟S110係啟動運算裝置200。接著,步驟S120係利用解密判斷模組5判斷配置文件是否受加密。配置文件是否加密請參閱上述解密判斷模組5段落之說明。若配置文件受加密,步驟S130係利用解密判斷模組5將解密信號S5傳送至配置文件儲存單元32,並且解密配置文件。First, step S110 is to start the
若文件未受加密或已解密完成,步驟S140係利用設定介面2將超執行緒開關參數設定為開啟狀態參數或關閉狀態參數。接著,步驟S150係利用狀態判斷模組4判斷超執行緒開關參數是否為開啟狀態參數。If the file is not encrypted or has been decrypted, step S140 is to set the hyperthread switch parameter to an on state parameter or a off state parameter using the setting
在步驟S150判斷超執行緒開關參數為開啟狀態參數時,步驟S160係利用狀態判斷模組4將超執行緒開啟信號S3發送至中央處理單元201,使中央處理單元201進入超執行緒開啟狀態。When the hyperthread switch parameter is determined to be an on state parameter in step S150, step S160 utilizes the state determination module 4 to send the hyperthread on signal S3 to the
然後,步驟S170係利用收集模組1收集中央處理單元201之開啟狀態運行信息,並將開啟狀態運行信息儲存於信息儲存單元31。Then, step S170 is to utilize the collection module 1 to collect the opening state operation information of the
最後,步驟S180係利用重啟判斷模組6判斷是否重啟運算裝置200,若為是,利用重啟判斷模組6將一重啟信號S6發送至中央處理單元201,用以使運算裝置重新啟動而返回步驟S110,若為否,結束步驟S180。Finally, step S180 utilizes the
回到步驟S150,在步驟S150判斷超執行緒開關參數不為開啟狀態參數時,也就是說,此時超執行緒開關參數係為關閉狀態參數而進入步驟S190。步驟S190係利用狀態判斷模組4將超執行緒關閉信號S4發送至中央處理單元201,使中央處理單元201進入超執行緒關閉狀態。Returning to step S150, when step S150 determines that the hyperthread switch parameter is not an on state parameter, that is, the hyperthread switch parameter is a off state parameter at this time, the process proceeds to step S190. Step S190 utilizes the state determination module 4 to send the hyperthread off signal S4 to the
接著,步驟S200係利用收集模組1收集中央處理單元201之關閉狀態運行信息,並將關閉狀態運行信息儲存於信息儲存單元31。Next, step S200 utilizes the collection module 1 to collect the shutdown state operation information of the
最後,步驟S210係利用重啟判斷模組6判斷是否重啟運算裝置200,若為是,利用重啟判斷模組6將一重啟信號S6發送至中央處理單元201,用以使運算裝置重新啟動而返回步驟S110,若為否,結束步驟S210。Finally, step S210 utilizes the
在步驟S170與步驟S200中,為了防止搞混,可以在每次儲存運行信息(包含開啟狀態運行信息與關閉狀態運行信息)時,先清空信息儲存單元31(在本實施例中係為清空資料文件夾)。此外,由於在本實施例中信息儲存單元31為資料文件夾,運行信息收集系統100更可包含一資料文件夾檢測模組(圖未示),用以在檢測出資料文件夾未創建時,創建資料文件夾用以儲存開啟狀態運行信息或關閉狀態運行信息。In step S170 and step S200, in order to prevent confusion, each time the operation information (including the open state operation information and the closed state operation information) is stored, the
在步驟S180與步驟S210中,重啟判斷模組6係可手動地或自動地判斷是否重啟運算裝置200。在手動地進行判斷時,可由操作者判斷目前收集之運行信息是否滿足運行信息收集需求,舉例來說,若此次運行信息收集流程(步驟S110至步驟S180)中僅收集開啟狀態運行信息,操作者可決定重啟運算裝置200並於下一輪運行信息收集流程中利用設定介面2將超執行緒開關參數設定為關閉狀態參數而後收集關閉狀態運行信息。In step S180 and step S210, the
在自動地進行判斷時,可於程式腳本內設定執行的次數,舉例來說,在執行到步驟S180或步驟S210時,且重啟判斷模組6判斷執行次數尚未符合程式腳本內設定執行的次數時,將重啟信號S6發送至中央處理單元201而重啟運算裝置200並返回步驟S110,如此一來可以自動化收集所需次數的運行信息而節省大量時間。When automatically determining, the number of executions can be set in the program script. For example, when executing to step S180 or step S210, and the
此外,也可於程式腳本中設定需要收集的運行信息種類,舉例來說在執行到步驟S180時,且重啟判斷模組6判斷出目前僅收集開啟狀態運行信息時,將重啟信號S6發送至中央處理單元201而重啟運算裝置200並返回步驟S110,並於步驟S140時透過設定介面2將超執行緒開關參數設定為關閉狀態參數而收集關閉狀態運行信息,如此一來亦可以自動化收集所需的運行信息種類而節省大量時間。In addition, the types of operation information that need to be collected can also be set in the program script. For example, when executing to step S180, and the
綜合以上所述,由於在本發明所提供之超執行緒處於不同狀態下之運行信息收集系統及方法,係透過設定超執行緒開關參數,用以使狀態判斷模組4將超執行緒開啟信號S3或超執行緒關閉信號S4發送至中央處理單元201,藉以使中央處理單元201進入超執行緒開啟狀態或超執行緒關閉狀態,再利用收集模組1與儲存模組3收集開啟狀態運行信息或關閉狀態運行信息並加以儲存,據以縮短運行信息收集流程而解決上述問題。In summary, the system and method for collecting operation information of a hyperthread in different states provided by the present invention sets the hyperthread switch parameter so that the state judgment module 4 sends the hyperthread on signal S3 or the hyperthread off signal S4 to the
藉由以上較佳具體實施例之詳述,係希望能更加清楚描述本發明之特徵與精神,而並非以上述所揭露的較佳具體實施例來對本發明之範疇加以限制。相反地,其目的是希望能涵蓋各種改變及具相等性的安排於本發明所欲申請之專利範圍的範疇內。The above detailed description of the preferred specific embodiments is intended to more clearly describe the features and spirit of the present invention, but is not intended to limit the scope of the present invention by the preferred specific embodiments disclosed above. On the contrary, the purpose is to cover various changes and arrangements with equivalents within the scope of the patent application for the present invention.
100:運行信息收集系統 200:運算裝置 201:中央處理單元 1:收集模組 2:設定介面 3:儲存模組 31:信息儲存單元 32:配置文件儲存單元 4:狀態判斷模組 5:解密判斷模組 6:重啟判斷模組 S1:收集信號 S2:儲存信號 S3:超執行緒開啟信號 S4:超執行緒關閉信號 S5:解密信號 S6:重啟信號 S110~S210:流程步驟 100: Operation information collection system 200: Computing device 201: Central processing unit 1: Collection module 2: Setting interface 3: Storage module 31: Information storage unit 32: Configuration file storage unit 4: State judgment module 5: Decryption judgment module 6: Restart judgment module S1: Collection signal S2: Storage signal S3: Hyperthread opening signal S4: Hyperthread closing signal S5: Decryption signal S6: Restart signal S110~S210: Process steps
第一圖係顯示本發明所提供之超執行緒處於不同狀態下之運行信息收集系統之系統方塊圖;以及 第二圖係顯示本發明所提供之超執行緒處於不同狀態下之運行信息收集方法之步驟流程圖。 The first figure is a system block diagram showing the operation information collection system provided by the present invention when the hyperthread is in different states; and The second figure is a step flow chart showing the operation information collection method provided by the present invention when the hyperthread is in different states.
100:運行信息收集系統 100: Operation information collection system
200:運算裝置 200: Computing device
201:中央處理單元 201: Central processing unit
1:收集模組 1: Collection module
2:設定介面 2: Setting interface
3:儲存模組 3: Storage module
31:信息儲存單元 31: Information storage unit
32:配置文件儲存單元 32: Configuration file storage unit
4:狀態判斷模組 4: Status judgment module
5:解密判斷模組 5: Decryption judgment module
6:重啟判斷模組 6: Restart the judgment module
S1:收集信號 S1: Collect signals
S2:儲存信號 S2: Store signal
S3:超執行緒開啟信號 S3: Super thread start signal
S4:超執行緒關閉信號 S4: Super thread shutdown signal
S5:解密信號 S5: Decryption signal
S6:重啟信號 S6: Restart signal
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW113120042A TWI875600B (en) | 2024-05-30 | 2024-05-30 | System and method for collecting execution information of hyper-threading in different states |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW113120042A TWI875600B (en) | 2024-05-30 | 2024-05-30 | System and method for collecting execution information of hyper-threading in different states |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TWI875600B true TWI875600B (en) | 2025-03-01 |
| TW202546636A TW202546636A (en) | 2025-12-01 |
Family
ID=95830521
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW113120042A TWI875600B (en) | 2024-05-30 | 2024-05-30 | System and method for collecting execution information of hyper-threading in different states |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI875600B (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060080660A1 (en) * | 2004-10-07 | 2006-04-13 | Dell Products L.P. | System and method for disabling the use of hyper-threading in the processor of a computer system |
| EP2388700A2 (en) * | 2010-05-18 | 2011-11-23 | Kaspersky Lab Zao | Systems and methods for policy-based program configuration |
| US20160246647A1 (en) * | 2015-02-19 | 2016-08-25 | Oracle International Corporation | Adaptive Contention-Aware Thread Placement for Parallel Runtime Systems |
| TW202223653A (en) * | 2020-09-25 | 2022-06-16 | 美商英特爾股份有限公司 | Device, system and method to determine a structure of a crash log record |
-
2024
- 2024-05-30 TW TW113120042A patent/TWI875600B/en active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060080660A1 (en) * | 2004-10-07 | 2006-04-13 | Dell Products L.P. | System and method for disabling the use of hyper-threading in the processor of a computer system |
| EP2388700A2 (en) * | 2010-05-18 | 2011-11-23 | Kaspersky Lab Zao | Systems and methods for policy-based program configuration |
| US20160246647A1 (en) * | 2015-02-19 | 2016-08-25 | Oracle International Corporation | Adaptive Contention-Aware Thread Placement for Parallel Runtime Systems |
| TW202223653A (en) * | 2020-09-25 | 2022-06-16 | 美商英特爾股份有限公司 | Device, system and method to determine a structure of a crash log record |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11023589B2 (en) | Secure booting of virtualization managers | |
| AU2020202180B2 (en) | Memory allocation techniques at partially-offloaded virtualization managers | |
| US11429414B2 (en) | Virtual machine management using partially offloaded virtualization managers | |
| US7574627B2 (en) | Memory dump method, memory dump program and computer system | |
| JP2010086364A (en) | Information processing device, operation state monitoring device and method | |
| CN115951949B (en) | BIOS configuration parameter recovery method and device and computing equipment | |
| TWI875600B (en) | System and method for collecting execution information of hyper-threading in different states | |
| CN107704399A (en) | A kind of method and apparatus of data storage | |
| TW202546636A (en) | System and method for collecting execution information of hyper-threading in different states | |
| US9959225B2 (en) | Computer apparatus and control method of computer apparatus | |
| KR20030031782A (en) | Data backup method in warm start of imbedded system | |
| JP3900097B2 (en) | Multiprocessor system, computer performance adjustment program | |
| CN121092206A (en) | Data processing methods, apparatus, electronic devices and storage media | |
| JP2020086872A (en) | Debug system, bios, information processor, and debug method | |
| JPH0756655A (en) | Initializing device for interface part |