System resource management method, device, electronic device and storage medium

By splitting the system performance requirements of tasks to the performance requirements of each module and configuring them to the chip platform, the problem of not being able to meet the execution requirements of different tasks in the existing technology is solved, and the task execution effect is improved and the system resources are efficiently utilized.

CN114911616BActive Publication Date: 2025-03-21GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210507139.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-10
Publication Date
2025-03-21
Estimated Expiration
2042-05-10

AI Technical Summary

Technical Problem

The prior art cannot meet the execution needs of different tasks, resulting in poor task execution results.

Method used

By determining the system performance requirements for performing tasks, split into performance requirements of each module, and configuring these requirements to the chip platform to achieve dynamic allocation of system resources.

Benefits of technology

Effectively meet the performance needs of different tasks, improve the utilization rate of system resources, and maintain the operation effect of tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114911616B_ABST
    Figure CN114911616B_ABST
Patent Text Reader

Abstract

The present application discloses a system resource management method, device, electronic device and storage medium. The method includes: determining at least one first performance parameter of a first execution task; the at least one first performance parameter represents the system performance requirement of the first execution task; determining at least one second performance parameter of each first module in at least one first module according to the at least one first performance parameter; the first module represents a module related to the first execution task; the second performance parameter represents the performance requirement of the corresponding first module for executing the first execution task; configuring each of the at least one second performance parameter of each first module in the at least one first module to a first chip platform, so that the first chip platform allocates system resources to the at least one first module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a system resource management method, device, electronic device and storage medium. Background Art

[0002] In the related art, the allocation of system resources is decided based on application scenarios and user needs, which cannot meet the execution requirements of different tasks and the execution effect of the tasks is poor. Summary of the invention

[0003] In view of this, the embodiments of the present application provide a system resource management method, device, electronic device and storage medium to at least solve the problem that the related technology cannot meet the execution requirements of different tasks and the task execution effect is poor.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The present application provides a system resource management method, the method comprising:

[0006] Determining at least one first performance parameter of a first execution task; the at least one first performance parameter represents a system performance requirement of the first execution task;

[0007] Determining at least one second performance parameter of each first module in at least one first module according to the at least one first performance parameter; the first module represents a module related to the first execution task; the second performance parameter represents a performance requirement of the corresponding first module for executing the first execution task;

[0008] Each second performance parameter of at least one second performance parameter of each first module in the at least one first module is configured to the first chip platform, so that the first chip platform allocates system resources to the at least one first module.

[0009] In the above solution, determining at least one second performance parameter of each first module in at least one first module according to the at least one first performance parameter includes:

[0010] Determine a first combination result corresponding to each first performance parameter in the at least one first performance parameter; the first combination result represents a performance parameter of each first module in the at least one first module when the corresponding first performance parameter is satisfied;

[0011] At least one second performance parameter of each first module in the at least one first module is determined based on a first combination result corresponding to each first performance parameter in the at least one first performance parameter.

[0012] In the above solution, when determining the first combination result corresponding to each first performance parameter in the at least one first performance parameter, the method includes:

[0013] Determine at least two second combination results that satisfy the first performance parameter; the second combination result is composed of the performance parameter of each first module in the at least one first module;

[0014] The combination result with the lowest power consumption among the at least two second combination results is determined as the first combination result.

[0015] In the above solution, the first chip platform represents a platform for adapting performance parameters.

[0016] In the above scheme, the method further comprises:

[0017] Mapping at least one second performance parameter of the at least one first module to at least one first parameter of the at least one first module; the first parameter represents a technical configuration parameter of the first module;

[0018] Each of the at least one first parameter of the at least one first module is configured to a second chip platform so that the second chip platform allocates system resources according to the first parameter of the at least one first module; the second chip platform represents a platform adapted to the technical configuration parameters.

[0019] In the above scheme, the method further comprises:

[0020] Acquire at least one second parameter of the first execution task; the at least one second parameter represents the performance of executing the first execution task under at least one second performance parameter of the at least one first module;

[0021] At least one second performance parameter of each first module in the at least one first module is adjusted according to each first performance parameter in the at least one first performance parameter and at least one second parameter.

[0022] In the above solution, determining at least one first performance parameter of the first execution task includes:

[0023] At least one first performance parameter of the first execution task is determined according to at least one third parameter; the third parameter includes at least one of the following:

[0024] an execution condition of the first execution task;

[0025] The user configures the parameters of the first execution task.

[0026] The present application also provides a system resource management device, including:

[0027] A first determining unit, configured to determine at least one first performance parameter of a first execution task; the at least one first performance parameter represents a system performance requirement of the first execution task;

[0028] a second determination unit, determining at least one second performance parameter of each first module in at least one first module according to the at least one first performance parameter; the first module represents a module related to the first execution task; the second performance parameter represents a performance requirement of the corresponding first module for executing the first execution task;

[0029] A configuration unit is used to configure each second performance parameter of at least one second performance parameter of each first module in the at least one first module to the first chip platform, so that the first chip platform allocates system resources to the at least one first module.

[0030] The present application also provides an electronic device, including: a processor and a memory for storing a computer program that can be run on the processor.

[0031] Wherein, the processor is used to execute the steps of any of the above methods when running the computer program.

[0032] An embodiment of the present application further provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0033] In an embodiment of the present application, the system performance requirements required for executing the task are determined, and the performance requirements of each first module in at least one first module are determined based on the system performance requirements. The performance requirements of each first module in at least one first module are configured to the first chip platform, so that the first chip platform can allocate system resources according to the performance requirements of each first module, thereby meeting the performance requirements of different execution tasks and maintaining the operating effect of the execution tasks. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A schematic diagram of a system resource management architecture in the related art;

[0035] Figure 2 A schematic diagram of an implementation flow of a system resource management method provided in an embodiment of the present application;

[0036] Figure 3 A mapping relationship diagram between a first performance parameter and a second performance parameter provided in an embodiment of the present application;

[0037] Figure 4 A schematic diagram of an implementation flow of a system resource management method provided in an embodiment of the present application;

[0038] Figure 5 A schematic diagram of an implementation flow of a system resource management method provided in yet another embodiment of the present application;

[0039] Figure 6 A first combination result corresponding to the first performance parameter OP_1 and the first performance parameter OP_2 provided in an embodiment of the present application;

[0040] Figure 7 A mapping relationship diagram between the second performance parameter of the first module and the performance parameter in the first combination result provided by an embodiment of the present application;

[0041] Figure 8 A schematic diagram of a second performance parameter configuration provided in an embodiment of the present application;

[0042] Fig. 9 A schematic diagram of an implementation flow of a system resource management method provided in an embodiment of the present application;

[0043] Fig.10 A schematic diagram of an implementation flow of a system resource management method provided in yet another embodiment of the present application;

[0044] Fig.11 A schematic diagram of a system resource management architecture provided for an application embodiment of the present application;

[0045] Fig.12 A schematic diagram of a data transmission device according to an embodiment of the present invention

[0046] Fig.13 A schematic diagram of the hardware structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0047] The present application is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0048] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0049] It should be noted that the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0050] In addition, in the embodiments of the present application, "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0051] In addition, the term "at least one" in this article means any combination of at least two of any one or more of a plurality, for example, including at least one of A, B, and C, and can mean any one or more elements selected from the set consisting of A, B and C.

[0052] Before describing the technical solution of the embodiment of the present application in detail, a system resource management architecture in the related art is briefly described first.

[0053] Figure 1 FIG. 1 is a schematic diagram of a system resource management architecture in the related art. Figure 1 As shown, the system resource management architecture can take into account multiple operating modes and allocate resources according to the current application scenario, characteristic behavior, and running applications, thereby realizing the management of system resources. The technical parameters of different modules obtained after allocation will be configured to the chip platform that adapts to the technical configuration parameters. However, in the process of allocating system resources according to the technical configuration parameters, the chip platform cannot guarantee the performance of the system or different modules in executing tasks, resulting in the inability to meet the performance requirements for executing tasks.

[0054] Based on this, in an embodiment of the present application, system resource allocation can be performed according to the performance requirements of executing tasks.

[0055] The present application is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0056] The present application embodiment provides a system resource management method, Figure 2 A schematic diagram of a flow chart of a system resource management method according to an embodiment of the present application is shown in FIG. Figure 2 As shown, the method includes:

[0057] S201: Determine at least one first performance parameter of a first execution task; the at least one first performance parameter represents a system performance requirement of the first execution task:.

[0058] The first execution task is a task that is being run, for example, an application running in the foreground, etc. The system performance requirements of different first execution tasks are different. The system performance requirements of the first execution task can be reflected by different performance parameters. The performance parameters may include average frame rate, minimum frame rate, mean square error of frame rate, task execution time, warm-up time, etc. In the case where the first execution task is a game running task, high frame rate and high image quality output conditions are required. In the case where the first execution task is a browsing task, it is necessary to load the browsing content quickly. In this embodiment, at least one first performance parameter of the first execution task is determined by analyzing the first execution task. In actual applications, there may be multiple first performance parameters for complex first execution tasks.

[0059] In one embodiment, determining at least one first performance parameter of the first execution task includes:

[0060] At least one first performance parameter of the first execution task is determined according to at least one third parameter; the third parameter includes at least one of the following:

[0061] an execution condition of the first execution task;

[0062] The user configures the parameters of the first execution task.

[0063] The execution conditions of the first execution task are objective factors that affect the first performance parameters. The execution conditions of the first execution task include the execution scenario, execution behavior, execution application, or the hardware conditions of the electronic device that executes the first execution task. When the execution conditions change, the first performance parameters of the execution task will also change. For example, the performance parameters corresponding to the game running task on different execution applications are different. When the game running task is a light game, the first performance parameter is a performance parameter with lower performance requirements. When the game running task is a heavy game, the first performance parameter is a performance parameter with higher performance requirements.

[0064] The user's configuration parameters for the first execution task are subjective factors that affect the first performance parameters. In actual applications, the user can affect the first performance parameters by changing the configuration parameters of the first execution task. For example, in the process of executing a video playback task, the user changes the first performance parameter of the video playback task by selecting the clarity of the video playback.

[0065] By comprehensively considering the execution conditions of the first execution task and the configuration parameters of the first execution task by the user, at least one first performance parameter of the first execution task may be determined.

[0066] S202: Determine at least one second performance parameter of each first module in at least one first module based on the at least one first performance parameter; the first module represents a module related to the first execution task; the second performance parameter represents the performance requirement of the corresponding first module for executing the first execution task.

[0067] A first performance parameter will affect the performance of different modules, so the cooperation of multiple modules is required to achieve the execution of the first execution task under the first performance parameter. Through the sub-module architecture, the first performance parameter can be decomposed into at least one second performance parameter of different first modules, such as Figure 3 As shown, Figure 3 A mapping diagram of the first performance parameter and the second performance parameter is shown. Figure 3In the figure, the first performance parameter OP_1 can be split into the second performance parameter BP_A_1 of the first module A, the second performance parameter BP_B_1 of the first module B and the second performance parameter BP_C_1 of the first module C. It can be seen that when the performance of the first module can match the second performance parameter, the system performance can be matched with the first performance parameter, so that the first execution task can be executed while meeting the required performance requirements.

[0068] The first module is a working module related to the first execution task. For example, in the process of executing a game running task, it is necessary to rely on the work of different hardware modules such as the central processing unit (CPU) and the graphics processing unit (GPU). During the execution of the first execution task, the performance requirement for the first module is the second performance parameter. For example, when the first execution task requires a high-speed task processing speed, the first execution task has a high-speed processing performance requirement for the first module CPU, so that the second performance parameter of the first module CPU can be determined as a high-performance requirement.

[0069] Taking the first performance parameter of the first execution task as the cold start time of the first execution task as an example, the first module related to the cold start of the first execution task includes a CPU, a double data rate synchronous dynamic random access memory (DDR, Double DataRate), a software module and a storage module, so that at least one second performance parameter obtained by splitting the first performance parameter includes the CPU working time T CPU , DDR working time T DDR , software module working time T sw And the working time of the storage module T storage , where, the cold start time is the above T CPU , T DDR , T sw and T storage Furthermore, the CPU working time T CPU , DDR working time T DDR and the working time T of the software module sw It is further divided into different startup times, for example, DDR working time T DDR It can also be further divided into the processing time of the three-level cache, the processing time of the system cache, the bus arbitration time, etc. The startup time of the software module is T sw It can also be further divided into waiting scheduling time, software module lock holding time, software module entry and exit time of different power states (C-States), software module communication time through the binder communication mechanism.

[0070] Taking the photography task as the first execution task as an example, the first performance parameter of the first execution task is the average frame rate and variance, among which the CPU processing time, the GPU overlay time, the DDR processing time, the display module output time, the image compression module processing time, the image signal processing time and the embedded neural network processor (NPU, Neural-network Processing Unit) image post-processing time, etc., may affect whether the image has frame drops, thereby causing the average frame rate and variance to change. Therefore, the first performance parameter can be divided into the performance parameters of the aforementioned modules. In actual applications, different first modules may process images in parallel. The first performance parameter is the comprehensive result of the processing time of each first module. The impact on the performance can be determined by the maximum processing time in the first module or when the processing time exceeds the set value. The impact on the performance can be a quota impact, a linear impact or a nonlinear impact.

[0071] Taking the first performance parameter of the first execution task as data loading time as an example, for example, in a web browsing scenario containing a large number of thumbnails, the first performance parameter can be divided into the second performance parameters of different first modules, such as the delay of touch screen response, CPU processing time, GPU processing time, display module processing time, storage speed, etc. In addition, the speed at which the network connection module captures data will also affect the data loading time.

[0072] In one embodiment, if Figure 4 As shown, determining at least one second performance parameter of each first module in at least one first module according to the at least one first performance parameter includes:

[0073] S401: Determine a first combination result corresponding to each first performance parameter in the at least one first performance parameter; the first combination result represents a performance parameter of each first module in the at least one first module when the corresponding first performance parameter is satisfied.

[0074] In the case where there are multiple first performance parameters, a first combination result corresponding to each first performance parameter can be obtained, wherein the first combination result is the performance parameter of different first modules when the first performance parameter is satisfied, that is, the first combination result is the split result of the first performance parameter. For example, if the first performance parameter is the cold start time 1S, the obtained first combination result may be the CPU working time T CPU 0.4S, DDR working time T DDR 0.3S, the working time of the software module is T sw The working time of the storage module is 0.2S and T storage is 0.1S.

[0075] In one embodiment, if Figure 5 As shown, when determining a first combination result corresponding to each first performance parameter in the at least one first performance parameter, the method includes:

[0076] S501: Determine at least two second combination results that satisfy the first performance parameter; the second combination result is composed of the performance parameter of each first module in the at least one first module.

[0077] In the process of splitting the first performance parameter into performance parameters of different first modules, a combination of different performance parameters that satisfy the first performance module may be generated. For example, if the first performance parameter is the cold start time 1S, a second combination result may be obtained: CPU working time T CPU 0.4S, DDR working time T DDR 0.3S, the working time of the software module is T sw The working time of the storage module is 0.2S and T storage is 0.1S, and another second combination result can be obtained: CPU working time T CPU 0.3S, DDR working time T DDR 0.3S, the working time of the software module is T sw The working time of the storage module is 0.2S and T storage is 0.2S, and other second combination results can also be obtained, and all second combination results that meet the first performance parameter are listed.

[0078] S502: Determine the combination result with the lowest power consumption among the at least two second combination results as the first combination result.

[0079] Multiple second combination results can all satisfy the first performance module. In this case, the power consumption of each second combination result is considered, and the second combination result with the lowest power consumption is determined as the first combination result, so that the power consumption can be reduced while satisfying the performance requirement of the first execution task. Taking the first performance parameter as the cold start time as an example, each second combination result includes the CPU working time T CPU , DDR working time T DDR , software module working time T sw And the working time of the storage module T storage , where reducing the CPU performance requirement will result in the CPU working time T CPU Increase, but can save 10mW of power consumption, increase the performance requirements of DDR, will lead to DDR working time T DDR Reduce, but increase 8mW power consumption, in this case, will choose to reduce the DDR working time T DDR , increase the CPU working time TCPU The combined result can achieve a better balance between performance and power consumption.

[0080] S402: Determine at least one second performance parameter of each first module in the at least one first module based on a first combination result corresponding to each first performance parameter in the at least one first performance parameter.

[0081] The first combination result corresponding to the first performance parameter contains performance parameters of different first modules, and each first module can determine at least one second performance parameter of the first module according to the first combination result corresponding to each first performance parameter. Figure 6 As shown, Figure 6 The first combination result corresponding to the first performance parameter OP_1 and the first performance parameter OP_2 is shown, wherein the first combination result corresponding to the first performance parameter OP_1 is the performance parameter BP_A_1 of the first module A, the performance parameter BP_B_1 of the first module B and the performance parameter BP_C_1 of the first module C, and the first combination result corresponding to the first performance parameter OP_2 is the performance parameter BP_A_2 of the first module A, the performance parameter BP_B_2 of the first module B and the performance parameter BP_C_2 of the first module C. By operating the performance parameters corresponding to the first module, at least one second performance parameter of the first module can be obtained. For example, for the second performance parameter of the first module A, BP_A=f1(BP_A_1, BP_A_2), wherein f1 can be different operation functions, including but not limited to sum operation, maximum value calculation, minimum value calculation, average value calculation, priority weighted operation. Figure 7 As shown, Figure 7 A mapping relationship diagram between at least one second performance parameter of the first module and the performance parameter in the first combination result is shown.

[0082] S203: configuring each second performance parameter of at least one second performance parameter of each first module in the at least one first module to the first chip platform, so that the first chip platform allocates system resources to the at least one first module.

[0083] After determining at least one second performance parameter of each first module, the second performance parameter of the first module is configured to the first chip platform through the corresponding interface, and the first chip platform can allocate system resources according to the configured at least one second performance parameter, so as to ensure the performance requirements of the first execution task. Figure 8 As shown, Figure 8 A schematic diagram showing a second performance parameter configuration is shown. Figure 8In the example, the first performance parameter of the first execution task is the cold start time, and the first performance parameter of the first execution task is decomposed into at least one second performance parameter of different first modules, specifically including: CPU working time T CPU 0.15S, DDR working time T DDR 0.15S, the working time of the software module is T sw The working time of the storage module is 0.15S and T storage It is 0.25S, and each of the at least one second performance parameter of the different first modules is configured to the first chip platform. The first chip platform can map the technical configuration parameters corresponding to each second performance parameter according to the corresponding algorithm, and configure the different first modules accordingly.

[0084] In actual applications, when the first chip platform has the ability to process the first performance parameter, the first performance parameter can be directly configured to the first chip platform, and the first chip platform processes the first performance parameter to obtain at least one second performance parameter of at least one first module, and the first module is configured accordingly according to at least one second performance parameter of different first modules.

[0085] In this embodiment, by correspondingly processing and analyzing the first performance parameter of the execution task, the same execution task can be adapted to different parameters on electronic devices with different performance capabilities. For example, for heavy game running tasks, on electronic devices with better performance capabilities, the frame rate can be set to 90fps, the average frame rate can be set to 80-90fps, and high dynamic range images (HDR, High-Dynamic Range) can be output; on electronic devices with average performance capabilities, the frame rate can be set to 60fps, the average frame rate can be set to 57-60fps, and high-definition image quality can be output; on electronic devices with poor performance capabilities, the frame rate can be set to 60fps, the average frame rate can be set to 55-60fps, and high-definition image quality can be output. For another example, the cold start time can be set to 1S for an electronic device with better performance in performing a task, 1.2S for an electronic device with average performance, and 1.4S for an electronic device with poor performance. This allows the performance of different electronic devices to be differentiated by configuring different performance parameters for the same task, thereby improving the utilization rate of the capabilities of the electronic devices and maintaining a consistent user experience during the execution of the same task on electronic devices with different capabilities.

[0086] In one embodiment, the first chip platform represents a platform for adapting performance parameters.

[0087] The first chip platform includes different functional modules, software design for processing performance configuration parameters of functional modules, driver design and related hardware functions. It focuses on performance and can process performance parameters. It can adjust the operating parameters of different modules according to the performance parameters. The operating parameters of different modules are dynamically adjusted with the performance parameters, thereby affecting the performance of the electronic device. Therefore, the first chip platform can allocate system resources according to the performance parameters of different modules.

[0088] In one embodiment, if Fig. 9 As shown, the method also includes:

[0089] S901: Map at least one second performance parameter of the at least one first module to at least one first parameter of the at least one first module; the first parameter represents a technical configuration parameter of the first module.

[0090] Performance configuration parameters and technical configuration parameters are two different types of parameters. Performance configuration parameters are used to describe performance and will change with the change of execution tasks. They are affected by the design of the module and the technical configuration parameters of the module. Technical configuration parameters are the operating parameters of the module, which will cause changes in module behavior, but will not change with the change of execution tasks.

[0091] According to at least one second performance parameter of at least one first module, at least one first parameter corresponding to at least one second performance parameter of the first module can be mapped and determined. For example, if the second performance parameter is the processing time of the CPU, the second performance parameter can be achieved by adjusting the DDR bus frequency, the operating frequency of the DDR controller or the DDR physical layer, or by adjusting the arbitration mechanism, adjusting the priority of the CPU input port and other technical configuration parameters. For another example, if the second performance parameter is to shorten the time for the CPU to execute a thread, the second performance parameter can be achieved by adjusting the operating frequency of the CPU, the scheduling frequency modulation drive parameters, the size of the cache available to the thread or the system cache and other technical configuration parameters.

[0092] S902: Configure each first parameter of at least one first parameter of the at least one first module to a second chip platform, so that the second chip platform allocates system resources according to each first parameter of at least one first parameter of the at least one first module; the second chip platform represents a platform adapted to the technical configuration parameters.

[0093] The second chip platform includes different functional modules, software design for processing technical configuration parameters of the functional modules, driver design and related hardware functions. The second chip platform does not have the ability to process performance parameters and cannot directly receive second performance parameters, but can process technical configuration parameters. Therefore, the second chip platform can configure different first modules accordingly according to the first parameters, thereby realizing the allocation of system resources while also meeting the performance requirements of the first execution task.

[0094] In one embodiment, if Fig.10 As shown, the method also includes:

[0095] S1001: Acquire at least one second parameter of the first execution task; the at least one second parameter represents the performance of executing the first execution task under at least one second performance parameter of the at least one first module.

[0096] After the first chip platform completes the allocation of system resources according to each of the at least one second performance parameters of each first module, the performance of executing the first execution task is obtained, so as to determine whether the performance requirements of the first execution task are met. For example, the first performance parameter of the first execution task is the cold start time, and the cold start time of executing the first execution task after configuration according to the second performance parameter can be obtained.

[0097] S1002: Adjust at least one second performance parameter of each first module in the at least one first module according to each first performance parameter in the at least one first performance parameter and each second parameter in the at least one second parameter.

[0098] By comparing the obtained at least one second parameter with the at least one first performance parameter, it can be determined whether the performance requirement of the first execution task can be met after configuration according to the second performance parameter, so that at least one second performance parameter configured to the first chip platform can be adjusted. For example, the first performance parameter is a cold start time of 1S. After each of the at least one second performance parameter configured according to the first chip platform is configured, the cold start time of the last first execution task may increase to 1.1S or decrease to 0.9S due to other reasons. By feeding back at least one second parameter, at least one second performance parameter corresponding to the first performance parameter can be updated.

[0099] In actual applications, when the second chip platform also has a feedback mechanism, the performance of executing the first execution task can also be fed back after the second chip platform completes the configuration of different modules. For example, the first performance parameter is the cold start time of 1S, and then the CPU, GPU, DDR and other related technical configuration parameters corresponding to the first performance parameter are configured to the second chip platform, but the final cold start time of the first execution task may be increased to 1.1S or decreased to 0.9S. According to the performance of the first execution task, at least one technical configuration parameter of the first performance parameter configuration is adjusted so that the at least one configured technical configuration parameter can adapt to the first performance parameter.

[0100] In an embodiment of the present application, the performance parameters of the modules related to the first execution task are determined through the system performance requirements of the first execution task, so that the chip platform allocates system resources according to the performance parameters, which can improve the utilization of system resources, meet the performance requirements of different execution tasks, and maintain the running effect of the execution tasks.

[0101] This application also provides an application embodiment, such as Fig.11 As shown, Fig.11 A schematic diagram of the system resource management architecture is shown in FIG. Fig.11 The system resource management architecture includes a decision module, a first allocation module, a second allocation module and a resource management service. The system management allocation architecture allocates resources according to the current user's application scenario, characteristic behavior, running application and selected execution mode.

[0102] The decision module is responsible for determining at least one first performance parameter of the first execution task.

[0103] The first allocation module is used to split each first performance parameter of at least one first performance parameter of the first execution task to obtain at least one second performance parameter of different modules.

[0104] The second allocation module is used to map each second performance parameter of at least one second performance parameter of different modules and determine at least one corresponding technical configuration parameter.

[0105] The resource management service is used to configure each technical configuration parameter of at least one technical configuration parameter to a corresponding chip platform according to the hardware architecture of the chip platform.

[0106] exist Fig.11In the system resource management architecture, when the accessed platform is the first chip platform, the second allocation module will configure each of the at least one second performance parameter of the different modules to the first chip platform, or the first allocation module will configure at least one first performance parameter of the first execution task to the first chip platform. In addition, the first chip platform will also report the performance of executing the first execution task to the decision module, and the decision module will decide each of the at least one second performance parameter to be configured next time.

[0107] When the accessed platform is the second chip platform, the resource management service configures each of the at least one technical configuration parameter to the second chip platform. If the second chip platform supports the performance detection mechanism, the performance of executing the first execution task can be collected and reported to the decision module, which decides each of the at least one technical configuration parameter to be configured next time.

[0108] In order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a system resource management device, Fig.12 For a schematic diagram of the structure of the system resource management device provided in the embodiment of the present application, see Fig.12 , the device comprises:

[0109] A first determining unit 1201 is configured to determine at least one first performance parameter of a first execution task; the at least one first performance parameter represents a system performance requirement of the first execution task;

[0110] The second determining unit 1202 determines at least one second performance parameter of each first module in at least one first module according to the at least one first performance parameter; the first module represents a module related to the first execution task; the second performance parameter represents a performance requirement of the corresponding first module for executing the first execution task;

[0111] The configuration unit 1203 is used to configure each second performance parameter of at least one second performance parameter of each first module in the at least one first module to the first chip platform, so that the first chip platform allocates system resources to the at least one first module.

[0112] In one embodiment, when determining at least one second performance parameter of each first module in at least one first module according to the at least one first performance parameter, the second determining unit 1202 is further configured to:

[0113] Determine a first combination result corresponding to each first performance parameter in the at least one first performance parameter; the first combination result represents a performance parameter of each first module in the at least one first module when the corresponding first performance parameter is satisfied;

[0114] At least one second performance parameter of each first module in the at least one first module is determined based on a first combination result corresponding to each first performance parameter in the at least one first performance parameter.

[0115] In one embodiment, when determining the first combination result corresponding to each first performance parameter in the at least one first performance parameter, the second determining unit 1201 is further configured to:

[0116] Determine at least two second combination results that satisfy the first performance parameter; the second combination result is composed of the performance parameter of each first module in the at least one first module;

[0117] The combination result with the lowest power consumption among the at least two second combination results is determined as the first combination result.

[0118] In one embodiment, the first chip platform represents a platform for adapting performance parameters.

[0119] In one embodiment, the device is further used for:

[0120] Mapping at least one second performance parameter of the at least one first module to at least one first parameter of the at least one first module; the first parameter represents a technical configuration parameter of the first module;

[0121] Each of the at least one first parameter of the at least one first module is configured to a second chip platform so that the second chip platform allocates system resources according to each of the at least one first parameter of the at least one first module; the second chip platform represents a platform adapted to the technical configuration parameters.

[0122] In one embodiment, the device is further used for:

[0123] The method further comprises:

[0124] Acquire at least one second parameter of the first execution task; the at least one second parameter represents the performance of executing the first execution task under at least one second performance parameter of the at least one first module;

[0125] At least one second performance parameter of each first module in the at least one first module is adjusted according to each first performance parameter in the at least one first performance parameter and the at least one second parameter.

[0126] In one embodiment, the first determining unit 1201 determines at least one first performance parameter of the first execution task, including:

[0127] At least one first performance parameter of the first execution task is determined according to at least one third parameter; the third parameter includes at least one of the following:

[0128] an execution condition of the first execution task;

[0129] The user configures the parameters of the first execution task.

[0130] In actual application, the first determination unit 1201, the second determination unit 1202, and the configuration unit 1203 can be implemented by a processor in the system resource management device. Of course, the processor needs to run the program stored in the memory to implement the functions of the above program modules.

[0131] It should be noted that the above Fig.12 The system resource management device provided in the embodiment only uses the division of the above-mentioned program modules as an example to illustrate when performing system resource management. In actual applications, the above-mentioned processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the above-mentioned processing. In addition, the system resource management device provided in the above embodiment and the system resource management method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0132] Based on the hardware implementation of the above program module, and in order to implement the method of the embodiment of the present application, the embodiment of the present application also provides an electronic device, Fig.13 Schematic diagram of the hardware structure of the electronic device of the present application embodiment. Fig.13 As shown, the electronic equipment includes:

[0133] Communication interface 1, capable of exchanging information with other devices such as network devices;

[0134] The processor 2 is connected to the communication interface 1 to implement information exchange with other devices and is used to execute the system resource management method provided by one or more of the above technical solutions when running a computer program. The computer program is stored in the memory 3.

[0135] Of course, in actual application, the various components in the electronic device are coupled together through the bus system 4. It can be understood that the bus system 4 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 4 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Fig.13 Various buses are labeled as bus system 4.

[0136] The memory 3 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program used to operate on the electronic device.

[0137] It can be understood that the memory 3 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), 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, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 3 described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memories.

[0138] The method disclosed in the above embodiment of the present application can be applied to the processor 2, or implemented by the processor 2. The processor 2 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 2 or the instruction in the form of software. The above processor 2 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 2 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the memory 3, and the processor 2 reads the program in the memory 3 and completes the steps of the above method in combination with its hardware.

[0139] When the processor 2 executes the program, the corresponding processes in the various methods of the embodiments of the present application are implemented, which will not be repeated here for the sake of brevity.

[0140] In an exemplary embodiment, the present application also provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, for example, a memory 3 storing a computer program, and the computer program can be executed by a processor 2 to complete the steps of the aforementioned method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.

[0141] In the several embodiments provided in the present application, it should be understood that the disclosed devices, terminals and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0142] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0143] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0144] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium, which, when executed, executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, disks or optical disks.

[0145] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

[0146] 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.

Claims

1. A system resource management method, characterized in that: include: determining at least one first performance parameter of a first execution task; The at least one first performance parameter represents a system performance requirement of the first execution task; Determining at least one second performance parameter of each first module in at least one first module based on the at least one first performance parameter, wherein the first module represents a module related to the first execution task; The second performance parameter represents the performance requirement of the corresponding first module for executing the first execution task; configuring each second performance parameter of at least one second performance parameter of each first module in the at least one first module to the first chip platform, so that the first chip platform allocates system resources to the at least one first module; Wherein, determining at least one second performance parameter of each first module in at least one first module according to the at least one first performance parameter includes: Determine a first combination result corresponding to each first performance parameter in the at least one first performance parameter; the first combination result represents a performance parameter of each first module in the at least one first module when the corresponding first performance parameter is satisfied; At least one second performance parameter of each first module in the at least one first module is determined based on a first combination result corresponding to each first performance parameter in the at least one first performance parameter.

2. The method according to claim 1, characterized in that When determining a first combination result corresponding to each first performance parameter in the at least one first performance parameter, the method includes: Determine at least two second combination results that satisfy the first performance parameter; the second combination result is composed of the performance parameter of each first module in the at least one first module; The combination result with the lowest power consumption among the at least two second combination results is determined as the first combination result.

3. The method according to claim 1, characterized in that The first chip platform represents a platform of adapted performance parameters.

4. The method according to claim 1, characterized in that: The method further comprises: Mapping at least one second performance parameter of the at least one first module to at least one first parameter of the at least one first module; the first parameter represents a technical configuration parameter of the first module; Each of the at least one first parameter of the at least one first module is configured to a second chip platform so that the second chip platform allocates system resources according to each of the at least one first parameter of the at least one first module; the second chip platform represents a platform adapted to the technical configuration parameters.

5. The method according to claim 1, characterized in that The method further comprises: Acquire at least one second parameter of the first execution task; the at least one second parameter represents the performance of executing the first execution task under at least one second performance parameter of the at least one first module; At least one second performance parameter of each first module in the at least one first module is adjusted according to each first performance parameter in the at least one first performance parameter and each second parameter in the at least one second parameter.

6. The method according to claim 1, characterized in that The determining of at least one first performance parameter of the first execution task comprises: At least one first performance parameter of the first execution task is determined according to at least one third parameter; the third parameter includes at least one of the following: an execution condition of the first execution task; The user configures the parameters of the first execution task.

7. A system resource management device, characterized in that: include: A first determining unit, configured to determine at least one first performance parameter of a first execution task; The at least one first performance parameter represents a system performance requirement of the first execution task; A second determining unit, determining at least one second performance parameter of each first module in at least one first module according to the at least one first performance parameter, wherein the first module represents a module related to the first execution task; The second performance parameter represents the performance requirement of the corresponding first module for executing the first execution task; a configuration unit, configured to configure each second performance parameter of at least one second performance parameter of each first module in the at least one first module to the first chip platform, so that the first chip platform allocates system resources to the at least one first module; The second determination unit is further used to determine a first combination result corresponding to each first performance parameter in the at least one first performance parameter; the first combination result represents the performance parameter of each first module in the at least one first module when the corresponding first performance parameter is satisfied; At least one second performance parameter of each first module in the at least one first module is determined based on a first combination result corresponding to each first performance parameter in the at least one first performance parameter.

8. An electronic device, characterized in that: include: a processor and a memory for storing a computer program capable of being executed on the processor, Wherein, when the processor is used to run the computer program, it executes the steps of the method described in any one of claims 1 to 6.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Control method and control device for application programs and terminal

    CN106293913A

  • Resource allocation method and device, computer equipment and readable storage medium

    CN113853020A