CN112269663A - Android system resource management method and device, terminal device and readable storage medium - Google Patents
Android system resource management method and device, terminal device and readable storage medium Download PDFInfo
- Publication number
- CN112269663A CN112269663A CN202011277053.XA CN202011277053A CN112269663A CN 112269663 A CN112269663 A CN 112269663A CN 202011277053 A CN202011277053 A CN 202011277053A CN 112269663 A CN112269663 A CN 112269663A
- Authority
- CN
- China
- Prior art keywords
- current
- white list
- time
- resource management
- interactive
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000007726 management method Methods 0.000 title claims abstract description 37
- 238000000034 method Methods 0.000 claims abstract description 218
- 230000003993 interaction Effects 0.000 claims abstract description 94
- 230000002452 interceptive effect Effects 0.000 claims abstract description 71
- 238000004590 computer program Methods 0.000 claims description 12
- 230000000670 limiting effect Effects 0.000 claims description 5
- 238000012163 sequencing technique Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 230000001960 triggered effect Effects 0.000 description 3
- 230000002147 killing effect Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- FFBHFFJDDLITSX-UHFFFAOYSA-N benzyl N-[2-hydroxy-4-(3-oxomorpholin-4-yl)phenyl]carbamate Chemical compound OC1=C(NC(=O)OCC2=CC=CC=C2)C=CC(=C1)N1CCOCC1=O FFBHFFJDDLITSX-UHFFFAOYSA-N 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002829 reductive effect Effects 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5022—Mechanisms to release resources
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
- G06F9/5055—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering software capabilities, i.e. software resources associated or available to the machine
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a resource management method, a resource management device, terminal equipment and a readable storage medium of an android system, wherein the method comprises the following steps: acquiring the interactive operation of a user under the current application; determining whether the interactive operation has corresponding interactive time; if the corresponding interaction time does not exist, setting the interaction time corresponding to the interaction operation; if the corresponding interaction time exists, refreshing the corresponding interaction time according to a preset time decrement; determining a current process corresponding to the interactive operation and a related process related to the current process; adding the current process and the related process into a preset white list; and in the interaction time, if the system executes a lowmemorykiller mechanism, ensuring the normal operation of the process in the white list. The technical scheme can ensure the normal operation of the process in the white list, thereby ensuring the smooth operation of the current application.
Description
Technical Field
The invention relates to the technical field of electronics, in particular to a resource management method and device for an android system, terminal equipment and a readable storage medium.
Background
In order to meet various requirements of users, android operating systems are continuously changed, software systems are increasingly huge, functions are increasingly rich, and therefore background applications of the operating systems are increasingly large, and various applications run continuously in order to provide better services. At present, the background of the android operating system lacks effective management on background applications or resources, or the management strategy is unreasonable, so that when the current application is used, the application is usually blocked due to too many resources occupied by the background, the current application is automatically exited, and the user experience is seriously influenced.
Disclosure of Invention
In view of the above problem, the present invention provides a method and an apparatus for managing android system resources, a terminal device, and a readable storage medium.
One embodiment of the present invention provides a resource management method for an android system, including:
acquiring the interactive operation of a user under the current application;
determining whether the interaction operation has corresponding interaction time;
if the corresponding interaction time does not exist, setting the interaction time corresponding to the interaction operation;
if the corresponding interaction time exists, refreshing the corresponding interaction time according to a preset time decrement;
determining a current process corresponding to the interactive operation and a related process related to the current process;
adding the current process and the related process into a preset white list;
and in the interaction time, if the system executes a lowmemorykiller mechanism, ensuring the normal operation of the process in the white list.
The determining of the current process corresponding to the interactive operation and the related process related to the current process includes:
starting a sub-application corresponding to the interactive operation by using the current application marked when the current application is started;
taking the process corresponding to the sub-application as the current process;
invoking an IPC mechanism with the current process to determine a related process related to the current process.
In the android system resource management method according to another embodiment of the present invention, if the system executes a lowmemorykiller mechanism, it is ensured that a process in the white list normally runs, and the method includes:
determining whether the current remaining memory of the system is lower than the running memory threshold of a certain process in the lowmemorykiller mechanism;
and if the running memory threshold of a process is lower than the running memory threshold of a certain process, ending the target process which is not in the white list and occupies the maximum running memory in the lowmemorykiller mechanism.
The android system resource management method further comprises the following steps:
if the number of the target processes is larger than the preset number, sequencing the target processes according to the priority sequence of each process in the lowmemorykiller mechanism from small to large;
ending the predetermined number of top ranked target processes.
The android system resource management method in the above embodiment further includes:
and when the interaction time is exceeded, clearing the white list.
The android system resource management method according to still another embodiment of the present invention further includes:
and in the interaction time, limiting the utilization rate of the system resources by the irrelevant process irrelevant to the current process by utilizing a cgroup mechanism of the system.
Further, the android system resource management method further includes:
and when the interaction time is exceeded, clearing the white list and releasing the limit of the cgroup mechanism on the unrelated process.
Another embodiment of the present invention provides an android system resource management apparatus, including:
the interactive operation acquisition module is used for acquiring the interactive operation of the user under the current application;
the interactive time judging module is used for determining whether the interactive operation has corresponding interactive time;
the interaction time setting module is used for setting the interaction time corresponding to the interaction operation if the corresponding interaction time does not exist;
the interactive time refreshing module is used for refreshing the corresponding interactive time according to a preset time decrement if the corresponding interactive time exists;
a relevant process determining module, configured to determine a current process corresponding to the interactive operation and a relevant process relevant to the current process;
a white list process adding module, configured to add the current process and the relevant process to a preset white list;
and the white list process protection module is used for ensuring the normal operation of the process in the white list if the system executes a lowmemorykiller mechanism in the interaction time.
The embodiment of the invention relates to terminal equipment which comprises a memory and a processor, wherein the memory is used for storing a computer program, and the android system resource management method provided by the embodiment of the invention is realized when the computer program runs on the processor.
The embodiment of the invention relates to a readable storage medium, which stores a computer program, wherein the computer program is run on a processor, and the android system resource management method is provided by the embodiment of the invention.
The android system resource management method disclosed by the invention comprises the following steps: acquiring the interactive operation of a user under the current application; determining whether the interaction operation has corresponding interaction time; if the corresponding interaction time does not exist, setting the interaction time corresponding to the interaction operation; if the corresponding interaction time exists, refreshing the corresponding interaction time according to a preset time decrement; determining a current process corresponding to the interactive operation and a related process related to the current process; adding the current process and the related process into a preset white list; and in the interaction time, if the system executes a lowmemorykiller mechanism, ensuring the normal operation of the process in the white list. The technical scheme of the invention can ensure that the process in the white list normally runs when the lowmemorykiller mechanism of the android system is triggered, and prevent the current application process and the process related to the current application from being killed by the lowmemorykiller mechanism, thereby ensuring the smooth running of the current application.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
Fig. 1 shows a flowchart of a resource management method for an android system according to an embodiment of the present invention;
fig. 2 is a process diagram illustrating an implementation procedure of a lowmemorykiller mechanism according to an embodiment of the present invention;
fig. 3 shows a flowchart of another android system resource management method proposed in the embodiment of the present invention;
fig. 4 shows a schematic structural diagram of an android system resource management device provided in an embodiment of the present invention.
Description of the main element symbols:
1-android system resource management device; 10-an interoperation acquisition module; 20-an interaction time judgment module; 30-interaction time setting module; 40-interactive time refresh module; 50-a relevant process determination module; 60-white list process adding module; 70-white list process protection module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
The method carries out system software optimization on an Android system, protects the current application process and the process related to the current application when a user carries out interactive operation, enables the current application process and the process related to the current application to run normally, and limits the utilization rate of the processes unrelated to the current application to system resources, so that cpu resources are distributed to the current application as much as possible; meanwhile, the current application process and the process related to the current application are added to the white list, so that when the lowmemorykiller mechanism of the android system is triggered, the process in the white list normally runs, the current application process and the process related to the current application are prevented from being killed by the lowmemorykiller mechanism, and smooth running of the current application is guaranteed.
Example 1
In this embodiment, referring to fig. 1, it is shown that a method for managing resources of an android system includes the following steps:
s10: and acquiring the interactive operation of the user under the current application.
For PAD, a smart phone, a smart television and other terminal devices, interactive operation of a user comprises interactive operation such as page refreshing and page sliding, corresponding processes can be executed by a system for each interactive operation, each interactive operation corresponds to one interactive time, for example, when pictures are browsed in a sliding mode, the interactive time of 1-2 s is needed for each sliding interactive operation, normal execution of the processes related to the sliding interactive operation is guaranteed within the interactive time of 1-2 s, and the sliding interactive operation can be kept smooth.
S20: and determining whether the interaction operation has corresponding interaction time.
Corresponding interaction time can be set for each interaction operation, and normal execution of the process related to the interaction operation is guaranteed within the interaction time.
S30: and if the corresponding interaction time does not exist, setting the interaction time corresponding to the interaction operation.
When each interactive operation starts, a corresponding interactive time may be set for the interactive operation, for example, when the current sliding interactive operation starts, the current sliding interactive operation does not have a corresponding interactive time, and a corresponding interactive time, for example, 2s, may be set for the current sliding interactive operation.
S40: and if the corresponding interaction time exists, refreshing the corresponding interaction time according to a preset time decrement.
It can be understood that, if the current interactive operation is being executed, there is a corresponding interactive time, and in the current interactive operation execution process, the interactive time corresponding to the interactive operation is continuously refreshed according to a preset time decrement, for example, the interactive time is 2s, and the preset time decrement is 500ms, that is, the interactive time is refreshed every 500ms and is reduced by 500 ms.
S50: and determining a current process corresponding to the interactive operation and a related process related to the current process.
The related process comprises at least one of a system core process, a sub-process of the current process and a coordination process for coordinating with the current process.
Exemplarily, the current application may be marked when the current application corresponding to the current interactive operation is started, and then the sub-application corresponding to the interactive operation may be started by using the marked current application; taking the process corresponding to the sub-application as the current process; further, the current process is utilized to invoke an inter-process Communication (IPC) mechanism to determine the relevant process related to the current process.
Inter-process Communication (IPC) is provided by a system kernel, because each process has a different user address space and the global variable of any process cannot be seen in another process, data to be exchanged between the processes must pass through the kernel, a buffer is opened in the kernel, process 1 copies the data from the user address space to the kernel buffer, and process 2 reads the data from the kernel buffer, and the mechanism provided is called IPC.
S60: and adding the current process and the related process into a preset white list.
The white list is used as a protection list, and the current process and the related process stored in the white list can normally run.
S70: and in the interaction time, if the system executes a lowmemorykiller mechanism, ensuring the normal operation of the process in the white list.
The lowmemorykiller mechanism of the android system is used for killing a process to recycle resources when the memory resources of the system are tense. And in the interaction time corresponding to the current interaction operation, the current process and the related process are stored in a white list, so that the normal operation of the process in the white list is ensured, and the normal operation of the current process and the related process can be effectively protected. Preventing the lowmemorykiller mechanism from killing the processes associated with the current interoperation.
Further, when the interaction time is exceeded, it is indicated that the current interaction operation is completed, the current process corresponding to the interaction operation and the related process related to the current process are not protected continuously, a white list can be emptied, the white list is only used for protecting the process related to the current interaction operation to run smoothly, and the problem that the unrelated process is protected and system resources are wasted is avoided.
The android system resource management method disclosed by the embodiment comprises the following steps: acquiring the interactive operation of a user under the current application; determining whether the interaction operation has corresponding interaction time; if the corresponding interaction time does not exist, setting the interaction time corresponding to the interaction operation; if the corresponding interaction time exists, refreshing the corresponding interaction time according to a preset time decrement; determining a current process corresponding to the interactive operation and a related process related to the current process; adding the current process and the related process into a preset white list; and in the interaction time, if the system executes a lowmemorykiller mechanism, ensuring the normal operation of the process in the white list. The technical scheme of the embodiment can ensure that the process in the white list normally runs when the lowmemorykiller mechanism of the android system is triggered, and the current application process and the process related to the current application are prevented from being killed by the lowmemorykiller mechanism, so that the smooth running of the current application is ensured.
Example 2
This embodiment, referring to fig. 2, shows that a lowmemorykiller mechanism execution process includes the following steps:
s100: determining whether the current remaining memory of the system is below a running memory threshold for a process within the lowmemorykiller mechanism.
Lowmemorykiller of Andorid system is a memory management mechanism. When the system memory is insufficient, unnecessary processes are killed to release the memory. Unnecessary processes are selected according to 2: oom _ adj and the size of the occupied memory. oom _ adj represents the priority of the process, the higher the value, the lower the priority, the easier it is to kill; there may be a threshold for idle processes for each oom _ adj. And the kernel of the Android system detects whether the current residual memory is lower than the running memory threshold of a certain process at intervals. If the running memory threshold of a certain process is lower, the lowmemorykiller mechanism of the Andorid system is called to kill oom _ adj the largest process.
S200: and if the running memory threshold of a process is lower than the running memory threshold of a certain process, ending the target process which is not in the white list and occupies the maximum running memory in the lowmemorykiller mechanism.
If the current residual is lower than the running memory threshold of a certain process, when the Andorid system calls the lowmerykiller mechanism, the lowmerykiller mechanism ends the target process which is not in the white list and occupies the largest running memory in the lowmerykiller mechanism.
Further, if the number of the target processes is greater than a predetermined number, the target processes are sorted from small to large according to the priority order of each process in the lowmemorykiller mechanism; ending the predetermined number of top ranked target processes.
Exemplarily, there may be two target processes which are not in the white list and occupy the largest operating memory in the lowmemorykiller mechanism, each target process occupies 20% of the operating memory, the predetermined number may be 1, the number of the target processes is greater than the predetermined number, the target processes need to be sorted according to the priority order of each process in the lowmemorykiller mechanism from small to large, and the first sorted target process is ended.
S300: and if the running memory threshold of any process is not lower than the running memory threshold of any process, each process in the system runs normally.
If the running memory threshold of any process is not lower than the running memory threshold of any process, the system resource is sufficient, and any process does not need to be ended.
Example 3
Further, the present embodiment, referring to fig. 3, shows that the following steps are further included after step S70:
s80: and in the interaction time, limiting the utilization rate of the system resources by the irrelevant process irrelevant to the current process by utilizing a cgroup mechanism of the system.
And limiting the utilization rate of the system resources by the irrelevant process irrelevant to the current process by using a group mechanism of the system, so that the system resources are distributed to the current application as much as possible to ensure that the current application is smoothly carried out.
S90: and when the interaction time is exceeded, clearing the white list and releasing the limit of the cgroup mechanism on the unrelated process.
When the interaction time is exceeded, the current interaction operation is completed, the current process corresponding to the interaction operation and the related process related to the current process are not required to be continuously protected, a white list can be emptied, the white list is only used for protecting the process related to the current interaction operation to smoothly run, and the problem that the unrelated process is protected and system resources are wasted is avoided. Furthermore, the limit of the cgroup mechanism on the unrelated process is released, and the problem that the limited unrelated process cannot normally run when used at a later stage is avoided.
It is understood that step S70 and step S80 are not in sequence, and step S80 may be performed first, and step S70 may be performed later.
Example 4
In this embodiment, referring to fig. 4, it is shown that an android system resource management apparatus 1 includes: the system comprises an interactive operation acquisition module 10, an interactive time judgment module 20, an interactive time setting module 30, an interactive time refreshing module 40, a related process determination module 50, a white list process adding module 60 and a white list process protection module 70.
The interactive operation acquisition module 10 is used for acquiring the interactive operation of the user under the current application; an interaction time judging module 20, configured to determine whether there is a corresponding interaction time for the interaction operation; an interaction time setting module 30, configured to set an interaction time corresponding to the interaction operation if there is no corresponding interaction time; and the interaction time refreshing module 40 is configured to refresh the corresponding interaction time according to a preset time decrement if the corresponding interaction time exists. A related process determining module 50, configured to determine a current process corresponding to the interactive operation and a related process related to the current process; a white list process adding module 60, configured to add the current process and the relevant process to a preset white list; and a white list process protection module 70, configured to, in the interaction time, ensure that the process in the white list operates normally if the system executes a lowmemorykiller mechanism.
The android system resource management device 1 disclosed in this embodiment is configured to execute the android system resource management method according to the above embodiment by using the interaction operation obtaining module 10, the interaction time judging module 20, the interaction time setting module 30, the interaction time refreshing module 40, the relevant process determining module 50, the white list process adding module 60, and the white list process protecting module 70 in a matching manner, and the implementation scheme and the beneficial effect related to the above embodiment are also applicable in this embodiment, and are not described herein again.
It can be understood that the embodiment of the present invention relates to a terminal device, which includes a memory and a processor, where the memory is used to store a computer program, and when the computer program runs on the processor, the method for managing resources of an android system according to the embodiment of the present invention is executed. The terminal equipment comprises a mobile phone, a PAD and the like.
It is understood that the embodiment of the present invention relates to a readable storage medium, which stores a computer program, and when the computer program runs on a processor, the computer program executes the android system resource management method according to the embodiment of the present invention.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.
Claims (10)
1. A resource management method for an android system is characterized by comprising the following steps:
acquiring the interactive operation of a user under the current application;
determining whether the interaction operation has corresponding interaction time;
if the corresponding interaction time does not exist, setting the interaction time corresponding to the interaction operation;
if the corresponding interaction time exists, refreshing the corresponding interaction time according to a preset time decrement;
determining a current process corresponding to the interactive operation and a related process related to the current process;
adding the current process and the related process into a preset white list;
and in the interaction time, if the system executes a lowmemorykiller mechanism, ensuring the normal operation of the process in the white list.
2. The android system resource management method of claim 1, wherein the determining a current process corresponding to the interactive operation and a related process related to the current process includes:
starting a sub-application corresponding to the interactive operation by using the current application marked when the current application is started;
taking the process corresponding to the sub-application as the current process;
invoking an IPC mechanism with the current process to determine a related process related to the current process.
3. The android system resource management method of claim 1, wherein the ensuring that the process in the white list runs normally if the system executes a lowmemorykiller mechanism comprises:
determining whether the current remaining memory of the system is lower than the running memory threshold of a certain process in the lowmemorykiller mechanism;
and if the running memory threshold of a process is lower than the running memory threshold of a certain process, ending the target process which is not in the white list and occupies the maximum running memory in the lowmemorykiller mechanism.
4. The android system resource management method of claim 3, further comprising:
if the number of the target processes is larger than the preset number, sequencing the target processes according to the priority sequence of each process in the lowmemorykiller mechanism from small to large;
ending the predetermined number of top ranked target processes.
5. The android system resource management method of claim 1, further comprising:
and when the interaction time is exceeded, clearing the white list.
6. The android system resource management method of claim 1, further comprising:
and in the interaction time, limiting the utilization rate of the system resources by the irrelevant process irrelevant to the current process by utilizing a cgroup mechanism of the system.
7. The android system resource management method of claim 6, further comprising:
and when the interaction time is exceeded, clearing the white list and releasing the limit of the cgroup mechanism on the unrelated process.
8. An android system resource management device, the device comprising:
the interactive operation acquisition module is used for acquiring the interactive operation of the user under the current application;
the interactive time judging module is used for determining whether the interactive operation has corresponding interactive time;
the interaction time setting module is used for setting the interaction time corresponding to the interaction operation if the corresponding interaction time does not exist;
the interactive time refreshing module is used for refreshing the corresponding interactive time according to a preset time decrement if the corresponding interactive time exists;
a relevant process determining module, configured to determine a current process corresponding to the interactive operation and a relevant process relevant to the current process;
a white list process adding module, configured to add the current process and the relevant process to a preset white list;
and the white list process protection module is used for ensuring the normal operation of the process in the white list if the system executes a lowmemorykiller mechanism in the interaction time.
9. A terminal device comprising a memory and a processor, the memory being configured to store a computer program that, when run on the processor, performs the android system resource management method of any of claims 1 to 7.
10. A readable storage medium, characterized in that it stores a computer program which, when run on a processor, performs the android system resource management method of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011277053.XA CN112269663B (en) | 2020-11-16 | 2020-11-16 | Android system resource management method and device, terminal equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011277053.XA CN112269663B (en) | 2020-11-16 | 2020-11-16 | Android system resource management method and device, terminal equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112269663A true CN112269663A (en) | 2021-01-26 |
CN112269663B CN112269663B (en) | 2024-08-20 |
Family
ID=74339091
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011277053.XA Active CN112269663B (en) | 2020-11-16 | 2020-11-16 | Android system resource management method and device, terminal equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112269663B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113204472A (en) * | 2021-05-20 | 2021-08-03 | 北京明略昭辉科技有限公司 | Method, system, storage medium and electronic device for maintaining memory use |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103294542A (en) * | 2013-06-07 | 2013-09-11 | 深圳Tcl新技术有限公司 | Process protection method and device thereof |
EP2669800A2 (en) * | 2012-05-31 | 2013-12-04 | HTC Corporation | Memory management methods and systems for mobile devices |
CN106125899A (en) * | 2016-07-01 | 2016-11-16 | 北京金山安全软件有限公司 | Method and device for stopping process and mobile terminal |
CN106445604A (en) * | 2016-09-29 | 2017-02-22 | 深圳市邦华电子有限公司 | Clearing method and device for applications |
CN106528282A (en) * | 2016-09-23 | 2017-03-22 | 依偎科技(南昌)有限公司 | Method, device and terminal for closing process |
CN107239332A (en) * | 2017-05-24 | 2017-10-10 | 努比亚技术有限公司 | A kind of process handling method, mobile terminal and computer-readable recording medium |
CN107479967A (en) * | 2017-07-04 | 2017-12-15 | 深圳天珑无线科技有限公司 | A kind of automatic method and intelligent terminal for removing internal memory |
-
2020
- 2020-11-16 CN CN202011277053.XA patent/CN112269663B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2669800A2 (en) * | 2012-05-31 | 2013-12-04 | HTC Corporation | Memory management methods and systems for mobile devices |
CN103294542A (en) * | 2013-06-07 | 2013-09-11 | 深圳Tcl新技术有限公司 | Process protection method and device thereof |
CN106125899A (en) * | 2016-07-01 | 2016-11-16 | 北京金山安全软件有限公司 | Method and device for stopping process and mobile terminal |
CN106528282A (en) * | 2016-09-23 | 2017-03-22 | 依偎科技(南昌)有限公司 | Method, device and terminal for closing process |
CN106445604A (en) * | 2016-09-29 | 2017-02-22 | 深圳市邦华电子有限公司 | Clearing method and device for applications |
CN107239332A (en) * | 2017-05-24 | 2017-10-10 | 努比亚技术有限公司 | A kind of process handling method, mobile terminal and computer-readable recording medium |
CN107479967A (en) * | 2017-07-04 | 2017-12-15 | 深圳天珑无线科技有限公司 | A kind of automatic method and intelligent terminal for removing internal memory |
Non-Patent Citations (3)
Title |
---|
智域智联科技: "Android安卓后台运行白名单实现优雅保活", Retrieved from the Internet <URL:www.bing.com> * |
村里小码农: "Android lmk (lowmemorykiller) and lmkd 白名单", Retrieved from the Internet <URL:www.bing.com> * |
王保群: "基于用户行为习惯的APP使用预测及应用", 中国优秀硕士学位论文全文数据库 信息科技辑, 15 February 2020 (2020-02-15) * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113204472A (en) * | 2021-05-20 | 2021-08-03 | 北京明略昭辉科技有限公司 | Method, system, storage medium and electronic device for maintaining memory use |
Also Published As
Publication number | Publication date |
---|---|
CN112269663B (en) | 2024-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105843650B (en) | Application program management method and device in intelligent terminal | |
US9201693B2 (en) | Quota-based resource management | |
CN111966492B (en) | Memory recycling method and device, electronic equipment and computer readable storage medium | |
CN111338803B (en) | Thread processing method and device | |
CN114547676A (en) | Permission control method and device for application program page | |
CN112269663A (en) | Android system resource management method and device, terminal device and readable storage medium | |
EP3945420A1 (en) | Method and apparatus for data processing, server and storage medium | |
CN110633148A (en) | System operation optimization method and device, electronic equipment and storage medium | |
CN112231077B (en) | Application scheduling method and electronic equipment | |
CN107450907A (en) | Compatibility method, mobile terminal and the device with store function of fingerprint module | |
CN111400087A (en) | Control method of operating system, terminal and storage medium | |
CN113722102B (en) | Memory allocation method and device | |
CN106407016B (en) | Method and device for simulating multithreading contention and robbery of resources | |
CN106156608B (en) | Method and device for forbidding self-starting of background application | |
CN115587049A (en) | Memory recovery method and device, electronic equipment and storage medium | |
CN111782362B (en) | Message task scheduling method and device and electronic equipment | |
CN111090627B (en) | Log storage method and device based on pooling, computer equipment and storage medium | |
US20050027954A1 (en) | Method and apparatus to support the maintenance and reduction of FLASH utilization as it pertains to unused or infrequently referenced FLASH data | |
CN109379284B (en) | Route execution method, storage medium, and terminal device | |
CN113157377A (en) | Method and equipment for controlling application part by Android system | |
CN112631781A (en) | Operator execution method and device, electronic equipment and storage medium | |
CN112035133A (en) | Homepage upgrading method and terminal | |
CN117527949B (en) | Cloud mobile phone operation monitoring method, system and storage medium | |
CN114666442B (en) | Working mode switching method, device, equipment and storage medium | |
CN115543343B (en) | Variable cross-thread operation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |