A method, device and medium for adjusting a shared area

By dynamically adjusting the size and position of the shared area, the problem of limited shared area is solved, and the stable operation of server functions and efficient use of resources are achieved.

CN115079951BActive Publication Date: 2025-09-26JINAN INSPUR DATA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210761042.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2025-09-26
Estimated Expiration
2042-06-30

AI Technical Summary

Technical Problem

In the prior art, the shared area is limited by the size of the BMC storage area, which cannot simultaneously meet the contradiction between normal use of server functions and avoiding long-term excessive occupation of storage resources.

Method used

By obtaining the functions and information currently executed by the server, the size and position of the shared area are dynamically adjusted, and the storage space size is determined according to the server information and functional requirements to achieve dynamic adjustment of the shared area.

Benefits of technology

It realizes real-time adjustment of shared areas, meets the normal use of servers without occupying too many storage resources, and supports stable compatibility of different functions and servers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115079951B_ABST
    Figure CN115079951B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device and medium for adjusting a shared area, which are applied to the field of storage technology. When a server is currently executing different functions, the size of the shared area required for data interaction is different. In addition, if the server information is different, the size of the shared area required for the server to execute the same function for data interaction is also different. This solution first obtains the function currently executed by the server and the server information; then, based on the function currently executed by the server and the corresponding server information, it determines the size of the storage space required for the server to interact with data in-band and out-of-band; finally, based on the determined size of the storage space required for the server to interact with data in-band and out-of-band, it dynamically adjusts the size of the shared area of ​​the server. It can ensure that the size of the shared area can be adjusted in real time, which can meet the normal use of the server without occupying too many storage resources for a long time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of storage technology, and in particular to a method, device, and medium for adjusting a shared area. Background Art

[0002] In the era of big data, server usage and maintenance are crucial. Server maintenance requires both in-band and out-of-band operations, such as configuring and stress testing Redundant Arrays of Independent Disks (RAID). Therefore, in-band and out-of-band information exchange has become a critical issue, and this exchange requires a shared area. A shared area is a storage area accessible both in-band and out-of-band on a server. It's typically an idle storage area on the baseboard management controller (BMC), accessible via Intelligent Platform Management Interface (IPMI) commands. Limited by the BMC's storage size, the shared area is relatively small; for example, some BMCs have a shared area size of only 512 bytes. Currently, methods for in-band and out-of-band data exchange using a shared area pre-define the shared area's location, i.e., the starting position and size of the shared area are fixed. For example, a shared area is pre-determined within the BMC or storage area, and specific data exchange rules are then set to facilitate data exchange within the shared area.

[0003] However, due to the limitation of BMC storage area size, the shared area cannot be set too large, otherwise other storage areas will be too small. However, if the shared area is too small, the various functions of the server in the shared area will not be able to operate normally.

[0004] Therefore, it can be seen that how to ensure that the shared area can meet the normal use of the server and does not occupy too many storage resources for a long time is a problem that needs to be solved urgently by those skilled in the art. Summary of the Invention

[0005] The purpose of this application is to provide a method, device, and medium for adjusting a shared area to ensure that the shared area can meet the normal use of the server and does not occupy too many storage resources for a long time.

[0006] To solve the above technical problems, the present application provides a method for adjusting a shared area, including:

[0007] Get the function currently executed by the server and server information;

[0008] Determine the amount of storage space required for in-band and out-of-band data interaction of the server according to the function currently executed by the server and the corresponding server information;

[0009] The size of the shared area of ​​the server is adjusted according to the determined storage space size required for in-band and out-of-band data interaction of the server.

[0010] Preferably, the server information includes at least one of the following:

[0011] Server model, BMC model, BMC storage area size, number of CPUs, number of memory modules, RAID card model, number of RAID cards, number of physical disks, board type, and number of boards.

[0012] Preferably, determining the storage space required for in-band and out-of-band data interaction of the server according to the function currently executed by the server and the corresponding server information includes:

[0013] If the function currently executed by the server includes RAID configuration, determining the storage space required for in-band and out-of-band data interaction of the server according to the RAID card model, the number of RAID cards, and the number of physical disks;

[0014] If the function currently executed by the server includes stress testing, determining the amount of storage space required for in-band and out-of-band data interaction of the server according to the number of CPUs and the amount of memory;

[0015] If the function currently executed by the server includes board upgrade, determining the storage space required for in-band and out-of-band data interaction of the server according to the type of the board and the number of the boards;

[0016] If the function currently executed by the server includes hard disk erasure, one byte is reserved when determining the storage space size required for in-band and out-of-band data interaction of the server to ensure normal execution of the hard disk erasure.

[0017] Preferably, before adjusting the size of the shared area of ​​the server according to the determined storage space size required for in-band and out-of-band data interaction of the server, the method further comprises:

[0018] Determine the maximum area range of the shared area according to the server model, the BMC model, and the size of the BMC storage area;

[0019] The adjusting the size of the shared area of ​​the server according to the determined storage space size required for in-band and out-of-band data interaction of the server includes:

[0020] On the basis of ensuring that the size of the shared area is within the range of the maximum area, the size of the shared area of ​​the server is adjusted according to the determined storage space size required for in-band and out-of-band data interaction of the server.

[0021] Preferably, if the maximum area range of the shared area cannot simultaneously meet the requirements of various functions currently executed by the server, controlling the server to execute various functions includes:

[0022] The server is controlled to perform data interaction in the shared area in batches when executing various functions.

[0023] Preferably, if the function currently executed by the server includes upgrading the board, there are multiple boards to be upgraded, and the maximum area range of the shared area cannot simultaneously meet the requirements of each function currently executed by the server, upgrading the board includes:

[0024] The boards are upgraded in batches.

[0025] Preferably, controlling the server to perform data interaction in batches in the shared area when executing each function includes:

[0026] Record the status of each function and the current data interaction status;

[0027] According to the status of each function and the current data interaction status, the server is controlled to perform data interaction in the shared area in batches when executing each function.

[0028] To solve the above technical problems, the present application further provides a device for adjusting a shared area, comprising:

[0029] The acquisition module is used to obtain the functions currently executed by the server and server information;

[0030] A first determining module is configured to determine the amount of storage space required for in-band and out-of-band data interaction of the server based on a function currently executed by the server and corresponding server information;

[0031] The adjustment module is configured to adjust the size of the shared area of ​​the server according to the determined storage space size required for in-band and out-band data interaction of the server.

[0032] Preferably, the shared area adjustment device further comprises:

[0033] The second determination module is used to determine the maximum area range of the shared area according to the server model, the BMC model, and the BMC storage area size before adjusting the size of the shared area of ​​the server according to the determined storage space size required for in-band and out-of-band data interaction of the server; adjusting the size of the shared area of ​​the server according to the determined storage space size required for in-band and out-of-band data interaction of the server includes: on the basis of ensuring that the size of the shared area is within the maximum area range, adjusting the size of the shared area of ​​the server according to the determined storage space size required for in-band and out-of-band data interaction of the server.

[0034] To solve the above technical problems, the present application further provides a device for adjusting a shared area, comprising: a memory for storing a computer program;

[0035] A processor is configured to implement the steps of the above-mentioned method for adjusting the shared area when executing a computer program.

[0036] To solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned shared area adjustment method are implemented.

[0037] The shared area adjustment method provided in the present application provides a dynamic adjustment scheme for the adjustment of the shared area. The shared area is a storage area that can be accessed by the server both in-band and out-band. The information exchange between the server in-band and out-band needs to be completed through the shared area. When the server executes a function, it needs to exchange data in the shared area. When the server is currently executing different functions, the size of the shared area required for data exchange is different. In addition, if the server information is different, the size of the shared area required for data exchange when the server executes the same function is also different. Therefore, this scheme first obtains the function and server information currently executed by the server; then, based on the function currently executed by the server and the corresponding server information, the size of the storage space required for the server to exchange data in-band and out-band is determined; finally, the size of the server's shared area is dynamically adjusted based on the determined storage space required for the server to exchange data in-band and out-band. Compared with the current scheme of fixing the shared area in advance, this scheme can ensure that the shared area can adjust the size of the shared area in real time, which can meet the normal use of the server without occupying too many storage resources for a long time.

[0038] The present application also provides a shared area adjustment device and a computer-readable storage medium, which correspond to the above method and thus have the same beneficial effects as the above method. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0040] Figure 1 A flowchart of a method for adjusting a shared area provided in an embodiment of the present application;

[0041] Figure 2 A structural diagram of a device for adjusting a shared area provided in an embodiment of the present application;

[0042] Figure 3 This is a structural diagram of a shared area adjustment device provided in another embodiment of the present application. DETAILED DESCRIPTION

[0043] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative work are within the scope of protection of this application.

[0044] The core of this application is to provide a method, device and medium for adjusting a shared area to ensure that the shared area can meet the normal use of the server and does not occupy too many storage resources for a long time.

[0045] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0046] In the big data era, server usage and maintenance are crucial. Server maintenance requires the combined use of in-band and out-of-band methods, such as RAID configuration and stress testing. RAID combines multiple independent disks into a massive disk array, leveraging the synergistic effect of individual disks providing data to improve overall disk system performance. This technology divides data into multiple segments and stores them on separate hard drives. In some cases, servers require RAID configuration. Server stress testing involves testing the central processing unit (CPU) and memory. The resulting stress test results include total machine power, CPU power, CPU temperature, CPU user utilization, CPU system utilization, CPU idle utilization, memory utilization, memory power, air inlet temperature, and air outlet temperature. These operations require in-band and out-of-band data exchange, making this information exchange crucial. This information exchange requires a shared area. A shared area is a storage area accessible both in-band and out-of-band on a server. It's typically an idle storage area within the BMC. The BMC can perform firmware upgrades, check device configuration, and other operations on a machine even when the machine is not powered on. The shared area can be accessed via IPMI commands. Limited by the BMC's storage size, the shared area is relatively small. For example, some BMCs have a shared area size of only 512 bytes. Currently, methods for in-band and out-of-band data exchange using a shared area pre-set the location of the shared area, i.e., the starting position and size of the shared area are fixed. For example, a shared area is pre-determined within the BMC or storage area, and then certain data exchange rules are set to facilitate data exchange within the shared area. However, due to the BMC storage area size limitation, the shared area cannot be set too large, otherwise other storage areas will be too small. However, a too small shared area will prevent the various server functions within the shared area from functioning properly. Therefore, embodiments of the present application provide a method to ensure that the shared area can meet the normal needs of the server and does not occupy excessive storage resources for an extended period of time. When performing in-band and out-of-band data interaction between servers using the method provided by this application, the size, starting position, data interaction rules, etc. of the shared area can be dynamically determined based on the server's own attributes and the functions of the in-band operation, thereby realizing in-band and out-of-band data interaction between different servers under different functional configurations. This solution can dynamically set the interaction range and rules of the shared area for different functions of different servers, and each time the function is expanded, there is no need to manually change the code to interact with in-band and out-of-band data. When maintaining servers in batches, machines with different configurations and different functional requirements can all be stably compatible. Figure 1 A flowchart of a method for adjusting a shared area provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method includes the following steps:

[0047] S10: Obtain the function currently executed by the server and server information.

[0048] S11: Determine the storage space required for in-band and out-of-band data interaction of the server based on the function currently executed by the server and corresponding server information.

[0049] S12: Adjust the size of the shared area of ​​the server according to the determined storage space size required for in-band and out-of-band data interaction of the server.

[0050] Generally, before obtaining the functions currently executed by the server, it is necessary to first obtain the functions that the server can support, and after obtaining the server information, set rules based on the functions that the server can support and the server information. The functions currently executed by the server are within the range of functions supported by the server. After obtaining the functions currently executed by the server, the size of the storage space required for in-band and out-of-band data interaction of the server can be determined according to the set rules. Among them, the functions that the server can support generally include RAID configuration, stress testing, hard disk erasure, and board upgrades; server information may include server model, BMC model, BMC storage area size, number of CPUs, number of memories, RAID card model, number of RAID cards, number of physical disks, board type, and number of boards, etc. The embodiment of the present application provides an example of a specific rule. It should be noted that this example is just one of the solutions given for the convenience of explanation, and is not limited to the solution of this example in actual application. The specific rules are as follows:

[0051] When configuring RAID on a server, you can first define the status of creating a logical disk, such as success, failure, or RAID card not found. Then, you can use four bits (16 combinations) to represent the status of a logical disk, that is, one byte represents the status of two logical disks. Based on this rule, when configuring RAID on a server, you can determine the amount of storage space required for in-band and out-of-band data interaction on the server based on the RAID card model, number of RAID cards, number of physical disks, etc.

[0052] The function performed by the server may also be a stress test. First of all, stress testing is divided into CPU stress testing and memory stress testing. The result data that needs to be returned for the stress test include: total machine power, CPU power, CPU temperature, CPU user utilization, CPU system utilization, CPU idle utilization, memory utilization, memory power, air inlet temperature, air outlet temperature, etc. An integer or two decimal places for each data point is sufficient to represent the machine status. According to this rule, the size of the storage space required for stress testing can be determined. When the server is performing a stress test, it needs to return the above data, and the number of CPUs and memory in the server will affect the amount of the above data. Therefore, at this time, the amount of storage space required for in-band and out-of-band data interaction of the server can be determined based on the number of CPUs and memory.

[0053] Service cards include network cards, RAID cards, Fibre Channel (HBA) cards, and hard drives. Similar to RAID configurations, card upgrades require storage of upgrade results. Four digits represent the upgrade result for each card. The required shared area size can be adjusted based on the actual card types and number on the server.

[0054] The server also supports hard drive erasure. The data exchanged for this function is the erasure progress, which ranges from 0 to 100. Selecting a single byte will suffice. Therefore, if the server currently performs hard drive erasure, resizing the shared area will reserve a single byte to ensure proper hard drive erasure.

[0055] After determining the size of the storage space required for in-band and out-of-band data interaction on the server, the size of the shared area of ​​the server can be adjusted according to the determined storage space size. The solution provided in the embodiment of the present application dynamically obtains the size of the shared area according to certain rules, and the dynamic adjustment of the size of the shared area can be achieved without manually changing the code. In addition to adjusting the size of the shared area, the solution provided in the embodiment of the present application also adjusts the position of the shared area according to the functions currently executed by the server and the server information. Specifically, the starting position of the shared area can be determined according to the server model, BMC model, and BMC storage area size. Generally, after obtaining the starting position and size of the shared area, the overall position of the shared area is obtained. After determining the shared areas of different servers based on the server information and the functions currently executed by the server, in-band and out-of-band data interaction can also be performed on multiple servers in batches.

[0056] Additionally, the maximum size of the shared area can be determined based on the server model, BMC model, and BMC storage area size. If the determined maximum size meets the functional requirements, the size of the shared area can be adjusted to facilitate data exchange based on the order in which the functions are executed. If the maximum size of the shared area does not meet the current functional requirements of the server (i.e., the maximum size of the shared area is smaller than the required space), each function can be executed in batches. For example, during a board upgrade, if the shared area cannot support all boards simultaneously, the function can be broken down into individual board upgrade data exchanges. Each time a board is upgraded, data exchange for the previous board is completed before the next board is upgraded. When executing functions in batches, the following three bytes are required to assist in recording content: Select a byte (byte a) to record the function status: not started, in progress, or completed; select a byte (byte b) to record the current data exchange status: read or unread; and select a byte (byte c) to record the function being processed (function codes can be agreed upon in advance). If byte a has not yet begun or has already ended, there's no need to read any further bytes. If byte b has already been read, there's no need to read any further bytes either, reducing the frequency and pressure of data reads in the shared area. If byte a is in progress and byte b is unread, read the remaining data. Once the data is read, byte b is marked as read. After the in-band operation sees that byte b has been read, it can continue writing new data. This allows for in-band and out-of-band data exchange.

[0057] The shared area adjustment method provided in the embodiment of the present application provides a dynamic adjustment scheme for the adjustment of the shared area. The shared area is a storage area that can be accessed by the server both in-band and out-band. The information exchange between the server in-band and out-band needs to be completed through the shared area. When the server executes a function, it needs to exchange data in the shared area. When the server is currently executing different functions, the size of the shared area required for data exchange is different. In addition, if the server information is different, the size of the shared area required for the server to execute the same function for data exchange is also different. Therefore, this scheme first obtains the function and server information currently executed by the server; then, based on the function currently executed by the server and the corresponding server information, the size of the storage space required for the server to exchange data in-band and out-band is determined; finally, the size of the shared area of ​​the server is dynamically adjusted based on the determined size of the storage space required for the server to exchange data in-band and out-band. Compared with the method of fixing the shared area in advance in the current scheme, this scheme can ensure that the size of the shared area can be adjusted in real time, which can meet the normal use of the server without occupying too many storage resources for a long time.

[0058] The above embodiment does not limit the content of the server information. This embodiment provides a specific solution, in which the server information includes at least one of the following: server model, BMC model, BMC storage area size, number of CPUs, number of memory, RAID card model, number of RAID cards, number of physical disks, board type, and number of boards. In practice, the server requires different server information when performing different functions. The specific corresponding relationship is as follows: Based on the current function of the server and the corresponding server information, the storage space required for in-band and out-of-band data exchange is determined, including:

[0059] If the server's current function includes RAID configuration, the amount of storage space required for in-band and out-of-band data exchange on the server is determined based on the RAID card model, number of RAID cards, and number of physical disks. When configuring RAID, the server can first define the status of creating logical disks, such as success, failure, or RAID card not found. The status of a logical disk can then be represented by four bits (16 possible combinations), meaning one byte represents the status of two logical disks. Based on this rule, the size of the shared area required for different RAID card models, number of RAID cards, and number of physical disks can be calculated.

[0060] If the server's current function includes stress testing, the required storage space is determined based on the number of CPUs and memory. Stress testing is divided into CPU stress testing and memory stress testing. The required stress test result data includes: total machine power, CPU power, CPU temperature, CPU user utilization, CPU system utilization, CPU idle utilization, memory utilization, memory power, air inlet temperature, and air outlet temperature. Each data point should be an integer or two decimal places sufficient to represent the machine status. This rule can be used to determine the storage space required for different numbers of CPUs and memory.

[0061] If the server's current functions include card upgrades, the amount of storage space required for in-band and out-of-band data exchange can be determined based on the card type and number. Card upgrades are categorized as network card upgrades, RAID card upgrades, HBA card upgrades, and hard drive upgrades. Similar to RAID configurations, card upgrades require storage of the upgrade results, with four bits representing the upgrade result for each card. Therefore, based on this rule, once the actual card type and number on the server are known, the required shared area size can be determined.

[0062] If the server's current function includes hard drive erasure, reserve one byte when determining the storage space required for in-band and out-of-band data exchange to ensure proper hard drive erasure. The data exchanged for the hard drive erasure function is the erasure progress, which ranges from 0 to 100. Selecting a single byte will satisfy the requirement. Therefore, if the server's current function includes hard drive erasure, reserve one additional byte to ensure proper hard drive erasure.

[0063] It can be seen that the solution provided in this embodiment provides the server data required for the server to adjust the size of the shared area when executing different functions. According to the above correspondence, the size of the shared area can be accurately obtained. However, it should be noted that the solution provided in the above embodiment is only an example of the embodiment of the present application and does not limit other solutions. In a specific implementation, the server may only execute a single function at the same time, or it may execute multiple functions at the same time. If the server only executes a single function at a time, then according to the correspondence between the above function and the server information, the size of the storage space required for the server to interact with data in-band and out-of-band can be determined according to the corresponding server information. If the server executes multiple functions at the same time, then when adjusting the size of the shared area, it is necessary to take into account the storage resources that multiple functions need to occupy.

[0064] In specific implementation, when adjusting the size of the shared area, it is necessary to ensure that the size of the shared area is within the maximum area range to ensure that all functions can be carried out normally. Therefore, before adjusting the size of the shared area of ​​the server according to the storage space size required for in-band and out-band data interaction of the server, it also includes: determining the maximum area range of the shared area according to the server model, BMC model, and BMC storage area size. Adjusting the size of the shared area of ​​the server according to the storage space size required for in-band and out-band data interaction of the server includes: on the basis of ensuring that the size of the shared area is within the maximum area range, adjusting the size of the shared area of ​​the server according to the storage space size required for in-band and out-band data interaction of the server. In addition, the starting position of the shared area can also be determined according to the server model, BMC model, and BMC storage area size.

[0065] In actual applications, a server may simultaneously execute multiple functions, resulting in insufficient storage resources in the shared area. Alternatively, it may consume excessive storage resources when executing a single function. For example, service cards include network cards, RAID cards, HBA cards, and hard drives. A network card is computer hardware that enables computer communication on a computer network. An HBA, also known as a host bus adapter, is essential for connecting a host to a network. A server needs to upgrade these cards, but the number of cards varies. If multiple cards are upgraded simultaneously, the storage resources in the shared area may not be sufficient to support all of them. Therefore, if the maximum area of ​​the shared area cannot simultaneously meet the needs of all the functions currently executed by the server, controlling the server to execute each function may include controlling the server to exchange data in batches within the shared area when executing each function. For example, if the server is currently executing a card upgrade and there are multiple cards to be upgraded, and the maximum area of ​​the shared area cannot simultaneously meet the needs of all the functions currently executed by the server, upgrading the cards may include upgrading each card in batches. Correspondingly, controlling the server to perform data interaction in the shared area in batches when executing each function includes: recording the status of each function and the current data interaction status; and controlling the server to perform data interaction in the shared area in batches when executing each function based on the status of each function and the current data interaction status. Specifically, the function status can be recorded using byte a, with the specific status being: not started, in progress, or completed. The current data interaction status can be recorded using byte b, with the specific status being: read or unread. Function codes can also be agreed upon in advance, and the codes can be recorded using byte c to record the function being processed. When byte a is not started or completed, there is no need to read other bytes; when byte b is in the read state, there is no need to read other bytes either, thereby reducing the number and pressure of data reads in the shared area. When byte a is in progress and byte b is in the unread state, other data is read, and after reading the data, byte b is set to the read state. After the in-band operation reads the read state of byte b, new data continues to be written, thereby achieving the effect of in-band and out-band data interaction. The solution of using three bytes to record status in this example is only one of the embodiments of this application and does not limit other solutions of this application. The solution provided in the embodiment of the present application solves the problem of insufficient storage resources in the shared area by executing various functions in batches.

[0066] In the above embodiments, the method for adjusting the shared area is described in detail. This application also provides corresponding embodiments of the device for adjusting the shared area. It should be noted that this application describes the embodiments of the device from two perspectives: one is based on the functional module perspective, and the other is based on the hardware perspective.

[0067] Based on the perspective of functional modules, this embodiment provides a device for adjusting a shared area. Figure 2 The structural diagram of the shared area adjustment device provided in the embodiment of the present application is as follows: Figure 2 As shown, the device includes:

[0068] The acquisition module 10 is used to obtain the function currently executed by the server and the server information;

[0069] A first determining module 11 is configured to determine the amount of storage space required for in-band and out-of-band data interaction of the server based on the function currently executed by the server and corresponding server information;

[0070] The adjustment module 12 is configured to adjust the size of the shared area of ​​the server according to the determined storage space size required for in-band and out-band data interaction of the server.

[0071] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, and they will not be repeated here.

[0072] As a preferred embodiment, the shared area adjustment device also includes: a second determination module, which is used to determine the maximum area range of the shared area according to the server model, BMC model, and BMC storage area size before adjusting the size of the shared area of ​​the server according to the determined storage space size required for in-band and out-band data interaction of the server; adjusting the size of the shared area of ​​the server according to the determined storage space size required for in-band and out-band data interaction of the server includes: adjusting the size of the shared area of ​​the server according to the determined storage space size required for in-band and out-band data interaction of the server on the basis of ensuring that the size of the shared area is within the maximum area range.

[0073] The shared area adjustment device provided in this embodiment corresponds to the above method and thus has the same beneficial effects as the above method.

[0074] From the perspective of hardware, this embodiment provides another shared area adjustment device. Figure 3 This is a structural diagram of a shared area adjustment device provided in another embodiment of the present application, such as Figure 3 As shown, the shared area adjustment device includes: a memory 20 for storing a computer program;

[0075] The processor 21 is configured to implement the steps of the shared area adjustment method mentioned in the above embodiment when executing a computer program.

[0076] The shared area adjustment device provided in this embodiment may include, but is not limited to, a tablet computer, a laptop computer, or a desktop computer.

[0077] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU; the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0078] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the shared area adjustment method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include but is not limited to data involved in the shared area adjustment method, etc.

[0079] In some embodiments, the shared area adjustment device may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .

[0080] Those skilled in the art will appreciate that the structure shown in the figure does not constitute a limitation on the adjustment device for the shared area, and may include more or fewer components than shown in the figure.

[0081] The shared area adjustment device provided in an embodiment of the present application includes a memory and a processor. When the processor executes a program stored in the memory, it can implement the following method: a shared area adjustment method.

[0082] The shared area adjustment device provided in this embodiment corresponds to the above method and thus has the same beneficial effects as the above method.

[0083] Finally, the present 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 method embodiment.

[0084] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, 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, which is stored in a storage medium and executes all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as 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.

[0085] The computer-readable storage medium provided in this embodiment corresponds to the above method and thus has the same beneficial effects as the above method.

[0086] The above is a detailed introduction to a method, device and medium for adjusting a shared area provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of this application.

[0087] It should also be noted that, in this specification, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the aforementioned elements.

Claims

1. A method for adjusting a shared area, characterized in that: include: Obtain the function currently executed by the server and server information; the server information includes at least one of the following: server model, BMC model, BMC storage area size, number of CPUs, number of memories, RAID card model, number of RAID cards, number of physical disks, board type, and number of boards; Determine the amount of storage space required for in-band and out-of-band data interaction of the server according to the function currently executed by the server and the corresponding server information; The determining, based on the function currently executed by the server and the corresponding server information, the amount of storage space required for in-band and out-of-band data interaction of the server includes: If the function currently executed by the server includes RAID configuration, determining the storage space required for in-band and out-of-band data interaction of the server according to the RAID card model, the number of RAID cards, and the number of physical disks; If the function currently executed by the server includes stress testing, determining the amount of storage space required for in-band and out-of-band data interaction of the server according to the number of CPUs and the amount of memory; If the function currently executed by the server includes board upgrade, determining the storage space required for in-band and out-of-band data interaction of the server according to the type of the board and the number of the boards; If the function currently executed by the server includes hard disk erasure, then when determining the amount of storage space required for in-band and out-of-band data exchange on the server, one byte is reserved to ensure normal execution of the hard disk erasure; The size of the shared area of ​​the server is adjusted according to the determined storage space size required for in-band and out-of-band data interaction of the server.

2. The method for adjusting the shared area according to claim 1, wherein: Before adjusting the size of the shared area of ​​the server according to the determined storage space size required for in-band and out-of-band data interaction of the server, the method further includes: Determine the maximum area range of the shared area according to the server model, the BMC model, and the size of the BMC storage area; The adjusting the size of the shared area of ​​the server according to the determined storage space size required for in-band and out-of-band data interaction of the server includes: On the basis of ensuring that the size of the shared area is within the range of the maximum area, the size of the shared area of ​​the server is adjusted according to the determined storage space size required for in-band and out-of-band data interaction of the server.

3. The method for adjusting the shared area according to claim 2, wherein: If the maximum area range of the shared area cannot simultaneously meet the requirements of various functions currently executed by the server, controlling the server to execute various functions includes: The server is controlled to perform data interaction in the shared area in batches when executing various functions.

4. The method for adjusting the shared area according to claim 3, wherein: If the function currently executed by the server includes upgrading the board, there are multiple boards to be upgraded, and the maximum area range of the shared area cannot simultaneously meet the requirements of the various functions currently executed by the server, upgrading the board includes: The boards are upgraded in batches.

5. The method for adjusting the shared area according to claim 4, wherein: The controlling the server to perform various functions and perform data interaction in the shared area in batches includes: Record the status of each function and the current data interaction status; According to the status of each function and the current data interaction status, the server is controlled to perform data interaction in the shared area in batches when executing each function.

6. A device for adjusting a shared area, characterized in that: include: An acquisition module is used to obtain the function currently executed by the server and server information; the server information includes at least one of the following: server model, BMC model, BMC storage area size, number of CPUs, number of memories, RAID card model, number of RAID cards, number of physical disks, board type, and number of boards; A first determining module is configured to determine the amount of storage space required for in-band and out-of-band data interaction of the server based on a function currently executed by the server and corresponding server information; The determining, based on the function currently executed by the server and the corresponding server information, the amount of storage space required for in-band and out-of-band data interaction of the server includes: If the function currently executed by the server includes RAID configuration, determining the storage space required for in-band and out-of-band data interaction of the server according to the RAID card model, the number of RAID cards, and the number of physical disks; If the function currently executed by the server includes stress testing, determining the amount of storage space required for in-band and out-of-band data interaction of the server according to the number of CPUs and the amount of memory; If the function currently executed by the server includes board upgrade, determining the storage space required for in-band and out-of-band data interaction of the server according to the type of the board and the number of the boards; If the function currently executed by the server includes hard disk erasure, then when determining the amount of storage space required for in-band and out-of-band data exchange on the server, one byte is reserved to ensure normal execution of the hard disk erasure; The adjustment module is configured to adjust the size of the shared area of ​​the server according to the determined storage space size required for in-band and out-band data interaction of the server.

7. A device for adjusting a shared area, characterized in that: including a memory for storing a computer program; A processor, configured to implement the steps of the method for adjusting the shared area according to any one of claims 1 to 5 when executing the computer program.

8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for adjusting the shared area according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • A method and a system for scheduling a shared storage space

    CN108984323A

  • Shared memory adjustment method, device, apparatus and medium

    CN109254857A