Application operation method and device, processor, vehicle and storage medium
By loading storage files into physical memory when the application starts, the problem of application startup speed degradation caused by insufficient system memory is solved, thus improving the application running efficiency.
Patent Information
- Application Number
- CN202510964281.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-11
- Publication Date
- 2025-11-04
AI Technical Summary
During application startup, insufficient system memory causes cached memory to be cleared, resulting in a decrease in application startup speed and thus affecting running efficiency.
By responding to the target application's startup status, determining its associated storage file, and loading it from the storage device into physical memory based on the system's total memory and the target process's current memory, the target process is started to run the application.
This avoids a decrease in application startup speed and improves application running efficiency.
Smart Images

Figure CN120892103A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of computers, and in particular, to a running method and device of an application, a processor, a vehicle and a storage medium. BACKGROUND
[0002] In the process of starting an application, if the total memory of the system is not enough, the memory of the cache category will be cleaned. However, in the actual process of starting each application, if the cache memory is cleaned, the disk file on which the starting application depends is cleaned, which will cause the starting speed of each application to decay, thereby causing the technical problem of low running efficiency of the application.
[0003] At present, there is no effective solution to the technical problem of low running efficiency of the application. SUMMARY
[0004] The embodiments of the present application provide a running method and device of an application, a processor, a vehicle and a storage medium, to at least partially solve the technical problem of low running efficiency of the application.
[0005] According to an aspect of the embodiments of the present application, a running method of an application is provided, which can include: in response to a target application in the system being in a completed starting state, determining a storage file of at least one target process associated with the target application, wherein the storage file is used to store at least current path information and virtual address information of the target process, and the current path information is used to indicate a path stored by the storage file; based on a total memory of the system and a first current memory occupied by a first group in which the target process is located, reading the current path information and the virtual address information from the storage file, wherein the total memory is greater than the first current memory; based on the read current path information and the virtual address information, loading the storage file from a storage device to a physical memory in the total memory; in response to the physical memory including the storage file, starting the target process to run the target application.
[0006] Optionally, based on the total memory of the system and the first current memory occupied by the first group in which the target process is located, reading the current path information and the virtual address information from the storage file includes: comparing the total memory with a target total memory to obtain a first comparison result, and comparing the first current memory with a first target memory to obtain a second comparison result, wherein the target total memory is used to indicate whether the total memory allows starting the target process, and the first target memory is used to indicate whether the first current memory needs to be cleaned; based on the first comparison result and the second comparison result, reading the current path information and the virtual address information from the storage file.
[0007] Optionally, based on the first comparison result and the second comparison result, reading the current path information and the virtual address information from the storage file comprises: in response to the first comparison result indicating that the total memory is less than or equal to the target total memory and the second comparison result indicating that the first current memory is less than or equal to the first target memory, cleaning the first current memory and the second current memory respectively, wherein the total memory is greater than the second current memory, and the second current memory is used to indicate the current memory occupied by a second group of processes in the system except the target process; and in response to the first current memory being in a completed cleaning state and the second current memory being in a completed cleaning state, reading the current path information and the virtual address information from the storage file.
[0008] Optionally, based on the read current path information and the virtual address information, loading the storage file from the storage device to the physical memory in the total memory comprises: determining the physical address information mapped by the read virtual address information under the read current path information; determining the physical address corresponding to the physical address information; and loading the storage file from the storage device to the physical memory according to the physical address.
[0009] Optionally, in response to the target application in the system being in a completed starting state, determining the storage file of at least one target process associated with the target application comprises: in response to the target application being in a completed starting state, extracting the storage file from the storage device by using a target interface connected with the storage device.
[0010] Optionally, the method further comprises: comparing the total memory with the target total memory to obtain a first comparison result, and comparing the first current memory with the first target memory to obtain a second comparison result, wherein the target total memory is used to indicate whether the total memory allows starting the target process, and the first target memory is used to indicate whether the first current memory needs to be cleaned; in response to the first comparison result indicating that the total memory is greater than the target total memory and the second comparison result indicating that the first current memory is less than or equal to the first target memory, cleaning the second current memory, wherein the total memory is greater than the second current memory, and the second current memory is used to indicate the current memory occupied by a second group of processes in the system except the target process; and in response to the second current memory being in a completed cleaning state, loading the storage file from the storage device to the physical memory.
[0011] Optionally, the method further comprises: in response to the target process switching from an abnormal running state to a normal running state, dividing the target process into the first group and dividing the remaining processes in the system except the target process into the second group; and in response to the target process being updated, dividing the updated target process into the first group and dividing the remaining processes in the system except the updated target process into the second group.
[0012] According to another aspect of the embodiments of the present application, there is also provided an apparatus for running an application, which can include: a determining unit configured to determine a storage file of at least one target process associated with a target application in a system, in response to the target application being in a completed starting state, wherein the storage file is configured to store at least current path information and virtual address information of the target process, and the current path information is configured to indicate a path stored by the storage file; a reading unit configured to read the current path information and the virtual address information from the storage file, based on a total memory of the system and a first current memory occupied by a first group in which the target process is located, wherein the total memory is greater than the first current memory; a first loading unit configured to load the storage file from a storage device to a physical memory in the total memory, based on the read current path information and the virtual address information; and a starting unit configured to start the target process to run the target application, in response to the physical memory including the storage file.
[0013] Optionally, the reading unit can include: a comparing module configured to compare the total memory with a target total memory to obtain a first comparison result, and compare the first current memory with a first target memory to obtain a second comparison result, wherein the target total memory is configured to indicate whether the total memory allows starting the target process, and the first target memory is configured to indicate whether the first current memory needs to be cleaned; and a reading module configured to read the current path information and the virtual address information from the storage file, based on the first comparison result and the second comparison result.
[0014] Optionally, the reading module can include: a cleaning sub-module configured to clean the first current memory and a second current memory respectively, in response to the first comparison result indicating that the total memory is less than or equal to the target total memory, and the second comparison result indicating that the first current memory is less than or equal to the first target memory, wherein the total memory is greater than the second current memory, and the second current memory is configured to indicate a current memory occupied by a second group in which remaining processes of the system except the target process are located; and a reading sub-module configured to read the current path information and the virtual address information from the storage file, in response to the first current memory being in a completed cleaning state and the second current memory being in a completed cleaning state.
[0015] Optionally, the first loading unit can include: a first determining module configured to determine physical address information to which the read virtual address information is mapped, based on the read current path information; a second determining module configured to determine a physical address corresponding to the physical address information; and a loading module configured to load the storage file from the storage device to the physical memory according to the physical address.
[0016] Optionally, the determining unit can include: an extracting module configured to extract the storage file from the storage device, by using a target interface connected with the storage device, in response to the target application being in the completed starting state.
[0017] Optionally, the application further comprises a comparison unit configured to compare the total memory with a target total memory to obtain a first comparison result, and compare the first current memory with a first target memory to obtain a second comparison result, wherein the target total memory is used to indicate whether the total memory is allowed to start the target process, and the first target memory is used to indicate whether the first current memory needs to be cleaned up; a cleaning unit configured to clean up a second current memory in response to the first comparison result indicating that the total memory is greater than the target total memory, and the second comparison result indicating that the first current memory is less than or equal to the first target memory, wherein the total memory is greater than the second current memory, and the second current memory is used to indicate a current memory occupied by a second group of processes of the system except the target process; and a second loading unit configured to load the storage file from the storage device to the physical memory in response to the second current memory being in a completed cleaning state.
[0018] Optionally, the application further comprises a first division unit configured to divide the target process to the first group and divide the remaining processes of the system except the target process to the second group in response to the target process switching from an abnormal running state to a normal running state; and a second division unit configured to divide the updated target process to the first group and divide the remaining processes of the system except the updated target process to the second group in response to the target process being updated.
[0019] According to still another aspect of the embodiments of the present application, a vehicle is further provided, comprising: a memory storing an executable program; and a processor configured to execute the program, wherein the program is configured to execute any of the above methods when executed.
[0020] According to another aspect of the embodiments of the present application, a computer readable storage medium is further provided, comprising a stored executable program, wherein the executable program is configured to control a device where the storage medium is located to execute any of the above methods when executed.
[0021] According to still another aspect of the embodiments of the present application, a computer program product is further provided, comprising a computer program, wherein the computer program is configured to implement any of the above methods when executed by a processor.
[0022] In the embodiment of the present application, when running an application, in response to a target application in the system being in a completed startup state, the storage file of at least one target process associated with the target application is determined, based on the total memory of the system and the first current memory occupied by the first group in which the target process is located, from the determined storage file, the current path information and the virtual address information can be read, that is, the path stored in the storage file and the virtual address of the target process can be read, based on the read current path information and virtual address information, the storage file can be loaded from the storage device to the physical memory in the total memory, and in response to the physical memory including the storage file, the target process is started to run the target application. Since in the embodiment of the present application, based on the total memory of the system and the first current memory occupied by the first group in which the target process is located, the path stored in the storage file and the virtual address of the target process can be read from the storage file of at least one target process determined, based on the read two information, the storage file is loaded from the storage device to the physical memory, and in the case that the physical memory includes the storage file, the target process is started to run the target application, thereby achieving the purpose of avoiding the decay of the startup speed of the application, and further solving the technical problem of low running efficiency of the application, thereby realizing the technical effect of improving the running efficiency of the application. BRIEF DESCRIPTION OF DRAWINGS
[0023] The accompanying drawings, which are included to provide a further understanding of the present application and are incorporated in and constitute a part of this application, illustrate embodiments of the present application and together with the description serve to explain the present application. In the drawings:
[0024] FIG. 1(a) is a schematic diagram of an application scenario of an application running method according to an embodiment of the present application;
[0025] FIG. 1(b) is a flow chart of an application running method according to an embodiment of the present application;
[0026] Figure 2 is a schematic diagram of a process group according to an embodiment of the present application;
[0027] Figure 3 is a schematic diagram of data interaction between a vehicle and a server according to an embodiment of the present application;
[0028] Figure 4 is a structural block diagram of an application running device according to an embodiment of the present application;
[0029] Figure 5 is a structural block diagram of a vehicle according to an embodiment of the present application. DETAILED DESCRIPTION
[0030] In the following, the technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application in order to make the technical personnel in the technical field better understand the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all the other embodiments obtained by the ordinary skilled in the art without creative work should belong to the scope of protection of the present application.
[0031] It should be noted that the terms "first", "second" and the like in the description and claims of the present application and the above drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in other than the order illustrated or described herein. In addition, the terms "comprise" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0032] According to an embodiment of the present application, a running method of an application is provided.
[0033] As an optional implementation, the running method of the application can be applied to, but is not limited to, the application scenario as shown in FIG. 1(a). FIG. 1(a) is a schematic diagram of an application scenario of a running method of an application according to an embodiment of the present application. As shown in FIG. 1(a), in the application scenario, the mobile terminal 10 can communicate with the server 13 through the network 11, and the server 13 can perform operations on the database, such as writing data operations or reading data operations. The mobile terminal 10 can be a terminal device, which can include, but is not limited to, a human-computer interaction screen, a processor and a memory. The human-computer interaction screen can be used to display a virtual machine on the mobile terminal 10, etc. The vehicle 12 can be used to respond to the human-computer interaction operation, perform corresponding operations, or generate corresponding instructions and send the generated instructions to the server 13.
[0034] It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described herein can be executed in an order different from that shown. Among them, the running method of the application in the present application can include: step S102, in response to the target application in the system being in a complete start state, determining the storage file of at least one target process associated with the target application; step S104, based on the total memory of the system and the first current memory occupied by the first group where the target process is located, reading the current path information and virtual address information from the storage file; step S106, based on the read current path information and virtual address information, loading the storage file from the storage device to the physical memory in the total memory; and step S108, in response to the physical memory including the storage file, starting the target process to run the target application.
[0035] For example, the running method of the application in the present application can be used to provide process management functions for vehicles in different preset application scenarios. The above-mentioned preset application scenarios can include the following scenarios in the vehicle field: commuting automatic driving scenarios, artificial intelligence (AI) driving scenarios for home vehicles, automatic parking assistance (APA) scenarios (such as memory parking for self-owned parking spaces in garages, intelligent parking for designated parking spaces in parking lots, etc.), and intelligent navigation assistance (Navigation Guided Pilot, NGP) scenarios in urban areas or high-speed areas, etc. In addition, the above-mentioned preset application scenarios can include but are not limited to: intelligent transportation scenarios of intelligent driving trucks or unmanned trucks in the logistics transportation field, intelligent farming scenarios of automatic driving agricultural vehicles in the agricultural machinery field, etc.
[0036] When the above-mentioned preset application scenarios are scenarios in other fields except the vehicle field, those skilled in the art should understand that the vehicle in the running method of the application can be replaced by other objects (for example, agricultural machinery, unmanned aerial vehicles and robots, etc.), and the corresponding devices and systems included in the vehicle are replaced by devices and systems related to other objects. On this basis, the specific embodiments of the running method of the application in the present application are exemplarily described in the vehicle field.
[0037] Figure 1(b) is a flowchart of a running method of an application according to an embodiment of the present application, as shown in Figure 1(b), the method can include the following steps:
[0038] Step S112, in response to the target application in the system being in a complete start state, determining the storage file of at least one target process associated with the target application.
[0039] In the technical solution provided in the step S112 of the present application, the storage file can be used to store at least the current path information and the virtual address information of the target process, and the current path information and the virtual address information can be presented in the storage file in the form of a virtual address information list. The current path information can be used to represent the path stored in the storage file, and the virtual address information can include the virtual first address of the target process, the current virtual address, and the offset between the current virtual address and the virtual first address.
[0040] In this embodiment, the target application can include different types of applications, for example, different types of applications can include an Android-based application (also referred to as an Android application) and a non-Android-based application (also referred to as a non-Android application), and the like, which are only illustrative and not limited.
[0041] In this embodiment, the target process can include different types of vehicle control processes, for example, different types of vehicle control processes can include a vehicle setting and configuration process, a fault diagnosis and warning process, and a vehicle state monitoring process, and the like. The vehicle setting and configuration process can allow a user to adjust the in-vehicle environment, for example, adjust the air conditioning temperature, the seat position, the rearview mirror angle, and the like, and the vehicle setting and configuration process can also allow system settings, for example, allow user preference settings and security settings, and the like. The fault diagnosis and warning process can be used to detect and report faults in the vehicle system, timely warn the driver, and provide fault diagnosis information to help the driver maintain the vehicle. The vehicle state monitoring process can be used to collect and analyze real-time data of the vehicle, for example, collect and analyze the speed, the fuel level, the engine temperature, the battery state, and the like, of the vehicle to monitor the health status and performance indicators of the vehicle, which are only illustrative and not limited.
[0042] In this embodiment, in response to the target application in the system being in a completed startup state, a storage file of at least one target process associated with the target application is determined. Optionally, this embodiment monitors the state of the target application in the system in real time, and if it is monitored that the target application is in a completed startup state, the storage file of at least one target process associated with the target application can be determined, that is, at least one current path information and virtual address information can be determined.
[0043] Optionally, if it is monitored that the target application is not in a completed startup state, the state of the target application is continuously monitored in real time until it is monitored that the target application is in a completed startup state, and then the storage file of at least one target process associated with the target application is determined.
[0044] In step S114, based on the total memory of the system and the first current memory occupied by the first group where the target process is located, the current path information and the virtual address information are read from the storage file.
[0045] In the technical solution provided by step S114 of the present application, the total memory can be greater than the first current memory occupied by the first group where the target process is located. For example, the first group can be represented by a core group, and the first current memory can be represented by core group memory. This is only an example and is not limited.
[0046] In this embodiment, the reading operation can be achieved by triggering a warm-up on the storage file.
[0047] In this embodiment, in response to the target application in the system being in a completed startup state, the storage file of at least one target process associated with the target application is determined, and based on the total memory of the system and the first current memory occupied by the first group where the target process is located, the current path information and the virtual address information are read from the storage file. Alternatively, based on the relationship between the total memory of the system and the target total memory and the relationship between the first current memory and the first target memory, the current path information and the virtual address information can be read from the determined storage file.
[0048] Alternatively, based on the relationship between the total memory of the system and the target total memory and the relationship between the first current memory and the first target memory, the current path information and the virtual address information can be read from the determined storage file. For example, based on the relationship between the total memory of the system and the target total memory and the relationship between the first current memory and the first target memory, it can be determined whether to clean up the first current memory and the second current memory, where the second current memory can be used to represent the current memory occupied by the second group where the remaining processes in the system except the target process are located; if it is determined to clean up the first current memory and the second current memory, the current path information and the virtual address information can be read from the determined storage file when the first current memory is in a completed cleaning state and the second current memory is in a completed cleaning state.
[0049] Alternatively, if it is determined not to clean up the first current memory but only to clean up the second current memory, the current path information and the virtual address information can be read from the determined storage file when the second current memory is in a completed cleaning state.
[0050] Optionally, if it is determined that the first current memory and the second current memory are not to be cleaned, the current path information and the virtual address information can be directly read from the determined storage file.
[0051] In step S116, the storage file is loaded from the storage device to the physical memory in the total memory based on the read current path information and virtual address information.
[0052] In the technical solution provided by the above step S116 of the present application, the storage device can include an original storage device and / or an additional storage device, and the storage space of the original storage device is different from that of the additional storage device. For example, the original storage device can be an original disk, the additional storage device can be an additional disk, and the physical memory can be represented by the free memory.
[0053] In this embodiment, after reading the current path information and the virtual address information from the storage file based on the total memory of the system and the first current memory occupied by the first group where the target process is located, the storage file is loaded from the storage device to the physical memory in the total memory based on the read current path information and virtual address information. Optionally, based on the read current path information and virtual address information, the physical address can be determined according to the read virtual address information. According to the determined physical address, the determined storage file can be loaded from the storage device to the physical memory in the total memory.
[0054] It should be noted that the method of loading the storage file from the storage device to the physical memory in the total memory based on the read current path information and virtual address information is only an example and is not limited herein. Any process and method that can load the storage file from the storage device to the physical memory in the total memory based on the read current path information and virtual address information are within the protection scope of the present application and will not be illustrated one by one herein.
[0055] In step S118, the target process is started to run the target application in response to the physical memory including the storage file.
[0056] In the technical solution provided by the above step S118 of the present application, after loading the storage file from the storage device to the physical memory in the total memory based on the read current path information and virtual address information, the target process is started to run the target application in response to the physical memory including the storage file. Optionally, based on loading the storage file from the storage device to the physical memory in the total memory, it is detected whether the physical memory in the total memory includes the storage file, and if it is detected that the physical memory in the total memory includes the storage file, the target process is started to run the target application.
[0057] Optionally, it is detected whether the physical memory in the total memory includes the storage file, if it is detected that the physical memory in the total memory does not include the storage file, the target process is not started temporarily, within a preset time length, the physical memory is waited for loading the storage file, after the preset time length, it is detected again whether the physical memory in the total memory includes the storage file, if it is detected that the physical memory in the total memory includes the storage file, the target process is started to run the target application, if it is detected that the physical memory in the total memory does not include the storage file, an exception information is reported to the server, wherein the exception information is used to record the case that the physical memory fails to load the storage file.
[0058] It should be noted that the running method of the application in the embodiments of the present application can also be applied to at least the following scenarios: an automatic driving scenario, an assisted driving scenario, and a passive driving scenario (which can be referred to as a human driving scenario). The automatic driving scenario can be used to represent a scenario in which the vehicle is controlled by the control system of the vehicle during driving, and the driving object does not need to keep control and supervision of driving. The assisted driving scenario can be used to represent a scenario in which the control system of the vehicle provides assistance during driving, but the driving object still needs to keep control and supervision of driving. The passive driving scenario can be used to represent a scenario in which the driving object controls the vehicle to complete driving operations.
[0059] In the artificial intelligence (AI) chauffeur of the vehicle in the automatic driving scenario, the commuting mode usually refers to a driving mode specially designed for commuting to and from work or daily commuting. The AI chauffeur can collect data by learning the driving route and driving behavior of the user. When all the learning is completed, the collected data is filtered and checked, and then the filtered and checked full segment data is automatically returned to the cloud server to construct a cloud map. When driving the same route next time, the AI chauffeur is activated to drive the vehicle to the destination of the route according to the constructed cloud map. Matching and complementing the offline map with the constructed cloud map can improve the accuracy of the cloud map.
[0060] In the steps S112 to S118, when the application is running, the storage file of the at least one target process associated with the target application can be determined in response to the target application in the system being in a completed starting state, the current path information and the virtual address information can be read from the determined storage file based on the total memory of the system and the first current memory occupied by the first group where the target process is located, that is, the path stored in the storage file and the virtual address of the target process can be read, the storage file can be loaded from the storage device to the physical memory in the total memory based on the read current path information and virtual address information, and the target process can be started to run the target application in response to the physical memory including the storage file. In the embodiment, the path stored in the storage file and the virtual address of the target process can be read from the storage file based on the total memory of the system and the first current memory occupied by the first group where the target process is located, the storage file can be loaded from the storage device to the physical memory based on the read current path information and virtual address information, and the target process can be started to run the target application in the case that the physical memory includes the storage file, so that the application starting speed decay can be avoided, the technical problem of low application running efficiency can be solved, and the technical effect of improving the application running efficiency can be achieved.
[0061] The above method of the embodiment will be further introduced below.
[0062] As an optional embodiment, in step S114, the current path information and the virtual address information are read from the storage file based on the total memory of the system and the first current memory occupied by the first group where the target process is located, including: comparing the total memory with the target total memory to obtain a first comparison result, and comparing the first current memory with the first target memory to obtain a second comparison result; and reading the current path information and the virtual address information from the storage file based on the first comparison result and the second comparison result.
[0063] In the embodiment, the target total memory can be used to indicate whether the total memory allows starting the target process. For example, the target total memory can be, but is not limited to, 800 MB and 810 MB, and the like, and the values herein are only illustrative and are not limited specifically.
[0064] In the embodiment, the first target memory can be used to indicate whether the first current memory needs to be cleaned. For example, the first target memory can be, but is not limited to, 200 MB and 205 MB, and the like, and the values herein are only illustrative and are not limited specifically.
[0065] In this embodiment, the first comparison result can be used to represent the relationship between the total memory and the target total memory. For example, the first comparison result can be that the total memory is less than or equal to the target total memory, or the total memory is greater than the target total memory, which are only used as examples and are not limited in a specific manner.
[0066] In this embodiment, the second comparison result can be used to represent the relationship between the first current memory and the first target memory. For example, the second comparison result can be that the first current memory is less than or equal to the first target memory, or the first current memory is greater than the first target memory, which are only used as examples and are not limited in a specific manner.
[0067] In this embodiment, in response to the target application in the system being in a completed startup state, the storage file of at least one target process associated with the target application is determined, and then the total memory and the target total memory are compared to obtain a first comparison result, and the first current memory and the first target memory are compared to obtain a second comparison result. Alternatively, based on the determination of the storage file of at least one target process associated with the target application, the total memory and the target total memory of the system are compared to obtain the first comparison result, and the first current memory and the first target memory occupied by the first group where the target process is located are compared to obtain the second comparison result, thereby achieving the purpose of determining the relationship between the total memory and the target total memory, and the relationship between the first current memory and the first target memory.
[0068] In this embodiment, after the total memory and the target total memory are compared to obtain the first comparison result, and the first current memory and the first target memory are compared to obtain the second comparison result, the current path information and the virtual address information are read from the storage file based on the first comparison result and the second comparison result. Alternatively, based on the first comparison result and the second comparison result, it can be determined whether to clean up the first current memory and the second current memory. If it is determined to clean up the first current memory and the second current memory, the current path information and the virtual address information can be read from the determined storage file when the first current memory is in a completed cleaning state and the second current memory is in a completed cleaning state, thereby achieving the purpose of determining the current path information and the virtual address information, and further achieving the technical effect of improving the preheating speed of data.
[0069] The method of reading the current path information and the virtual address information from the storage file based on the first comparison result and the second comparison result in the above embodiment will be further described below.
[0070] As an optional embodiment, reading the current path information and the virtual address information from the storage file based on the first comparison result and the second comparison result comprises: in response to the first comparison result indicating that the total memory is less than or equal to the target total memory and the second comparison result indicating that the first current memory is less than or equal to the first target memory, cleaning the first current memory and the second current memory respectively; and in response to the first current memory being in a completed cleaning state and the second current memory being in a completed cleaning state, reading the current path information and the virtual address information from the storage file.
[0071] In this embodiment, the total memory can be greater than the second current memory, and the second current memory can be used to represent the current memory occupied by the second group of processes other than the target process in the system. For example, the second current memory can be represented by a default group, which is only illustrative and not limited.
[0072] In this embodiment, after comparing the total memory with the target total memory to obtain the first comparison result and comparing the first current memory with the first target memory to obtain the second comparison result, in response to the first comparison result indicating that the total memory is less than or equal to the target total memory and the second comparison result indicating that the first current memory is less than or equal to the first target memory, the first current memory and the second current memory are cleaned respectively. Alternatively, based on the first comparison result and the second comparison result, if the first comparison result indicates that the total memory is less than or equal to the target total memory and the second comparison result indicates that the first current memory is less than or equal to the first target memory, it can be determined that the first current memory and the second current memory are cleaned, and then the first current memory and the second current memory are cleaned respectively, thereby achieving the purpose of cleaning the total memory of the system, and further achieving the technical effect of improving the remaining storage space of the total memory.
[0073] In this embodiment, after the first current memory and the second current memory are cleaned respectively in response to the first comparison result indicating that the total memory is less than or equal to the target total memory and the second comparison result indicating that the first current memory is less than or equal to the first target memory, the current path information and the virtual address information are read from the storage file in response to the first current memory being in the completed cleaning state and the second current memory being in the completed cleaning state. Alternatively, this embodiment detects the cleaning state of the first current memory and the cleaning state of the second current memory on the basis of cleaning the first current memory and the second current memory respectively, and if it is detected that the first current memory is in the completed cleaning state and the second current memory is in the completed cleaning state, the current path information and the virtual address information can be read from the determined storage file, thereby achieving the purpose of determining the current path information and the virtual address information, and further achieving the technical effect of improving the preheating speed of data.
[0074] The method of loading the storage file from the storage device to the physical memory in the total memory on the basis of the read current path information and virtual address information will be further described below.
[0075] As an optional embodiment, step S116, loading the storage file from the storage device to the physical memory in the total memory on the basis of the read current path information and virtual address information, comprises: determining the physical address information to which the read virtual address information is mapped under the read current path information; determining the physical address corresponding to the physical address information; and loading the storage file from the storage device to the physical memory according to the physical address.
[0076] In this embodiment, after the current path information and the virtual address information are read from the storage file on the basis of the total memory of the system and the first current memory occupied by the first group in which the target process is located, the physical address information to which the read virtual address information is mapped is determined under the read current path information; and the physical address corresponding to the physical address information is determined. Alternatively, on the basis of reading the current path information and the virtual address information, the physical address information to which the read virtual address information is mapped is searched according to the mapping relationship between different virtual address information and different physical address information under the read current path information, so that the physical address information to which the read virtual address information is mapped can be obtained, and then the physical address corresponding to the physical address information can be obtained by address resolution, thereby achieving the purpose of determining the physical address.
[0077] In this embodiment, after determining the physical address corresponding to the physical address information, the storage file is loaded from the storage device to the physical memory according to the physical address. Alternatively, based on the determination of the physical address corresponding to the physical address information, the determined storage file can be loaded from the storage device to the physical memory in the total memory according to the determined physical address, for example, the determined storage file can be loaded from the disk to the free memory in the total memory according to the determined physical address, thereby achieving the purpose of loading the storage file in advance, and realizing the technical effect of improving the execution efficiency of the process.
[0078] The method for determining the storage file of at least one target process associated with the target application in response to the target application in the system being in the completed startup state will be further described below.
[0079] As an optional embodiment, step S112, in response to the target application in the system being in the completed startup state, determining the storage file of at least one target process associated with the target application, comprises: in response to the target application being in the completed startup state, extracting the storage file from the storage device by using the target interface connected with the storage device.
[0080] In this embodiment, the target interface connected with the storage device can be used to query the mapping state of the target process in the physical memory. For example, the target interface connected with the storage device can be an interface realized based on the " / proc / $pid / pagemap" node, which is only used as an example and is not limited.
[0081] In this embodiment, in response to the target application being in the completed startup state, the storage file is extracted from the storage device by using the target interface connected with the storage device. Alternatively, this embodiment monitors the state of the target application in the system in real time, and if it is monitored that the target application is in the completed startup state, the storage file of at least one target process associated with the target application can be extracted from the storage device by using the target interface connected with the storage device, that is, at least one current path information and virtual address information can be extracted, thereby achieving the purpose of extracting the storage file of at least one target process associated with the target application, and further realizing the technical effect of improving the execution efficiency of the process.
[0082] The method for loading the storage file from the storage device to the physical memory will be further described below.
[0083] As an optional embodiment, the method further comprises: comparing the total memory with the target total memory to obtain a first comparison result, and comparing the first current memory with the first target memory to obtain a second comparison result; in response to the first comparison result indicating that the total memory is greater than the target total memory and the second comparison result indicating that the first current memory is less than or equal to the first target memory, cleaning the second current memory; and in response to the second current memory being in a completed cleaning state, loading the storage file from the storage device to the physical memory.
[0084] In this embodiment, the target total memory can be used to indicate whether the total memory allows the target process to be started, and the first target memory can be used to indicate whether the first current memory needs to be cleaned.
[0085] In this embodiment, the total memory is compared with the target total memory to obtain a first comparison result, and the first current memory is compared with the first target memory to obtain a second comparison result. Optionally, the embodiment compares the total memory of the system with the target total memory on the basis of determining the storage file of at least one target process associated with the target application, and compares the first current memory occupied by the first group in which the target process is located with the first target memory, to obtain the second comparison result, thereby achieving the purpose of determining the relationship between the total memory and the target total memory, and the relationship between the first current memory and the first target memory.
[0086] In this embodiment, the total memory can be greater than the second current memory. The second current memory can be used to indicate the current memory occupied by a second group in which the remaining processes except the target process in the system are located.
[0087] In this embodiment, after the total memory is compared with the target total memory to obtain a first comparison result, and the first current memory is compared with the first target memory to obtain a second comparison result, the second current memory is cleaned in response to the first comparison result indicating that the total memory is greater than the target total memory and the second comparison result indicating that the first current memory is less than or equal to the first target memory. Optionally, the embodiment determines whether to clean the first current memory and the second current memory on the basis of the obtained first comparison result and the second comparison result, that is, if the obtained first comparison result indicates that the total memory is greater than the target total memory and the obtained second comparison result indicates that the first current memory is less than or equal to the first target memory, it is determined that only the second current memory is cleaned, thereby achieving the purpose of cleaning the total memory of the system.
[0088] In this embodiment, after the second current memory is cleaned up in response to the first comparison result indicating that the total memory is greater than the target total memory and the second comparison result indicating that the first current memory is less than or equal to the first target memory, the storage file is loaded from the storage device to the physical memory in response to the second current memory being in the completed cleaning state. Optionally, in the case where the second current memory is in the completed cleaning state, the current path information and the virtual address information can be read from the determined storage file, thereby achieving the purpose of determining the current path information and the virtual address information, and further achieving the technical effect of improving the preheating speed of data.
[0089] The above grouping method of processes of this embodiment is further described below.
[0090] As an optional embodiment, the method further includes: in response to the target process switching from the abnormal running state to the normal running state, dividing the target process into the first group and dividing the remaining processes of the system except the target process into the second group; and in response to the target process being updated, dividing the updated target process into the first group and dividing the remaining processes of the system except the updated target process into the second group.
[0091] In this embodiment, in response to the target process switching from the abnormal running state to the normal running state, the target process is divided into the first group and the remaining processes of the system except the target process are divided into the second group. Optionally, the running state of the target process is monitored in real time, and if it is monitored that the target process is in the abnormal running state, the target process is switched from the abnormal running state to the normal running state, and it is determined whether the target process is successfully switched from the abnormal running state to the normal running state, and if it is determined that the target process is successfully switched from the abnormal running state to the normal running state, the target process switched to the normal running state is divided into the first group and the remaining processes of the system except the target process are divided into the second group, thereby achieving the purpose of grouping the processes, and further achieving the technical effect of improving the monitoring efficiency of determining the processes.
[0092] For example, if it is determined that the car control process is successfully switched from the abnormal running state to the normal running state, the car control process switched to the normal running state is divided into the core group and the remaining processes of the system except the car control process are divided into the default group, which is only illustrative and not limited.
[0093] In the embodiment, in response to the target process being updated, the updated target process is divided into the first group, and the remaining processes of the system except the updated target process are divided into the second group. Optionally, the embodiment monitors whether the target process is updated in real time, and if the target process is updated, the updated target process is divided into the first group, and the remaining processes of the system except the updated target process are divided into the second group, thereby achieving the purpose of grouping the processes, and further achieving the technical effect of improving the monitoring efficiency of determining the processes.
[0094] For example, if the car control process is updated, the updated car control process is divided into the core group, and the remaining processes of the system except the updated car control process are divided into the default group, which is only illustrative and not limited.
[0095] In the embodiment of the application, when running an application, in response to a target application in the system being in a completed startup state, the storage file of at least one target process associated with the target application is determined, based on the total memory of the system and the first current memory occupied by the first group to which the target process belongs, the current path information and the virtual address information can be read from the determined storage file, that is, the path stored by the storage file and the virtual address of the target process can be read, based on the read current path information and virtual address information, the storage file can be loaded from the storage device to the physical memory in the total memory, and in response to the physical memory including the storage file, the target process is started to run the target application. Since in the embodiment of the application, based on the total memory of the system and the first current memory occupied by the first group to which the target process belongs, the path stored by the storage file and the virtual address of the target process can be read from the determined storage file based on the total memory of the system and the first current memory occupied by the first group to which the target process belongs, the storage file is loaded from the storage device to the physical memory based on the read two information, and in the case that the physical memory includes the storage file, the target process is started to run the target application, thereby achieving the purpose of avoiding the decay of the startup speed of the application, further solving the technical problem of low running efficiency of the application, and thereby achieving the technical effect of improving the running efficiency of the application.
[0096] The technical solutions of the embodiments of the application will be described below in conjunction with preferred embodiments.
[0097] In the process of starting the application, if the total memory of the system is not enough, the memory of the cache category is cleaned. However, in the actual process of starting each application, if the cache memory is cleaned, the disk file on which the application depends is cleaned, which causes the starting speed of each application to decay, thereby causing the technical problem of low running efficiency of the application.
[0098] However, the embodiment of the application proposes an application running method, based on the determination of the storage file of at least one target process, based on the total memory of the system and the first current memory occupied by the first group where the target process is located, the path stored in the storage file and the virtual address of the target process can be read from the storage file, based on the above two information read, the storage file is loaded from the storage device to the physical memory, and in the case that the physical memory includes the storage file, the target process is started to run the target application, thereby achieving the purpose of avoiding the decay of the starting speed of the application, thereby solving the technical problem of low running efficiency of the application, thereby realizing the technical effect of improving the running efficiency of the application.
[0099] In this embodiment, the application running method in the application is executed, which can realize the preheating of the storage file and the grouping of the processes in the system, thereby improving the running efficiency of the application, wherein the optimization effect of the running efficiency of the application can be as shown in Table 1:
[0100] Table 1 Optimization effect table of running efficiency of application
[0101]
[0102] Optionally, the preheating of the storage file can be completed by the following method: when the Android application is started for the first time, the virtual address information list of the file category can be obtained through " / proc / $pid / maps", wherein each information of the list corresponds to the path, the virtual first address and the file size of a file, and the file size is in units of 4KB; the virtual address of the file is cut, the pagemap of the process is read, and if the virtual address has a corresponding physical address, the path and the offset of the file are saved, wherein the offset can be the address difference between the current virtual address and the virtual first address; when it is found that the memory of the cache category is reduced by 100MB, the preheating of the storage file is triggered to read the above saved path and offset, thereby achieving the purpose of allowing the file page (Page) related to the Android application to be loaded into the physical memory again, so that when the application process is really started, it can not be read from the disk.
[0103] Optionally, grouping the processes in the system can be accomplished by grouping the processes into a core group and a default group using a grouping function, wherein the vehicle control processes are added to the core group and the remaining processes are retained in the default group.
[0104] For example, when the total memory of the system is greater than 800 MB and the memory of the core group is less than 200 MB, the memory of the core group, which is the cache memory of the vehicle control processes, is not cleaned and is cleaned last, so that the running speed of the application is ensured not to slow down as long as the remaining memory is not too low.
[0105] For another example, the grouping of the target processes and the remaining processes can be as shown in Figure 2 Figure 2 is a schematic diagram of process grouping according to an embodiment of the present application, the target processes 2011-201n can be divided into the core group 201 in the grouping 200, and the remaining processes 2021-202n can be divided into the default group 202 in the grouping.
[0106] Figure 3 is a schematic diagram of data interaction between a vehicle and a server according to an embodiment of the present application, as shown in Figure 3 the vehicle 300 can upload a storage file to the server 301, and the server 301 can download the storage file to the vehicle 300 in a case where the server 301 fails to load the storage file from the storage device to the physical memory in the total memory, so as to continue to load the downloaded storage file to the physical memory in the total memory.
[0107] In this embodiment, when running the application, in response to the target application in the system being in a completed startup state, the storage file of at least one target process associated with the target application is determined, based on the total memory of the system and the first current memory occupied by the first group in which the target process is located, from the determined storage file, the current path information and the virtual address information can be read, that is, the path stored by the storage file and the virtual address of the target process can be read, based on the read current path information and virtual address information, the storage file can be loaded from the storage device to the physical memory in the total memory, and in response to the physical memory including the storage file, the target process is started to run the target application. Since in the embodiment of the application, based on the total memory of the system and the first current memory occupied by the first group in which the target process is located, the path stored by the storage file and the virtual address of the target process can be read from the storage file based on the determined storage file of at least one target process, based on the read two information, the storage file is loaded from the storage device to the physical memory, and in the case that the physical memory includes the storage file, the target process is started to run the target application, thereby achieving the purpose of avoiding the startup speed decay of the application, and further solving the technical problem of low running efficiency of the application, thereby realizing the technical effect of improving the running efficiency of the application.
[0108] According to another aspect of the embodiment of the application, corresponding to the above-mentioned application running method, the specification also provides an application running device. Figure 4 is a structural block diagram of an application running device according to an embodiment of the application, as Figure 4 shown, the application running device 400 can include a determination unit 402, a reading unit 404, a first loading unit 406 and a starting unit 408.
[0109] The determination unit 402 is configured to determine, in response to a target application in the system being in a completed startup state, a storage file of at least one target process associated with the target application, wherein the storage file is configured to store at least current path information and virtual address information of the target process, and the current path information is configured to indicate a path stored by the storage file.
[0110] The reading unit 404 is configured to read, based on the total memory of the system and the first current memory occupied by the first group in which the target process is located, the current path information and the virtual address information from the storage file, wherein the total memory is greater than the first current memory.
[0111] The first loading unit 406 is configured to load, based on the read current path information and virtual address information, the storage file from the storage device to the physical memory in the total memory.
[0112] The starting unit 408 is configured to start the target process to run the target application in response to the physical memory including the storage file.
[0113] Optionally, the reading unit 404 can include: a comparison module configured to compare the total memory with the target total memory to obtain a first comparison result, and compare the first current memory with the first target memory to obtain a second comparison result, where the target total memory is used to indicate whether the total memory allows starting the target process, and the first target memory is used to indicate whether the first current memory needs to be cleaned up; and a reading module configured to read the current path information and the virtual address information from the storage file based on the first comparison result and the second comparison result.
[0114] Optionally, the reading module can include: a cleaning sub-module configured to clean up the first current memory and the second current memory respectively in response to the first comparison result indicating that the total memory is less than or equal to the target total memory, and the second comparison result indicating that the first current memory is less than or equal to the first target memory, where the total memory is greater than the second current memory, and the second current memory is used to indicate the current memory occupied by a second group of processes of the system except the target process; and a reading sub-module configured to read the current path information and the virtual address information from the storage file in response to the first current memory being in a completed cleaning state and the second current memory being in a completed cleaning state.
[0115] Optionally, the first loading unit 406 can include: a first determination module configured to determine physical address information to which the read virtual address information is mapped under the read current path information; a second determination module configured to determine a physical address corresponding to the physical address information; and a loading module configured to load the storage file from the storage device to the physical memory according to the physical address.
[0116] Optionally, the determination unit 402 can include: an extraction module configured to extract the storage file from the storage device by using a target interface connected with the storage device in response to the target application being in a completed starting state.
[0117] Optionally, the application running apparatus 400 can further comprise: a comparison unit, configured to compare the total memory with a target total memory to obtain a first comparison result, and compare the first current memory with a first target memory to obtain a second comparison result, wherein the target total memory is used to indicate whether the total memory is allowed to start the target process, and the first target memory is used to indicate whether the first current memory needs to be cleaned up; a cleaning unit, configured to clean up a second current memory in response to the first comparison result indicating that the total memory is greater than the target total memory, and the second comparison result indicating that the first current memory is less than or equal to the first target memory, wherein the total memory is greater than the second current memory, and the second current memory is used to indicate a current memory occupied by a second group of processes of the system except the target process; and a second loading unit, configured to load the storage file from the storage device to the physical memory in response to the second current memory being in a completed cleaning state.
[0118] Optionally, the application running apparatus 400 can further comprise: a first division unit, configured to divide the target process to the first group and divide the remaining processes of the system except the target process to the second group in response to the target process switching from an abnormal running state to a normal running state; and a second division unit, configured to divide the updated target process to the first group and divide the remaining processes of the system except the updated target process to the second group in response to the target process being updated.
[0119] In this embodiment, the application running apparatus is provided with the following units: a determination unit, configured to determine a storage file of at least one target process associated with a target application in a completed starting state in the system, wherein the storage file is used to store at least current path information and virtual address information of the target process, and the current path information is used to indicate a path stored by the storage file; a reading unit, configured to read the current path information and the virtual address information from the storage file based on total memory of the system and first current memory occupied by a first group in which the target process is located, wherein the total memory is greater than the first current memory; a first loading unit, configured to load the storage file from a storage device to a physical memory in the total memory based on the read current path information and virtual address information; and a starting unit, configured to start the target process to run the target application in response to the physical memory including the storage file, thereby achieving the purpose of avoiding the starting speed attenuation of the application, further solving the technical problem of low running efficiency of the application, and thereby realizing the technical effect of improving the running efficiency of the application.
[0120] According to another aspect of the embodiment of the present application, a computer readable storage medium is also provided, which comprises a stored executable program, wherein the executable program controls the device where the storage medium is located to execute the method of any one of the above when the executable program is running.
[0121] According to another aspect of the embodiments of the present application, there is also provided a computer program product comprising a computer program which, when executed by a processor, implements any of the above methods.
[0122] According to another aspect of the embodiments of the present application, there is also provided a vehicle comprising a memory storing an executable program, and a processor running the program, wherein the program, when executed, implements any of the above methods.
[0123] Figure 5 is a structural block diagram of a vehicle according to an embodiment of the present application, as shown in Figure 5 The components of the vehicle 500 include, but are not limited to, a memory 510 and a processor 520. The processor 520 is connected to the memory 510 through a bus 530, and a database 550 is used to save data.
[0124] The vehicle 500 can also include an access device 540 that enables the vehicle 500 to communicate via one or more networks 560. Examples of such networks include a Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the Internet. The access device 540 can include one or more of any type of network interface (e.g., a network interface card (NIC)) such as an IEEE 802.11 Wireless Local Area Network (WLAN) wireless interface, a Worldwide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, a Near Field Communication (NFC) interface, and the like, either wired or wireless.
[0125] In one embodiment of the present disclosure, the above-described components of the vehicle 500 and other components not shown in Figure 5 may be connected to each other, for example, through a bus. It should be understood that Figure 5The vehicle structure diagram shown is merely for the purpose of example, and is not a limitation on the scope of the present disclosure. Those skilled in the art can add or replace other components as needed.
[0126] It should be noted that the above-mentioned embodiment numbers of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments.
[0127] In the above-mentioned embodiments of the present application, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the relevant description of other embodiments.
[0128] In the several embodiments of the present application, it should be understood that the disclosed technology can be implemented in other ways. Of course, the above-mentioned device embodiments are only schematic, and the division of units can be a logical function division, and actual implementation can be another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, unit or module, and can be electrical or other forms.
[0129] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or they can be distributed on multiple units. Part or all of the units can be selected according to actual needs to achieve the purpose of the present embodiment scheme.
[0130] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be realized in the form of hardware or in the form of software functional unit.
[0131] If the integrated unit is implemented in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the present application essentially or say the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the embodiments of the present application. The aforementioned storage medium includes: a U disk, a read-only memory (ROM, referred to as Read-Only Memory), a random access memory (RAM, referred to as Random Access Memory), a mobile hard disk, a magnetic disk or an optical disk and various media that can store program codes.
[0132] The above is only the preferred embodiment of the present application, and it should be pointed out that for those skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, and these improvements and refinements should be considered as the protection scope of the present application.
Claims
1. A method for operating an application, characterized in that, include: In response to a target application in the system being in a completed startup state, a storage file of at least one target process associated with the target application is determined, wherein the storage file is used to store at least current path information and virtual address information of the target process, the current path information being used to represent the path stored in the storage file; Based on the total memory of the system and the first current memory occupied by the first group where the target process is located, the current path information and the virtual address information are read from the storage file, wherein the total memory is greater than the first current memory; Based on the read current path information and virtual address information, the stored file is loaded from the storage device into the physical memory in the total memory; In response to the physical memory including the storage file, the target process is launched to run the target application.
2. The method according to claim 1, characterized in that, Based on the total memory of the system and the first current memory occupied by the first group where the target process is located, the current path information and the virtual address information are read from the storage file, including: The total memory is compared with the target total memory to obtain a first comparison result, and the first current memory is compared with the first target memory to obtain a second comparison result. The target total memory is used to indicate whether the total memory allows the target process to start, and the first target memory is used to indicate whether the first current memory needs to be cleaned up. Based on the first comparison result and the second comparison result, the current path information and the virtual address information are read from the storage file.
3. The method according to claim 2, characterized in that, Based on the first comparison result and the second comparison result, the current path information and the virtual address information are read from the storage file, including: In response to the first comparison result indicating that the total memory is less than or equal to the target total memory, and the second comparison result indicating that the first current memory is less than or equal to the first target memory, the first current memory and the second current memory are cleaned up respectively, wherein the total memory is greater than the second current memory, and the second current memory is used to represent the current memory occupied by the second group of the remaining processes in the system other than the target process; In response to the first current memory being in a cleanup completed state and the second current memory being in the cleanup completed state, the current path information and the virtual address information are read from the storage file.
4. The method according to claim 1, characterized in that, Based on the read current path information and virtual address information, the storage file is loaded from the storage device into the physical memory of the total memory, including: Based on the current path information read, determine the physical address information mapped to the read virtual address information; Determine the physical address corresponding to the physical address information; The storage file is loaded from the storage device into the physical memory according to the physical address.
5. The method according to claim 1, characterized in that, In response to a target application in the system being in a completed startup state, the storage file of at least one target process associated with the target application is determined, including: In response to the target application being in the completed startup state, the storage file is extracted from the storage device using the target interface connected to the storage device.
6. The method according to claim 1, characterized in that, The method further includes: The total memory is compared with the target total memory to obtain a first comparison result, and the first current memory is compared with the first target memory to obtain a second comparison result. The target total memory is used to indicate whether the total memory allows the target process to start, and the first target memory is used to indicate whether the first current memory needs to be cleaned up. In response to the first comparison result indicating that the total memory is greater than the target total memory, and the second comparison result indicating that the first current memory is less than or equal to the first target memory, the second current memory is cleaned up, wherein the total memory is greater than the second current memory, and the second current memory is used to represent the current memory occupied by the second group of the remaining processes in the system other than the target process; In response to the second current memory being in a cleanup state, the storage file is loaded from the storage device into the physical memory.
7. The method according to claim 6, characterized in that, The method further includes: In response to the target process switching from an abnormal running state to a normal running state, the target process is assigned to the first group, and the remaining processes in the system other than the target process are assigned to the second group; In response to an update of the target process, the updated target process is assigned to the first group, and the remaining processes in the system other than the updated target process are assigned to the second group.
8. An operating device for an application, characterized in that, include: A determining unit is configured to, in response to a target application in the system being in a completed startup state, determine a storage file of at least one target process associated with the target application, wherein the storage file is configured to store at least current path information and virtual address information of the target process, the current path information being configured to represent the path stored in the storage file; The reading unit is used to read the current path information and the virtual address information from the storage file based on the total memory of the system and the first current memory occupied by the first group where the target process is located, wherein the total memory is greater than the first current memory; The first loading unit is used to load the storage file from the storage device into the physical memory in the total memory based on the read current path information and the virtual address information; A startup unit is configured to, in response to the physical memory including the storage file, start the target process to run the target application.
9. A processor, characterized in that, The processor is used to run a program, wherein the program is executed by the processor to perform the running method of the application according to any one of claims 1 to 7.
10. A vehicle, characterized in that, include: Memory, which stores executable programs; A processor for running the program, wherein the program, when running, executes the method of running the application according to any one of claims 1 to 7.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored executable program, wherein, when the executable program is executed, it controls the device on which the storage medium is located to perform the running method of the application according to any one of claims 1 to 7.