Vehicle-mounted multi-container system resource allocation method, device, equipment and medium
By dynamically analyzing and identifying the scenarios of the on-board system and adjusting the resource configuration strategy, the problem that the on-board system resource configuration cannot adapt to different scenarios is solved, and the overall performance and user experience are improved.
Patent Information
- Application Number
- CN202411280657.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2044-09-12
AI Technical Summary
The existing in-vehicle infotainment system cannot make full use of SOC hardware resources, resulting in waste of resources, and the fixed resource configuration solution cannot adapt to different scenarios and states, affecting system performance and user experience.
By obtaining system resource usage data based on the business type carried by the container, performing data analysis and scenario identification, using the inference engine to determine resource configuration strategies, and dynamically adjust resource configuration to adapt to different scenarios and states.
It improves the overall performance and user experience of the on-board system, solves the problem that resource configuration is not able to adapt to different scenarios, and realizes adaptive configuration of resources.
Smart Images

Figure CN119046012A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and storage medium for configuring resources of a vehicle-mounted multi-container system. Background Art
[0002] The current mainstream in-vehicle infotainment system (IVI, In-Vehicle Infotainment) is mostly implemented using the SOC (System on Chip, System-level Chip) solution. The SOC system has its own modem, wifi, Bluetooth (Bt), positioning (GPS) and other modules, which can provide external network communication, local area network communication and other functions, and has a powerful CPU (Central Processing Unit, Central Processing Unit), GPU (graphics processing unit, Graphics Processing Unit) and various DSP (Digital Signal Processing, Digital Signal Processing). However, for a long time, the car system has not been able to fully utilize these hardware resources, but has relied on independent telematics control units (TBox, TelematicsBox) and instrument systems (Instrument Cluster) to provide communication, instrumentation and other functions, resulting in a great waste of SOC hardware resources.
[0003] Therefore, it is proposed to implement TBox and instrument system based on SOC system, improve the resource utilization of SOC system and reduce costs; in order to prevent the three systems of IVI, TBox and instrument implemented based on the same set of hardware from affecting each other, virtualization technology, such as container, is introduced to run IVI, TBox and instrument business in their respective systems and isolate them from each other. In the prior art, the amount of resources available to each container is configured on the host system based on experience, that is, a fixed resource configuration scheme is adopted. However, the system is running dynamically, and the demand for resources of different containers in different scenarios and states is dynamically changing; fixed resource configuration schemes can only adapt to a few scenarios, and in most cases, the resource allocation between the entire system and containers is not reasonable, and the performance of multi-container systems cannot be improved; in some extreme cases, it may even seriously affect the user experience and even the stability of the system. Therefore, how to improve the performance and user experience of each container as much as possible without affecting the stability of the overall system is a technical problem that needs to be solved urgently. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a method, device, equipment and storage medium for configuring resources of a vehicle-mounted multi-container system, which can adapt to different application scenarios and improve the overall performance of the vehicle-mounted system. The specific scheme is as follows:
[0005] In a first aspect, the present application discloses a method for configuring resources of a vehicle-mounted multi-container system, comprising:
[0006] According to the service type of the service carried by the container, using the data acquisition strategy corresponding to the service type to acquire the system resource usage data corresponding to the container;
[0007] Performing data analysis and processing on the system resource usage data to obtain processed data;
[0008] Based on the processed data and a preset rule base, the scenario information currently corresponding to the container is determined using an inference engine; the preset rule base is a rule base constructed according to resource occupancy characteristics of different scenarios;
[0009] Determine the resource configuration strategy corresponding to the container under the scenario information by querying the pre-built correspondence between the scenario and the resource configuration;
[0010] The resources of the containers are configured according to the resource configuration policy currently corresponding to each container.
[0011] Optionally, before determining the scene information currently corresponding to the container by using an inference engine based on the processed data and a preset rule base, the method further includes:
[0012] Obtain historical data in multiple different scenarios;
[0013] Analyze resource usage characteristics of different scenarios based on the correspondence between historical data and scenarios, and build scenario recognition rules for different scenarios based on the analysis results;
[0014] Verifying the scene recognition rule, and adjusting the scene recognition rule when the verification result is failure;
[0015] The preset rule library is generated based on the scene recognition rules corresponding to all scenes.
[0016] Optionally, the acquiring the system resource usage data corresponding to the container by using the data acquisition strategy corresponding to the business type includes:
[0017] The system resource usage data corresponding to the container is obtained by periodically utilizing a data acquisition strategy corresponding to the business type according to a preset period.
[0018] Optionally, before acquiring the system resource usage data corresponding to the container using the data acquisition strategy corresponding to the business type, the method further includes:
[0019] Determine the target resource item corresponding to the service type of the service on the container by querying the pre-built correspondence between the service and the resource item;
[0020] The data acquisition strategy is generated according to the target resource item.
[0021] Optionally, before configuring resources for the containers according to the resource configuration policy currently corresponding to each container, the method further includes:
[0022] Determining whether the container meets the resource configuration conditions according to the processed data and the resource configuration policy;
[0023] If the resource configuration condition is met, the operation of performing resource configuration on the containers according to the resource configuration policy currently corresponding to each container is executed.
[0024] Optionally, configuring resources for the containers according to the resource configuration policy currently corresponding to each container includes:
[0025] Determine the resource configuration priority for each container based on the business priority on the container;
[0026] According to the resource configuration policy corresponding to each container, resources are configured for each container in turn according to the resource configuration priority.
[0027] Optionally, the vehicle-mounted multi-container system includes a first container for running an in-vehicle entertainment system, a second container for running an Internet of Vehicles system, and a third container for running a car dashboard;
[0028] Among them, the priority of the car dashboard is greater than the priority of the Internet of Vehicles system, and the priority of the Internet of Vehicles system is greater than the priority of the in-vehicle entertainment system; the resource configuration priority of the third container is greater than the resource configuration priority of the second container, and the resource configuration priority of the second container is greater than the resource configuration priority of the first container.
[0029] In a second aspect, the present application discloses a vehicle-mounted multi-container system resource configuration device, comprising:
[0030] A resource monitoring module, configured to obtain system resource usage data corresponding to the container according to the service type of the service carried by the container and using a data acquisition strategy corresponding to the service type;
[0031] A data analysis and processing module, used to perform data analysis and processing on the system resource usage data to obtain processed data;
[0032] A scene recognition module, used to determine the scene information currently corresponding to the container using an inference engine based on the processed data and a preset rule base; the preset rule base is a rule base constructed according to resource occupancy characteristics of different scenes;
[0033] A resource configuration strategy determination module, used to determine the resource configuration strategy corresponding to the container under the scenario information by querying the pre-built correspondence between the scenario and the resource configuration;
[0034] The resource configuration module is used to perform resource configuration on the containers according to the resource configuration policy currently corresponding to each container.
[0035] In a third aspect, the present application discloses an electronic device, comprising:
[0036] Memory, used to store computer programs;
[0037] The processor is used to execute the computer program to implement the aforementioned vehicle-mounted multi-container system resource configuration method.
[0038] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the aforementioned vehicle-mounted multi-container system resource configuration method.
[0039] In this application, according to the business type of the business carried by the container, the system resource usage data corresponding to the container is obtained by using the data acquisition strategy corresponding to the business type; the system resource usage data is analyzed and processed to obtain the processed data; based on the processed data and the preset rule base, the scene information corresponding to the container is determined by using the inference engine; the preset rule base is a rule base constructed according to the resource occupancy characteristics of different scenes; by querying the pre-constructed scene and resource configuration correspondence, the resource configuration strategy corresponding to the container under the scene information is determined; and the container is configured with resources according to the resource configuration strategy currently corresponding to each container. It can be seen that different data acquisition strategies are designed for different types of business, and the system resource usage data that can characterize the operation characteristics of the business is obtained through the data acquisition strategy. After analyzing the system resource usage data, the rule base constructed in advance according to the resource occupancy characteristics of different scenes and the inference engine are used to identify the current scene of the container to obtain the scene information, and then the resource configuration strategy adapted to the scene is determined according to the scene information, so as to realize the adaptive configuration of the resources of the vehicle-mounted multi-container system, solve the problem that the resource configuration of the current vehicle-mounted multi-container system is solidified and cannot adapt to different scenes, and improve the overall performance of the vehicle-mounted system. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0041] FIG1 is a flow chart of a method for configuring resources of a vehicle-mounted multi-container system provided by the present application;
[0042] Figure 2 A schematic diagram of a specific on-board multi-container system resource configuration system provided for this application;
[0043] Figure 3 A specific resource monitoring method flow chart provided for this application;
[0044] Figure 4 A schematic diagram of a specific scene recognition expert system structure provided for this application;
[0045] Figure 5 A flow chart of a specific scene recognition method provided for this application;
[0046] Figure 6 A specific rule base generation flow chart provided for this application;
[0047] FIG7 is a specific resource configuration flow chart provided by the present application;
[0048] Figure 8 A schematic diagram of the structure of a vehicle-mounted multi-container system resource configuration device provided in this application;
[0049] FIG. 9 is a structural diagram of an electronic device provided in this application. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] In the prior art, the amount of resources available to each container is configured on the host system based on experience, that is, a fixed resource configuration scheme is adopted. However, the system runs dynamically, and the resource requirements of different containers in different scenarios and states change dynamically; fixed resource configuration schemes can only adapt to a few scenarios, and in most cases the resource allocation between the entire system and containers is not reasonable, and the performance of the multi-container system cannot be improved; in some extreme cases, it may even seriously affect the user experience and even the stability of the system. In order to overcome the above technical problems, the present application proposes a resource configuration method for a vehicle-mounted multi-container system, which can adapt to different application scenarios and improve the overall performance of the vehicle-mounted system.
[0052] The present application embodiment discloses a method for configuring resources of a vehicle-mounted multi-container system. Referring to FIG1 , the method may include the following steps:
[0053] Step S11: according to the service type of the service carried by the container, the system resource usage data corresponding to the container is acquired by using a data acquisition strategy corresponding to the service type.
[0054] In this embodiment, the container system resources are monitored. The system in the container uses the system resources (such as CPU, memory, GPU, etc.) allocated to the container. The resources between containers are isolated from each other. Therefore, the usage of container system resources can be used as identification data of the container system scenario. The container system resource monitoring module runs in each container and formulates strategies for obtaining system resource data for different businesses in the container.
[0055] In some embodiments, before the data acquisition strategy corresponding to the business type is used to acquire the system resource usage data corresponding to the container, it may also include: determining the target resource item corresponding to the business type of the business on the container by querying the pre-built correspondence between the business and the resource item; generating the data acquisition strategy according to the target resource item. In other words, different data acquisition strategies target different types of resource parameters; it is understandable that some businesses are computing businesses, and some may be interactive businesses, and the consumption or demand for system resources is different, so the basis for identifying system application scenarios is also different. Some containers may focus on CPU, some may be based on memory, etc. For example, for IVI business, the corresponding target resource items include CPU, MEM, and GPU resources, that is, at least the data of CPU, MEM, and GPU resources need to be acquired; for TBOX business, it is necessary to acquire CPU and MEM, mainly CPU resource data; for Cluster business, it is necessary to acquire CPU, MEM, and GPU, mainly CPU and GPU resource data.
[0056] In some embodiments, the obtaining of the system resource usage data corresponding to the container using the data acquisition strategy corresponding to the business type may include: obtaining the system resource usage data corresponding to the container using the data acquisition strategy corresponding to the business type regularly according to a preset period, that is, regularly obtaining the system resource usage data in the most recent time period, so as to timely identify the system scenario.
[0057] Step S12: performing data analysis and processing on the system resource usage data to obtain processed data.
[0058] Since the collected data is scattered and discontinuous, in order to further conduct scenario analysis based on the data, the resource usage data is first analyzed and processed, such as statistics, averages, and other calculations, so that the data can be used to identify system scenarios.
[0059] In some embodiments, the data analysis and processing of the system resource usage data may include: performing data analysis and processing on all system resource usage data corresponding to the container obtained within a preset time period to obtain processed data. It is understandable that during the operation of the system, the resource monitoring module in each container will obtain real-time data on current resource usage at a certain period, and the resource data processing module will process the system resource data to obtain data that can be used for system scene identification, such as CPU occupancy, etc. The processing operations of the resource data processing module include but are not limited to averaging, statistics, and other operations.
[0060] Step S13: Based on the processed data and a preset rule base, the scenario information currently corresponding to the container is determined using an inference engine; the preset rule base is a rule base constructed according to resource occupancy characteristics of different scenarios.
[0061] A rule base is built in advance based on the resource occupancy characteristics of different scenarios. Scenarios can be classified according to the business used and system load. Different containers carry different businesses, and the same business also has different scenarios. The system load and system resource usage are different. For example, when IVI uses an APP and plays videos or plays games, it corresponds to different scenarios: IVI normal scenario, IVI high-load scenario, IVI ultra-high-load scenario, etc. Specific scenarios may include idle scenarios on the IVI side, ordinary scenarios on the IVI side, high-load scenarios on the IVI side, IVI ultra-high-load scenarios, idle scenarios on the Cluster side, ordinary scenarios on the Cluster side, high-load scenarios on the Cluster side, etc. Analyze the resource occupancy characteristics of different scenarios based on the usage of various resources in various scenarios, build identification rules for different scenarios accordingly, and add the identification rules to the rule base.
[0062] In some embodiments, before the inference engine is used to determine the scene information currently corresponding to the container based on the processed data and the preset rule base, it may also include: obtaining historical data under multiple different scenes, where the historical data is the usage data of system resources under different scenes in the past; analyzing the resource occupancy characteristics of different scenes according to the corresponding relationship between historical data and scenes, and constructing scene recognition rules for different scenes according to the analysis results; verifying the scene recognition rules, and adjusting the scene recognition rules when the verification result is not passed; generating the preset rule base based on the scene recognition rules corresponding to all scenes. Experts formulate rules based on system scenarios, combined with their own knowledge and experience, and then verify the rules. The inference engine is used to match the resource occupancy characteristics of the scene according to the resource usage data of the current container system, and obtain resource configuration strategies or rules from the characteristics. Verification is to verify whether the rules can identify the scene, and then whether the resource rules can take effect well; for example, recording and video playback are both high-load scenes. If the rule identifies them as ordinary scenes, the rule verification fails.
[0063] Step S14: determining the resource configuration strategy corresponding to the container under the scenario information by querying the pre-built correspondence between the scenario and the resource configuration.
[0064] The requirements for various types of resources in different scenarios are predefined, and the correspondence between scenarios and resource configurations can be stored in the above-mentioned preset rule base, that is, based on the processed data and the preset rule base, after using the inference engine to determine the current scenario information corresponding to the container, the corresponding relationship between scenarios and resource configurations in the preset rule base is used to determine the resource configuration strategy corresponding to the container in the current scenario. That is, after determining the scenario, query the current demand for each resource item, and obtain the resource configuration strategy based on the demand for all types of resources. Different types of resource configurations can be configured separately and independently. For example, in the Cluster idle scenario and the IVI high-load scenario, resources need to be adjusted to give IVI more resources.
[0065] Step S15: performing resource configuration on the containers according to the resource configuration policy currently corresponding to each container.
[0066] Finally, resources are configured for the corresponding containers according to the generated resource configuration strategy. The above container can be LXC (Linux Container), which is a lightweight virtualization technology for the Linux platform. It is used to implement operating system-level virtualization based on the Linux platform. It has the advantages of relatively simple development, small overall system performance loss, and good system stability. The configuration of container resources is specifically completed by calling the LXC API (Application Programming Interface, Application Programming Interface, API). Therefore, the rule-based system scenario identification is used to infer the real-time fact data of the multi-container system, and then the most suitable resource configuration scheme for the current system scenario is obtained. Then, the multi-container system resource configuration is dynamically adjusted through the system resource configuration module, realizing the adaptive configuration of the vehicle-mounted multi-container system resources, solving the problem that the current vehicle-mounted multi-container system resource configuration is solidified and cannot adapt to more scenarios, and greatly improving the overall performance and stability of the vehicle-mounted system.
[0067] In some embodiments, before configuring resources for containers according to the resource configuration policy currently corresponding to each container, it may also include: judging whether the container meets the resource configuration conditions according to the processed data and the resource configuration policy; if the resource configuration conditions are met, the operation of configuring resources for the container according to the resource configuration policy currently corresponding to each container is executed. It is understandable that since each resource configuration will cause the system to be re-adapted and adjusted, the resource configuration cannot be too frequent. This embodiment can adopt the method of statistically analyzing, averaging, weighting, etc. the resource usage within a period of time, and the resource configuration will be triggered only when the data reaches the credibility of scene recognition within a period of time, that is, the resource configuration conditions are met for several analyses.
[0068] In some embodiments, configuring resources for containers according to the resource configuration policy currently corresponding to each container may include: determining the resource configuration priority corresponding to each container according to the priority of the service on the container; and configuring resources for each container in turn according to the resource configuration priority according to the resource configuration policy corresponding to each container. That is, since there are priorities between different services, in order to ensure the services with higher priorities, the resources of the services are configured first.
[0069] In this embodiment, the vehicle-mounted multi-container system may specifically include a first container for running the vehicle-mounted entertainment system, a second container for running the vehicle networking system, and a third container for running the vehicle dashboard; wherein the priority of the vehicle dashboard is greater than the priority of the vehicle networking system, and the priority of the vehicle networking system is greater than the priority of the vehicle-mounted entertainment system; the resource configuration priority of the third container is greater than the resource configuration priority of the second container, and the resource configuration priority of the second container is greater than the resource configuration priority of the first container. That is, the system resources of the vehicle dashboard are configured first, so that the resource requirements of the vehicle dashboard are met after configuration, and the remaining resources are finally configured for the vehicle-mounted entertainment system.
[0070] As can be seen from the above, in this embodiment, according to the business type of the business carried by the container, the data acquisition strategy corresponding to the business type is used to obtain the system resource usage data corresponding to the container; the system resource usage data is analyzed and processed to obtain the processed data; based on the processed data and the preset rule base, the inference engine is used to determine the scene information currently corresponding to the container; the preset rule base is a rule base constructed according to the resource occupancy characteristics of different scenes; by querying the pre-constructed scene and resource configuration correspondence, the resource configuration strategy corresponding to the container under the scene information is determined; and the container is configured with resources according to the resource configuration strategy currently corresponding to each container. It can be seen that different data acquisition strategies are designed for different types of business, and the system resource usage data that can characterize the operation characteristics of the business is obtained through the data acquisition strategy. After analyzing the system resource usage data, the rule base constructed in advance according to the resource occupancy characteristics of different scenes and the inference engine are used to identify the current scene of the container to obtain the scene information, and then the resource configuration strategy adapted to the scene is determined according to the scene information, so as to realize the adaptive configuration of the resources of the vehicle-mounted multi-container system, solve the problem that the resource configuration of the current vehicle-mounted multi-container system is solidified and cannot adapt to different scenes, and improve the overall performance of the vehicle-mounted system.
[0071] Correspondingly, the embodiment of the present application also discloses a vehicle-mounted multi-container resource configuration system, including a resource monitoring module, a system resource data processing module, a rule-based expert system, and a resource configuration module. The rule-based expert system includes a preset rule base, and the expert system is used to determine the scene information corresponding to the container based on the processed data and the preset rule base, using the expert system's reasoning engine; and the expert system determines the resource configuration strategy corresponding to the container under the scene information by querying the pre-built scene and resource configuration correspondence based on the scene information. For example Figure 2As shown, each container includes a resource monitoring module; a system resource data processing module, a rule-based expert system, and a resource configuration module are applied on the host side. The resource monitoring module sends real-time system resource data to the data processing module, which performs statistics, averages, and other calculations on the data and finally provides it to the system scene recognition expert system.
[0072] For example Figure 3 As shown, the container system resource monitoring module runs in each container and formulates strategies for obtaining system resource data for different services in the container; the container system resource monitoring module sends real-time system resource data to the system resource data processing module. Figure 4 As shown, the rule-based scene recognition expert system is mainly composed of a rule base, a fact database, a reasoning system, and a user interface; Figure 5 The figure shows a flow chart of the scene recognition method. The rule base contains the knowledge and rules provided by domain experts; the database stores factual data for reasoning and matching with the rule base; the inference engine performs reasoning, and the expert system finds a solution; the user interface feeds back the solution obtained by reasoning to the user. Figure 6 The flowchart shown is a rule base generation flow chart, which uses historical data from multiple different scenarios; analyzes the resource occupancy characteristics of different scenarios based on the corresponding relationship between historical data and scenarios, and builds scene recognition rules for different scenarios based on the analysis results; verifies the scene recognition rules, and adjusts the scene recognition rules when the verification result fails; generates a rule base based on the scene recognition rules corresponding to all scenarios. The resource configuration module obtains the identification results from the scene recognition expert system, and then converts the identification results into resource configuration strategies, which are sent to the system through the container engine; this module is responsible for the resource configuration and management of all containers in the entire system. The flowchart is shown in Figure 7, where the parameters are the identification results, and the parameters are checked for parameter legitimacy before matching the resource strategy. The expert system combines factual data and rules for reasoning, and finally obtains the identification results and identification credibility parameters, matches the appropriate resource configuration strategy, and then realizes the adaptive configuration of multi-container system resources.
[0073] Correspondingly, the embodiment of the present application also discloses a vehicle-mounted multi-container system resource configuration device, see Figure 8 As shown, the device comprises:
[0074] A resource monitoring module 11 is used to obtain system resource usage data corresponding to the container according to the service type of the service carried by the container using a data acquisition strategy corresponding to the service type;
[0075] The data analysis and processing module 12 is used to perform data analysis and processing on the system resource usage data to obtain processed data;
[0076] A scene recognition module 13, used to determine the scene information currently corresponding to the container using an inference engine based on the processed data and a preset rule base; the preset rule base is a rule base constructed according to resource occupancy characteristics of different scenes;
[0077] A resource configuration strategy determination module 14 is used to determine the resource configuration strategy corresponding to the container under the scenario information by querying the pre-built correspondence between the scenario and the resource configuration;
[0078] The resource configuration module 15 is used to configure resources for the containers according to the resource configuration policy currently corresponding to each container.
[0079] As can be seen from the above, in this embodiment, according to the business type of the business carried by the container, the data acquisition strategy corresponding to the business type is used to obtain the system resource usage data corresponding to the container; the system resource usage data is analyzed and processed to obtain the processed data; based on the processed data and the preset rule base, the inference engine is used to determine the scene information currently corresponding to the container; the preset rule base is a rule base constructed according to the resource occupancy characteristics of different scenes; by querying the pre-constructed scene and resource configuration correspondence relationship, the resource configuration strategy corresponding to the container under the scene information is determined; and the container is configured with resources according to the resource configuration strategy currently corresponding to each container. It can be seen that different data acquisition strategies are designed for different types of business, and the system resource usage data that can characterize the operation characteristics of the business is obtained through the data acquisition strategy. After analyzing the system resource usage data, the rule base pre-constructed according to the resource occupancy characteristics of different scenes and the inference engine are used to identify the current scene of the container to obtain the scene information, and then the resource configuration strategy adapted to the scene is determined according to the scene information, so as to realize the adaptive configuration of the resources of the vehicle-mounted multi-container system, solve the problem that the resource configuration of the current vehicle-mounted multi-container system is solidified and cannot adapt to different scenes, and improve the overall performance of the vehicle-mounted system.
[0080] In some specific embodiments, the preset rule library can be specifically obtained by acquiring historical data under multiple different scenarios, analyzing the resource occupancy characteristics of different scenarios according to the correspondence between historical data and scenarios, constructing scene recognition rules for different scenarios according to the analysis results, and verifying the scene recognition rules. When the verification result is failure, the scene recognition rules are adjusted, and finally, the scene recognition rules corresponding to the scenarios are generated.
[0081] In some specific embodiments, the resource monitoring module 11 may specifically include:
[0082] The system resource usage data acquisition unit is used to periodically acquire the system resource usage data corresponding to the container by using the data acquisition strategy corresponding to the service type according to a preset period.
[0083] In some specific embodiments, the vehicle-mounted multi-container system resource configuration device may specifically include:
[0084] a target resource item determining unit, configured to determine a target resource item corresponding to the business type of the business on the container by querying a pre-constructed correspondence relationship between the business and the resource item before acquiring the system resource usage data corresponding to the container using the data acquisition strategy corresponding to the business type;
[0085] A data acquisition strategy generating unit is used to generate the data acquisition strategy according to the target resource item.
[0086] In some specific embodiments, the vehicle-mounted multi-container system resource configuration device may specifically include:
[0087] A resource configuration condition judgment unit, used to judge whether the container meets the resource configuration condition according to the processed data and the resource configuration policy before performing resource configuration on the container according to the resource configuration policy currently corresponding to each container;
[0088] The execution unit is used to execute the operation of performing resource configuration on the container according to the resource configuration policy currently corresponding to each container if the resource configuration condition is met.
[0089] In some specific embodiments, the resource configuration module 15 may specifically include:
[0090] A priority determination unit, used to determine the resource configuration priority corresponding to each container according to the priority of the service on the container;
[0091] The resource configuration unit is used to perform resource configuration on each container in turn according to the resource configuration priority according to the resource configuration policy corresponding to each container.
[0092] In some specific embodiments, the vehicle-mounted multi-container system may specifically include a first container for running an in-vehicle entertainment system, a second container for running an Internet of Vehicles system, and a third container for running a car dashboard;
[0093] Among them, the priority of the car dashboard is greater than the priority of the Internet of Vehicles system, and the priority of the Internet of Vehicles system is greater than the priority of the in-vehicle entertainment system; the resource configuration priority of the third container is greater than the resource configuration priority of the second container, and the resource configuration priority of the second container is greater than the resource configuration priority of the first container.
[0094] Furthermore, an embodiment of the present application also discloses an electronic device, as shown in FIG9 . The content in the figure cannot be regarded as any limitation on the scope of use of the present application.
[0095] FIG9 is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the vehicle-mounted multi-container system resource configuration method disclosed in any of the aforementioned embodiments.
[0096] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0097] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222, and data 223 including system resource usage data, etc. The storage method can be temporary storage or permanent storage.
[0098] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, and it can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the vehicle-mounted multi-container system resource configuration method executed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can also further include a computer program that can be used to complete other specific tasks.
[0099] Furthermore, an embodiment of the present application also discloses a computer storage medium, in which computer executable instructions are stored. When the computer executable instructions are loaded and executed by a processor, the steps of the vehicle-mounted multi-container system resource configuration method disclosed in any of the aforementioned embodiments are implemented.
[0100] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0101] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0102] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0103] The above is a detailed introduction to a vehicle-mounted multi-container system resource configuration method, device, equipment and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for configuring resources of a vehicle-mounted multi-container system, characterized in that: include: According to the service type of the service carried by the container, using the data acquisition strategy corresponding to the service type to acquire the system resource usage data corresponding to the container; Performing data analysis and processing on the system resource usage data to obtain processed data; Based on the processed data and the preset rule base, using an inference engine to determine the scene information currently corresponding to the container; The preset rule base is a rule base constructed according to resource occupancy characteristics of different scenarios; Determine the resource configuration strategy corresponding to the container under the scenario information by querying the pre-built correspondence between the scenario and the resource configuration; The resources of the containers are configured according to the resource configuration policy currently corresponding to each container.
2. The method for configuring resources of a vehicle-mounted multi-container system according to claim 1, characterized in that: Before determining the scene information currently corresponding to the container by using an inference engine based on the processed data and a preset rule base, the method further includes: Obtain historical data in multiple different scenarios; Analyze resource usage characteristics of different scenarios based on the correspondence between historical data and scenarios, and build scenario recognition rules for different scenarios based on the analysis results; Verifying the scene recognition rule, and adjusting the scene recognition rule when the verification result is failure; The preset rule library is generated based on the scene recognition rules corresponding to all scenes.
3. The method for configuring resources of a vehicle-mounted multi-container system according to claim 1, characterized in that: The acquiring the system resource usage data corresponding to the container by using the data acquisition strategy corresponding to the business type includes: The system resource usage data corresponding to the container is obtained by periodically utilizing a data acquisition strategy corresponding to the business type according to a preset period.
4. The method for configuring resources of a vehicle-mounted multi-container system according to claim 1, characterized in that: Before acquiring the system resource usage data corresponding to the container using the data acquisition strategy corresponding to the business type, the method further includes: Determine the target resource item corresponding to the service type of the service on the container by querying the pre-built correspondence between the service and the resource item; The data acquisition strategy is generated according to the target resource item.
5. The method for configuring resources of a vehicle-mounted multi-container system according to claim 1, characterized in that: Before configuring resources for the containers according to the resource configuration policy currently corresponding to each container, the method further includes: Determining whether the container meets the resource configuration conditions according to the processed data and the resource configuration policy; If the resource configuration condition is met, the operation of performing resource configuration on the containers according to the resource configuration policy currently corresponding to each container is executed.
6. The method for configuring resources of a vehicle-mounted multi-container system according to any one of claims 1 to 5, characterized in that: The configuring resources for the containers according to the resource configuration policy currently corresponding to each container includes: Determine the resource configuration priority for each container based on the business priority on the container; According to the resource configuration policy corresponding to each container, resources are configured for each container in turn according to the resource configuration priority.
7. The method for configuring resources of a vehicle-mounted multi-container system according to claim 6, characterized in that: The vehicle-mounted multi-container system includes a first container for running the vehicle-mounted entertainment system, a second container for running the vehicle networking system, and a third container for running the vehicle dashboard; Among them, the priority of the car dashboard is greater than the priority of the Internet of Vehicles system, and the priority of the Internet of Vehicles system is greater than the priority of the in-vehicle entertainment system; the resource configuration priority of the third container is greater than the resource configuration priority of the second container, and the resource configuration priority of the second container is greater than the resource configuration priority of the first container.
8. A vehicle-mounted multi-container system resource configuration device, characterized in that: include: A resource monitoring module, configured to obtain system resource usage data corresponding to the container according to the service type of the service carried by the container and using a data acquisition strategy corresponding to the service type; A data analysis and processing module, used to perform data analysis and processing on the system resource usage data to obtain processed data; A scene recognition module, used to determine the scene information currently corresponding to the container using an inference engine based on the processed data and a preset rule base; the preset rule base is a rule base constructed according to resource occupancy characteristics of different scenes; A resource configuration strategy determination module, used to determine the resource configuration strategy corresponding to the container under the scenario information by querying the pre-built correspondence between the scenario and the resource configuration; The resource configuration module is used to perform resource configuration on the containers according to the resource configuration policy currently corresponding to each container.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the vehicle-mounted multi-container system resource configuration method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein when the computer programs are executed by the processor, the resource configuration method of the vehicle-mounted multi-container system as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Application performance data acquisition method and device
CN110232008A
Resource scheduling method, electronic equipment and storage medium
CN117130772A
Container resource adjustment method, device and system
CN117251252A
Software system running on vehicle-mounted host and running method thereof
CN117519909A
Validation of user subgroups against directory attributes for dynamic group rules
US11165785B1
