A method, apparatus and medium for adjusting server video memory size
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-30
- Publication Date
- 2026-08-14
AI Technical Summary
[0005]本申请的目的是提供一种服务器显存大小调整方法、装置及介质,解决服务器显存大小调整时可能产生的显示花屏问题
[0037]本申请所提供的服务器显存大小调整方法,当服务器上电时,判断基板管理控制器当前是否为断电后上电复位状态;若是,将基板管理控制器的显存大小调整为预设值后启动基板管理控制器;若否,判断基板管理控制器的历史启动记录中是否包括断电后上电复位信息;若包括,则将基板管理控制器的显存大小调整为预设值后启动基板管理控制器;若不包括,则保持当前的显存大小启动基板管理控制器。在服务器重新开机后,若基板管理控制器当前是断电后上电复位状态,先将基板管理控制器的显存大小调整为预设值,机器上电基板管理控制器启动后在开机之前已经将显存调整为预设值,开机运行过程中没有了显存变化,就不会发生显示花屏问题。若基板管理控制器在此前的启动过程中已经存在过断电后上电复位,则也先将基板管理控制器的显存大小调整为预设值后启动基板管理控制器,通过这种方法,满足已出货到客户现场产品显存的大小动态调整兼容。给使用者带来了很大的方便,增加了服务器的易用性。
Smart Images

Figure CN116610452B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic technology, and in particular to a method, apparatus and medium for adjusting the size of server video memory. Background Technology
[0002] In existing servers, the baseboard management controller (BMC) is a dedicated service processor that uses sensors to monitor the status of a computer, network server, or other hardware driver and communicates with the system administrator via a separate connection. BMC chips typically use 16MB of video memory by default. However, with the continuous development of computer technology and the increasing resolution of displays, 16MB of video memory is no longer sufficient for the needs of high-resolution, large-screen applications. In many use cases, 16MB of video memory is clearly inadequate. Currently, BMC chips can typically adjust the maximum video memory to 64MB by modifying register values.
[0003] For products not yet shipped, BMC can directly increase the video memory in this way. However, for servers already shipped to customer sites and in operation, directly increasing the video memory by BMC will cause a problem: adjusting from 16MB to 64MB without restarting the server will cause screen flickering due to the change in video memory, severely affecting normal customer use. The only solution is to restart the machine or power cycle it. Since the servers at customer sites are already online and in operation, a direct restart is not possible, as it could disrupt normal business operations.
[0004] Therefore, how to solve the display problem that may occur when adjusting the size of server video memory is a technical problem that urgently needs to be solved by people in this field. Summary of the Invention
[0005] The purpose of this application is to provide a method, apparatus, and medium for adjusting the size of server video memory, so as to solve the problem of screen distortion that may occur when adjusting the size of server video memory.
[0006] To address the aforementioned technical problems, this application provides a method for adjusting server video memory size, comprising:
[0007] When the server is powered on, it is determined whether the baseboard management controller is currently in the power-on reset state after power failure.
[0008] If so, the baseboard management controller is started after adjusting the memory size of the baseboard management controller to a preset value;
[0009] If not, determine whether the historical startup record of the baseboard management controller includes power-on reset information after power failure;
[0010] If included, proceed to the step of adjusting the memory size of the substrate management controller to the preset value and then starting the substrate management controller;
[0011] If not included, the current memory size is maintained and the baseboard management controller is started.
[0012] In one embodiment, the method for adjusting the size of the server video memory described above, the step of determining whether the baseboard management controller is currently in a power-on reset state after a power outage, includes:
[0013] Obtain the power-on reset flag of the baseboard management controller;
[0014] If the power-on reset flag indicates a power-on reset, then the baseboard management controller is currently in a power-on reset state after power failure.
[0015] In one embodiment, in the above server memory size adjustment method, if it is determined that the baseboard management controller is currently in a power-on reset state after a power outage, the method further includes:
[0016] The power-on reset information of the baseboard management controller is saved to a preset storage address in the static random access memory.
[0017] In one embodiment, in the above-described server video memory size adjustment method, determining whether the historical startup record of the baseboard management controller includes power-on reset information after power failure includes:
[0018] Determine whether the information stored in the preset storage address is power-on reset information;
[0019] If so, it is determined that the historical startup record of the baseboard management controller includes power-on reset information after power failure;
[0020] If not, then it is determined that the historical startup record of the baseboard management controller does not include power-on reset information after power failure.
[0021] In one embodiment, the above-described server memory size adjustment method, before determining whether the baseboard management controller is currently in a power-on reset state after a power outage when the server is powered on, further includes:
[0022] Obtain the baseboard management controller upgrade software package;
[0023] The baseboard management controller is upgraded according to the baseboard management controller upgrade software package.
[0024] In one embodiment, in the above-described server video memory size adjustment method, the preset value is the maximum value of the video memory.
[0025] In one embodiment, the server video memory size adjustment method, after adjusting the video memory size of the baseboard management controller to a preset value, further includes:
[0026] The information that the memory size of the substrate management controller has been adjusted to a preset value is recorded in the log of the substrate management controller.
[0027] To address the aforementioned technical problems, this application also provides a server video memory size adjustment device, characterized in that it includes:
[0028] The first judgment module is used to determine whether the baseboard management controller is currently in a power-on reset state after a power failure when the server is powered on; if yes, the adjustment module is triggered; if no, the second judgment module is triggered.
[0029] The adjustment module is used to adjust the memory size of the substrate management controller to a preset value and then start the substrate management controller.
[0030] The second judgment module is used to determine whether the historical startup record of the baseboard management controller includes power-on reset information after power failure; if it does, the adjustment module is triggered; if it does not, the holding module is triggered.
[0031] The adjustment module is used to adjust the memory size of the substrate management controller to the preset value and then start the substrate management controller.
[0032] A retention module is used to maintain the current video memory size when the baseboard management controller is started.
[0033] To address the aforementioned technical problems, this application also provides a server video memory size adjustment device, characterized in that it includes:
[0034] Memory, used to store computer programs;
[0035] A processor, used to implement the steps of the above-described server video memory size adjustment method when executing the computer program.
[0036] To address the aforementioned technical problems, this application also provides a computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, it implements the steps of the above-described server video memory size adjustment method.
[0037] The server video memory size adjustment method provided in this application determines whether the baseboard management controller is currently in a power-on reset state after a power outage when the server is powered on. If so, the video memory size of the baseboard management controller is adjusted to a preset value before starting the baseboard management controller. If not, it determines whether the historical startup record of the baseboard management controller includes power-on reset information after a power outage. If it does, the video memory size of the baseboard management controller is adjusted to the preset value before starting the baseboard management controller. If it does not, the current video memory size is maintained before starting the baseboard management controller. After the server restarts, if the baseboard management controller is currently in a power-on reset state after a power outage, the video memory size of the baseboard management controller is adjusted to the preset value first. Since the video memory has already been adjusted to the preset value before the machine is powered on, there is no video memory change during startup, thus preventing screen flickering issues. If the baseboard management controller has previously experienced a power-on reset during startup, the video memory size of the baseboard management controller is also adjusted to the preset value before starting the baseboard management controller. This method ensures compatibility with dynamic adjustment of video memory size in products already shipped to customer sites. It brings great convenience to users and increases the ease of use of the server.
[0038] In addition, this application also provides an apparatus and a medium that correspond to the above method and have the same effect. Attached Figure Description
[0039] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0040] Figure 1 A flowchart illustrating a method for adjusting server video memory size provided in this application embodiment;
[0041] Figure 2 A structural diagram of a server video memory size adjustment device provided in an embodiment of this application;
[0042] Figure 3 This is a structural diagram of another server video memory size adjustment device provided in an embodiment of this application. Detailed Implementation
[0043] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.
[0044] The core of this application is to provide a method, device, and medium for adjusting the size of server video memory, thereby solving the problem of screen flickering that may occur when adjusting the size of server video memory.
[0045] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0046] A baseboard management controller (BMC) is a dedicated service processor that uses sensors to monitor the status of a computer, network server, or other hardware driver and communicates with the system administrator via a separate connection. The BMC is part of the Intelligent Platform Management Interface (IPMI) and is typically contained within the motherboard or the main circuit board of the monitored device.
[0047] BMC's sensors measure internal physical variables such as temperature, humidity, power supply voltage, fan speed, communication parameters, and operating system (OS) functions. If any of these variables exceeds specified limits, it notifies the administrator. The administrator then uses remote control to take appropriate action. Monitoring devices can be cycled or restarted when necessary. This allows a single administrator to remotely control numerous servers and other devices simultaneously. This reduces overall network costs and ensures reliability.
[0048] With the rapid development of cloud computing technology and the Internet industry, servers are being used more and more widely in practical applications, especially in large data centers and cloud computing bases. Tens of thousands or even hundreds of thousands of servers are often deployed in a data center. Therefore, the ease of management and use of servers has become the most important issue for server users and managers.
[0049] In existing servers, BMC chips typically use 16MB of video memory. However, with the continuous development of computer technology and the increasing resolution of monitors, 16MB of video memory is no longer sufficient for the needs of high-resolution, large-screen scenarios. By modifying the register values, the video memory can be adjusted to a maximum of 64MB. For products that have not yet been shipped, BMC can directly increase the video memory in this way. However, for servers already shipped to customer sites and in operation, directly increasing the video memory by BMC presents a problem: adjusting directly from 16MB to 64MB, without restarting the server, will cause screen distortion due to the change in video memory, severely affecting normal customer use. The only solution is to restart the machine or power off and restart it. Since the servers at customer sites are already online and in operation, a direct restart is not possible, as it could disrupt normal business operations.
[0050] To address the aforementioned problem, this embodiment provides a method for adjusting server video memory size, including:
[0051] S11: When the server is powered on, determine whether the baseboard management controller is currently in the power-on reset state after power failure;
[0052] S12: If so, adjust the memory size of the baseboard management controller to the preset value and then start the baseboard management controller.
[0053] S13: If not, determine whether the historical startup record of the baseboard management controller includes power-on reset information after power failure; if it does, proceed to step S12; if it does not, proceed to step S14.
[0054] S14: Maintain the current memory size and start the board management controller.
[0055] The Baseboard Management Controller (BMC) is a core functional subsystem of a server, responsible for core functions such as hardware status management, operating system management, health status management, and power consumption management. The BMC is a small operating system independent of the server system. It does not depend on other hardware on the system (such as the CPU, memory, etc.), nor on the Basic Input / Output System (PIS) or the operating system (although the BMC can interact with the PIS and the operating system, thus providing better platform management; the operating system has system management software that can work in conjunction with the BMC to achieve better management results). Therefore, when the server powers on, the BMC is not necessarily reset upon power-on after a power outage.
[0056] In this embodiment, when the server powers on, it is determined whether the baseboard management controller is currently in a power-on reset state after a power outage; that is, whether the baseboard management controller was started by interrupting and re-energizing the AC power. If so, the video memory size of the baseboard management controller is adjusted to a preset value. On one hand, the preset value is the maximum value of the video memory. For example, if the baseboard management controller's video memory size was originally 16MB, when the server powers on, if it is determined that the baseboard management controller is currently in a power-on reset state after a power outage, the video memory size is adjusted to 64MB. This way, after the machine restarts, it directly uses 64MB of video memory. Since there is no change in video memory during startup (the video memory was already adjusted to 64MB before the machine was powered on), the display distortion problem will not occur.
[0057] If it is determined that the current startup of the baseboard management controller was not due to an AC power outage and subsequent power-on, S13: Then, it is determined whether the historical startup record of the baseboard management controller includes power-on reset information after a power outage. In other words, it is determined whether a power-on reset occurred before this startup. Typically, the startup information of the baseboard management controller is stored. If a power-on reset occurred before this startup, the memory size of the baseboard management controller is adjusted to a preset value before starting the baseboard management controller. If no power-on reset occurred before this startup, the current memory size is maintained before starting the baseboard management controller. Because the memory size of the baseboard management controller is modified before startup, screen flickering is avoided.
[0058] The server video memory size adjustment method provided in this embodiment determines whether the baseboard management controller is currently in a power-on reset state after a power outage when the server is powered on. If so, the video memory size of the baseboard management controller is adjusted to a preset value before starting the baseboard management controller. If not, it determines whether the historical startup record of the baseboard management controller includes power-on reset information after a power outage. If it does, the video memory size of the baseboard management controller is adjusted to the preset value before starting the baseboard management controller. If it does not, the current video memory size is maintained before starting the baseboard management controller. After the server restarts, if the baseboard management controller is currently in a power-on reset state after a power outage, the video memory size of the baseboard management controller is first adjusted to the preset value. Since the video memory has already been adjusted to the preset value before the machine is powered on, there is no video memory change during startup, thus preventing screen flickering issues. If the baseboard management controller has previously experienced a power-on reset during startup, the video memory size of the baseboard management controller is also first adjusted to the preset value before starting the baseboard management controller. This method ensures compatibility with dynamic adjustment of video memory size for products already shipped to customer sites. It brings great convenience to users and increases the ease of use of the server.
[0059] According to the above embodiments, in one embodiment, determining whether the baseboard management controller is currently in a power-on reset state after a power outage includes:
[0060] Obtain the power-on reset flag of the baseboard management controller;
[0061] If the power-on reset flag indicates a power-on reset, then the baseboard management controller is currently in a power-on reset state after power failure.
[0062] In this embodiment, the power-on reset flag of the baseboard management controller is obtained, that is, the power-on reset flag in the register is obtained. If Bit[0] = 1, it means that the baseboard management controller was started by AC power failure and power-on (i.e., the server was powered off and then powered on).
[0063] If Bit[0] = 0, it means that the board management controller was not started by AC power failure and power-on.
[0064] According to the above embodiments, in one embodiment, if it is determined that the baseboard management controller is currently in a power-on reset state after a power-off, the process further includes:
[0065] The power-on reset information of the baseboard management controller is saved to a preset storage address in the static random access memory.
[0066] Static Random-Access Memory (SRAM) is a type of random access memory. The term "static" means that the data stored in this type of memory is permanently retained as long as it is powered on. To prevent data loss after the baseboard management controller (BMDC) loses power, the BMDC's power-on reset information is saved to SRAM. This embodiment does not limit how the power-on reset information is set, nor does it limit the preset storage address; it can be set according to actual needs. For example, to save the server's power-on reset information: the value 0x5A5A5A5A is written to the BMDC's SRAM. Here, we select a higher, unused address 0x1E728FFC for the BMDC and save the value 0x5A5A5A5A at address 0x1E728FFC in the SRAM. This ensures that the data is not lost after restarting the BMDC (but is lost after power failure).
[0067] According to the above embodiments, in one embodiment, determining whether the historical startup record of the baseboard management controller includes power-on reset information after power failure includes:
[0068] Determine whether the information stored in the preset storage address is power-on reset information;
[0069] If so, it is determined that the historical startup record of the baseboard management controller includes power-on reset information after power failure;
[0070] If not, then it is determined that the historical startup record of the baseboard management controller does not include power-on reset information after power failure.
[0071] According to the above embodiment, if Bit[0] = 0, it indicates that the baseboard management controller was not started by AC power failure and power-on. The historical startup record of the baseboard management controller is determined by judging whether the information stored in the preset memory address is power-on reset information; if so, the memory size of the baseboard management controller is adjusted to the preset value.
[0072] For example, if the value at address 0x1E728FFC in the static random access memory area of the baseboard management controller is read, and the value is 0x5A5A5A5A, it means that the server has been powered off and then powered on again. The baseboard management controller will then adjust the video memory size to the preset value.
[0073] If the information stored in the preset memory address is not the power-on reset information, it means that the current baseboard management controller has not experienced a situation of restarting after an AC power outage. Therefore, the baseboard management controller will still be started with the current memory size.
[0074] According to the above embodiments, in one embodiment, before determining whether the baseboard management controller is currently in a power-on reset state after a power failure when the server is powered on, the method further includes:
[0075] Obtain the baseboard management controller upgrade software package;
[0076] The baseboard management controller is upgraded according to the baseboard management controller upgrade software package.
[0077] For unshipped baseboard management controllers, the default value can be directly set. However, for products already shipped to customers, the upgrade software package provided in this embodiment can be obtained, and the baseboard management controller can be upgraded according to the upgrade software package. After upgrading to the new version of the baseboard management controller, if the machine has not been restarted or powered off, the original video memory size will still be used. If the machine has been powered off once, the baseboard management controller will directly adjust the video memory size to the default value during the power-on startup process. This way, after the machine restarts, the default value will also be used directly. Since there is no change in video memory during startup (the baseboard management controller adjusts the video memory to the default value before powering on), the display distortion problem will not occur. This method satisfies both the need to adjust video memory for unshipped products and the need for dynamic adjustment of video memory size for products already shipped to customer sites. This greatly facilitates users and significantly increases the usability of the server.
[0078] According to the above embodiments, in one embodiment, after adjusting the memory size of the substrate management controller to a preset value, the method further includes:
[0079] The information that the memory size of the substrate management controller has been adjusted to a preset value is recorded in the log of the substrate management controller.
[0080] The above embodiments have described the method for adjusting server video memory size in detail. This application also provides embodiments corresponding to a server video memory size adjustment device. It should be noted that this application describes the embodiments of the device part from two perspectives: one is based on the functional module, and the other is based on the hardware.
[0081] From the perspective of functional modules Figure 2 A structural diagram of a server video memory size adjustment device provided in an embodiment of this application is shown below. Figure 2 As shown, the server video memory size adjustment device includes:
[0082] The first judgment module 21 is used to determine whether the baseboard management controller is currently in a power-on reset state after a power failure when the server is powered on; if yes, the adjustment module is triggered; if no, the second judgment module is triggered.
[0083] Adjustment module 22 is used to adjust the memory size of the baseboard management controller to a preset value and then start the baseboard management controller.
[0084] The second judgment module 23 is used to determine whether the historical startup record of the baseboard management controller includes power-on reset information after power failure; if it does, the adjustment module 22 is triggered; if it does not, the holding module 24 is triggered.
[0085] The holding module 24 is used to maintain the current video memory size and start the baseboard management controller.
[0086] The server video memory size adjustment device provided in this embodiment includes a first judgment module 21, which determines whether the baseboard management controller is currently in a power-on reset state after a power outage when the server is powered on. If so, the adjustment module is triggered to adjust the video memory size of the baseboard management controller to a preset value and then start the baseboard management controller. If not, the second judgment module 23 is triggered to determine whether the historical startup record of the baseboard management controller includes power-on reset information after a power outage. If it does, the adjustment module 22 is triggered; if it does not, the holding module 24 is triggered to maintain the current video memory size and start the baseboard management controller. After the server restarts, if the baseboard management controller is currently in a power-on reset state after a power outage, the video memory size of the baseboard management controller is first adjusted to the preset value. After the machine is powered on and the baseboard management controller starts, the video memory has already been adjusted to the preset value before powering on. Since there is no change in video memory during the startup process, the display screen distortion problem will not occur. If the baseboard management controller has undergone a power-on reset during previous startup processes, its video memory size will be adjusted to the preset value before startup. This method ensures compatibility with dynamic adjustment of video memory size in products already shipped to the customer's site. This greatly facilitates users and increases the server's usability.
[0087] Since the embodiments of the apparatus and the embodiments of the method correspond to each other, please refer to the description of the embodiments of the method for the embodiments of the apparatus, which will not be repeated here.
[0088] Figure 3 A structural diagram of another server video memory size adjustment device provided in the embodiments of this application is shown below. Figure 3 As shown, the server video memory size adjustment device includes: a memory 30 for storing computer programs;
[0089] The processor 31 is used to implement the steps of the method for obtaining user operation habit information as described in the above embodiment (server video memory size adjustment method) when executing a computer program.
[0090] The server video memory size adjustment device provided in this embodiment may include, but is not limited to, smartphones, tablets, laptops, or desktop computers.
[0091] The processor 31 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 31 may be implemented using at least one of the following hardware forms: Digital Signal Processor (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 31 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 31 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 31 may also include an Artificial Intelligence (AI) processor, which handles computational operations related to machine learning.
[0092] The memory 30 may include one or more computer-readable storage media, which may be non-transitory. The memory 30 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 30 is used to store at least the following computer program 301, which, after being loaded and executed by the processor 31, is capable of implementing the relevant steps of the server video memory size adjustment method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 30 may also include an operating system 302 and data 303, and the storage method may be temporary storage or permanent storage. The operating system 302 may include Windows, Unix, Linux, etc. The data 303 may include, but is not limited to, the data involved in implementing the server video memory size adjustment method.
[0093] In some embodiments, the server memory size adjustment device may further include a display screen 32, an input / output interface 33, a communication interface 34, a power supply 35, and a communication bus 36.
[0094] Those skilled in the art will understand that Figure 3 The structure shown does not constitute a limitation on the server memory size adjustment device and may include more or fewer components than shown.
[0095] The server video memory size adjustment device provided in this application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following method: a server video memory size adjustment method. When the server is powered on, it determines whether the baseboard management controller is currently in a power-on reset state after a power outage. If so, it adjusts the video memory size of the baseboard management controller to a preset value and then starts the baseboard management controller. If not, it determines whether the historical startup record of the baseboard management controller includes power-on reset information after a power outage. If it does, it adjusts the video memory size of the baseboard management controller to the preset value and then starts the baseboard management controller. If it does not, it maintains the current video memory size and starts the baseboard management controller. After the server restarts, if the baseboard management controller is currently in a power-on reset state after a power outage, the video memory size of the baseboard management controller is first adjusted to the preset value. After the machine is powered on and the baseboard management controller starts, the video memory has already been adjusted to the preset value before powering on. There is no video memory change during the power-on operation, so the display screen distortion problem will not occur. If the baseboard management controller has undergone a power-on reset during previous startup processes, its video memory size will be adjusted to the preset value before startup. This method ensures compatibility with dynamic adjustment of video memory size in products already shipped to the customer's site. This greatly facilitates users and increases the server's usability.
[0096] Finally, this application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps described in the above embodiment of the server video memory size adjustment method.
[0097] It is understood that if the methods in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0098] The computer-readable storage medium provided in this embodiment stores a computer program. When the processor executes the program, it can implement the following method: a server video memory size adjustment method. When the server is powered on, it determines whether the baseboard management controller is currently in a power-on reset state after a power outage. If so, it adjusts the video memory size of the baseboard management controller to a preset value and then starts the baseboard management controller. If not, it determines whether the historical startup record of the baseboard management controller includes power-on reset information after a power outage. If it does, it adjusts the video memory size of the baseboard management controller to the preset value and then starts the baseboard management controller. If it does not, it maintains the current video memory size and starts the baseboard management controller. After the server restarts, if the baseboard management controller is currently in a power-on reset state after a power outage, the video memory size of the baseboard management controller is first adjusted to the preset value. After the machine is powered on and the baseboard management controller starts, the video memory has already been adjusted to the preset value before powering on. There is no video memory change during the startup and operation process, so the display screen distortion problem will not occur. If the baseboard management controller has undergone a power-on reset during previous startup processes, its video memory size will be adjusted to the preset value before startup. This method ensures compatibility with dynamic adjustment of video memory size in products already shipped to the customer's site. This greatly facilitates users and increases the server's usability.
[0099] The server video memory size adjustment method, apparatus, and medium provided in this application have been described in detail above. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make several improvements and modifications to this application without departing from the principles of this application, and these improvements and modifications also fall within the protection scope of the claims of this application.
[0100] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
Claims
1. A method for adjusting server video memory size, characterized in that, include: Obtain the baseboard management controller upgrade software package; The baseboard management controller is upgraded according to the baseboard management controller upgrade software package; After upgrading to the new version of the baseboard management controller, if the machine is not restarted or powered off, it will still use the original video memory size; When the server is powered on, it is determined whether the baseboard management controller is currently in the power-on reset state after power failure. If so, the baseboard management controller is started after adjusting the memory size of the baseboard management controller to a preset value; If not, determine whether the historical startup record of the baseboard management controller includes power-on reset information after power failure; If included, proceed to the step of adjusting the memory size of the substrate management controller to the preset value and then starting the substrate management controller; If not included, the current memory size is maintained and the baseboard management controller is started.
2. The server video memory size adjustment method according to claim 1, characterized in that, The determination of whether the baseboard management controller is currently in a power-on reset state after a power outage includes: Obtain the power-on reset flag of the baseboard management controller; If the power-on reset flag indicates a power-on reset, then the baseboard management controller is currently in a power-on reset state after power failure.
3. The server video memory size adjustment method according to claim 2, characterized in that, If it is determined that the baseboard management controller is currently in a power-on reset state after a power outage, the following steps are also included: The power-on reset information of the baseboard management controller is saved to a preset storage address in the static random access memory.
4. The server video memory size adjustment method according to claim 3, characterized in that, The determination of whether the historical startup record of the baseboard management controller includes power-on reset information after power failure includes: Determine whether the information stored in the preset storage address is power-on reset information; If so, it is determined that the historical startup record of the baseboard management controller includes power-on reset information after power failure; If not, then it is determined that the historical startup record of the baseboard management controller does not include power-on reset information after power failure.
5. The server video memory size adjustment method according to claim 1, characterized in that, The preset value is the maximum value of the video memory.
6. The server video memory size adjustment method according to any one of claims 1 to 5, characterized in that, After adjusting the memory size of the substrate management controller to a preset value, the method further includes: The information that the memory size of the substrate management controller has been adjusted to a preset value is recorded in the log of the substrate management controller.
7. A server video memory size adjustment device, characterized in that, include: The first judgment module is used to determine whether the baseboard management controller is currently in the power-on reset state after power failure when the server is powered on. If so, the adjustment module will be triggered; If not, trigger the second judgment module; The adjustment module is used to adjust the memory size of the substrate management controller to a preset value and then start the substrate management controller. The second judgment module is used to determine whether the historical startup record of the baseboard management controller includes power-on reset information after power failure; if it does, the adjustment module is triggered; if it does not, the holding module is triggered. A retention module is used to maintain the current video memory size when the baseboard management controller is started. When the server is powered on, it determines whether the baseboard management controller is in a power-on reset state after a power outage. Prior to this, it also includes: obtaining the baseboard management controller upgrade software package; upgrading the baseboard management controller according to the baseboard management controller upgrade software package; after upgrading to the new version of the baseboard management controller, if the machine has not restarted or been powered off, it will still use the original video memory size.
8. A server video memory size adjustment device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the server video memory size adjustment method as described in any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the server video memory size adjustment method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
BMC system control method and device, storage medium and computer equipment
CN111737064A
BMC and server
CN115543246A