CN116149736A - ARM server starting method and device, storage medium and electronic equipment - Google Patents

ARM server starting method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN116149736A
CN116149736A CN202211711948.9A CN202211711948A CN116149736A CN 116149736 A CN116149736 A CN 116149736A CN 202211711948 A CN202211711948 A CN 202211711948A CN 116149736 A CN116149736 A CN 116149736A
Authority
CN
China
Prior art keywords
starting
target
arm server
mode
cpu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211711948.9A
Other languages
Chinese (zh)
Inventor
孙秀强
李岩
许泗强
刘佩雨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211711948.9A priority Critical patent/CN116149736A/en
Publication of CN116149736A publication Critical patent/CN116149736A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4405Initialisation of multiprocessor systems
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a starting method and device of an ARM server, a storage medium and electronic equipment, wherein the method comprises the following steps: determining the starting number of the CPUs of the ARM server according to the service demand, wherein the ARM server comprises a main CPU and a secondary CPU; determining a target starting script and a target starting mode of the ARM server according to the CPU starting quantity, wherein the target starting script comprises one of the following components: the target startup mode comprises one of the following modes: a single-path starting mode and a double-path starting mode; and starting the ARM server according to the target starting script and the target starting mode. Through the method and the device, the problem that the double-circuit ARM server in the prior art cannot be compatible with the switching of the quantity of various CPUs is solved, and the effect of dynamically switching the functions of the single-circuit server and the double-circuit server through the double-circuit ARM server is achieved.

Description

ARM server starting method and device, storage medium and electronic equipment
Technical Field
The embodiment of the application relates to the field of computers, in particular to a starting method and device of an ARM server, a storage medium and electronic equipment.
Background
With the deep concept of green environmental protection, the demands of enterprises for energy conservation and emission reduction are increasing, and enterprises related to data begin to pay attention to the energy consumption ratio of a data center. Since the related art of uk ARM (Advanced RISC Machines) company successfully reduced the power consumption of the central processor (Central Processing Unit, CPU) to the lowest of the processor industry, many CPU manufacturers often employ ARM architecture for processor development and application deployment.
Currently, there are single-path ARM servers and double-path ARM servers available for users to select, and users usually purchase double-path ARM servers by default based on cost saving consideration. In addition, a two-way ARM server is also arranged in each data center.
However, in the actual use process, the demands of different services on the number of CPUs are different, that is, the user can evaluate which of the single-path ARM server and the double-path ARM server is more suitable for the actual service demands according to the different service demands, and the cost performance is highest. Therefore, the user needs to perform single-path starting and service application adaptation, namely, switching of the number of multiple CPUs, on the dual-path ARM server on the premise of not changing hardware conditions. At present, the related art has the problem that a double-path ARM server cannot be compatible with the switching of the quantity of various CPUs, has poor flexibility and expansibility, and cannot meet various use requirements of users.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the application provides a starting method and device of an ARM server, a storage medium and electronic equipment, and aims to at least solve the problem that a double-channel ARM server in the related art cannot be compatible with a plurality of CPU quantity switching.
According to an embodiment of the present application, there is provided a method for starting up an ARM server, including: determining the starting number of the CPUs of the ARM server according to the service demand, wherein the ARM server comprises a main CPU and a secondary CPU; determining a target starting script and a target starting mode of the ARM server according to the CPU starting quantity, wherein the target starting script comprises one of the following components: the target startup mode comprises one of the following modes: a single-path starting mode and a double-path starting mode; and starting the ARM server according to the target starting script and the target starting mode.
In one exemplary embodiment, determining the target startup script and the target startup mode of the ARM server according to the CPU startup quantity comprises: if the CPU starting number is one, determining that the target starting script is a backup BIOS image, and the target starting mode is a single-path starting mode.
In an exemplary embodiment, if the number of CPU starts is two, it is determined that the target start script is a main BIOS image and the target start mode is a two-way start mode.
In one exemplary embodiment, a first start command is received by a baseboard management controller BMC before starting an ARM server according to a target start script and a target start mode; and responding to the first starting command, and sending a starting signal carried in the first starting command to firmware of the backup BIOS image so as to start the backup BIOS image.
In one exemplary embodiment, starting the ARM server according to a target start script and a target start mode, comprises: in the starting process of the backup BIOS mirror image, closing the CCIX bus connection function of the main CPU; and under the condition that the CCIX bus connection function of the main CPU is detected to be closed, starting the ARM server based on the main CPU so as to realize the single-path starting of the ARM server.
In one exemplary embodiment, a second start command is received by the baseboard management controller BMC before starting the ARM server according to the target start script and the target start mode; and responding to the second starting command, and sending a starting signal carried in the second starting command to the firmware of the main BIOS image so as to start the main BIOS image.
In one exemplary embodiment, starting the ARM server according to a target start script and a target start mode, comprises: after the main BIOS mirror image is started, the ARM server is started based on the main CPU and the secondary CPU, so that the dual-path starting of the ARM server is realized.
In an exemplary embodiment, determining the number of CPU starts of the ARM server according to the service requirement includes: determining the traffic and the load required by processing the traffic according to the traffic demand; if the traffic is smaller than or equal to a first threshold value or the load is smaller than or equal to a second threshold value, determining that the CPU starting number of the ARM server is one; if the traffic is greater than the first threshold and the load is greater than the second threshold, determining that the number of CPU starts of the ARM server is two.
According to another embodiment of the present application, there is provided a startup device of an ARM server, including: the first determining module is used for determining the starting quantity of the CPU of the ARM server according to the service requirement, wherein the ARM server comprises a main CPU and a secondary CPU; the second determining module is used for determining a target starting script and a target starting mode of the ARM server according to the starting quantity of the CPU, wherein the target starting script comprises one of the following components: the target startup mode comprises one of the following modes: a single-path starting mode and a double-path starting mode; and the starting module is used for starting the ARM server according to the target starting script and the target starting mode.
According to a further embodiment of the present application, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the present application, there is also provided an electronic device comprising a memory, in which a computer program is stored, and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In the embodiment of the invention, a mode of dynamically switching the functions of the single-path and the double-path ARM servers through different starting scripts is adopted, the CPU starting quantity of the ARM servers is firstly determined according to service requirements, then the target starting script and the target starting mode of the ARM servers are determined according to the CPU starting quantity, and then the ARM servers are started according to the target starting script and the target starting mode. The ARM server comprises a main CPU and a secondary CPU, and the target starting script comprises one of the following components: the target startup mode comprises one of the following modes: a single-path starting mode and a double-path starting mode.
In the above process, according to the number of CPU starts, the target start script and the target start mode of the ARM server may be determined, so that the ARM server may be started according to the target start script and the target start mode. On the premise of not changing hardware conditions, namely without manually disassembling the physical two-way server, the method can meet various use requirements of users, enables the users to freely select one-way starting or two-way starting, has strong flexibility and expansibility, improves the cost performance of the whole server, and reduces the purchase cost of the users.
Therefore, through the technical scheme of the invention, the purpose of meeting different requirements of users for using the single-path or double-path servers according to different services through the double-path ARM server is achieved, so that the technical effect of dynamically switching the functions of the single-path and the double-path servers through the double-path ARM server is achieved, and the technical problem that the double-path ARM server in the prior art cannot be compatible with the switching of the quantity of various CPUs is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a block diagram of the hardware architecture of a mobile terminal according to an alternative ARM server startup method according to an embodiment of the present application;
FIG. 2 is a flowchart of an alternative ARM server startup method according to an embodiment of the present application;
FIG. 3 is a startup flow diagram of an alternative ARM server according to an embodiment of the present application;
fig. 4 is a block diagram of an alternative ARM server startup device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal of an ARM server starting method according to an embodiment of the present application. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a method for starting up an ARM server in the embodiment of the present application, and the processor 102 executes the computer program stored in the memory 104, thereby performing various functional applications and data processing, that is, implementing the method described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In this embodiment, a method for operating on the mobile terminal is provided, fig. 2 is a flowchart of an alternative method for starting up an ARM server according to an embodiment of the present application, as shown in fig. 2, where the flowchart includes the following steps:
step S202, determining the starting number of the CPU of the ARM server according to the service requirement, wherein the ARM server comprises a main CPU and a secondary CPU;
step S204, determining a target startup script and a target startup mode of the ARM server according to the CPU startup quantity, wherein the target startup script comprises one of the following steps: the target startup mode comprises one of the following modes: a single-path starting mode and a double-path starting mode;
step S206, starting the ARM server according to the target starting script and the target starting mode.
Through the steps, the problem that the double-path ARM server in the prior art cannot be compatible with the switching of the number of various CPUs is solved, and the effect of dynamically switching the functions of the single-path server and the double-path server through the double-path ARM server is achieved.
The main execution body of the above steps may be a terminal, but is not limited thereto.
The execution order of step S202 and step S204 may be interchanged, i.e. step S204 may be executed first and then step S202 may be executed.
Specifically, in step S202, the service requirement may be a service requirement of multiple aspects such as a database, big data, video codec, web server, etc., and the ARM server is a dual-path ARM server, that is, includes a main CPU and a sub CPU. Alternatively, first, it is evaluated whether one CPU or two CPUs are used according to actual service requirements, thereby determining whether to start in one or two ways. For example, for small database services, the service volume and the load are not high, and the service requirement can be met by only using one CPU; for large data traffic, the traffic and load are high, requiring the use of two CPUs.
Specifically, in step S204, the number of CPU starts is one or two, the target start script is a main BIOS image or a backup BIOS image, and the target start mode is a single-path start mode or a double-path start mode. Optionally, according to the number of the CPUs, a target start script and a target start mode of the ARM server may be determined, for example, if the number of the CPUs is estimated to be one according to the actual service requirement, it may be determined that the target start script of the ARM server is a backup BIOS image, and the target start mode is a single-path start mode.
Specifically, the single-path starting mode is a mode of starting by a main CPU, and for the hardware itself actually being a double-path ARM server, the number of CPU starts is one, namely only the main CPU starts, so that the function of the single-path ARM server is realized. For users with different service demands, the users can enjoy the use experience of the single-channel ARM server and the double-channel ARM server at the same time by purchasing the double-channel ARM servers in batches by default, the single-channel ARM server is not required to be purchased, and the purchasing cost of the users is reduced. And when the double-path ARM server is used for realizing the function of the single-path ARM server, the secondary CPU is not required to be disassembled manually, the function of dynamic management is realized, the time cost and the labor cost are saved, and the use experience of a user is improved.
Specifically, the two-way startup mode refers to a mode started with the main CPU and the sub CPU. Because ARM server supports the main BIOS mirror image and backs up BIOS mirror image function, consequently, through the use of different start-up script, can make the switching of different start-up modes of double-circuit ARM server. Namely, the double-way starting is realized through the main BIOS image, and the single-way starting is realized through the backup BIOS image.
Specifically, in step S206, the ARM server is started according to the target startup script and the target startup mode, and enters an Operating System (OS) after normal startup.
Based on the above-mentioned schemes defined in step S202 to step S206, it can be known that, in the embodiment of the present invention, a manner of implementing dynamic switching between the functions of the two-way and the one-way servers by using different start scripts is adopted, first, the CPU start number of the ARM server is determined according to the service requirement, then, the target start script and the target start mode of the ARM server are determined according to the CPU start number, and then, the ARM server is started according to the target start script and the target start mode. The ARM server comprises a main CPU and a secondary CPU, and the target starting script comprises one of the following components: the target startup mode comprises one of the following modes: a single-path starting mode and a double-path starting mode.
It is easy to note that in the above process, the target startup script and the target startup mode of the ARM server may be determined according to the number of CPU startup, so that the ARM server can be started according to the target startup script and the target startup mode. On the premise of not changing hardware conditions, namely without manually disassembling the physical two-way server, the method can meet various use requirements of users, enables the users to freely select one-way starting or two-way starting, has strong flexibility and expansibility, improves the cost performance of the whole server, and reduces the purchase cost of the users.
Therefore, through the technical scheme of the invention, the purpose of meeting different requirements of users for using the single-path or double-path servers according to different services through the double-path ARM server is achieved, so that the technical effect of dynamically switching the functions of the single-path and the double-path servers through the double-path ARM server is achieved, and the technical problem that the double-path ARM server in the prior art cannot be compatible with the switching of the quantity of various CPUs is solved.
In one exemplary embodiment, determining the target startup script and the target startup mode of the ARM server according to the CPU startup quantity comprises: if the CPU starting number is one, determining that the target starting script is a backup BIOS image, and the target starting mode is a single-path starting mode.
Optionally, fig. 3 is a flowchart of an optional ARM server start-up according to an embodiment of the present application, and as shown in fig. 3, it is first clear whether a two-way start-up or a one-way start-up is performed. After evaluating whether to use one CPU or two CPUs according to actual service requirements, the target startup script and the target startup mode of the ARM server can be determined. If the service requirement can be met by using one CPU according to the actual service requirement, namely, the service requirement can be met by only starting one CPU of the double-path ARM server, the target starting script is determined to be a backup BIOS mirror image, and the target starting mode is a single-path starting mode.
It should be noted that, by determining that the target startup script of the ARM server is a backup BIOS image, the target startup mode is a single-path startup mode, and a basis is provided for realizing the single-path startup of the ARM server by subsequently starting the backup BIOS image.
In an exemplary embodiment, if the number of CPU starts is two, it is determined that the target start script is a main BIOS image and the target start mode is a two-way start mode.
Optionally, after evaluating whether to use one CPU or two CPUs according to actual service requirements, the target start script and the target start mode of the ARM server can be determined. As shown in fig. 3, if it is estimated that two CPUs are used to meet the service requirement according to the actual service requirement, that is, both CPUs of the dual-path ARM server are started to meet the service requirement, the target startup script is determined to be the main BIOS image, and the target startup mode is determined to be the dual-path startup mode.
It should be noted that, by determining that the target startup script of the ARM server is the main BIOS image, the target startup mode is the dual-path startup mode, and a foundation is provided for realizing dual-path startup of the ARM server by subsequently starting the main BIOS image.
In one exemplary embodiment, a first start command is received by a baseboard management controller BMC before starting an ARM server according to a target start script and a target start mode; and responding to the first starting command, and sending a starting signal carried in the first starting command to firmware of the backup BIOS image so as to start the backup BIOS image.
Alternatively, as shown in fig. 3, in the case that the target boot script is the backup BIOS image and the target boot mode is the single boot mode, the firmware that sends the boot signal to the backup BIOS image is implemented by sending a command to the BMC. Specifically, the BMC receives the first starting command, responds to the first starting command, and sends a starting signal carried in the first starting command to firmware of the backup BIOS image so as to start the backup BIOS image. The first start command also carries an identifier of the backup BIOS image, and according to the identifier of the backup BIOS image, the SPI enable signal is sent to firmware of the backup BIOS image, and at this time, the backup BIOS image is started.
Optionally, before receiving the first start command through the baseboard management controller BMC, the current position of the start signal may be further determined, and whether to send the first start command to the BMC is determined according to the current position of the start signal. If the current position of the starting signal is the firmware of the backup BIOS image, a third starting command is sent to the BMC, namely the BMC receives the third starting command and responds to the third starting command to directly start the backup BIOS image. Wherein, the third start command does not carry a start signal. For example, the user selects the single-path starting mode last time, that is, the current position of the SPI enabling signal is firmware of the backup BIOS mirror image, the target starting mode is evaluated to be the single-path starting mode according to service requirements, and the single-path starting of the dual-path ARM server can be realized by direct starting without switching the SPI enabling signal.
It should be noted that in the above process, only one of the two CPUs of the dual-path ARM server is actually started, so that the requirement that the user dynamically switches between the single-path server and the dual-path server by using the dual-path ARM server can be met, the actual service requirement of the user is met, the effect of reducing the power consumption is achieved, and the use experience of the user is improved.
In one exemplary embodiment, starting the ARM server according to a target start script and a target start mode, comprises: in the starting process of the backup BIOS mirror image, closing the CCIX bus connection function of the main CPU; and under the condition that the CCIX bus connection function of the main CPU is detected to be closed, starting the ARM server based on the main CPU so as to realize the single-path starting of the ARM server.
Specifically, the main CPU and the secondary CPU of the dual-path ARM server communicate through a CCIX bus, and the CCIX bus uses 2 x16 bandwidth links, so that the link between the main CPU and the secondary CPU can be disconnected by performing a closing operation on the CCIX bus connection function of the main CPU, thereby realizing the single-path startup of the ARM server.
Specifically, as shown in fig. 3, in the starting process of the backup BIOS image, the CCIX bus connection function of the main CPU is turned off, after the shutdown, if it is detected that the CCIX bus connection function of the main CPU is turned off, the ARM server is started based on the main CPU, so as to implement single-path startup of the ARM server, and after normal startup, the OS is entered.
In the above process, the function of the single-path ARM server is realized by performing the shutdown operation on the CCIX bus connection function of the main CPU, which realizes the independent startup of the main CPU of the double-path ARM server.
In one exemplary embodiment, a second start command is received by the baseboard management controller BMC before starting the ARM server according to the target start script and the target start mode; and responding to the second starting command, and sending a starting signal carried in the second starting command to the firmware of the main BIOS image so as to start the main BIOS image.
Alternatively, as shown in fig. 3, in the case that the dual-path start, i.e., the target start script is selected as the main BIOS image, and the target start mode is the dual-path start mode, the firmware that sends the start signal to the main BIOS image is implemented by sending a command to the BMC. Specifically, the BMC receives the second starting command, and responds to the second starting command, and a starting signal carried in the second starting command is sent to the firmware of the main BIOS image so as to start the main BIOS image. The second start command also carries an identifier of the main BIOS image, and according to the identifier of the main BIOS image, the SPI enable signal is sent to firmware of the main BIOS image, where the main BIOS image is started.
Optionally, before receiving the second start command through the baseboard management controller BMC, the current position of the start signal may be further determined, and whether to send the second start command to the BMC is determined according to the current position of the start signal. If the current position of the starting signal is the firmware of the main BIOS image, a fourth starting command is sent to the BMC, namely the BMC receives the fourth starting command and responds to the fourth starting command to directly start the main BIOS image. Wherein, the fourth start command does not carry a start signal. For example, the user selects the dual-path starting mode last time, that is, the current position of the SPI enabling signal is the firmware of the main BIOS mirror image, the target starting mode is evaluated to be the dual-path starting mode according to the service requirement, and the dual-path starting of the dual-path ARM server can be realized by directly starting without switching the SPI enabling signal.
It should be noted that in the above process, the process that two CPUs of the dual-path ARM server are started is realized, so that the requirement that a user dynamically switches between a single-path server and a dual-path server by using the dual-path ARM server can be met, the actual service requirement of the user is met, the effect of reducing power consumption is further achieved, and the use experience of the user is improved.
In one exemplary embodiment, starting the ARM server according to a target start script and a target start mode, comprises: after the main BIOS mirror image is started, the ARM server is started based on the main CPU and the secondary CPU, so that the dual-path starting of the ARM server is realized.
Specifically, as shown in fig. 3, after the main BIOS image is started, the ARM server is started based on the main CPU and the sub CPU, so as to realize dual-path start of the ARM server, and the OS is entered after normal start.
In the above process, the main CPU and the secondary CPU of the dual-path ARM server are both started by the main BIOS image, and the dual-path starting function is realized.
In an exemplary embodiment, determining the number of CPU starts of the ARM server according to the service requirement includes: determining the traffic and the load required by processing the traffic according to the traffic demand; if the traffic is smaller than or equal to a first threshold value or the load is smaller than or equal to a second threshold value, determining that the CPU starting number of the ARM server is one; if the traffic is greater than the first threshold and the load is greater than the second threshold, determining that the number of CPU starts of the ARM server is two.
Alternatively, the requirements of users on the starting number of the CPU of the ARM server are different due to different service volumes corresponding to different services and different load amounts required by the services. For example, for small database services, the service volume and the load are not high, and the service requirement can be met by only using one CPU; for large data traffic, the traffic and load are high, requiring the use of two CPUs. Therefore, firstly, the service volume and the load required by processing the service are determined according to the service requirement, so as to determine the starting quantity of the CPU of the ARM server.
Further, the first threshold and the second threshold are set according to the performance of the ARM server. If the traffic is smaller than or equal to a first threshold value or the load quantity is smaller than or equal to a second threshold value, determining that the starting quantity of the CPU of the ARM server is one, namely the traffic and the load quantity are not high, and only one CPU is used for meeting the service requirement; if the traffic is greater than the first threshold and the load is greater than the second threshold, determining that the number of started CPUs of the ARM server is two, namely the traffic and the load are higher, and two CPUs are needed.
It should be noted that the technical scheme of the invention provides a starting method of an ARM server, so that the dual-path ARM server has the function of a single-path ARM server, namely, the dual-path ARM server supports single-path starting. On the premise that the hardware is actually a double-path ARM server, whether the CPU is started in a single path or in double paths is confirmed according to actual service requirements, namely whether the starting number of the CPU is one or two is confirmed. Whether the single-way start or the double-way start is determined by a command sent to the BMC, specifically, whether the single-way start or the double-way start is determined by sending a command to the BMC and controlling an SPI start signal of the BIOS mirror image after confirming the start number of the CPU. If the dual-channel ARM server is started in a single-channel mode, starting a backup BIOS image, closing the CCIX bus connection function of the main CPU by the backup BIOS image, starting the main CPU in the two CPUs, and not starting the secondary CPU, so that the single-channel ARM server is started in a single-channel mode. If the dual-path starting is performed, the main BIOS mirror image is started, and the dual-path starting of the dual-path ARM server is realized. By the technical scheme, the requirement of a user for dynamically switching the functions of the two-way server and the one-way server by using the two-way server can be met, so that the actual service requirement of the user can be met, and the purpose of reducing power consumption is achieved. In addition, when the double-way ARM server is required to be started in a single way, the physical double-way ARM server is not required to be disassembled manually, so that the function of dynamic management is realized, the power consumption management of the data center and the cost performance of the whole server are greatly improved, and meanwhile, the safety and the reliability of the data center are improved.
Therefore, through the technical scheme of the invention, the purpose of meeting different requirements of users for using the single-path or double-path servers according to different services through the double-path ARM server is achieved, so that the technical effect of dynamically switching the functions of the single-path and the double-path servers through the double-path ARM server is achieved, and the technical problem that the double-path ARM server in the prior art cannot be compatible with the switching of the quantity of various CPUs is solved.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the ARM server startup method described in the embodiments of the present application.
The embodiment also provides a starting device of the ARM server, which is used for implementing the foregoing embodiments and preferred embodiments, and the descriptions are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 4 is a block diagram of a starting device of an ARM server according to an embodiment of the present application, as shown in fig. 4, including: a first determining module 42, configured to determine, according to a service requirement, a number of started CPUs of an ARM server, where the ARM server includes a main CPU and a sub CPU; a second determining module 44, configured to determine, according to the number of CPU starts, a target start script and a target start mode of the ARM server, where the target start script includes one of: the target startup mode comprises one of the following modes: a single-path starting mode and a double-path starting mode; the starting module 46 is configured to start the ARM server according to the target startup script and the target startup mode.
It should be noted that the first determining module 42, the second determining module 44, and the starting module 46 correspond to steps S202 to S206 in the foregoing embodiments, and the three modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to those disclosed in the foregoing method embodiments.
Optionally, the second determining module includes: and the first determining unit is used for determining that the target starting script is a backup BIOS image and the target starting mode is a single-path starting mode if the starting number of the CPU is one.
Optionally, the starting device of the ARM server further includes: and the third determining module is used for determining that the target starting script is a main BIOS mirror image and the target starting mode is a double-path starting mode if the number of the CPU starts is two.
Optionally, the starting device of the ARM server further includes: the first receiving module is used for receiving a first starting command through the baseboard management controller BMC; the first sending module is used for responding to the first starting command and sending a starting signal carried in the first starting command to firmware of the backup BIOS mirror image so as to start the backup BIOS mirror image.
Optionally, the starting module includes: the first processing unit is used for closing the CCIX bus connection function of the main CPU in the starting process of the backup BIOS image; the first starting unit is used for starting the ARM server based on the main CPU under the condition that the CCIX bus connection function of the main CPU is detected to be closed, so that the single-way starting of the ARM server is realized.
Optionally, the starting device of the ARM server further includes: the second receiving module is used for receiving a second starting command through the baseboard management controller BMC; and the second sending module is used for responding to the second starting command and sending a starting signal carried in the second starting command to the firmware of the main BIOS mirror image so as to start the main BIOS mirror image.
Optionally, the starting module includes: and the second starting unit is used for starting the ARM server based on the main CPU and the secondary CPU after the main BIOS image is started so as to realize the double-way starting of the ARM server.
Optionally, the first determining module includes: the second determining unit is used for determining the traffic and the load required by processing the service according to the service requirement; the third determining unit is used for determining that the CPU starting number of the ARM server is one if the traffic volume is smaller than or equal to a first threshold value or the load volume is smaller than or equal to a second threshold value; and the fourth determining unit is used for determining that the number of CPU starts of the ARM server is two if the traffic is larger than the first threshold and the load is larger than the second threshold.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
Embodiments of the present application also provide an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic device may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application should be included in the protection scope of the present application.

Claims (11)

1. The starting method of the ARM server is characterized by comprising the following steps of:
determining the starting number of the CPUs of an ARM server according to service requirements, wherein the ARM server comprises a main CPU and a secondary CPU;
determining a target starting script and a target starting mode of the ARM server according to the CPU starting quantity, wherein the target starting script comprises one of the following components: the target starting mode comprises one of the following modes: a single-path starting mode and a double-path starting mode;
and starting the ARM server according to the target starting script and the target starting mode.
2. The method of claim 1, wherein, based on the number of CPU starts,
determining a target startup script and a target startup mode of the ARM server, wherein the target startup script and the target startup mode comprise:
and if the CPU starting number is one, determining that the target starting script is the backup BIOS image, and the target starting mode is the single-path starting mode.
3. The method according to claim 2, wherein the method further comprises:
and if the number of the CPU starts is two, determining that the target start script is the main BIOS mirror image, and the target start mode is the double-path start mode.
4. The method of claim 2, wherein prior to starting the ARM server according to the target start-up script and the target start-up mode, the method further comprises:
receiving a first starting command through a baseboard management controller BMC;
and responding to the first starting command, and sending a starting signal carried in the first starting command to firmware of the backup BIOS image so as to start the backup BIOS image.
5. The method of claim 4, wherein starting the ARM server according to the target start-up script and the target start-up mode comprises:
in the starting process of the backup BIOS image, closing the CCIX bus connection function of the main CPU;
and under the condition that the CCIX bus connection function of the main CPU is detected to be closed, starting the ARM server based on the main CPU so as to realize the one-way starting of the ARM server.
6. A method according to claim 3, wherein prior to starting the ARM server according to the target start-up script and the target start-up mode, the method further comprises:
receiving a second starting command through the baseboard management controller BMC;
and responding to the second starting command, and sending a starting signal carried in the second starting command to the firmware of the main BIOS image so as to start the main BIOS image.
7. The method of claim 6, wherein starting the ARM server according to the target start-up script and the target start-up mode comprises:
and after the main BIOS image is started, starting the ARM server based on the main CPU and the secondary CPU so as to realize the double-way starting of the ARM server.
8. The method of claim 1, wherein determining the number of CPU starts of the ARM server based on the traffic demand comprises:
determining the traffic and the load required for processing the traffic according to the traffic demand;
if the traffic is smaller than or equal to a first threshold value or the load is smaller than or equal to a second threshold value, determining that the CPU starting number of the ARM server is one;
and if the traffic is greater than the first threshold and the load is greater than the second threshold, determining that the number of CPU starts of the ARM server is two.
9. An ARM server starting device, comprising:
the first determining module is used for determining the starting quantity of the CPU of the ARM server according to the service requirement, wherein the ARM server comprises a main CPU and a secondary CPU;
the second determining module is configured to determine, according to the number of CPU starts, a target start script and a target start mode of the ARM server, where the target start script includes one of the following: the target starting mode comprises one of the following modes: a single-path starting mode and a double-path starting mode;
and the starting module is used for starting the ARM server according to the target starting script and the target starting mode.
10. A computer readable storage medium, characterized in that a computer program is stored in the computer readable storage medium, wherein the computer program, when executed by a processor, implements the steps of the method for starting up an ARM server according to any one of claims 1 to 8.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method for starting up an ARM server according to any of the claims 1 to 8 are realized when the computer program is executed by the processor.
CN202211711948.9A 2022-12-29 2022-12-29 ARM server starting method and device, storage medium and electronic equipment Pending CN116149736A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211711948.9A CN116149736A (en) 2022-12-29 2022-12-29 ARM server starting method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211711948.9A CN116149736A (en) 2022-12-29 2022-12-29 ARM server starting method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116149736A true CN116149736A (en) 2023-05-23

Family

ID=86355428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211711948.9A Pending CN116149736A (en) 2022-12-29 2022-12-29 ARM server starting method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116149736A (en)

Similar Documents

Publication Publication Date Title
CN110557777B (en) Network connection control method, terminal and storage medium
CN106102143B (en) Application processing method and device
US20150223252A1 (en) Resource Allocation Method and Device
US11419181B2 (en) Device control method and apparatus, storage medium, processor, and terminal
US11658870B2 (en) Method and apparatus for restoring network device to factory defaults, and network device
CN105578527A (en) Method, device and system for achieving cloud AC load balancing
US20050124331A1 (en) Inter-processor parameter management in a multiple-processor wireless mobile communication device operating on a processor specific communication network
US10708870B2 (en) Systems and methods for adjusting power settings of a wireless device
WO2013189069A1 (en) Load sharing method and device, and single board
JP2015510744A (en) Processing method and processing apparatus for automatically setting Internet access mode
CN109951308A (en) A kind of method for configuring routers, device and storage medium
CN114079988B (en) Network link switching method and device of cluster terminal
CN113261249A (en) Data transmission method, related equipment and computer storage medium
US8046602B2 (en) Controlling connection status of network adapters
WO2024032631A1 (en) Antenna control method and apparatus, storage medium, and electronic apparatus
CN117331423A (en) Power supply method and device of PCIE equipment, storage medium and electronic device
CN116149736A (en) ARM server starting method and device, storage medium and electronic equipment
CN115599191B (en) Power-on method and power-on device of intelligent network card
US20210274582A1 (en) Network redundancy using alternate network uplinks
US20220159664A1 (en) Multi-band simultaneous switching system and method of using the same
CN110119111B (en) Communication method and device, storage medium, and electronic device
CN105224059A (en) The method of remote access data and local side device
CN113505001B (en) Server management method, server, electronic device and computer-readable storage medium
EP4336897A1 (en) Network access method, network device and storage medium
CN114363982A (en) Link backup method, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination