Method, device and equipment for detecting memory installation of server
By obtaining and comparing the memory slot information of the CPU in the server, the problem of difficulty in optimizing memory installation is solved, and memory insertion optimization tips are provided, which improves the server memory performance.
Patent Information
- Application Number
- CN202411364434.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-01-07
AI Technical Summary
It is difficult for users to install CPU memory in the server in the optimal performance, which limits the performance of servers.
By obtaining the memory slot information of the target central processor in the server, determine the current memory insertion method and compare it with the preset target memory insertion method. If it does not match, output prompt information to optimize the memory insertion method, including based on the central processor Find the optimal insertion method for model and application scenarios, calculate expected performance information to provide improvement suggestions.
Compare the current memory installation status with the optimal insertion method in real time, provide optimization tips, and help users improve server memory performance.
Smart Images

Figure CN119271444A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servers, and in particular to a method, device and equipment for detecting memory installation of a server. Background Art
[0002] With the rapid development of server technology, users have an increasing demand for memory performance optimization. In server configuration, the way memory is inserted has a crucial impact on its performance. However, in current servers, it is often difficult for users to install the memory of each CPU (Central Processing Unit) in the server in the order of optimal performance, which limits the performance of the server to a certain extent.
[0003] Therefore, how to prompt users to install the memory in the server in a better way, thereby improving the memory performance of the server, is a problem that urgently needs to be solved today. Summary of the invention
[0004] The purpose of the present invention is to provide a method, device and equipment for detecting memory installation of a server, so as to prompt a user to install the memory in the server in a better way, thereby improving the memory performance of the server.
[0005] In order to solve the above technical problems, the present invention provides a memory installation detection method for a server, comprising:
[0006] Obtaining memory slot information of a target central processor in a server; wherein the target central processor is any central processor in the server, and the memory slot information includes the in-place status of the memory in each memory slot of the target central processor;
[0007] Determine the current memory insertion method information of the target central processor according to the memory slot information; wherein the current memory insertion method information includes a memory in-place array, the memory in-place array includes in-place status identifiers corresponding to all the memory slots arranged in a preset order, and the in-place status identifiers include in-place identifiers and out-of-place identifiers;
[0008] Obtain a memory insertion method detection result according to the target memory insertion method information of the target CPU and the current memory insertion method information; wherein the target memory insertion method information is preset memory insertion method information of the target memory quantity corresponding to the target CPU, and the target memory quantity is the number of in-place memories corresponding to the memory slot information;
[0009] If the memory interpolation detection result is non-target interpolation, memory interpolation prompt information corresponding to the target memory interpolation information is output.
[0010] On the other hand, before obtaining the memory interpolation detection result according to the target memory interpolation information of the target central processor and the current memory interpolation information, the method further includes:
[0011] According to the model information of the target central processing unit and the target memory quantity, the target memory insertion method information is searched from a database.
[0012] On the other hand, searching the target memory insertion method information from a database according to the model information of the target central processor and the target memory quantity includes:
[0013] The target memory interpolation information corresponding to the target memory quantity is searched from the preset memory interpolation information corresponding to the target processor model stored in the database; wherein the target processor model is a preset processor model corresponding to the model information of the target central processing unit, and the database stores a preset memory interpolation information corresponding to each different in-place memory quantity of each preset processor model.
[0014] On the other hand, searching the target memory insertion method information from a database according to the model information of the target central processor and the target memory quantity includes:
[0015] Determine the current application scenario of the server according to the running program information of the server; wherein the current application scenario is any preset application scenario, and the preset application scenario includes a high-capacity demand scenario and a high-frequency demand scenario;
[0016] The target memory interpolation information corresponding to the current application scenario is searched from the preset memory interpolation information corresponding to the target memory quantity of the target processor model in the database; the target processor model is a preset processor model corresponding to the model information of the target central processing unit, and the database stores a preset memory interpolation information for each preset application scenario corresponding to each different in-place memory quantity of each preset processor model.
[0017] On the other hand, the memory slot information further includes the capacity and frequency of the memory in each memory slot, and searching the target memory slot information from a database according to the model information of the target CPU and the target memory quantity includes:
[0018] Determine the current application scenario of the server according to the running program information of the server; wherein the current application scenario is any preset application scenario, and the preset application scenario includes a high-capacity demand scenario and a high-frequency demand scenario;
[0019] According to the capacity and frequency of the memory in each memory slot in the memory slot information of the target central processor, the expected performance information corresponding to each optional preset memory plug-in method information corresponding to the target processor model stored in the database is calculated; wherein the target processor model is a preset processor model corresponding to the model information of the target central processor, the optional preset memory plug-in method information is each preset memory plug-in method information corresponding to the target memory quantity, and the expected performance information includes an expected maximum capacity and / or an expected maximum frequency;
[0020] If the current application scenario is the high-capacity demand scenario, determining the optional preset memory interpolation method information corresponding to the largest expected maximum capacity in the expected performance information as the target memory interpolation method information;
[0021] If the current application scenario is the high-frequency demand scenario, the optional preset memory interpolation information corresponding to the largest expected maximum frequency in the expected performance information is determined as the target memory interpolation information.
[0022] On the other hand, before obtaining the memory slot information of the target central processor in the server, the method further includes:
[0023] The baseboard management controller receives and stores the memory slot information of each central processing unit in the server sent by the basic input and output system; wherein the basic input and output system inquires and obtains the memory slot information of each central processing unit when the server is turned on.
[0024] On the other hand, after outputting the memory interpolation prompt information corresponding to the target memory interpolation information, the method further includes:
[0025] The baseboard management controller receives a memory insertion optimization instruction triggered by a web page;
[0026] The target memory interpolation information is adjusted and updated according to the memory interpolation adjustment information in the memory interpolation optimization instruction.
[0027] On the other hand, the memory slot information further includes the capacity and frequency of the memory in each of the memory slots, and before outputting the memory insertion method prompt information corresponding to the target memory insertion method information, the method further includes:
[0028] According to the capacity and frequency of the memory in each memory slot in the memory slot information of the target central processor, the expected performance information corresponding to the current memory insertion method information and the target memory insertion method information is calculated; wherein the expected performance information includes an expected maximum capacity and an expected maximum frequency;
[0029] According to the expected performance information, the expected performance improvement information corresponding to the target memory interpolation method information is determined; wherein the memory interpolation method prompt information includes the expected performance improvement information.
[0030] The present invention also provides a memory installation detection device for a server, comprising:
[0031] An acquisition module, used for acquiring memory slot information of a target CPU in a server; wherein the target CPU is any CPU in the server, and the memory slot information includes the in-place status of the memory in each memory slot of the target CPU;
[0032] A determination module, configured to determine the current memory insertion method information of the target central processor according to the memory slot information; wherein the current memory insertion method information includes a memory in-place array, the memory in-place array includes in-place status identifiers corresponding to all the memory slots arranged in a preset order, and the in-place status identifiers include in-place identifiers and out-of-place identifiers;
[0033] A detection module, configured to obtain a memory insertion detection result according to the target memory insertion information of the target CPU and the current memory insertion information; wherein the target memory insertion information is preset memory insertion information of the target memory quantity corresponding to the target CPU, and the target memory quantity is the number of in-place memories corresponding to the memory slot information;
[0034] The prompt module is used for outputting memory interpolation prompt information corresponding to the target memory interpolation information if the memory interpolation detection result is a non-target interpolation.
[0035] In addition, the present invention also provides a memory installation detection device for a server, comprising:
[0036] Memory for storing computer programs;
[0037] The processor is used to implement the steps of the server memory installation detection method as described above when executing the computer program.
[0038] A memory installation detection method for a server provided by the present invention comprises: obtaining memory slot information of a target central processing unit in the server; wherein the target central processing unit is any central processing unit in the server, and the memory slot information comprises the in-place status of the memory in each memory slot of the target central processing unit; according to the memory slot information, determining the current memory insertion method information of the target central processing unit; wherein the current memory insertion method information comprises a memory in-place array, and the memory in-place array comprises in-place status identifiers corresponding to all memory slots arranged in a preset order, and the in-place status identifiers comprise in-place identifiers and out-of-place identifiers; according to the target memory insertion method information and the current memory insertion method information of the target central processing unit, obtaining a memory insertion method detection result; wherein the target memory insertion method information is preset memory insertion method information of a target memory quantity corresponding to the target central processing unit, and the target memory quantity is the in-place memory quantity corresponding to the memory slot information; if the memory insertion method detection result is a non-target insertion method, outputting memory insertion method prompt information corresponding to the target memory insertion method information;
[0039] It can be seen that the present invention obtains the memory insertion method detection result according to the target memory insertion method information and the current memory insertion method information of the target central processor, and can compare the current installation state of the CPU memory obtained in real time with the preset optimal insertion method corresponding to these memories, so as to provide users with optimization tips and suggestions for memory insertion when the current installation state is not the optimal insertion method, prompting users to install the memory in the server in a better way, thereby improving the memory performance of the server. In addition, the present invention also provides a memory installation detection device and equipment for a server, which also has the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0041] Figure 1 A flow chart of a memory installation detection method for a server provided by an embodiment of the present invention;
[0042] Figure 2 A schematic diagram of a flow chart of another method for detecting memory installation of a server provided by an embodiment of the present invention;
[0043] Figure 3 Another method for detecting memory installation of a server provided by an embodiment of the present invention is
[0044] Figure 4A structural block diagram of a memory installation detection device for a server provided in an embodiment of the present invention;
[0045] Figure 5 A schematic diagram of the structure of a memory installation detection device for a server provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0046] 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] Please refer to Figure 1 , Figure 1 A flow chart of a memory installation detection method for a server provided by an embodiment of the present invention. The method may include:
[0048] Step 101: Obtain memory slot information of a target CPU in a server; wherein the target CPU is any CPU in the server, and the memory slot information includes the in-place status of the memory in each memory slot of the target CPU.
[0049] It is understandable that the target central processing unit (target CPU) in this embodiment can be any CPU in the server that needs to perform memory (such as memory stick) installation detection. That is to say, this embodiment shows the memory installation detection of a CPU in the server as an example. The memory installation detection method of other CPUs in the server can be implemented in the same or similar manner as the method provided in this embodiment, and this embodiment does not impose any limitation on this.
[0050] Correspondingly, in this embodiment, the memory slot information of the target CPU can be the memory insertion status information of each memory slot of the target CPU. For example, the memory slot information of the target CPU can include the in-place status of the memory in each memory slot of the target CPU; it can also include the frequency and capacity of the memory in each memory slot; it can also include other information (such as attributes) of the memory in each memory slot.
[0051] The method provided in this embodiment can be applied to the BMC (Baseboard Management Controller) in the server, that is, the BMC in the server can detect the memory installation of each CPU in the server to prompt the user to install the memory in the server in a better way, thereby improving the memory performance of the server. The method provided in this embodiment can also be applied to other processors (such as CPU) in the server. This embodiment does not impose any restrictions on this.
[0052] It should be noted that the specific method for obtaining the memory slot information of the target CPU in the server in this embodiment can be set by the designer according to practical scenarios and user needs. For example, the BMC can read the stored memory slot information of the target CPU; for example, before this step, the BMC can receive and store the memory slot information of each CPU in the server sent by the BIOS (Basic Input Output System); wherein the BIOS queries and obtains the memory slot information of each CPU when the server is turned on; Figure 2 and Figure 3 As shown, during the POST (Power-On Self-Test) phase of the server startup, the BIOS can obtain the memory information (i.e., the memory slot information of each CPU) of the memory inserted in the DIMM Slot (memory slot of the dual in-line memory module) of each CPU by accessing the memory address, including the in-place status, frequency, capacity, and properties of the memory; this information will be organized into a standard json (a programming language) file format and sent to the BMC through a specific communication interface, i.e., the BMC can receive and store the memory slot information of each CPU in the json file format sent by the BIOS. In this step, the BMC can also directly read the memory slot information of the target CPU from the BIOS. This embodiment does not impose any restrictions on this.
[0053] Correspondingly, in some embodiments, in step 101, the memory slot information of the target CPU in the server can be obtained according to the memory detection instruction corresponding to the acquired target CPU; for example, the BMC can read the stored memory slot information of the target CPU according to the memory detection instruction corresponding to the target CPU triggered by the Web page to perform a slot detection on the memory installed in the target CPU. For example, the user can operate the BMC's Web page, such as the page of the IPMI (Intelligent Platform Management Interface) management platform based on the BMC, to trigger the memory detection instruction of the target CPU to control the BMC to detect the memory installed in the target CPU.
[0054] In other embodiments, in step 101, the memory slot information of the target central processor in the server may be obtained at a preset time interval or during the boot process; for example, after receiving the memory slot information of each CPU from the BIOS, the BMC may respectively use each CPU in the server as the target CPU to perform a slot detection on the memory installed in each CPU in the server. This embodiment does not impose any limitation on this.
[0055] Step 102: Determine the current memory insertion method information of the target central processor according to the memory slot information; wherein the current memory insertion method information includes a memory in-place array, the memory in-place array includes in-place status identifiers corresponding to all memory slots arranged in a preset order, and the in-place status identifiers include in-place identifiers and out-of-place identifiers.
[0056] It is understandable that in this step, information related to the current memory insertion method of the target CPU (ie, current memory insertion method information) can be determined according to the memory slot information of the target CPU to facilitate subsequent comparative analysis.
[0057] Among them, the specific content of the current memory insertion method information in this embodiment can be set by the designer according to practical scenarios and user needs. For example, the current memory insertion method information may include a memory in-place array, and the memory in-place array may include in-place status identifiers corresponding to all memory slots arranged in a preset order, and the in-place status identifier includes an in-place identifier (such as 1) and an out-of-place identifier (such as 0), so as to facilitate the comparison between the current memory insertion method information and the target memory insertion method information through the setting of the memory in-place array; the current memory insertion method information may also include the number of in-place memories (that is, the target number of memories), that is, the number of memories in the in-place state, so as to facilitate the subsequent acquisition of the target memory insertion method information; for example, the BMC may parse the memory slot information of the target CPU sent by the BIOS, and extract the memory in-place array and the number of in-place memories of the target CPU. The memory in-place array may be represented in the form of 0 and 1, wherein 0 represents that the corresponding memory slot is empty, and 1 represents that a memory stick has been inserted into the memory slot.
[0058] Correspondingly, the current memory plug-in method information may also include expected performance information, that is, the expected performance of the target CPU evaluated when using the current memory plug-in method, such as the expected maximum capacity and the expected maximum frequency. For example, when the memory slot information of the target CPU also includes the capacity and frequency of the memory in each memory slot, in this step, the expected performance information in the current memory plug-in method information can be calculated based on the capacity and frequency of the memory in each memory slot in the memory slot information of the target CPU, so as to facilitate the output display of subsequent memory plug-in method prompt information, such as displaying the current expected performance information and / or the predicted performance improvement information after adopting the target memory plug-in method information.
[0059] For example, the BMC can use a common preset memory performance evaluation algorithm to calculate the expected maximum capacity and expected maximum frequency of the memory installed in the target CPU according to the capacity and frequency of the memory in each memory slot of the target CPU. The BMC can also use the preset memory performance evaluation algorithm corresponding to the model information of the target CPU to calculate the expected maximum capacity and expected maximum frequency of the memory installed in the target CPU according to the capacity and frequency of the memory in each memory slot of the target CPU, that is, the preset memory performance evaluation algorithms corresponding to the model information of different CPUs (that is, the preset processor models) can be pre-stored to improve the accuracy of the performance evaluation of the memory installed in each CPU.
[0060] Step 103: Obtain a memory insertion detection result according to the target memory insertion information and the current memory insertion information of the target CPU; wherein the target memory insertion information is preset memory insertion information of the target memory quantity corresponding to the target CPU, and the target memory quantity is the number of in-place memories corresponding to the memory slot information.
[0061] It can be understood that, in this embodiment, the target memory interpolation information of the target CPU may be a preset memory interpolation information for comparison with the current memory interpolation information, that is, the preset optimal interpolation information (such as Figure 3 Optimal memory interpolation in ).
[0062] Among them, the specific content of the target memory plug-in information in this embodiment, that is, the specific content of each preset memory plug-in information, can be set by the designer, such as being set in a manner corresponding to the current memory plug-in information, such as each preset memory plug-in information can also include its own memory in-place array, as well as the number of in-place memories and expected performance information. As long as the memory plug-in detection result can be determined by comparing the target memory plug-in information with the current memory plug-in information, that is, determining whether the current memory plug-in of the target CPU is the memory plug-in corresponding to the target memory plug-in information, this embodiment does not impose any restrictions on this.
[0063] Correspondingly, this step may also include a process for determining the target memory plug-in information before this step. For example, when the preset memory plug-in information is stored in a database, the target memory plug-in information can be searched from the database according to the model information of the target central processor and the target memory quantity. For example, in some embodiments, the target memory plug-in information corresponding to the target memory quantity can be searched from the preset memory plug-in information corresponding to the target processor model stored in the database; wherein the target processor model is a preset processor model corresponding to the model information of the target central processor, and the database stores a preset memory plug-in information corresponding to each different number of in-place memories of each preset processor model. For example, a database of memory plug-in information (i.e., preset memory plug-in information) for different CPU models may be pre-stored in the BMC, and this database may store a recommended plug-in information (preset memory plug-in information) when different numbers of memory bars are inserted (i.e., different numbers of in-place memories) under various CPU models (i.e., preset processor models).
[0064] Correspondingly, when choosing to install memory in a server such as a GPU (Graphics Processing Unit) server, it is necessary to weigh performance parameters such as memory capacity and memory frequency after the memory is installed, so that the installed memory can meet the needs of the server in the application scenario as much as possible. For example, memory capacity directly affects the amount of data that the server can process simultaneously. Larger memory capacity means that more data can be loaded into the memory, reducing disk I / O operations, thereby improving the efficiency and speed of data processing; larger memory capacity is crucial for high-capacity demand scenarios that require processing large-scale data sets, deep learning training, or high-performance computing tasks; these tasks usually involve a large amount of intermediate data processing and storage, so sufficient memory space is required to support them. Memory frequency determines the speed of memory data transmission; higher memory frequency means that data can be transferred from memory to processor in a shorter time, thereby reducing latency and improving overall performance; for high-frequency demand scenarios that require processing tasks such as high-frequency trading and real-time data analysis, that is, application scenarios that require high bandwidth and low latency, higher frequency memory is more critical.
[0065] Therefore, in some other embodiments, the process of determining the above-mentioned target memory insertion method information may include: determining the current application scenario of the server according to the running program information of the server; wherein the current application scenario is any preset application scenario, and the preset application scenario includes a high-capacity demand scenario and a high-frequency demand scenario; searching the target memory insertion method information corresponding to the current application scenario from the preset memory insertion method information corresponding to the target memory quantity of the target processor model in the database; the target processor model is a preset processor model corresponding to the model information of the target central processing unit, and the database stores a preset memory insertion method information for each preset application scenario corresponding to each different number of in-situ memories of each preset processor model. The database can store a recommended insertion method information (preset memory insertion method information) corresponding to each high-capacity demand scenario and high-frequency demand scenario when different numbers of memory strips are inserted (i.e. different in-situ memory quantities) under various CPU models (i.e. preset processor models). For example, the BMC can determine the current application scenario of the server based on information such as the task type, data size, and processing speed requirements of the programs running in the server (i.e., running program information). For example, when running a program that mainly relies on the processing of large-scale data sets and does not have extremely high requirements for processing speed, the current application scenario is determined to be a high-capacity demand scenario that requires a larger memory capacity; when running a program that has extremely high requirements for processing speed and data volume is not the main bottleneck, the current application scenario is determined to be a high-frequency demand scenario that requires a higher memory frequency.
[0066] Correspondingly, when the server is a GPU server, the process of determining the current application scenario of the server based on the running program information of the above server may include: determining the current application scenario of the server based on the type of GPU in the GPU server and the running program information. For example, the BMC may determine whether a training program with high memory capacity requirements is being performed based on the GPU type of the GPU server and the running program information of the GPU obtained from the operating system (OS), thereby determining that the current application scenario is a high capacity requirement scenario when a training program with high memory capacity requirements is being performed.
[0067] Further, in order to improve the accuracy of the determined target memory plug-in information, when the memory slot information of the target CPU also includes the capacity and frequency of the memory in each memory slot, in other embodiments, the determination process of the above-mentioned target memory plug-in information may include: determining the current application scenario of the server according to the running program information of the server; calculating the expected performance information corresponding to each of the optional preset memory plug-in information corresponding to the target processor model stored in the database according to the capacity and frequency of the memory in each memory slot in the memory slot information of the target central processor; wherein the optional preset memory plug-in information is each preset memory plug-in information corresponding to the target memory quantity, and the expected performance information includes the expected maximum capacity and / or the expected maximum frequency; if the current application scenario is a high-capacity demand scenario, the optional preset memory plug-in information corresponding to the largest expected maximum capacity in the expected performance information is determined as the target memory plug-in information; if the current application scenario is a high-frequency demand scenario, the optional preset memory plug-in information corresponding to the largest expected maximum frequency in the expected performance information is determined as the target memory plug-in information.
[0068] That is to say, in the process of determining the target memory plug-in information, the capacity and frequency of the memory in each memory slot of the target CPU can be used to calculate the expected performance that can be achieved by each preset memory plug-in information (that is, the optional preset memory plug-in information) corresponding to the current number of in-place memories of the target CPU, so as to select a preset memory plug-in information with the best expected performance as the target memory plug-in information. For example, the BMC can use a universal preset memory performance evaluation algorithm to calculate the current expected maximum capacity and expected maximum frequency of the memory installed in the target CPU, and the expected maximum capacity and expected maximum frequency corresponding to each optional preset memory plug-in information, based on the capacity and frequency of the memory in each memory slot of the target CPU. The BMC can also use the preset memory performance evaluation algorithm corresponding to the model information of the target CPU to calculate the current expected maximum capacity and expected maximum frequency of the memory installed in the target CPU, and the expected maximum capacity and expected maximum frequency corresponding to each optional preset memory plug-in information, based on the capacity and frequency of the memory in each memory slot of the target CPU, that is, the preset memory performance evaluation algorithm corresponding to each model information of different CPUs (that is, the preset processor model) can be pre-stored to improve the accuracy of performance evaluation.
[0069] It should be noted that, in step 103, a memory plug-in method detection result can be obtained by comparing the target memory plug-in method information with the current memory plug-in method information; the memory plug-in method detection result may include a target plug-in method of the current memory plug-in method of the target CPU, a memory plug-in method corresponding to the target storage plug-in method information, and a non-target plug-in method of the memory plug-in method not corresponding to the target storage plug-in method information, so that when the memory plug-in method detection result is a non-target plug-in method, the user is prompted through step 104 to install the memory in the server in a better way, thereby improving the memory performance of the server.
[0070] Correspondingly, when the memory insertion method detection result is at the target insertion method, the process can be directly terminated or a prompt message indicating that the optimal memory insertion method has been reached can be output; the prompt message can also include expected performance information, such as expected maximum capacity and expected maximum frequency.
[0071] Step 104: if the memory interpolation detection result is non-target interpolation, outputting memory interpolation prompt information corresponding to the target memory interpolation information.
[0072] It is understandable that in this step, when it is determined that the memory insertion method detection result is a non-target insertion method, the memory insertion method prompt information corresponding to the target memory insertion method information can be output to prompt the user to install the memory in the server in a better way, thereby improving the memory performance of the server.
[0073] Correspondingly, the specific method of outputting the memory insertion method prompt information corresponding to the target memory insertion method information in this step can be set by the designer according to practical scenarios and user needs, such as Figure 2 and Figure 3 As shown, the BMC can display the memory insertion method prompt information corresponding to the output target memory insertion method information on a Web page (BMC Web) to remind and recommend a better memory insertion method; for example, the BMC can display the memory insertion method prompt information corresponding to the target memory insertion method information on a page of an IPMI management platform.
[0074] Accordingly, this embodiment does not limit the specific content of the memory insertion method prompt information. For example, the memory insertion method prompt information may include memory installation information corresponding to the target memory insertion method information, such as which memory slots need to be inserted with memory and which memory slots can be left vacant; the memory insertion method prompt information may also include expected performance improvement information, such as an improved capacity value or improved percentage corresponding to the expected maximum capacity, and / or an improved frequency value or improved percentage corresponding to the expected maximum frequency.
[0075] Correspondingly, before outputting the memory insertion prompt information corresponding to the target memory insertion information, the expected performance information corresponding to the current memory insertion information and the target memory insertion information can also be calculated based on the capacity and frequency of the memory in each memory slot in the memory slot information of the target central processing unit; wherein the expected performance information includes the expected maximum capacity and the expected maximum frequency; based on the expected performance information, the expected performance improvement information corresponding to the target memory insertion information is determined, such as calculating the difference between the expected maximum capacity and the expected maximum frequency of the target memory insertion information and the expected maximum capacity and the expected maximum frequency of the current memory insertion information, to obtain the improved capacity value and the improved frequency value in the expected performance improvement information.
[0076] Furthermore, the method provided in this embodiment may also include an optimization process for preset memory plug-in information. For example, after the BMC displays and outputs memory plug-in prompt information corresponding to the target memory plug-in information through a Web page, it may also receive a memory plug-in optimization instruction triggered by the Web page; according to the memory plug-in adjustment information in the memory plug-in optimization instruction, the target memory plug-in information is adjusted and updated; for example, the memory plug-in adjustment information may be the current memory plug-in of the specified target CPU, that is, after understanding the memory plug-in prompt information, the user may reinstall the memory of the target CPU according to requirements, and after installing the memory of the target CPU in a manner that best meets the requirements, trigger the memory plug-in optimization instruction through the BMC Web page to optimize the target memory plug-in information to the plug-in information corresponding to the adjusted memory plug-in of the target CPU, thereby realizing continuous learning and optimization of the preset memory plug-in information.
[0077] Correspondingly, the method provided in the embodiment may further include the BMC receiving a memory plug-in adjustment instruction triggered by a Web page; and adjusting and updating the preset memory plug-in information corresponding to the memory plug-in adjustment instruction according to the memory plug-in configuration information in the memory plug-in adjustment instruction. In other words, the user may trigger the memory plug-in adjustment instruction through the BMC Web page to adjust the preset memory plug-in information in the database.
[0078] Furthermore, the method provided in this embodiment may also include determining whether the number of in-place memories corresponding to the memory slot information of the target CPU is the number of actually inserted memories; if not, a memory insertion error prompt message is displayed, such as a memory insertion error prompt message displayed on a Web page, to prompt the user that there is an unrecognized memory situation. For example, the user may input the number of actually inserted memories on the Web page of the BMC, so that the BMC can determine whether the number of in-place memories corresponding to the memory slot information of the target CPU is the number of actually inserted memories, thereby facilitating subsequent fault diagnosis.
[0079] In this embodiment, the embodiment of the present invention obtains the memory insertion method detection result according to the target memory insertion method information and the current memory insertion method information of the target central processing unit, and can compare the current installation status of the CPU memory obtained in real time with the preset optimal insertion method corresponding to these memories, so as to provide the user with optimization prompts and suggestions for the memory insertion method when the current installation status is not the optimal insertion method, prompting the user to install the memory in the server in a better way, thereby improving the memory performance of the server.
[0080] Corresponding to the above method embodiment, an embodiment of the present invention further provides a memory installation detection device for a server. The memory installation detection device for a server described below and the memory installation detection method for a server described above can refer to each other.
[0081] Please refer to Figure 4 , Figure 4 This is a structural block diagram of a memory installation detection device for a server provided in an embodiment of the present invention. The device may include:
[0082] The acquisition module 10 is used to acquire the memory slot information of the target CPU in the server; wherein the target CPU is any CPU in the server, and the memory slot information includes the in-place status of the memory in each memory slot of the target CPU;
[0083] The determination module 20 is used to determine the current memory insertion method information of the target central processor according to the memory slot information; wherein the current memory insertion method information includes a memory in-place array, the memory in-place array includes in-place state identifiers corresponding to all memory slots arranged in a preset order, and the in-place state identifiers include in-place identifiers and out-of-place identifiers;
[0084] The detection module 30 is used to obtain a memory insertion detection result according to the target memory insertion information and the current memory insertion information of the target CPU; wherein the target memory insertion information is the preset memory insertion information of the target memory quantity corresponding to the target CPU, and the target memory quantity is the number of in-place memories corresponding to the memory slot information;
[0085] The prompt module 40 is configured to output memory interpolation prompt information corresponding to the target memory interpolation information if the memory interpolation detection result is a non-target interpolation.
[0086] In some embodiments, the apparatus may further include:
[0087] The search module is used to search the target memory insertion method information from the database according to the model information of the target central processor and the target memory quantity.
[0088] In some embodiments, the search module can be specifically used to search for target memory insertion information corresponding to the target memory quantity from the preset memory insertion information corresponding to the target processor model stored in the database; wherein the target processor model is a preset processor model corresponding to the model information of the target central processing unit, and the database stores a preset memory insertion information corresponding to each different in-place memory quantity of each preset processor model.
[0089] In some embodiments, the lookup module may include:
[0090] A first scenario determination submodule is used to determine a current application scenario of the server according to the running program information of the server; wherein the current application scenario is any preset application scenario, and the preset application scenarios include high-capacity demand scenarios and high-frequency demand scenarios;
[0091] The search submodule is used to search for the target memory plug-in information corresponding to the current application scenario from the preset memory plug-in information corresponding to the target memory quantity of the target processor model in the database; the target processor model is a preset processor model corresponding to the model information of the target central processor, and the database stores a preset memory plug-in information for each preset application scenario corresponding to each different in-place memory quantity of each preset processor model.
[0092] In some embodiments, the memory slot information further includes the capacity and frequency of the memory in each memory slot, and the search module may include:
[0093] The second scenario determination submodule is used to determine the current application scenario of the server according to the running program information of the server; wherein the current application scenario is any preset application scenario, and the preset application scenarios include high-capacity demand scenarios and high-frequency demand scenarios;
[0094] A calculation submodule, for calculating, based on the capacity and frequency of the memory in each memory slot in the memory slot information of the target central processor, the expected performance information corresponding to each of the optional preset memory plug-in information corresponding to the target processor model stored in the database; wherein the target processor model is a preset processor model corresponding to the model information of the target central processor, the optional preset memory plug-in information is each preset memory plug-in information corresponding to the target memory quantity, and the expected performance information includes an expected maximum capacity and / or an expected maximum frequency;
[0095] A first target determination submodule is configured to determine, if the current application scenario is a high-capacity demand scenario, the optional preset memory interpolation method information corresponding to the largest expected maximum capacity in the expected performance information as the target memory interpolation method information;
[0096] The second target determination submodule is used for the calculation submodule, and is used to determine the optional preset memory interpolation information corresponding to the maximum expected maximum frequency in the expected performance information as the target memory interpolation information if the current application scenario is a high-frequency demand scenario.
[0097] In some embodiments, the device is applied to a baseboard management controller and may further include:
[0098] The receiving submodule is used to receive and store the memory slot information of each central processing unit in the server sent by the basic input and output system; wherein the basic input and output system inquires and obtains the memory slot information of each central processing unit when the server is turned on.
[0099] In some embodiments, the device is applied to a baseboard management controller and may further include:
[0100] The instruction receiving submodule is used to receive the memory insertion optimization instruction triggered by the web page;
[0101] The tuning submodule is used to adjust and update the target memory interpolation information according to the memory interpolation adjustment information in the memory interpolation optimization instruction.
[0102] In some embodiments, the apparatus may further include:
[0103] An expected evaluation module is used to calculate the expected performance information corresponding to the current memory insertion method information and the target memory insertion method information according to the capacity and frequency of the memory in each memory slot in the memory slot information of the target central processor; wherein the expected performance information includes the expected maximum capacity and the expected maximum frequency;
[0104] The improvement determination module is used to determine the expected performance improvement information corresponding to the target memory interpolation method information according to the expected performance information; wherein the memory interpolation method prompt information includes the expected performance improvement information.
[0105] In this embodiment, the embodiment of the present invention obtains the memory insertion method detection result according to the target memory insertion method information and the current memory insertion method information of the target central processing unit through the detection module 30, and can compare the current installation status of the CPU memory obtained in real time with the preset optimal insertion method corresponding to these memories, so as to provide the user with optimization prompts and suggestions for the memory insertion method when the current installation status is not the optimal insertion method, prompting the user to install the memory in the server in a better way, thereby improving the memory performance of the server.
[0106] Corresponding to the above method embodiment, an embodiment of the present invention further provides a memory installation detection device for a server. The memory installation detection device for a server described below and the memory installation detection method for a server described above can refer to each other.
[0107] Please refer to Figure 5 , Figure 5 A schematic diagram of the structure of a memory installation detection device for a server provided in an embodiment of the present invention. The device may include:
[0108] A memory D1, for storing computer programs;
[0109] The processor D2 is used to implement the steps of the server memory installation detection method provided by the above method embodiment when executing a computer program.
[0110] The memory installation detection device for a server provided in this embodiment may specifically be a baseboard management controller (BMC) in the server; or may specifically be a server, which is not limited in this embodiment.
[0111] Corresponding to the above method embodiment, an embodiment of the present invention further provides a computer program product. The computer program product described below and the memory installation detection method of a server described above can refer to each other.
[0112] A computer program product includes a computer program / instruction, which, when executed by a processor, implements the steps of the server memory installation detection method provided in the above method embodiment.
[0113] Corresponding to the above method embodiment, an embodiment of the present invention further provides a computer-readable storage medium. The computer-readable storage medium described below and the memory installation detection method of a server described above can refer to each other.
[0114] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the memory installation detection method of the server of the above method embodiment are implemented.
[0115] The computer-readable storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., which can store program codes.
[0116] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the devices, equipment, computer program products and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0117] The above is a detailed introduction to the memory installation detection method, device and equipment of a server provided by the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified, and these improvements and modifications also fall within the scope of protection of the present invention.
Claims
1. A method for detecting memory installation of a server, characterized in that: include: Obtaining memory slot information of a target central processor in a server; wherein the target central processor is any central processor in the server, and the memory slot information includes the in-place status of the memory in each memory slot of the target central processor; Determine the current memory insertion method information of the target central processor according to the memory slot information; wherein the current memory insertion method information includes a memory in-place array, the memory in-place array includes in-place status identifiers corresponding to all the memory slots arranged in a preset order, and the in-place status identifiers include in-place identifiers and out-of-place identifiers; Obtain a memory insertion method detection result according to the target memory insertion method information of the target CPU and the current memory insertion method information; wherein the target memory insertion method information is preset memory insertion method information of the target memory quantity corresponding to the target CPU, and the target memory quantity is the number of in-place memories corresponding to the memory slot information; If the memory interpolation detection result is non-target interpolation, memory interpolation prompt information corresponding to the target memory interpolation information is output.
2. The memory installation detection method of a server according to claim 1, characterized in that: Before obtaining the memory interpolation detection result according to the target memory interpolation information of the target central processor and the current memory interpolation information, the method further includes: According to the model information of the target central processing unit and the target memory quantity, the target memory insertion method information is searched from a database.
3. The memory installation detection method of a server according to claim 2, characterized in that: The step of searching the target memory insertion method information from a database according to the model information of the target central processor and the target memory quantity includes: The target memory interpolation information corresponding to the target memory quantity is searched from the preset memory interpolation information corresponding to the target processor model stored in the database; wherein the target processor model is a preset processor model corresponding to the model information of the target central processing unit, and the database stores a preset memory interpolation information corresponding to each different in-place memory quantity of each preset processor model.
4. The memory installation detection method of a server according to claim 2, characterized in that: The step of searching the target memory insertion method information from a database according to the model information of the target central processor and the target memory quantity includes: Determine the current application scenario of the server according to the running program information of the server; wherein the current application scenario is any preset application scenario, and the preset application scenario includes a high-capacity demand scenario and a high-frequency demand scenario; The target memory interpolation information corresponding to the current application scenario is searched from the preset memory interpolation information corresponding to the target memory quantity of the target processor model in the database; the target processor model is a preset processor model corresponding to the model information of the target central processing unit, and the database stores a preset memory interpolation information for each preset application scenario corresponding to each different in-place memory quantity of each preset processor model.
5. The memory installation detection method of a server according to claim 1, characterized in that: The memory slot information also includes the capacity and frequency of the memory in each memory slot. The step of searching the target memory slot information from a database according to the model information of the target CPU and the target memory quantity includes: Determine the current application scenario of the server according to the running program information of the server; wherein the current application scenario is any preset application scenario, and the preset application scenario includes a high-capacity demand scenario and a high-frequency demand scenario; According to the capacity and frequency of the memory in each memory slot in the memory slot information of the target central processor, the expected performance information corresponding to each optional preset memory plug-in method information corresponding to the target processor model stored in the database is calculated; wherein the target processor model is a preset processor model corresponding to the model information of the target central processor, the optional preset memory plug-in method information is each preset memory plug-in method information corresponding to the target memory quantity, and the expected performance information includes an expected maximum capacity and / or an expected maximum frequency; If the current application scenario is the high-capacity demand scenario, determining the optional preset memory interpolation method information corresponding to the largest expected maximum capacity in the expected performance information as the target memory interpolation method information; If the current application scenario is the high-frequency demand scenario, the optional preset memory interpolation information corresponding to the largest expected maximum frequency in the expected performance information is determined as the target memory interpolation information.
6. The memory installation detection method of a server according to claim 1, characterized in that: Before obtaining the memory slot information of the target central processor in the server, the method further includes: The baseboard management controller receives and stores the memory slot information of each central processing unit in the server sent by the basic input and output system; wherein the basic input and output system inquires and obtains the memory slot information of each central processing unit when the server is turned on.
7. The memory installation detection method of a server according to claim 1, characterized in that: After outputting the memory insertion method prompt information corresponding to the target memory insertion method information, the method further includes: The baseboard management controller receives a memory insertion optimization instruction triggered by a web page; The target memory interpolation information is adjusted and updated according to the memory interpolation adjustment information in the memory interpolation optimization instruction.
8. The memory installation detection method of a server according to any one of claims 1 to 7, characterized in that: The memory slot information also includes the capacity and frequency of the memory in each of the memory slots. Before outputting the memory insertion method prompt information corresponding to the target memory insertion method information, the method further includes: According to the capacity and frequency of the memory in each memory slot in the memory slot information of the target central processor, the expected performance information corresponding to the current memory insertion method information and the target memory insertion method information is calculated; wherein the expected performance information includes an expected maximum capacity and an expected maximum frequency; According to the expected performance information, the expected performance improvement information corresponding to the target memory interpolation method information is determined; wherein the memory interpolation method prompt information includes the expected performance improvement information.
9. A memory installation detection device for a server, characterized in that: include: An acquisition module, used for acquiring memory slot information of a target CPU in a server; wherein the target CPU is any CPU in the server, and the memory slot information includes the in-place status of the memory in each memory slot of the target CPU; A determination module, configured to determine the current memory insertion method information of the target central processor according to the memory slot information; wherein the current memory insertion method information includes a memory in-place array, the memory in-place array includes in-place status identifiers corresponding to all the memory slots arranged in a preset order, and the in-place status identifiers include in-place identifiers and out-of-place identifiers; A detection module, configured to obtain a memory insertion detection result according to the target memory insertion information of the target CPU and the current memory insertion information; wherein the target memory insertion information is preset memory insertion information of the target memory quantity corresponding to the target CPU, and the target memory quantity is the number of in-place memories corresponding to the memory slot information; The prompt module is used for outputting memory interpolation prompt information corresponding to the target memory interpolation information if the memory interpolation detection result is a non-target interpolation.
10. A memory installation detection device for a server, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the memory installation detection method for a server as described in any one of claims 1 to 8 when executing the computer program.
Citation Information
Cited By
Equipment installation detection system and method
CN122431967A