A system resource management method and device, electronic equipment and storage medium

CN122605189APending Publication Date: 2026-08-21BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510192137.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-20
Publication Date
2026-08-21

AI Technical Summary

Technical Problem

[0004]本申请实施例提供一种系统资源管理方法、装置、电子设备及可读存储介质,可以降低游戏类应用运行过程中不流畅、卡顿的问题

Benefits of technology

[0033]在电子设备中的游戏类应用启动后,获取电子设备的系统资源的使用情况;在系统资源的使用情况满足第一条件的情况下,关闭第一应用,并释放第一应用的系统资源;第一应用包括电子设备中处于后台运行状态的应用;在系统资源的使用情况满足第二条件的情况下,对第一服务程序进行压缩,生成提示页面并展示,响应于针对提示页面中展示的候选功能的选择操作,从候选功能中确定目标功能,屏蔽目标功能,并释放目标功能的系统资源。本发明实施例在系统资源的使用情况满足不同条件时,采用层层递进地释放系统资源的方式,关闭第一应用,和压缩第一服务程序、屏蔽目标功能,释放系统资源,减小系统的运行压力,提高系统运行的流畅性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122605189A_ABST
    Figure CN122605189A_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a system resource management method and device, electronic equipment and readable storage medium, the method comprising: after starting a game application in the electronic equipment, obtaining the use of the system resources of the electronic equipment; in the case where the use of the system resources meets a first condition, closing a first application and releasing the system resources of the first application; in the case where the use of the system resources meets a second condition, compressing a first service program, generating and displaying a prompt page, in response to a selection operation on a candidate function displayed in the prompt page, determining a target function from the candidate function, shielding the target function, and releasing the system resources of the target function. Embodiments of the present application can release system resources when the use of the system resources meets a preset condition, reduce the running pressure of the system, and improve the smoothness of system operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a system resource management method, apparatus, electronic device, and readable storage medium. Background Technology

[0002] With the development of computer technology and the gradual promotion and application of various applications, the number of applications installed on terminal devices is also increasing. However, the system resources of commonly used terminal devices are limited, which can easily lead to lag due to too many applications.

[0003] For example, with the rapid development of new energy vehicles, in-vehicle infotainment systems are no longer simply a combination of navigation and entertainment, but are gradually becoming intelligent platforms integrating multiple functions. Among these, games, as an important component of infotainment, place higher demands on the performance of in-vehicle infotainment systems. When running games that are costly to develop, have long development cycles, and consume a lot of resources, in-vehicle infotainment systems often experience problems such as sluggish gameplay, affecting the user's gaming experience. Summary of the Invention

[0004] This application provides a system resource management method, apparatus, electronic device, and readable storage medium, which can reduce the problems of unsmooth and laggy operation during the running of game applications.

[0005] In a first aspect, embodiments of this application disclose a system resource management method, the method comprising:

[0006] After a game application is launched on the electronic device, the system resource usage of the electronic device is obtained;

[0007] If the system resource usage meets the first condition, the first application is closed and its system resources are released; the first application includes applications running in the background of the electronic device.

[0008] When the system resource usage meets the second condition, the first service program is compressed, a prompt page is generated and displayed, and in response to the selection operation of the candidate functions displayed on the prompt page, a target function is determined from the candidate functions, the target function is blocked, and the system resources of the target function are released; the first service program includes a service program in the electronic device for providing at least one of entertainment services, intelligent network services, communication services, and security services during system operation.

[0009] Optionally, the method further includes:

[0010] If the configuration information of the electronic device exists in the cloud server, the configuration information is retrieved from the cloud server; the configuration information includes performance benchmark parameters for indicating the electronic device.

[0011] If the configuration information of the electronic device is not present in the cloud server, the configuration information is read from the local server of the electronic device.

[0012] Based on the comparison results between the performance benchmark parameters and the system resource usage, it is determined whether the system resource usage meets the first condition.

[0013] Optionally, the system resources include a central processing unit, memory, and a graphics processing unit. Determining whether the system resource usage meets the first condition based on a comparison of the performance benchmark parameters and the system resource usage includes:

[0014] The first load of the central processing unit is determined based on the usage of the central processing unit and the first performance benchmark corresponding to the central processing unit in the configuration information;

[0015] The second load of the central processing unit is determined based on the memory usage and the second performance benchmark corresponding to the memory in the configuration information;

[0016] Based on the usage of the graphics processor and the configuration information, the third load of the graphics processor is determined according to the third performance benchmark corresponding to the graphics processor.

[0017] Based on the first load, the second load, and the third load, determine whether the system resource usage meets the first condition.

[0018] Optionally, compressing the first service program when the system resource usage meets the second condition includes:

[0019] If the usage of system resources meets the second condition, the compression priority of each first service program is determined.

[0020] The services are compressed sequentially according to their compression priority.

[0021] Optionally, generating and displaying the prompt page includes:

[0022] The candidate functions are determined from the interactive functions provided in the electronic device, and a list of candidate functions is generated;

[0023] Based on the candidate function list, the prompt page is generated and displayed as a pop-up window on the display interface of the electronic device.

[0024] Optionally, after the game application in the electronic device is launched and the system resource usage of the electronic device is obtained, the method further includes:

[0025] Pause the multimedia application playing content on the electronic device and adjust the running state of the multimedia application to background running state.

[0026] Secondly, embodiments of this application disclose a system resource management device, the device comprising:

[0027] The acquisition module is used to acquire the system resource usage of the electronic device after the game application in the electronic device is launched;

[0028] The shutdown module is used to close the first application and release the system resources of the first application when the system resource usage meets the first condition; the first application includes applications running in the background of the electronic device.

[0029] The compression module is used to compress the first service program, generate and display a prompt page when the system resource usage meets the second condition, and, in response to the selection operation of the candidate functions displayed on the prompt page, determine the target function from the candidate functions, block the target function, and release the system resources of the target function; the first service program includes a service program in the electronic device for providing at least one of entertainment services, intelligent network services, communication services, and security services during system operation.

[0030] Thirdly, embodiments of this application disclose an electronic device, which includes a processor, a memory, a communication interface, and a communication bus. The processor, the memory, and the communication interface communicate with each other through the communication bus. The memory is used to store executable instructions, which cause the processor to execute the aforementioned system resource management method.

[0031] Fourthly, embodiments of this application disclose a readable storage medium, which, when the instructions in the readable storage medium are executed by the processor of an electronic device, enables the electronic device to execute the aforementioned system resource management method.

[0032] The embodiments of this application have the following advantages:

[0033] After a game application is launched on an electronic device, the system resource usage of the electronic device is obtained. If the system resource usage meets a first condition, the first application is closed, and its system resources are released. The first application includes applications running in the background on the electronic device. If the system resource usage meets a second condition, a first service program is compressed, a prompt page is generated and displayed, and in response to the selection operation of candidate functions displayed on the prompt page, a target function is determined from the candidate functions, the target function is blocked, and its system resources are released. This embodiment of the invention uses a progressive method to release system resources when different system resource usage conditions are met: closing the first application, compressing the first service program, blocking the target function, and releasing system resources, thereby reducing the system's operating pressure and improving the smoothness of system operation. Attached Figure Description

[0034] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0035] Figure 1 This is a flowchart illustrating the steps of an embodiment of the system resource management method of the present invention;

[0036] Figure 2 This is a schematic diagram of a prompt page according to the present invention;

[0037] Figure 3 This is a structural block diagram of a system resource management device according to the present invention;

[0038] Figure 4 This is a structural block diagram of an electronic device provided by an example of the present invention. Detailed Implementation

[0039] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0040] The terms "first," "second," etc., used in the specification and claims of this invention are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, the first object can be one or more. Furthermore, the term "and / or" in the specification and claims is used to describe the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. In embodiments of this invention, the term "multiple" refers to two or more, and other quantifiers are similar.

[0041] Method Implementation Examples

[0042] Reference Figure 1 The diagram illustrates a flowchart of an embodiment of a system resource management method according to the present invention. The method may specifically include the following steps:

[0043] Step 101: After the game application is launched on the electronic device, obtain the system resource usage of the electronic device;

[0044] Step 102: If the system resource usage meets the first condition, close the first application and release the system resources of the first application; the first application includes applications running in the background of the electronic device.

[0045] Step 103: When the system resource usage meets the second condition, compress the first service program, generate and display a prompt page, and in response to the selection operation of the candidate functions displayed on the prompt page, determine the target function from the candidate functions, block the target function, and release the system resources of the target function; the first service program includes a service program in the electronic device for providing at least one of entertainment services, intelligent network services, communication services, and security services during system operation.

[0046] The system resource management method provided in this invention is applied to electronic devices. It should be noted that the system resource management method provided in this invention can be applied to various computer systems that have games and other applications installed. For example, the electronic device can be an in-vehicle infotainment system, a smart home entertainment system integrating various smart devices, a virtual reality and augmented reality system equipped with display and interactive devices, or a multi-screen interactive system formed by the linkage between a game console and multiple screens.

[0047] Game applications are applications specifically designed to provide gaming functionality. They run on various smart devices such as smartphones, tablets, game consoles, and computers, offering users a rich and diverse gaming entertainment experience. Game applications can include various game genres, such as action games, shooting games, fighting games, adventure games, simulation games, role-playing games, strategy games, casual games, puzzle games, sports games, and racing games.

[0048] After a game application is launched, it's necessary to continuously and in real-time monitor the system resource usage of the electronic device. This monitoring can be achieved using the system's built-in monitoring tools, third-party monitoring software, or log analysis. If the system is hosted on a cloud service platform, the system resource usage can be viewed directly in the management console provided by the platform. Cloud service platforms offer a wealth of monitoring and management tools. System resources refer to the sum of hardware and software components used by an electronic device to perform various tasks and operations, and can include: processors, storage devices, network devices, I / O devices, and the operating system.

[0049] The system resource usage is determined based on the usage and changes in system resources within a preset time period. The preset time is set by the user. Specifically, it can be determined based on the trend, volatility, and sudden changes in system resource usage, as well as the availability of reserved system resources. For example, a sustained increase in system resource usage over a period of time indicates gradually increasing system pressure; frequent and significant fluctuations in memory usage over a period of time may indicate frequent memory allocation and deallocation operations, potentially leading to memory fragmentation and increasing system pressure. Sudden and significant increases or decreases in system resource usage can also be signals of system problems, and the source of system pressure can be determined based on these changes. If the reserved system resources fall below a certain value, it indicates potential system pressure.

[0050] Closing the first application refers to terminating the running process of the first application. In an operating system, each running first application typically corresponds to one or more processes. Closing the first application terminates the process corresponding to that application, preventing it from consuming CPU, memory, or other system resources. For first applications with a user interface, closing the first application will cause the user interface to disappear from the screen, and the user will no longer be able to interact with the application. The first application can include applications that have had some functions pre-suspended and are running in the background on an electronic device; it can also include applications that are displayed on the screen and can interact with the user. For example, the first application can be a social media application, an audio application, a video application, or a download application.

[0051] Releasing system resources from the first application means that the first application no longer occupies or locks the system resources it previously used. These released system resources can then be used by other applications or system processes. Specifically, during the first application's execution, the system allocates a certain amount of memory space to store its data and code. After closing the first application, the memory corresponding to it is reclaimed by the operating system and made available for other applications or processes. The first application uses CPU time slices to execute its instructions during runtime. After closing the first application, these CPU time slices can be used by other applications or processes. Some first applications may open files or establish network connections during their operation. After closing the first application, file and network resources are also released, allowing other applications or processes to use them. Depending on the specific function of the first application, it may also occupy other system resources, such as the graphics processing unit (GPU), audio devices, and external storage devices. After closing the application, these resources are also released accordingly.

[0052] It should be noted that the first and second conditions can be the same or different. Different conditions result in different system resource usage and different system operating pressures. Specifically, the system operating pressure is higher under the second condition than under the first. Specifically, when the first and second conditions are the same, if the system resource usage meets the first condition, a performance optimization mode is triggered. In performance optimization mode, the first application is closed, and its system resources are released. After closing the first application and releasing its system resources, if the system resource usage still meets the first condition, the first service program is further compressed. If the system resource usage does not meet the first condition, no further compression of the first service program is required. When the first and second conditions are different, after closing the first application and releasing its system resources, if the system resource usage meets the second condition, the first service program is further compressed. If the system resource usage does not meet the second condition, no further compression of the first service program is required. System resource usage can be reflected by system resource utilization rates. The overall system resource usage is determined by the individual usage of CPU, memory, GPU, and I / O. Specifically, the overall system resource utilization rate is determined by the utilization rates of these components. If the overall system resource utilization rate is greater than or equal to a first threshold, the system resource usage is considered to meet the first condition. If the overall system resource utilization rate is greater than or equal to a second threshold, the system resource usage is considered to meet the second condition, where the second threshold is greater than the first threshold. The purpose of this is that for system resource utilization rates between the first and second thresholds, only the first application needs to be closed, without further compression of the first service program. This reduces the system's operating pressure without affecting the operation of individual first service programs. For example, if the overall system resource utilization rate is 90%, and both the first and second thresholds are 80%, closing the first application and releasing its system resources results in an overall system resource utilization rate of 85%, allowing for further compression of the first service program. When the first threshold and the second threshold are not equal, the first threshold is 70%, the second threshold is 80%, and the overall system resource utilization rate is 90%. After closing the first application and releasing its system resources, the overall system resource utilization rate is 85%, and the first service program is further compressed. After closing the first application and releasing its system resources, the overall system resource utilization rate is 75%, and the first service program is not compressed.

[0053] The first condition can also be a combination of conditions corresponding to the usage of each system resource. If the usage of each system resource meets its respective condition, then the system resource usage meets the first condition. Similarly, if the usage of each system resource meets its respective condition, then the system resource usage meets the second condition. For example, if CPU utilization is >= 720%, memory capacity <= 800MB, and GPU utilization is >= 90%, then the system resource usage meets the first condition; if CPU utilization is >= 750%, memory capacity <= 850MB, and GPU utilization is >= 95%, then the system resource usage meets the second condition.

[0054] For example, in a vehicle infotainment system, entertainment services may include: music playback content, video playback content, and broadcasting; intelligent connectivity services may include: online navigation, remote control, vehicle diagnostics and remote monitoring; communication services may include: Bluetooth communication, mobile network communication, and Wi-Fi communication; and safety services may include: emergency rescue services, information security protection, and driver fatigue monitoring.

[0055] It should be noted that compressing the first service program refers to compressing the data required by the first service program according to a compression algorithm, and adjusting the system resources allocated to the first service program according to resource management strategies, so as to reduce the system resources occupied by the first service program and allocate the freed-up system resources to other applications, programs, and processes. Specifically, compressing the first service program can include: for large amounts of data that the first service program needs to transmit or store, such as image data, audio and video files, data compression algorithms can be used to reduce the size of the data. For example, lossless compression algorithms (such as Huffman coding, arithmetic coding, etc.) are suitable for data with high precision requirements, such as map data, and can reduce the data size without losing information. Lossy compression algorithms (such as JPEG, MP3, etc.) are suitable for multimedia data with low precision requirements, such as background music or video, and can sacrifice some information to achieve a higher compression ratio. When data transmission is involved in the operation of the first service program, a compressed transmission protocol is used to reduce the data transmission time. For example, enabling compression algorithms such as Gzip or Deflate in HTTP requests and responses reduces the amount of data transmitted. For services with high real-time requirements, the UDP protocol can be used in conjunction with compression algorithms to reduce data transmission latency and bandwidth consumption. The compressed first service program remains compatible with other parts of the system and will not experience functional abnormalities or performance degradation.

[0056] When the system resource usage meets the second condition, a prompt page is generated and displayed to the user. The prompt page shows at least one candidate function that can be blocked, and a corresponding selection control is generated for each candidate function. The selection control is used to select the candidate function as the target function. The user selects the target function from the candidate functions by clicking with the mouse or touching the selection control on the electronic device's display screen. The candidate functions are partial functions of applications other than the first application; blocking a function does not affect the operation of the application containing that function. The system can identify the system resource usage of each function and determine the less important functions that consume a large amount of system resources as candidate functions.

[0057] In this context, blocking a target function means stopping the target function from running or no longer responding to related operation requests, thereby preventing the target function from continuing to occupy the system's CPU, memory, GPU, and other resources, in order to release resources, alleviate system pressure, and improve game performance.

[0058] It should be noted that the embodiments of the present invention can be applied to electronic devices that share a single operating system but have multiple display screens. Based on the system resource management method improved by the embodiments of the present invention, only one display screen will run a game application at a time; clicking on a game application on other display screens will not enter the game page. Furthermore, when a game application runs on one display screen, the first application can be an application on any of the display screens.

[0059] In this embodiment of the invention, after a game application is launched on an electronic device, the system resource usage of the electronic device is obtained. If the system resource usage meets a first condition, the first application is closed, and its system resources are released. The first application includes applications running in the background on the electronic device. If the system resource usage meets a second condition, a first service program is compressed, a prompt page is generated and displayed, and in response to a selection operation of candidate functions displayed on the prompt page, a target function is determined from the candidate functions, the target function is blocked, and its system resources are released. This embodiment of the invention uses a progressive method to release system resources when different system resource usage conditions are met. Specifically, closing the first application, compressing the first service program, blocking the target function, and releasing system resources reduce the system's operating pressure and improve the smoothness of system operation.

[0060] Optionally, the method further includes:

[0061] Step 11: If the configuration information of the electronic device exists in the cloud server, retrieve the configuration information from the cloud server; the configuration information includes performance benchmark parameters for indicating the electronic device;

[0062] Step 12: If the configuration information of the electronic device does not exist in the cloud server, read the configuration information from the local server of the electronic device;

[0063] Step 13: Based on the comparison results between the performance benchmark parameters and the system resource usage, determine whether the system resource usage meets the first condition.

[0064] The purpose of obtaining configuration information is that the performance benchmark parameters indicated by the configuration information can provide an important basis for the management of electronic devices. By comparing the current system resource usage of electronic devices with the performance benchmark parameters, it is possible to promptly detect whether the electronic devices are experiencing performance abnormalities, such as excessively high CPU usage or abnormal memory consumption.

[0065] Specifically, the process of retrieving configuration information from a cloud server may include the following steps: establishing a network connection with the cloud server based on protocols such as HTTP or HTTPS; authenticating with the cloud server using a pre-assigned account, password, or API key to ensure that only authorized users or programs can access the configuration information; sending a query request to the cloud server to retrieve configuration information, which may specify the identification information of the electronic device to be retrieved; after receiving the query request, the cloud server verifies the validity of the query request, then retrieves the corresponding configuration information from its storage and returns the configuration information; after receiving the configuration information returned by the server, the client parses it according to the data format and extracts the required performance benchmark parameters.

[0066] When a query request is sent to the cloud server and the cloud server returns an error message or error code, the configuration information is retrieved from the local server. The error message or error code indicates that the cloud server did not find matching configuration information, meaning that the electronic device's configuration information does not exist on the cloud server.

[0067] After obtaining the configuration information, the performance benchmark parameters indicated in the configuration information are compared with the system resource usage to determine whether the system resource usage meets the first condition. For example, if the system resource usage is greater than or equal to the performance benchmark parameter, it indicates that the system is under high pressure, and the system resource usage meets the first condition. It should be noted that since system resources are not singular, the configuration information contains corresponding performance benchmark parameters for each system resource.

[0068] In this embodiment of the invention, if the configuration information of the electronic device exists in the cloud server, the configuration information is retrieved from the cloud server; the configuration information includes performance benchmark parameters for indicating the electronic device; if the configuration information of the electronic device does not exist in the cloud server, the configuration information is read from the local server of the electronic device; this embodiment of the invention compares the performance benchmark parameters indicated by the configuration information with the current system resource usage obtained, and determines the system pressure based on the comparison result, based on the first condition.

[0069] Optionally, the system resources include a central processing unit, memory, and a graphics processing unit. Determining whether the system resource usage meets the first condition based on a comparison of the performance benchmark parameters and the system resource usage includes:

[0070] Step 21: Determine the first load of the central processing unit based on the usage of the central processing unit and the first performance benchmark corresponding to the central processing unit in the configuration information;

[0071] Step 22: Determine the second load of the central processing unit based on the memory usage and the second performance benchmark corresponding to the memory in the configuration information;

[0072] Step 23: Determine the third load of the image processor based on the usage of the graphics processor and the third performance benchmark corresponding to the image processor in the configuration information;

[0073] Step 24: Based on the first load, the second load, and the third load, determine whether the usage of the system resources meets the first condition.

[0074] The usage of the CPU (CPU) is reflected by its utilization rate. The first performance benchmark refers to a pre-set utilization threshold for the CPU; when the CPU utilization rate is greater than or equal to the threshold, it indicates that the CPU load is too high. Memory usage can be reflected by memory utilization rate or available memory capacity. The second performance benchmark can be a memory utilization rate threshold or an available memory capacity threshold. When the obtained memory utilization rate is greater than or equal to the memory utilization rate threshold or the available memory capacity is less than or equal to the available memory capacity threshold, it indicates that the memory load is too high. The usage of the graphics processing unit (GPU) is reflected by its utilization rate. The third performance benchmark can be a pre-set utilization threshold for the GPU; when the GPU utilization rate is greater than or equal to the utilization rate threshold, it indicates that the GPU load is too high.

[0075] It's important to note that system resource usage is determined by comprehensively considering the usage of various system resources. High CPU load, high memory load, and high GPU load indicate significant system stress. For example, CPU utilization >= 700%, GPU utilization >= 80%, and memory capacity <= 2GB indicate high system stress, satisfying the first condition for system resource usage. Alternatively, weights can be assigned to the CPU, memory, and GPU, and the system resource usage can be determined by weighted summation of the loads corresponding to each resource. Specifically, the first load can be calculated by comparing the CPU usage with a first performance benchmark; the second load by comparing the memory usage with a second performance benchmark; and the third load by comparing the memory usage with a third performance benchmark. Weights are then assigned to the first, second, and third loads, and the weighted summation yields the final system resource usage. It should be noted that since the value ranges of the indicators corresponding to various system resources are different, normalization processing is required to map the load to the range of 0-1; the weighted summation method is used to calculate based on the normalized value and weight of each indicator.

[0076] In this embodiment of the invention, a first load of the central processing unit (CPU) is determined based on its usage and a first performance benchmark corresponding to the CPU in the configuration information; a second load of the memory is determined based on its usage and a second performance benchmark corresponding to the memory in the configuration information; a third load of the graphics processing unit (GPU) is determined based on its usage and a third performance benchmark corresponding to the GPU in the configuration information; and the system resource usage is determined based on the first load, the second load, and the third load to determine whether it meets a first condition. In this embodiment of the invention, the system resource usage, which approximates the actual situation, is comprehensively determined based on the respective loads of the CPU, memory, and GPU.

[0077] Optionally, compressing the first service program when the system resource usage meets the second condition includes:

[0078] Step 31: If the system resource usage meets the second condition, determine the compression priority of each first service program;

[0079] Step 32: Compress each service sequentially according to its compression priority.

[0080] It should be noted that when running game applications in the vehicle infotainment system, and provided the system resource usage meets the second condition, compression of the first service program must prioritize safety while compressing less important services. For example, services directly related to driving safety should not be easily compressed. These include ABS monitoring services and ESC data processing services; their proper operation is crucial for driving safety and therefore have the lowest compression priority. Services supporting core vehicle infotainment functions are of higher importance, such as navigation services, which provide route planning and guidance to the driver and are one of the core functions of the system; therefore, their compression priority is also low. Services that directly impact the user experience, such as voice interaction services, have a higher compression priority compared to core and driving safety services. Multimedia services, with their high audio and video resource consumption and relatively low relevance to vehicle safety, have a higher compression priority.

[0081] When compressing the first service program, different compression algorithms can be used depending on the data categories contained within it. Specifically, the entertainment service program mainly involves multimedia data such as audio, video, and images, as well as user interface data, and can employ compression algorithms suitable for streaming data such as audio and video. For example, dictionary encoding algorithms such as LZ77 / LZ78. The intelligent connected service program mainly involves network communication data, vehicle status data, and map data, and can employ compression algorithms suitable for vehicle status data with many continuous and repetitive values. For example, run-length encoding and vector data compression algorithms. The security service program mainly involves encrypted data, security logs, and configuration data, requiring assurance of the security of the compressed data during transmission and storage. Therefore, lossless compression algorithms, such as Huffman coding, are used.

[0082] In this embodiment of the invention, when the system resource usage meets the second condition, the compression priority of each first service program is determined; and each service is compressed sequentially according to its compression priority. In this embodiment of the invention, by compressing the first service programs, the system's operating pressure can be reduced; by setting priorities, some important services can be prevented from being compressed, ensuring the normal and safe operation of the system.

[0083] Optionally, generating and displaying the prompt page includes:

[0084] Step 41: Determine the candidate functions from the interactive functions provided in the electronic device and generate a candidate function list;

[0085] Step 42: Generate the prompt page based on the candidate function list, and display the prompt page in the form of a pop-up window on the display interface of the electronic device.

[0086] It should be noted that the resource consumption and impact on normal system operation of interactive functions provided by electronic devices are analyzed. Functions with high system resource consumption but minimal impact on system operation are selected as candidate functions. The information of the selected candidate functions is compiled into a list, which may include function name, function description, and resource consumption information. Interactive functions refer to functions provided by electronic devices that are directly perceptible to the user, such as screen saver functions, gesture functions, dashcam view functions, and voice functions.

[0087] The process of generating a prompt page may include the following steps: Designing the layout of the prompt page, including a title, a candidate function list display area, and an operation button area. Populating the information from the candidate function list into the corresponding positions on the prompt page, using a list format, with each candidate function occupying one row, and each row displaying the function name and a brief description. Adding various operation controls to the prompt page, such as selection boxes, confirmation buttons, cancel buttons, and details buttons. Selection boxes allow users to select candidate functions to block. Each candidate function can be accompanied by a radio button or checkbox, allowing users to select one or more functions to block. The confirmation button, when clicked after the user has selected candidate functions, will block the corresponding functions and close the prompt page. The cancel button cancels the selection of candidate functions; if the user does not wish to block any functions, clicking the cancel button will close the prompt page, leaving the electronic device's functionality unchanged. The details button is placed next to each candidate function; clicking it will pop up a small window displaying detailed information about the candidate function. Clicking the "Select All" button will select all candidate functions at once, while clicking the "Deselect All" button will deselect all. The "Select All" and "Deselect All" buttons can be placed side by side above or below the selection area, with the words "Select All" and "Deselect All" displayed on the buttons respectively.

[0088] When displaying a notification page as a pop-up, the pop-up's style needs to be designed, including its size, color, and border style. The pop-up should be placed in a prominent position on the screen without interfering with the user's viewing of other important information. At the same time, it's crucial to ensure that the pop-up is not obscured by other applications or interface elements.

[0089] For example, such as Figure 2The diagram illustrates a prompt page containing prompt information and candidate functions. Each candidate function has a corresponding checkbox, allowing users to select the target function by clicking or checking the checkbox. Once the target function is selected, clicking the "Optimize Now" button disables the target function; clicking "Cancel" leaves the target function unchanged.

[0090] In this embodiment of the invention, candidate functions are determined from the interactive functions provided in the electronic device, and a candidate function list is generated. Based on the candidate function list, a prompt page is generated and displayed as a pop-up window on the display interface of the electronic device. By generating a prompt page to receive user actions, the performance optimization results can better reflect the actual needs of users.

[0091] Optionally, after the game application in the electronic device is launched and the system resource usage of the electronic device is obtained, the method further includes:

[0092] Pause the multimedia application playing content on the electronic device and adjust the running state of the multimedia application to background running state.

[0093] The multimedia applications playing content can include audio software for playing audio and video software for playing video. Specifically, to pause a multimedia application, first locate the currently playing application and observe its display to determine which application is playing video, audio, or other multimedia content. Enter the multimedia application's interface. If the application is already in the foreground, you will directly see its playback interface; if the application is controlled via the notification bar or control center, first click the playback control in the notification bar or the corresponding icon in the control center to enter the multimedia application. In the multimedia application's playback interface, locate the play / pause button and click it. The multimedia application will stop playing the multimedia content, but it will remain in the foreground. Exit the multimedia playback interface using gestures or buttons to switch the multimedia application to background operation.

[0094] It should be noted that the first application includes multimedia applications. The first application can be a multimedia application that has been switched to the background running state, or it can be other applications that were originally running in the background.

[0095] In this embodiment of the invention, the multimedia application playing content on the electronic device is paused, and its running state is adjusted to background running state; when the system resource usage meets a first condition, the first application running in the background, which includes the multimedia application, is closed. By pausing the multimedia application first, and then exiting it when the system pressure is still high, unnecessary applications are avoided from being closed.

[0096] In summary, this invention provides a system resource management method that, after a game application is launched on an electronic device, acquires the system resource usage of the electronic device; when the system resource usage meets a first condition, closes the first application and releases its system resources; the first application includes applications running in the background on the electronic device; when the system resource usage meets a second condition, compresses a first service program, generates and displays a prompt page, and responds to a selection operation on the candidate functions displayed on the prompt page, determines a target function from the candidate functions, blocks the target function, and releases the system resources of the target function. This invention employs a progressive approach to releasing system resources when different system resource usage conditions are met. Specifically, closing the first application, compressing the first service program, blocking the target function, and releasing system resources reduce system operating pressure and improve system smoothness. Furthermore, considering the impact of service programs on system security throughout the performance optimization process not only improves system smoothness but also ensures system security. Determining the target function based on user operations makes the performance optimization results more aligned with user needs.

[0097] Device Examples

[0098] Reference Figure 3 The diagram illustrates a structural block diagram of a system resource management device according to the present invention. The device may specifically include:

[0099] The acquisition module 310 is used to acquire the system resource usage of the electronic device after the game application in the electronic device is launched;

[0100] The shutdown module 320 is used to close the first application and release the system resources of the first application when the system resource usage meets the first condition; the first application includes applications running in the background of the electronic device.

[0101] Compression module 330 is used to compress the first service program, generate and display a prompt page when the system resource usage meets the second condition, and, in response to the selection operation of the candidate functions displayed on the prompt page, determine the target function from the candidate functions, block the target function, and release the system resources of the target function; the first service program includes a service program in the electronic device for providing at least one of entertainment services, intelligent network services, communication services, and security services during system operation.

[0102] Optionally, the device further includes:

[0103] A pull module is used to pull the configuration information from the cloud server if the configuration information of the electronic device exists in the cloud server; the configuration information includes performance benchmark parameters for indicating the electronic device;

[0104] A reading module is used to read the configuration information from the local server of the electronic device when the configuration information of the electronic device does not exist in the cloud server;

[0105] The judgment module is used to determine whether the system resource usage meets the first condition based on the comparison result between the configuration information and the system resource usage.

[0106] Optionally, the system resources include a central processing unit, memory, and a graphics processing unit; the judgment module includes:

[0107] The first load determination subunit is used to determine the first load of the central processing unit based on the usage of the central processing unit and the first performance benchmark corresponding to the central processing unit in the configuration information.

[0108] The second load determination subunit is used to determine the second load of the central processing unit based on the memory usage and the second performance benchmark corresponding to the memory in the configuration information.

[0109] The third load determination subunit is used to determine the third load of the image processor based on the usage of the graphics processor and the third performance benchmark corresponding to the image processor in the configuration information.

[0110] The judgment submodule is used to determine whether the usage of system resources meets the first condition based on the first load, the second load, and the third load.

[0111] Optionally, the compression module includes:

[0112] The priority determination module is used to determine the compression priority of each first service program when the usage of system resources meets the second condition.

[0113] The compression submodule is used to compress each service sequentially according to the compression priority of each first service program.

[0114] Optionally, the compression module includes:

[0115] A generation module is used to determine the candidate functions from the interactive functions provided in the electronic device and generate a list of candidate functions;

[0116] The display module is used to generate the prompt page based on the candidate function list and display the prompt page in the form of a pop-up window on the display interface of the electronic device.

[0117] Optionally, the device further includes:

[0118] The pause module is used to pause the multimedia application that is playing content on the electronic device and adjust the running state of the multimedia application to the background running state.

[0119] In summary, this invention provides a system resource management device that can acquire the system resource usage of an electronic device after a game application is launched. If the system resource usage meets a first condition, the device closes the first application and releases its system resources. The first application includes applications running in the background. If the system resource usage meets a second condition, the device compresses a first service program, generates and displays a prompt page, and responds to a selection operation on the candidate functions displayed on the prompt page. The device then determines a target function from the candidate functions, blocks the target function, and releases its system resources. This invention employs a progressive method of releasing system resources when different system resource usage conditions are met. Specifically, it closes the first application, compresses the first service program, blocks the target function, and releases system resources, reducing system operating pressure and improving system smoothness. Furthermore, considering the impact of service programs on system security throughout the performance optimization process not only improves system smoothness but also ensures system security. Determining the target function based on user operations makes the performance optimization results more aligned with user needs.

[0120] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0121] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0122] The system resource management device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a GPU BOX, mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.

[0123] The system resource management device in this application embodiment can be a device with an operating system. This operating system can be Android, Linux, Windows, or other possible operating systems; this application embodiment does not specifically limit it.

[0124] The system resource management device provided in this application embodiment can achieve... Figure 1 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.

[0125] Optionally, such as Figure 4 As shown in the figure, this application embodiment also provides an electronic device, including a processor and a memory. The memory stores a program or instructions that can run on the processor. When the program or instructions are executed by the processor, they implement the various steps of the above-described system resource management method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0126] In embodiments of this application, the memory can be used to store software programs and various data. The memory may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, applications or instructions required for at least one function (such as sound playback functionality, image playback functionality, etc.). Furthermore, the memory may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0127] The processor may include one or more processing units; optionally, the processor integrates an application processor and a modem processor, wherein the application processor mainly handles operations related to the operating system, user interface, and applications, while the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into the processor.

[0128] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described system resource management method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.

[0129] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0130] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described system resource management method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0131] It should be understood that the chip involved in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0132] This application provides a computer program product that is stored in a storage medium and executed by at least one processor to implement the various processes of the system resource management method embodiments described above, and can achieve the same technical effects. To avoid repetition, it will not be described again here.

[0133] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0134] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the related technology, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0135] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A system resource management method, characterized in that, Applied to electronic devices, the method includes: After a game application is launched on the electronic device, the system resource usage of the electronic device is obtained; If the system resource usage meets the first condition, the first application is closed and its system resources are released; the first application includes applications running in the background of the electronic device. When the system resource usage meets the second condition, the first service program is compressed, a prompt page is generated and displayed, and in response to the selection operation of the candidate functions displayed on the prompt page, a target function is determined from the candidate functions, the target function is blocked, and the system resources of the target function are released; the first service program includes a service program in the electronic device for providing at least one of entertainment services, intelligent network services, communication services, and security services during system operation.

2. The method according to claim 1, characterized in that, The method further includes: If the configuration information of the electronic device exists in the cloud server, the configuration information is retrieved from the cloud server; the configuration information includes performance benchmark parameters for indicating the electronic device. If the configuration information of the electronic device is not present in the cloud server, the configuration information is read from the local server of the electronic device. Based on the comparison results between the performance benchmark parameters and the system resource usage, it is determined whether the system resource usage meets the first condition.

3. The method according to claim 2, characterized in that, The system resources include a central processing unit, memory, and a graphics processing unit. Determining whether the system resource usage meets the first condition based on a comparison of the performance benchmark parameters and the system resource usage includes: The first load of the central processing unit is determined based on the usage of the central processing unit and the first performance benchmark corresponding to the central processing unit in the configuration information; The second load on the memory is determined based on the memory usage and the second performance benchmark corresponding to the memory in the configuration information; Based on the usage of the graphics processor and the configuration information, the third load of the graphics processor is determined according to the third performance benchmark corresponding to the graphics processor. Based on the first load, the second load, and the third load, determine whether the system resource usage meets the first condition.

4. The method according to any one of claims 1 to 3, characterized in that, When the system resource usage meets the second condition, the first service program is compressed, including: If the usage of system resources meets the second condition, the compression priority of each first service program is determined. The services are compressed sequentially according to their compression priority.

5. The method according to any one of claims 1 to 3, characterized in that, The generation and display of the prompt page includes: The candidate functions are determined from the interactive functions provided in the electronic device, and a list of candidate functions is generated; Based on the candidate function list, the prompt page is generated and displayed as a pop-up window on the display interface of the electronic device.

6. The method according to any one of claims 1 to 3, characterized in that, After the game application in the electronic device is launched, and the system resource usage of the electronic device is obtained, the method further includes: Pause the multimedia application playing content on the electronic device and adjust the running state of the multimedia application to background running state.

7. A system resource management device, characterized in that, The device includes: The acquisition module is used to acquire the system resource usage of the electronic device after the game application in the electronic device is launched; The shutdown module is used to close the first application and release the system resources of the first application when the system resource usage meets the first condition; the first application includes applications running in the background of the electronic device. The compression module is used to compress the first service program, generate and display a prompt page when the system resource usage meets the second condition, and, in response to the selection operation of the candidate functions displayed on the prompt page, determine the target function from the candidate functions, block the target function, and release the system resources of the target function; the first service program includes a service program in the electronic device for providing at least one of entertainment services, intelligent network services, communication services, and security services during system operation.

8. The apparatus according to claim 7, characterized in that, The device further includes: A pull module is used to pull the configuration information from the cloud server if the configuration information of the electronic device exists in the cloud server; the configuration information includes performance benchmark parameters for indicating the electronic device; A reading module is used to read the configuration information from the local server of the electronic device when the configuration information of the electronic device does not exist in the cloud server; The judgment module is used to determine whether the system resource usage meets the first condition based on the comparison result between the performance benchmark parameters and the system resource usage.

9. An electronic device, characterized in that, The electronic device includes a processor, a memory, a communication interface, and a communication bus. The processor, the memory, and the communication interface communicate with each other through the communication bus. The memory is used to store executable instructions, which cause the processor to execute the system resource management method as described in any one of claims 1 to 6.

10. A readable storage medium, characterized in that, When the instructions in the readable storage medium are executed by the processor of the electronic device, the processor is enabled to perform the system resource management method as described in any one of claims 1 to 6.