BMC system application program compression running method, device and equipment and readable storage medium
By decompressing and restoring application running data in the BMC system, the problem of insufficient space in the BMC system is solved, and resource conservation and stable system operation are achieved.
Patent Information
- Application Number
- CN202510369889.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2025-04-25
AI Technical Summary
The flash space storage capacity of the BMC system is limited, and the application size is rapidly increasing, resulting in insufficient space affecting the normal and stable operation of the function.
When the target application is called in the BMC system, the running data of the target application is decompressed to the running area, and the resources are released and the compressed state of the data is restored after the run is completed, reducing the space occupied.
It effectively saves resources during the operation of BMC system applications, ensures that the program does not run and does not occupy too much resources, and extends the storage space service life of the BMC system.
Smart Images

Figure CN119883656A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of storage server operation and maintenance, and in particular to a method, apparatus, device and readable storage medium for compressing and running a BMC system application. Background Art
[0002] As the functions of storage server BMC systems become more and more powerful, the number of BMC system application programs increases, and the corresponding application programs occupy more space resources. Currently, the BMC system space is mainly increased by continuously increasing the particle capacity of the flash (non-volatile memory) space of the BMC system.
[0003] However, the flash storage capacity of the BMC system is limited. Due to the rapid growth of application size, the original flash space of old equipment cannot be replaced with a larger flash space. The space required to support functions is getting larger and larger, and insufficient space affects the normal and stable operation of many functions.
[0004] Therefore, how to reduce the resources during the operation of BMC system applications is a technical problem that needs to be solved. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a method for compressing and running a BMC system application. The technical solution of the embodiments of the present application can achieve the effect of saving resources during the running of the BMC system application.
[0006] In a first aspect, an embodiment of the present application provides a method for compressed operation of a BMC system application, comprising: when a target application is called during the operation of a management controller BMC system, target operation data of the target application is decompressed to an operation area of the BMC system, wherein the target operation data is stored in a data directory of the file system, the data directory includes compressed operation data of multiple applications, and the compressed operation data of multiple applications include the target operation data; when the operation of the target application in the operation area ends, the target operation data is released and the compression state of the target operation data is restored, wherein the target operation data is stored in the data directory in binary form both before decompression and after compression.
[0007] In the above embodiment of the present application, multiple applications in the BMC system are compressed and decompressed in binary form, which can reduce the space occupied by applications in the BMC system. When the target application is running, only the running data of the target application is decompressed, and after the running is completed, the resources are released and the running data is compressed. During the cyclic running of each program, it is ensured that the non-running program does not occupy too many resources, effectively saving the BMC system space. The effect of saving resources during the running of the BMC system application is achieved.
[0008] In some embodiments, when a target application is called during the operation of a management controller BMC system, before decompressing the target operating data of the target application into an operating area of the BMC system, it also includes: compressing the operating data of multiple applications of the BMC system into a data directory of the file system to obtain compressed operating data of multiple applications, wherein the multiple applications include the target application, and the compressed operating data of the multiple applications include the target operating data.
[0009] In the above embodiment of the present application, the running data of multiple applications are stored in the file system in advance, and the called application is decompressed and run only when one of the applications is called, which can greatly reduce the occupied resources of the BMC system.
[0010] In some embodiments, when the target application is called during the operation of the management controller BMC system, the operation data of the target application is decompressed to the operation area of the BMC system, including: when the target application is called during the operation of the BMC system, the target operation data in the file system is called; after decompressing the target operation data, the decompressed target operation data is run in the operation area of the BMC system.
[0011] In the above embodiment of the present application, when it is necessary to run the target application in the running area of the BMC system, only the running data of the target application is decompressed, which can reduce the occupied resources of the BMC system.
[0012] In some embodiments, when the target application program ends running in the running area, the target running data is released and the compression state of the target running data is restored, including: when the target application program ends running in the running area, all running data in the running area is released and the running area is reclaimed; and the compression state of the target running data in the file system is restored.
[0013] In the above embodiment of the present application, when the target application program in the running area ends, the original compression state of the target running data is restored, and the running space in the running area is released to ensure that the non-running programs do not occupy too many resources, effectively saving the BMC system space.
[0014] In some embodiments, the BMC system is one of a variety of embedded systems.
[0015] In the above-mentioned embodiments, the compression and operation method of the present application can also be used in other embedded systems to increase the application scenarios.
[0016] In some embodiments, when the target application is finished running in the running area, the target running data is released and the compression state of the target running data is restored, and it also includes: when the target application is called a preset number of times, the target running data is cached; when the target running data is called next time, the target running data in the cache is called.
[0017] In the above embodiment of the present application, when the running data is called multiple times, the running data can also be stored in the cache. When the running data is used next time, the running data can be directly obtained from the cache, saving the time of compression and decompression.
[0018] In some embodiments, when a target application is called during the operation of a management controller BMC system, before decompressing the target operation data of the target application to the operation area of the BMC system, it also includes: verifying the integrity of the compression tool using a preset application file verification method; when decompressing the target operation data through the compression tool fails or decompressing the target operation data to the operation area of the BMC system fails, restoring the BMC system and the file system to an initial state. In the above embodiments, the present application can roll back to the original state when decompression or operation fails to ensure system stability.
[0019] In a second aspect, an embodiment of the present application provides a device for compressing and running a BMC system application, including: A compression operation module, used for decompressing target operation data of the target application to the operation area of the BMC system when calling the target application during the operation of the BMC system of the management controller, wherein the target operation data is stored in the data directory of the file system, the data directory includes the compressed operation data of multiple applications, and the compressed operation data of the multiple applications include the target operation data; The recovery module is used to release the target running data and restore the compression state of the target running data when the running area finishes running the target application, wherein the target running data is stored in the data directory in binary form before decompression and after compression.
[0020] Optionally, the device further comprises: A compression module is used for compressing the running data of multiple applications of the BMC system into a data directory of the file system before decompressing the target running data of the target application into the running area of the BMC system when the compression running module calls the target application during the running of the management controller BMC system, so as to obtain the compressed running data of the multiple applications, wherein the multiple applications include the target application, and the compressed running data of the multiple applications include the target running data.
[0021] Optionally, the compression operation module is specifically used for: When the target application is called during the operation of the BMC system, the target operation data in the file system is called; After the target operating data is decompressed, the decompressed target operating data is run in the operating area of the BMC system.
[0022] Optionally, the recovery module is specifically used to: When the target application program is finished running in the running area, all running data in the running area is released and the running area is recycled; Restore the compression status of the target running data in the file system.
[0023] Optionally, the BMC system is one of a variety of embedded systems.
[0024] Optionally, the device further comprises: A cache module, used for releasing the target running data and restoring the compressed state of the target running data when the recovery module finishes running the target application in the running area, and caching the target running data when the number of times the target application is called reaches a preset number; When the target running data is called next time, the target running data in the cache is called.
[0025] Optionally, the device further comprises: A second recovery module is used for verifying the integrity of the compression tool by using a preset application file verification method before decompressing the target running data of the target application to the running area of the BMC system when the compression running module calls the target application during the running process of the BMC system; When the target operating data fails to be decompressed by the compression tool or the target operating data fails to be decompressed to the operating area of the BMC system, the BMC system and the file system are restored to an initial state.
[0026] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the method provided in the first aspect are performed.
[0027] In a fourth aspect, an embodiment of the present application provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the method provided in the first aspect are performed.
[0028] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the embodiments of the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0030] Figure 1 A flowchart of a method for compressing and running a BMC system application provided in an embodiment of the present application; Figure 2 A schematic diagram of the structure of a BMC file system space provided in an embodiment of the present application; Figure 3 A flowchart of a method for implementing compressed operation of a BMC system application provided in an embodiment of the present application; Figure 4 A schematic block diagram of a device for compressing and running a BMC system application provided in an embodiment of the present application; Figure 5 A schematic block diagram of the structure of a device for compressing and running a BMC system application provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0032] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0033] First, some terms involved in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.
[0034] The BMC (Baseboard Management Controller) system is a dedicated controller used to monitor and manage servers. It is independent of the server's operating system and hardware and provides an access interface through the IPMI (Intelligent Platform Management Interface) protocol.
[0035] Flash (non-volatile memory) space is a non-volatile memory used to store data and programs. It uses electronic methods to read and write, with fast access speed and high reliability.
[0036] SquashFS is a compressed read-only file system used by the Linux kernel.
[0037] This application is applied to the scenario of storage server operation. The specific scenario is that when a certain application is called during the operation of the storage server, only the running data of the application is called, and the running data is decompressed to the running area of the BMC system. When the call is ended, the running area space is released and the compression state of the running data is restored.
[0038] As the functions of the BMC system of storage servers become more and more powerful, the number of functional applications of the BMC system increases, and the functional applications become more and more powerful, and the corresponding functional applications occupy more space resources. At present, the BMC system space is mainly increased by continuously increasing the particle capacity of the flash (non-volatile memory) space of the BMC system. However, the flash space storage capacity of the BMC system is limited. Due to the rapid growth of the size of the application, the original flash space of the old equipment cannot be replaced with a larger flash space. The space required to support the functions is getting larger and larger, and the lack of space affects the normal and stable operation of many functions.
[0039] To this end, the present application decompresses the target running data of the target application to the running area of the BMC system when calling the target application during the running process of the management controller BMC system, wherein the target running data is stored in the data directory of the file system, the data directory includes the compressed running data of multiple applications, and the compressed running data of multiple applications include the target running data; when the running of the target application in the running area ends, the target running data is released, and the compression state of the target running data is restored, wherein the target running data is stored in the data directory in binary form before and after decompression. Compressing and decompressing multiple applications in the BMC system in binary form can reduce the occupied space of the applications in the BMC system. When the target application is running, only the running data of the target application is decompressed, and the resources are released and the running data is compressed after the running is completed. During the running process of each program cycle, it is ensured that the non-running program does not occupy too many resources, and the BMC system space is effectively saved. The effect of saving resources during the running process of the BMC system application is achieved.
[0040] In the embodiment of the present application, the execution subject may be a BMC system application compression and operation device in a BMC system application compression and operation system. In actual applications, the BMC system application compression and operation device may be an electronic device such as a terminal device and a server, which is not limited here.
[0041] Combine the following Figure 1 The method for compressing and running a BMC system application in an embodiment of the present application is described in detail.
[0042] Please see Figure 1 , Figure 1 A flowchart of a method for compressing and running a BMC system application provided in an embodiment of the present application is shown in FIG. Figure 1 The method for compressing and running the BMC system application shown includes: Step 110: when the target application is called during the operation of the BMC system, the target operation data of the target application is decompressed into the operation area of the BMC system.
[0043] The target running data is stored in a data directory of the file system, the data directory includes compressed running data of multiple applications, and the compressed running data of multiple applications includes the target running data. The file system can be a file library in the BMC system or a separate file system. The running data includes the main running conditions of the application, including running time, location, program data, etc. The BMC system includes a flash storage space for storing the decompressed target running data of the target application.
[0044] Optionally, when the file system is a file in the BMC system, the file system can be used as the BMC file system. Figure 2 The BMC file system space structure diagram shown is described in detail.
[0045] Please see Figure 2 , Figure 2 A schematic diagram of the structure of a BMC file system space provided in this application, such as Figure 2 The BMC file system space shown includes: A binary running function program, a compressed binary program storage package and a decompressed binary running function program.
[0046] Among them, the binary running function program includes multiple applications (FSC.app) and corresponding running data, the compressed binary program storage package includes compressed running data of multiple compressed applications (FSC.app.squashfs), and the decompressed binary running function program can also be considered as multiple applications and corresponding running data before compression.
[0047] The size of the binary running function program is, for example, 20 MB, and the compressed binary program storage package is, for example, only 4 MB, and the decompressed binary running function program is, for example, 20 MB.
[0048] The binary running function programs include: Sensor.app (sensor application), log.app (log file), KVM.app (virtual application), WEBServer.app (server software), User.app (user application) and other.app (other applications).
[0049] The compressed binary program storage packages include: Sensor.app.squashfs (sensor application storage package), log.app.squashfs (log file storage package), KVM.ap.squashfs (virtual application storage package), WEBServer.app.squashfs (server software storage package), User.app.squashfs (user application storage package) and other.app.squashfs (other application storage package).
[0050] The decompressed binary running function programs include: Sensor.app, log.app, KVM.app, WEBServer.app, User.app and other.app.
[0051] Among them, during the compilation process of the BMC system, the compilation tool directly calls the "SquashFS tool" to compress the compiled specified "binary running function program.APP" into "binary running function program.app.squashfs", and packages it together with the startup items, kernel and file system into the basic BMC system. When the BMC system is burned into the flash, the corresponding application programs are stored in a compressed manner, occupying very little space; when the BMC system is powered on and the corresponding "application program.APP" needs to be run, the main function will first call the "SquashFS tool" to decompress the "binary running function program.app.squashfs", and then call the "binary running function program.APP". After the operation is completed, the "binary running function program.APP" is deleted and only the "binary running function program.app.squashfs" is retained.
[0052] In addition, the SquashFS tool can automatically select the compression mode (for example, gzip) when compiling. The compiler directly calls the tool in the compiler to complete the compression. The tool can be a black box tool or an open source tool. When decompressing, the built-in tool in the BMC system can also be called. The "unsquashfs / path / to / output.squashfs" command can decompress the program running file that needs to be decompressed, and then run the decompressed program.
[0053] also, Figure 2 The specific structure and usage of the BMC file system space shown can be Figure 1 The method shown will not be described in detail here.
[0054] In some embodiments of the present application, the BMC system is one of a variety of embedded systems.
[0055] In the above process, the compression and operation method of the present application can also be used in other embedded systems to increase application scenarios.
[0056] Among them, embedded systems can also include systems such as Raspberry Pi and BeagleBone, and can also include other scenarios with limited storage.
[0057] In some embodiments of the present application, when a target application is called during the operation of the management controller BMC system, before decompressing the target operation data of the target application into the operation area of the BMC system, Figure 1 The method shown also includes: compressing the running data of multiple applications of the BMC system into a data directory of the file system to obtain compressed running data of multiple applications, wherein the multiple applications include a target application and the compressed running data of the multiple applications include the target running data.
[0058] In the above process, the present application stores the running data of multiple applications in the file system in advance, and only when one of the applications is called, the called application is decompressed and the program is run, which can greatly reduce the occupied resources of the BMC system.
[0059] The compression and decompression process may use the SquashFS tool to compress and store the binary application in the BMC system and decompress and run it.
[0060] In some embodiments of the present application, when a target application is called during the operation of the management controller BMC system, before decompressing the target operation data of the target application into the operation area of the BMC system, Figure 1 The method shown also includes: verifying the integrity of the compression tool using a preset application file verification method; and restoring the BMC system and the file system to an initial state when decompressing the target operating data through the compression tool fails or decompressing the target operating data to the operating area of the BMC system fails. During the above process, this application can roll back to the original state when decompression or operation fails to ensure system stability.
[0061] The preset application file verification method is, for example, MD5 verification, which verifies the integrity of the SquashFS image before decompression to prevent data damage.
[0062] In some embodiments of the present application, when the target application is called during the operation of the management controller BMC system, the operation data of the target application is decompressed to the operation area of the BMC system, including: when the target application is called during the operation of the BMC system, the target operation data in the file system is called; after decompressing the target operation data, the decompressed target operation data is run in the operation area of the BMC system.
[0063] In the above process, the present application only needs to decompress the running data of the target application when the target application is running in the running area of the BMC system, so as to reduce the occupied resources of the BMC system.
[0064] Every time the BMC system needs to call a corresponding application, it first calls the SquashFS tool to decompress the application, and then runs the decompressed program; it dynamically decompresses according to program needs, accurately specifies compressed files, and programs that do not need to be decompressed will not be decompressed, ensuring limited decompression.
[0065] For example, the current 1G file system space capacity can be reduced to 512MB after compression, which can ensure that the upgrade of the BMC system of the existing old storage server will not be unable to upgrade due to insufficient space.
[0066] Optionally, the present application may use multi-threading support to decompress the running data, using a multi-core CPU to accelerate the decompression process to decompress the data.
[0067] Step 120: When the target application program is finished running in the running area, the target running data is released and the compression state of the target running data is restored.
[0068] The target running data is stored in the data directory in binary form before decompression and after compression.
[0069] In some embodiments of the present application, when the target application program in the running area ends, the target running data is released and the compression state of the target running data is restored, including: when the target application program in the running area ends, all running data in the running area is released and the running area is reclaimed; and the compression state of the target running data in the file system is restored.
[0070] In the above process, when the target application program is finished running in the running area, the application restores the original compression state of the target running data and releases the running space in the running area, ensuring that the non-running programs do not occupy too many resources, thereby effectively saving the BMC system space.
[0071] Among them, after the BMC system runs the corresponding target application, it will reclaim the running area, delete the corresponding running program files, and decompress the application again when it needs to be run next time. After the space resources are recycled, it is ensured that the space can always be effectively saved.
[0072] In some embodiments of the present application, after the target application is finished running in the running area, the target running data is released and the compression state of the target running data is restored. Figure 1 The method shown also includes: when the number of times the target application is called reaches a preset number, caching the target running data; when the target running data is called next time, calling the target running data in the cache.
[0073] In the above process, when the running data is called multiple times, the running data can also be stored in the cache. When the running data is used next time, the running data can be directly obtained from the cache, saving the time of compression and decompression.
[0074] The preset number of times can be set according to the requirement. The cache can store the target running data in the cache of the BMC system.
[0075] In the above Figure 1 In the process shown, the present application decompresses the target running data of the target application to the running area of the BMC system when calling the target application during the running process of the management controller BMC system, wherein the target running data is stored in the data directory of the file system, the data directory includes the compressed running data of multiple applications, and the compressed running data of multiple applications include the target running data; when the running of the target application in the running area ends, the target running data is released, and the compression state of the target running data is restored, wherein the target running data is stored in the data directory in binary form before and after decompression. Compressing and decompressing multiple applications in the BMC system in binary form can reduce the space occupied by the applications in the BMC system. When the target application is running, only the running data of the target application is decompressed, and the resources are released and the running data is compressed after the running is completed. During the running process of each program cycle, it is ensured that the non-running program does not occupy too many resources, and the BMC system space is effectively saved. The effect of saving resources during the running process of the BMC system application is achieved.
[0076] Combine the following Figure 3 The implementation method of the BMC system application compression operation in the embodiment of the present application is described in detail.
[0077] Please see Figure 3 , Figure 3 A flowchart of a method for implementing a BMC system application program compression operation provided in an embodiment of the present application is shown in FIG. Figure 3 The implementation method of the BMC system application compression operation shown includes: Step 310: Start the BMC system.
[0078] Specifically: Start the BMC system in the flash space.
[0079] Step 320: Call the function program.
[0080] Specifically: calling the target application during the operation of the BMC system.
[0081] Step 330: Start the SquashFS tool decompression function program.
[0082] Specifically: decompress the target running data of the target application program to the running area of the BMC system.
[0083] Step 340: Run the decompressed functional program in the running area of the BMC system.
[0084] Specifically: Run the decompressed function program in the flash space running area of the BMC system.
[0085] Step 350: After the operation is completed, the operation area is released and the functional program is deleted.
[0086] Specifically, when the running function program is finished, the running resources are recovered, the space resources occupied by the running program are released, and the program is returned to the compressed state and saved in the fixed function application directory, and the process returns to step 320 to call the next function program.
[0087] also, Figure 3 The specific methods and steps shown can be found in Figure 1 The method shown will not be described in detail here.
[0088] Previous article Figure 1-Figure 2 Describes the method of compressing and running BMC system applications. Figure 3-Figure 4 Describes the device that compresses and runs BMC system applications.
[0089] Please refer to Figure 4 , is a schematic block diagram of a device 400 for compressing and running a BMC system application provided in an embodiment of the present application. The device 400 may be a module, program segment or code on an electronic device. The device 400 is similar to the above Figure 1 The method embodiment corresponds to and can be executed Figure 1 The various steps involved in the method embodiment and the specific functions of the device 400 can be found in the description below. To avoid repetition, the detailed description is appropriately omitted here.
[0090] Optionally, the device 400 includes: The compression operation module 410 is used to decompress the target operation data of the target application to the operation area of the BMC system when calling the target application during the operation of the management controller BMC system, wherein the target operation data is stored in the data directory of the file system, the data directory includes the compressed operation data of multiple applications, and the compressed operation data of the multiple applications include the target operation data; The recovery module 420 is used to release the target running data and restore the compression state of the target running data when the running area finishes running the target application, wherein the target running data is stored in the data directory in binary form before and after decompression.
[0091] Optionally, the device further comprises: A compression module is used for compressing the running data of multiple applications of the BMC system into a data directory of the file system before decompressing the target running data of the target application into the running area of the BMC system when the compression running module calls the target application during the running of the management controller BMC system, so as to obtain the compressed running data of the multiple applications, wherein the multiple applications include the target application, and the compressed running data of the multiple applications include the target running data.
[0092] Optionally, the compression operation module is specifically used for: When the target application is called during the operation of the BMC system, the target operation data in the file system is called; after the target operation data is decompressed, the decompressed target operation data is run in the operation area of the BMC system.
[0093] Optionally, the recovery module is specifically used to: When the target application program is finished running in the running area, all running data in the running area are released, and the running area is recovered; and the compression state of the target running data in the file system is restored.
[0094] Optionally, the BMC system is one of a variety of embedded systems.
[0095] Optionally, the device further comprises: The cache module is used for releasing the target running data and restoring the compression state of the target running data when the recovery module finishes running the target application in the running area. When the target application is called a preset number of times, the target running data is cached; when the target running data is called next time, the target running data in the cache is called.
[0096] Optionally, the device further comprises: The second recovery module is used for verifying the integrity of the compression tool by using a preset application file verification method before decompressing the target running data of the target application to the running area of the BMC system when the compression running module calls the target application during the running of the management controller BMC system; and restoring the BMC system and the file system to an initial state when decompressing the target running data by the compression tool fails or decompressing the target running data to the running area of the BMC system fails.
[0097] Please refer to Figure 5 The structure schematic diagram of a device for compressing and running a BMC system application provided in an embodiment of the present application is shown in FIG. 5 . The device may include a memory 510 and a processor 520. Optionally, the device may also include: a communication interface 530 and a communication bus 540. The device is similar to the above-mentioned Figure 1 The method embodiment corresponds to and can be executed Figure 1The various steps involved in the method embodiment and the specific functions of the device can be found in the description below.
[0098] Specifically, the memory 510 is used to store computer-readable instructions.
[0099] Processor 520, configured to process readable instructions stored in the memory, capable of executing Figure 1 The steps in the method.
[0100] The communication interface 530 is used for signaling or data communication with other node devices, for example, for communication with a server or a terminal, or for communication with other device nodes, but the embodiments of the present application are not limited thereto.
[0101] The communication bus 540 is used to realize direct connection and communication among the above components.
[0102] The communication interface 530 of the device in the embodiment of the present application is used to communicate with other node devices for signaling or data. The memory 510 can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The memory 510 can also be at least one storage device located away from the aforementioned processor. The memory 510 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 520, the electronic device executes the aforementioned Figure 1 The method process shown. The processor 520 can be used on the device 400 and used to perform the functions in the present application. Exemplarily, the above-mentioned processor 520 can be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the embodiments of the present application are not limited thereto.
[0103] The embodiment of the present application also provides a readable storage medium, when the computer program is executed by a processor, Figure 1 The method process in the method embodiment shown is executed by the electronic device.
[0104] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method, and will not be described in detail here.
[0105] In summary, the embodiment of the present application provides a method, device, equipment and readable storage medium for compressed operation of BMC system application, the method comprising, when calling the target application during the operation of the management controller BMC system, decompressing the target operation data of the target application to the operation area of the BMC system, wherein the target operation data is stored in the data directory of the file system, the data directory includes the compressed operation data of multiple applications, and the compressed operation data of multiple applications include the target operation data; when the operation of the target application in the operation area ends, releasing the target operation data and restoring the compression state of the target operation data, wherein the target operation data is stored in the data directory in binary form before and after decompression. This method can achieve the effect of saving resources during the operation of the BMC system application.
[0106] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0107] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0108] If the function is implemented in the form of a software function module 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 can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.
[0109] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0110] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0111] It should be noted that, in this article, relational terms such as first and second, etc. are only used 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 "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A method for compressing and running a BMC system application, characterized in that: include: When a target application is called during the operation of the BMC system, target operation data of the target application is decompressed into the operation area of the BMC system, wherein the target operation data is stored in a data directory of a file system, the data directory includes compressed operation data of a plurality of applications, and the compressed operation data of the plurality of applications includes the target operation data; When the target application is finished running in the running area, the target running data is released and the compression state of the target running data is restored, wherein the target running data is stored in the data directory in binary form before decompression and after compression.
2. The method according to claim 1, characterized in that When the target application is called during the operation of the BMC system, before decompressing the target operation data of the target application into the operation area of the BMC system, the method further includes: The running data of the multiple applications of the BMC system are compressed into the data directory of the file system to obtain the compressed running data of the multiple applications, wherein the multiple applications include the target application, and the compressed running data of the multiple applications include the target running data.
3. The method according to claim 2, characterized in that When calling the target application during the operation of the BMC system, decompressing the operation data of the target application to the operation area of the BMC system includes: When the target application is called during the operation of the BMC system, the target operation data in the file system is called; After the target operation data is decompressed, the decompressed target operation data is run in the operation area of the BMC system.
4. The method according to any one of claims 1 to 3, characterized in that: When the target application is finished running in the running area, releasing the target running data and restoring the compression state of the target running data include: When the target application program is finished running in the running area, releasing all running data in the running area and recycling the running area; The compression state of the target running data in the file system is restored.
5. The method according to any one of claims 1 to 3, characterized in that: The BMC system is one of various embedded systems.
6. The method according to any one of claims 1 to 3, characterized in that: When the target application program is finished running in the running area, the target running data is released and the compression state of the target running data is restored, the method further includes: When the number of times the target application is called reaches a preset number, caching the target running data; When the target running data is called next time, the target running data in the cache is called.
7. The method according to any one of claims 1 to 3, characterized in that: When the target application is called during the operation of the BMC system, before the target operation data of the target application is decompressed to the operation area of the BMC system, the method further includes: Verify the integrity of the compression tool using the preset application file verification method; When decompressing the target operating data by the compression tool fails or decompressing the target operating data to the operating area of the BMC system fails, restoring the BMC system and the file system to an initial state.
8. A device for compressing and running a BMC system application, characterized in that: include: a compression operation module, configured to decompress target operation data of the target application to an operation area of the BMC system when calling the target application during the operation of the BMC system, wherein the target operation data is stored in a data directory of the file system, the data directory includes compressed operation data of multiple applications, and the compressed operation data of the multiple applications includes the target operation data; The recovery module is used to release the target running data and restore the compression state of the target running data when the running of the target application in the running area ends, wherein the target running data is stored in the data directory in binary form before and after decompression.
9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the method according to any one of claims 1 to 7 are executed.
10. A computer-readable storage medium, characterized in that: include: A computer program, when the computer program is run on a computer, causes the computer to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Offline package generation method and software package installation method
CN114756255A
BMC firmware upgrading method and device, equipment and medium
CN115421762A
Method for completely running operating system in multi storage media and its operating system
CN1744040A
Method and mechanism for operating system image installation based on decoupled architecture
US20230367574A1
Data processing method and apparatus, and electronic device and storage medium
WO2024174682A1