Server system control method, server system, device and storage medium

Through the control module and the dual CPU module, dynamically switch the CPU working mode, the problem of reduced reliability and stability of the server system after CPU failure is solved, CPU fault isolation and load balancing are realized, and the system reliability and stability are improved. .

CN118915893APending Publication Date: 2024-11-08GUANGDONG HONGJUN MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410935496.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The existing server system needs to restart the redundant CPU after the CPU failure, resulting in reduced system reliability and stability.

Method used

Connect the control module to the dual CPU module to obtain the CPU signal, determine the status and level status of the CPU to be connected, dynamically switch the working mode of the CPU, realize the fault isolation and load balancing of the CPU, and ensure that the system fails when one CPU fails, the other is the other when another CPU fails. The CPU can continue to work.

Benefits of technology

It improves the reliability and stability of the server system, avoids system downtime caused by CPU failure, realizes the CPU's work alone or simultaneously, and reduces resource waste and operation costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118915893A_ABST
    Figure CN118915893A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and discloses a control method of a server system, the server system, a device and a storage medium, the method is applied to a control module, the control module is connected with a double-CPU module through a multiplexing module, the double-CPU module comprises a first CPU and a second CPU, and the first CPU is connected with the second CPU through the multiplexing module. The method comprises the following steps: determining a CPU to be accessed according to a first signal of a first CPU and a second signal of a second CPU; setting a level state of the CPU to be accessed; determining the working mode of the dual-CPU module according to the level state of the to-be-accessed CPU; when it is determined that the to-be-accessed CPU comprises a first CPU and a second CPU, if the level state of the first CPU is set to be a low level and the level state of the second CPU is set to be a high level, determining that the working mode of the dual-CPU module is a first mode; in the first mode, the first CPU is a main CPU, the second CPU is a slave CPU, the first power module is controlled to supply power to the first CPU, and the second power module is controlled to supply power to the second CPU. According to the invention, the stability and reliability of the server system can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a control method of a server system, a server system, a device and a storage medium. Background Art

[0002] As the complexity and importance of enterprise business and Internet services continue to increase, extremely high requirements are placed on the reliability and stability of server systems. Any downtime or performance degradation may lead to huge economic losses and reduced customer trust. For this reason, redundant CPUs are usually set up to enhance system reliability and stability. However, after a CPU fails, it is necessary to shut down the CPU and restart the redundant CPU, but the above shutdown and restart process will reduce system reliability and stability.

[0003] Therefore, how to improve the stability and reliability of the server system has become a technical problem that technical personnel in this field need to solve urgently. Summary of the invention

[0004] In view of this, the present invention provides a control method of a server system, a server system, a device and a storage medium to solve the problem of low stability and reliability of the server system in the related art.

[0005] In a first aspect, the present invention provides a control method for a server system, which is applied to a control module, wherein the control module is connected to a first power module and a second power module respectively, and the control module is connected to a dual CPU module through a multiplexing module, and the dual CPU module includes a first CPU and a second CPU. The control method for the server system includes:

[0006] Acquire a first signal of the first CPU and a second signal of the second CPU;

[0007] Determine a CPU to be connected according to a first signal of the first CPU and a second signal of the second CPU; the CPU to be connected includes at least a part of the first CPU or the second CPU;

[0008] Setting the level state of the CPU to be connected; the level state includes a low level or a high level;

[0009] Determine the working mode of the dual CPU module according to the level state of the CPU to be connected;

[0010] Among them, when it is determined that the CPU to be connected includes the first CPU and the second CPU according to the first signal of the first CPU and the second signal of the second CPU, if the level state of the first CPU is set to a low level and the level state of the second CPU is set to a high level, the working mode of the dual CPU module is determined to be the first mode; in the first mode, the first CPU is the master CPU and the second CPU is the slave CPU, and the first power supply module is controlled to supply power to the first CPU, and the second power supply module is controlled to supply power to the second CPU.

[0011] In an optional implementation manner, determining the CPU to be connected according to the first signal of the first CPU and the second signal of the second CPU includes:

[0012] Determine the waiting state of the first CPU according to the first signal of the first CPU, and determine the waiting state of the second CPU according to the second signal of the second CPU; the waiting state includes a normal state or an abnormal state;

[0013] When the waiting state of the first CPU is a normal state and the waiting state of the second CPU is a normal state, determining the first CPU and the second CPU as the waiting CPUs;

[0014] When the waiting state of the first CPU is a normal state and the waiting state of the second CPU is an abnormal state, determining the first CPU as the waiting CPU;

[0015] When the waiting-for-access state of the first CPU is an abnormal state and the waiting-for-access state of the second CPU is a normal state, the second CPU is determined as the waiting-for-access CPU.

[0016] In an optional implementation, when it is determined that the CPU to be connected includes the first CPU and the second CPU according to the first signal of the first CPU and the second signal of the second CPU, setting the level state of the CPU to be connected includes:

[0017] By setting the level state of the second CPU to a low level and the level state of the first CPU to a high level, the working mode of the dual CPU module is determined to be the second mode; in the second mode, the second CPU is the master CPU, the first CPU is the slave CPU, the first power supply module is controlled to supply power to the first CPU, and the second power supply module is controlled to supply power to the second CPU.

[0018] In an optional implementation, when it is determined that the CPU to be connected includes the first CPU according to the first signal of the first CPU and the second signal of the second CPU, setting the level state of the CPU to be connected includes:

[0019] Set the level state of the first CPU to a low level; wherein, when the level state of the first CPU is a low level, determine that the working mode of the dual CPU module is a third mode, in which the first CPU is the main CPU, and controls the first power supply module to supply power to the first CPU.

[0020] In an optional implementation, when it is determined that the CPU to be connected includes the second CPU according to the first signal of the first CPU and the second signal of the second CPU, setting the level state of the CPU to be connected includes:

[0021] Set the level state of the second CPU to a low level; wherein, when the level state of the second CPU is a low level, determine that the working mode of the dual CPU module is a fourth mode, in which the second CPU is the main CPU, and controls the second power supply module to supply power to the second CPU.

[0022] In an optional embodiment, the method further includes:

[0023] Determine the startup quantity according to the load condition of the server system; the startup quantity is the number of CPUs to be started;

[0024] The level state of the CPU to be connected is adjusted according to the startup quantity to switch the working mode of the dual CPU module.

[0025] In a second aspect, the present invention provides a server system, comprising:

[0026] Dual CPU modules, control module, first power module, second power module and multiplexing module;

[0027] The dual CPU module includes a first CPU and a second CPU;

[0028] The control module is connected to a first power module and a second power module respectively, the first power module is used to supply power to the first CPU, and the second power module is used to supply power to the second CPU;

[0029] The control module is connected to the dual CPU module via the multiplexing module, and the control module is used to execute the steps of the method described in any one of claims 1 to 6.

[0030] In an optional implementation, the multiplexing module is connected to the dual CPU module via a first bus and a second bus respectively, and the multiplexing module is connected to the control module via a first bus and a second bus respectively.

[0031] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the control method of the server system of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0032] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for controlling a server system according to the first aspect or any corresponding embodiment thereof.

[0033] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the method for controlling a server system according to the first aspect or any corresponding embodiment thereof.

[0034] The technical solution provided by the present invention has the following technical effects:

[0035] According to the technical solution of the present invention, the control module is connected to the dual CPU module through a multiplexing module. The above design allows the control module to selectively communicate with the first CPU or the second CPU, thereby realizing dynamic CPU switching and load balancing, and having higher flexibility. By obtaining the first signal of the first CPU and the second signal of the second CPU, the CPU to be connected can be determined, and one CPU can be determined as the CPU to be connected, or two CPUs can be determined as the CPU to be connected at the same time. In the present invention, the master-slave relationship in the CPU to be connected can be determined by setting the level state of the CPU to be connected. When the CPU to be connected includes the first CPU and the second CPU at the same time, one of the CPUs can be set as the master CPU and the other as the slave CPU. In addition, in the present invention, the control module can control the first power supply module to supply power to the first CPU, and control the second power supply module to supply power to the second CPU, and can control the power supply state of the two power supplies separately, or can control the two CPUs separately. When the first CPU and the second CPU are working at the same time, if one of the CPUs fails, the other CPU can continue to work directly, and the failed CPU will not affect the normal CPU, so that fault isolation is realized, and the two CPUs can work separately or simultaneously. Based on the technical solution of the present invention, the reliability and stability of the server system can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0037] Figure 1 is a flow chart of a control method of a server system according to an embodiment of the present invention;

[0038] Figure 2 is a structural block diagram of a conventional server system according to an embodiment of the present invention;

[0039] Figure 3 is a structural block diagram of a server system according to an embodiment of the present invention;

[0040] Figure 4 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0042] The embodiments of the present invention provide a control method of a server system, a server system, a device and a storage medium to solve the problem of low stability and reliability of the above-mentioned server system.

[0043] According to an embodiment of the present invention, an embodiment of a control method for a server system is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0044] Figure 1 FIG. 1 is a flow chart of a control method of a server system according to an embodiment of the present invention. Figure 1As shown, a control method for a server system provided in an embodiment of the present invention is applied to a control module, the control module is connected to a dual CPU module through a multiplexing module, the dual CPU module includes at least two CPUs, the control module is respectively connected to a power module corresponding to each CPU in the dual CPU module, and one CPU corresponds to one power module.

[0045] like Figure 2 As shown, the traditional rack server system is generally dual-channel, that is, it includes two CPUs, namely CPU1 and CPU2, as well as a baseboard management controller (Baseboard Management Controller, BMC), USB interface and USB devices, SATA interface and SATA devices, PCIe interface and PCIe devices, etc. In a traditional dual-channel server, if one CPU fails to work properly due to some reason, the entire system often fails to work properly, especially the server CPU with a platform control center (Platform Controller Hub, PCH). If the CPU connected to the PCH fails, the entire server system will fail as a whole and cannot work. Since the BMC is usually mounted under the PCH through USB, PCIe and eSPI / LPC, USB devices, SATA devices (such as SATA hard disks, etc.), PCIe devices (such as onboard network cards, etc.) are also mounted under the PCH, and the PCH is mounted under CPU1 through a direct media interface (Direct Media Interface, DMI), so especially when CPU1 fails, the entire system often fails to boot normally.

[0046] The present invention does not use PCH, but uses a multiplexing module, that is, a MUX / DEMUX circuit module. The control module, that is, the BMC, can be connected to the first power module and the second power module respectively. The control module is connected to the first CPU and the second CPU of the dual CPU module through the multiplexing module, and can realize the separate control of the first CPU (CPU1) and the second CPU (CPU2), and can realize the purpose that the server system can work normally as long as any one of the two CPUs works normally.

[0047] In the present invention, taking the control method of the server system applied to a control module, the control module is connected to a dual CPU module through a multiplexing module, the dual CPU module includes a first CPU and a second CPU, and the control module is respectively connected to a first power module corresponding to the first CPU in the dual CPU module and a second power module corresponding to the second CPU in the dual CPU module as an example, the control method of the server system includes:

[0048] S101: Acquire a first signal from a first CPU and a second signal from a second CPU.

[0049] In this embodiment, the control module obtains a first signal of the first CPU and a second signal of the second CPU. The first signal of the first CPU includes at least one signal for determining the waiting state of the first CPU. The second signal of the second CPU includes at least one signal for determining the waiting state of the second CPU. As an example, the first signal of the first CPU includes an in-place detection signal and a heartbeat signal, and the second signal of the second CPU includes an in-place detection signal and a heartbeat signal, the in-place detection signal is used to determine whether the CPU is in place, and the heartbeat signal is used to determine whether the CPU is faulty. A certain frequency hopping signal may also be used, and the present invention does not limit the specific types of the first signal and the second signal.

[0050] S102: Determine a CPU to be connected according to a first signal of the first CPU and a second signal of the second CPU.

[0051] In this embodiment, the CPU to be connected includes at least a part of the first CPU or the second CPU. The CPU to be connected is a CPU that can work normally after starting the access multiplexing module. In this embodiment, S102 determines the CPU to be connected according to the first signal of the first CPU and the second signal of the second CPU, specifically including: the control module determines the waiting state of the first CPU according to the first signal of the first CPU, and determines the waiting state of the second CPU according to the second signal of the second CPU. The waiting state includes a normal state or an abnormal state. The control module can determine the CPU to be connected according to the waiting state of the first CPU and the waiting state of the second CPU.

[0052] In this embodiment, the control module determines the waiting state of the first CPU according to the first signal of the first CPU, specifically including: when the control module detects that any one of the first signals of the first CPU is abnormal, the control module determines that the first CPU is in an abnormal state; when it detects that all the first signals of the first CPU are normal, the control module determines that the first CPU is in a normal state.

[0053] In the present embodiment, the control module determines the waiting state of the second CPU according to the second signal of the second CPU, which specifically includes: when the control module detects that any one of the second signals of the second CPU is abnormal, the control module determines that the second CPU is in an abnormal state, and when it detects that all the second signals of the second CPU are normal, the control module determines that the second CPU is in a normal state. As an example, in the second signal of the second CPU, the in-place detection signal is normal, and the heartbeat signal is abnormal, that is, the second CPU is in place, but a fault occurs, and the second CPU is determined to be in an abnormal state. Specifically, for the heartbeat signal, if the control module does not receive the heartbeat signal within the preset time, it can be determined that the heartbeat signal is abnormal. In the present embodiment, the preset time can be set and modified according to actual needs.

[0054] In this embodiment, the control module determines the CPU to be connected according to the waiting state of the first CPU and the waiting state of the second CPU, including three situations:

[0055] 1) When the waiting state of the first CPU is a normal state and the waiting state of the second CPU is a normal state, the first CPU and the second CPU may be determined as the waiting CPUs.

[0056] 2) When the waiting state of the first CPU is a normal state and the waiting state of the second CPU is an abnormal state, the first CPU may be determined as the waiting CPU.

[0057] 3) When the waiting state of the first CPU is an abnormal state and the waiting state of the second CPU is a normal state, the second CPU may be determined as the waiting CPU.

[0058] S103: Setting the level state of the CPU to be connected.

[0059] In this embodiment, the level state includes a low level or a high level.

[0060] In this embodiment, the control module is connected to the dual CPU module via the CPU master-slave monitoring and control module, so the control module can set the level state of the CPU to be connected.

[0061] In this embodiment, the master-slave relationship of the CPU to be connected can be set by setting the level state of the CPU to be connected. Any CPU can be used as the master CPU. The CPU has an M / S pin, and the M / S pin is responsible for setting which of the first CPU (CPU1) and the second CPU (CPU2) is the master CPU and which is the slave CPU. In a system, only one of the two CPUs can be used as the master CPU, and the other CPU can be used as the slave CPU. Both CPUs cannot be the master CPU or both CPUs cannot be slave CPUs. When the control module sets the M / S pin of a CPU to a low level, this CPU is the master CPU. When the control module sets the M / S pin of a CPU to a high level, this CPU acts as a slave CPU.

[0062] like Figure 3 As shown in the figure, the BMC can control the M / S pin levels of CPU1 and CPU2 through the CPU master-slave monitoring and control module, thereby selecting CPU1 as the master CPU or CPU2 as the master CPU. The CPU1 and CPU2 M / S pin level combinations and their meanings are shown in Table 1:

[0063] Table 1 CPU1 and CPU1 M / S pin level combination

[0064]

[0065] As shown in Table 1, a level state of 0 indicates a low level, and a level state of 1 indicates a high level. It is not allowed for the level states of CPU1 and CPU2 to be both low level 0 or both high level 1. The level states of CPU1 and CPU2 need to be reset to determine the master-slave relationship of CPU1 and CPU2.

[0066] S104: Determine the working mode of the dual CPU module according to the level status of the CPU to be connected.

[0067] In this embodiment, the control module can determine the working mode of the dual CPU module according to the level status of the CPU to be connected.

[0068] In this embodiment, for the three situations of the CPU to be connected, the level state of the CPU to be connected includes four setting situations:

[0069] For the first case of the CPU to be connected (the CPU to be connected includes the first CPU and the second CPU), the level state of the CPU to be connected includes the following two settings:

[0070] 1) Set the level state of the first CPU to a low level and the level state of the second CPU to a high level.

[0071] 2) Set the level state of the second CPU to a low level and the level state of the first CPU to a high level.

[0072] The second situation of the CPU to be connected (the CPU to be connected includes the first CPU) corresponds to the third setting situation of the level state of the CPU to be connected:

[0073] 3) Set the level state of the first CPU to a low level.

[0074] The third situation of the CPU to be connected (the CPU to be connected includes the second CPU) corresponds to the fourth setting situation of the level state of the CPU to be connected:

[0075] 4) Set the level state of the second CPU to a low level.

[0076] In this embodiment, the four settings of the level state of the CPU to be connected correspond to the four working modes of the dual CPU module in sequence. The working modes of the dual CPU module include the first mode, the second mode, the third mode and the fourth mode.

[0077] In this embodiment, when it is determined that the CPU to be connected includes the first CPU and the second CPU according to the first signal of the first CPU and the second signal of the second CPU, if the level state of the first CPU is set to a low level and the level state of the second CPU is set to a high level, the working mode of the dual CPU module is determined to be the first mode. In the first mode, the first CPU is the master CPU and the second CPU is the slave CPU, and the first power supply module is controlled to supply power to the first CPU, and the second power supply module is controlled to supply power to the second CPU.

[0078] In an optional implementation, when it is determined that the CPU to be connected includes the first CPU and the second CPU according to the first signal of the first CPU and the second signal of the second CPU, S103 sets the level state of the CPU to be connected, including:

[0079] The control module sets the level state of the second CPU to a low level and the level state of the first CPU to a high level, and determines that the working mode of the dual CPU module is the second mode. In the second mode, the second CPU is the master CPU, the first CPU is the slave CPU, and the control module controls the first power module to supply power to the first CPU, and controls the second power module to supply power to the second CPU.

[0080] In an optional implementation, when it is determined according to the first signal of the first CPU and the second signal of the second CPU that the CPU to be connected includes the first CPU, S103 sets the level state of the CPU to be connected, including:

[0081] The control module sets the level state of the first CPU to a low level. When the level state of the first CPU is a low level, the working mode of the dual CPU module is determined to be a third mode. In the third mode, the first CPU is the main CPU, and the control module controls the first power module to supply power to the first CPU.

[0082] In an optional implementation, when it is determined according to the first signal of the first CPU and the second signal of the second CPU that the CPU to be connected includes the second CPU, S103 sets the level state of the CPU to be connected, including:

[0083] The control module sets the level state of the second CPU to a low level. When the level state of the second CPU is a low level, the working mode of the dual CPU module is determined to be a fourth mode. In the fourth mode, the second CPU is the main CPU, and the control module controls the second power supply module to supply power to the second CPU.

[0084] In this embodiment, the working modes of the first CPU and the second CPU are shown in Table 2:

[0085] Table 2 Working modes of the first CPU and the second CPU

[0086]

[0087] In this embodiment, the working mode of the dual CPU module can be controlled to switch between the four working modes of the dual CPU module according to the waiting state of the first CPU and the waiting state of the second CPU in the dual CPU module. For example, at the beginning, both the first CPU and the second CPU are in working state (the CPU is connected to the load for data transmission and processing). If the waiting state of the first CPU is changed to an abnormal state, that is, a failure occurs, the second CPU continues to work. It is equivalent to switching from the first mode or the second mode to the fourth mode. Based on the technical solution of the present invention, after one of the CPUs fails, the other CPU does not need to be restarted and can continue to work, and the entire server system does not have a state where all CPUs are offline.

[0088] In this embodiment, at least two connection links are included between the control module and the multiplexing module, and between the multiplexing module and the dual CPU module. As an example, for example, two links are formed by a first bus (PCIe bus) and a second bus (eSPI / LPC bus). In addition to the above-mentioned method of directly offline the faulty CPU, in the event of a special fault, for example, when the connection bus between the modules in the server system fails, the CPU on the link where the failed connection bus is located does not need to be offline, and can still be online through other links. For example, in the fourth mode, the first CPU is offline, the second CPU is in working state, and neither of the two links of the second CPU fails. If the first bus between the modules fails at this time, the second CPU on the link where the first bus is located does not need to be offline, and data communication can still be performed through the link formed by the second bus, and the second CPU is still online. Based on the technical solution of the present invention, when the above situation occurs, the second CPU is still online, which improves the reliability of the server system. It should be noted that the corresponding technical solution when a special fault occurs in other working modes is similar to the technical solution corresponding to the special fault in the fourth mode above, and will not be repeated here.

[0089] The technical solution of the present invention sets the above-mentioned four working modes, sets the ability to switch between the above-mentioned four working modes, and sets at least two connection links between the control module and the multiplexing module, and between the multiplexing module and the dual CPU module. The purpose is to ensure that each CPU in the dual CPU module is online, reduce the CPU offline, and avoid CPU restart.

[0090] In addition, considering that the first power module and the second power module provide power to the first CPU and the second CPU respectively, the control module (BMC) controls whether the first power module and the second power module provide power to the CPU respectively through the first power module enable control signal and the second power module enable control signal. Therefore, when the server system workload is light and the two CPUs do not need to work at the same time (for example, at night), the control module (BMC) can shut down one of the two CPUs so that it does not start, so as to save power resources and avoid waste.

[0091] In an optional implementation, the control method of the server system further includes:

[0092] The control module determines the startup quantity according to the load condition of the server system, and adjusts the level state of the CPU to be connected according to the startup quantity to switch the working mode of the dual CPU module.

[0093] In this embodiment, the startup number is the number of CPUs to be started, and the startup number is greater than 1 and less than the total number of CPUs in the dual CPU module.

[0094] In this embodiment, taking the dual CPU module including two CPUs (the first CPU and the second CPU) as an example, when the user decides to shut down a CPU, it is necessary to set the M / S pin level of the CPU that continues to work to a low level through the control module (BMC), that is, it is necessary to set it as the main CPU. When it is necessary to improve the system performance, it can be switched to a working mode in which two CPUs work simultaneously, and the two CPUs working simultaneously can improve the system performance. As an example, the control module can determine that the startup number is 1 when the load of the server system is less than the preset value. When the load of the server system is greater than or equal to the preset value, the startup number is determined to be 2. Before adjusting the level state of the CPU to be connected according to the startup number, if no CPU is in the working state, it is necessary to determine the number of the CPU to be connected and the number of the CPU to be connected according to the above steps S101 and S102. If the startup number is less than the number of the CPU to be connected at this time, for example: the startup number is 1, the CPU to be connected includes the first CPU (slave CPU) and the second CPU (master CPU), and the number of the CPU to be connected is 2. At this time, it is necessary to select a CPU from the CPU to be connected, and usually the master CPU in the CPU to be connected is selected as the CPU to be started. To facilitate the explanation of the adjustment of the power state of the CPU to be connected, the first CPU is selected as the CPU to be started in the example, and the power state of the first CPU needs to be adjusted to a low level, and the second CPU is controlled to go offline, and the second power module is controlled to stop supplying power to the second CPU. The above adjustment is equivalent to switching the working mode of the dual CPU module from the second mode to the third mode.

[0095] In this embodiment, the working mode of the dual CPU module can be switched according to the load of the server system. Under low load conditions, using only one CPU can significantly reduce the overall power consumption, and the unused CPU can enter a low power mode or be completely shut down, thereby saving power and reducing heat generation. Reducing the CPU usage helps to extend the service life of the hardware and reduce wear and aging. The dual CPU configuration allows switching to another CPU when one CPU fails, such as switching from the third mode to the fourth mode, thereby improving the redundancy and reliability of the system. Even when running in a single CPU mode, the other CPU can be used as a backup, and the other CPU can be maintained or updated without affecting the operation of the system. Dynamically adjusting the number of CPUs can optimize resource allocation according to real-time needs and avoid resource waste. For example, at night or during low business activity, only one CPU may be needed. During peak hours, both CPUs can be put into use. For those application environments with large load fluctuations, dynamically switching the working mode of the dual CPU module can avoid unnecessary hardware investment and operating costs while maintaining high performance.

[0096] The technical solution based on the present invention can improve the reliability and stability of the server system, reduce resource waste, save power resources, reduce operation and maintenance costs, and improve the overall performance of the system. Even under low load conditions, the reliability and stability of the server system can still be guaranteed.

[0097] It should be noted that the contents not described in detail in the specification of the present invention belong to the common knowledge of those skilled in the art.

[0098] In the present embodiment, a server system is also provided, in which a control module is used to implement the above-mentioned embodiment and optional implementation modes, which have been described and will not be repeated here. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the modules described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0099] The present invention designs a server system, wherein a dual CPU module in the server system includes at least two CPUs, and a control module is respectively connected to a power module corresponding to each CPU in the dual CPU module, and one CPU corresponds to one power module. Taking the dual CPU module including a first CPU and a second CPU, and the control module being respectively connected to a first power module corresponding to the first CPU in the dual CPU module and a second power module corresponding to the second CPU in the dual CPU module as an example, this embodiment provides a server system such as Figure 3 As shown, the server system includes:

[0100] A dual CPU module 11 , a control module 12 , a first power module 13 , a second power module 14 and a multiplexing module 15 .

[0101] The dual CPU module 11 includes a first CPU and a second CPU.

[0102] The control module 12 is connected to a first power module 13 and a second power module 14 respectively. The first power module 13 is used to supply power to the first CPU, and the second power module 14 is used to supply power to the second CPU.

[0103] The control module 12 is connected to the dual CPU module 11 via the multiplexing module 15 , and the control module 12 is used to implement the above embodiment and optional implementation methods.

[0104] In this embodiment, the peripheral device can be connected to the multiplexing module, and the peripheral device is mounted under any one of the CPUs in the dual CPU module through the multiplexing module. The peripheral device includes a PCIe device, a USB device, a SATA device, a SPI flash, etc. The first CPU and the second CPU are connected through an interconnect bus. The first CPU and the second CPU are respectively connected to the memory through a DDR bus.

[0105] In an optional implementation, the multiplexing module 15 is connected to the dual CPU module 11 through the first bus and the second bus, and the multiplexing module 15 is connected to the control module 12 through the first bus and the second bus. As an example, the first bus is a PCIe bus, and the second bus is an eSPI / LPC bus.

[0106] In this embodiment, the control module can control the peripheral device to be mounted on any one of the CPUs in the dual CPU module through the multiplexing module. The multiplexing module is connected to the dual CPU module through the first bus and the second bus respectively. The multiplexing module is connected to the control module through the first bus and the second bus respectively. Based on the above settings, it can be ensured that each CPU in the dual CPU module is in an online state, reducing the CPU offline and avoiding the CPU restart.

[0107] In this embodiment, the present invention does not use PCH, but uses a multiplexing module, that is, a MUX / DEMUX circuit module. The multiplexing module (MUX / DEMUX circuit module) is mounted on CPU1 and CPU2 respectively through the first bus PCIe and the second bus eSPI / LPC, and controls whether it is finally mounted on CPU1, CPU2, or both CPU1 and CPU2 through the MUX / DEMUX control signal. The PCIe device is mounted under the MUX / DEMUX circuit module. The USB interface is transferred out through the PCIe to USB module, the SATA interface is transferred out through the PCIe to SATA module, and the PCIe to USB module and the PCIe to SATA module are mounted under the MUX / DEMUX circuit module. The USB interface of the BMC is mounted under the PCIe to USB module, and the PCIe interface and eSPI / LPC interface of the BMC are mounted under the MUX / DEMUX circuit module. The SPI flash is mounted under the MUX / DEMUX circuit module through the SPI bus.

[0108] CPU1 and CPU2 have a presence detection signal and a heartbeat signal, which are output to the BMC, and the BMC determines whether the CPU is in place and whether the CPU fails by the presence detection signal and the heartbeat signal. The present invention does not limit the specific implementation method of the presence detection signal and the heartbeat signal.

[0109] The MUX / DEMUX circuit module is controlled by the BMC through the MUX / DEMUX control signal to switch to CPU1 or CPU2 to switch the working mode of the dual CPU modules. After the server system is powered on, the BMC controls the switching of the MUX / DEMUX circuit module through the in-place detection signal and the heartbeat signal, and the default is CPU1. If the BMC determines that CPU1 is not in place, but CPU2 is in place and has no faults, the MUX / DEMUX circuit module is switched to CPU2 through the MUX / DEMUX control signal. Alternatively, when the BMC determines that CPU1 is in place but CPU1 has a fault, and CPU2 is in place and normal (without faults), the MUX / DEMUX circuit module can also be switched to CPU2. In this way, the server system can work normally as long as any one of the two CPUs works normally.

[0110] In this embodiment, the main CPU is responsible for reading the initialization firmware stored in the SPI flash, and is responsible for completing the initialization of the slave CPU and the initialization of the entire system.

[0111] The first power module and the second power module provide power to CPU1 and CPU2 respectively. The BMC controls whether the first power module and the second power module provide power to the CPU through the first power module enable control signal and the second power module enable control signal respectively. When the server workload is light and the two CPUs do not need to work at the same time (for example, at night), the BMC can shut down one of the two CPUs so that it does not start to save power waste. When the user decides to shut down a CPU, it is necessary to set the M / S pin of the CPU that continues to work to a low level through the BMC, that is, it needs to be set as the main CPU. When it is necessary to improve system performance, switch to the working mode where two CPUs work at the same time to improve system performance.

[0112] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0113] The server system in this embodiment is presented in the form of functional units, where the units refer to ASIC (Application Specific Integrated Circuit) circuits, processors and memories that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0114] The embodiment of the present invention also provides a computer device, see Figure 4 , Figure 4 Schematic diagram of the hardware structure of the computer device according to the embodiment of the present invention. Figure 4As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In an optional embodiment, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 4 A processor 10 is taken as an example.

[0115] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0116] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0117] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function. The data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In an optional embodiment, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0118] The memory 20 may include a volatile memory, such as a random access memory. The memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive. The memory 20 may also include a combination of the above-mentioned types of memory.

[0119] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0120] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc. Further, the storage medium can also include a combination of the above-mentioned types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0121] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0122] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for controlling a server system, It is characterized in that Applied to a control module, the control module is connected to a first power module and a second power module respectively, the control module is connected to a dual CPU module through a multiplexing module, the dual CPU module includes a first CPU and a second CPU, and the control method of the server system includes: Acquire a first signal of the first CPU and a second signal of the second CPU; Determine a CPU to be connected according to a first signal of the first CPU and a second signal of the second CPU; the CPU to be connected includes at least a part of the first CPU or the second CPU; Setting the level state of the CPU to be connected; the level state includes a low level or a high level; Determine the working mode of the dual CPU module according to the level state of the CPU to be connected; Among them, when it is determined that the CPU to be connected includes the first CPU and the second CPU according to the first signal of the first CPU and the second signal of the second CPU, if the level state of the first CPU is set to a low level and the level state of the second CPU is set to a high level, the working mode of the dual CPU module is determined to be the first mode; in the first mode, the first CPU is the master CPU and the second CPU is the slave CPU, and the first power supply module is controlled to supply power to the first CPU, and the second power supply module is controlled to supply power to the second CPU.

2. The method according to claim 1, It is characterized in that The determining the CPU to be connected according to the first signal of the first CPU and the second signal of the second CPU includes: Determine the waiting state of the first CPU according to the first signal of the first CPU, and determine the waiting state of the second CPU according to the second signal of the second CPU; the waiting state includes a normal state or an abnormal state; When the waiting state of the first CPU is a normal state and the waiting state of the second CPU is a normal state, determining the first CPU and the second CPU as the waiting CPUs; When the waiting state of the first CPU is a normal state and the waiting state of the second CPU is an abnormal state, determining the first CPU as the waiting CPU; When the waiting-for-access state of the first CPU is an abnormal state and the waiting-for-access state of the second CPU is a normal state, the second CPU is determined as the waiting-for-access CPU.

3. The method according to claim 1 or 2, It is characterized in that When it is determined that the CPU to be connected includes the first CPU and the second CPU according to the first signal of the first CPU and the second signal of the second CPU, setting the level state of the CPU to be connected includes: By setting the level state of the second CPU to a low level and the level state of the first CPU to a high level, the working mode of the dual CPU module is determined to be the second mode; in the second mode, the second CPU is the master CPU, the first CPU is the slave CPU, the first power supply module is controlled to supply power to the first CPU, and the second power supply module is controlled to supply power to the second CPU.

4. The method according to claim 1 or 2, It is characterized in that When it is determined that the CPU to be connected includes the first CPU according to the first signal of the first CPU and the second signal of the second CPU, setting the level state of the CPU to be connected includes: Set the level state of the first CPU to a low level; wherein, when the level state of the first CPU is a low level, determine that the working mode of the dual CPU module is a third mode, in which the first CPU is the main CPU, and controls the first power supply module to supply power to the first CPU.

5. The method according to claim 1 or 2, It is characterized in that When it is determined that the CPU to be connected includes the second CPU according to the first signal of the first CPU and the second signal of the second CPU, setting the level state of the CPU to be connected includes: Set the level state of the second CPU to a low level; wherein, when the level state of the second CPU is a low level, determine that the working mode of the dual CPU module is a fourth mode, in which the second CPU is the main CPU, and controls the second power supply module to supply power to the second CPU.

6. The method according to claim 1, It is characterized in that The method further comprises: Determine the startup quantity according to the load condition of the server system; the startup quantity is the number of CPUs to be started; The level state of the CPU to be connected is adjusted according to the startup quantity to switch the working mode of the dual CPU module.

7. A server system, It is characterized in that include: Dual CPU modules, control module, first power module, second power module and multiplexing module; The dual CPU module includes a first CPU and a second CPU; The control module is connected to a first power module and a second power module respectively, the first power module is used to supply power to the first CPU, and the second power module is used to supply power to the second CPU; The control module is connected to the dual CPU module via the multiplexing module, and the control module is used to execute the steps of the method described in any one of claims 1 to 6.

8. The system according to claim 7, It is characterized in that The multiplexing module is connected to the dual CPU module through a first bus and a second bus respectively, and the multiplexing module is connected to the control module through a first bus and a second bus respectively.

9. A computer device, It is characterized in that include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the steps of the method according to any one of claims 1 to 6 by executing the computer instructions.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the steps of the method according to any one of claims 1 to 6.