CN113010228A - Memory processing method and device, electronic equipment and computer readable storage medium - Google Patents

Memory processing method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN113010228A
CN113010228A CN202110293624.7A CN202110293624A CN113010228A CN 113010228 A CN113010228 A CN 113010228A CN 202110293624 A CN202110293624 A CN 202110293624A CN 113010228 A CN113010228 A CN 113010228A
Authority
CN
China
Prior art keywords
memory page
foreground
application
background
memory
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.)
Pending
Application number
CN202110293624.7A
Other languages
Chinese (zh)
Inventor
赵庆浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110293624.7A priority Critical patent/CN113010228A/en
Publication of CN113010228A publication Critical patent/CN113010228A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The application relates to a memory processing method, a memory processing device, an electronic device and a computer readable storage medium. The method comprises the following steps: acquiring a memory page identification set corresponding to a currently running application program, determining foreground application and background application in the currently running application program, acquiring a foreground memory page identification corresponding to the foreground application in the memory page identification set, and adjusting the priority of a foreground memory page corresponding to the foreground memory page identification; the priority of the adjusted foreground memory page is higher than the priority of the background memory page of the background application. By adopting the method, the response speed of foreground application can be improved.

Description

Memory processing method and device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a memory processing method and apparatus, an electronic device, and a computer-readable storage medium.
Background
With the development of computer technology, various types of applications have emerged. The electronic device is capable of accommodating multiple applications, but is only capable of running one application in the foreground, and possibly multiple applications in the background. When the application program runs in the background, the application program and the application process running in the foreground preempt the memory for use, so that the response speed of the foreground application is low.
Disclosure of Invention
The embodiment of the application provides a memory processing method and device, electronic equipment and a computer readable storage medium, which can improve the response speed of foreground application.
A memory processing method includes:
acquiring a memory page identifier set corresponding to a currently running application program;
determining foreground application and background application in the currently running application program;
obtaining foreground memory page identifiers corresponding to the foreground applications in the memory page identifier set, and adjusting priorities of foreground memory pages corresponding to the foreground memory page identifiers; the priority of the adjusted foreground memory page is higher than that of the background memory page of the background application.
A memory processing apparatus, the apparatus comprising:
the acquisition module is used for acquiring a memory page identifier set corresponding to a currently running application program;
the determining module is used for determining foreground application and background application in the currently running application program;
an adjustment module, configured to obtain a foreground memory page identifier corresponding to the foreground application in the memory page identifier set, and adjust a priority of a foreground memory page corresponding to the foreground memory page identifier; the priority of the adjusted foreground memory page is higher than that of the background memory page of the background application.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring a memory page identifier set corresponding to a currently running application program;
determining foreground application and background application in the currently running application program;
obtaining foreground memory page identifiers corresponding to the foreground applications in the memory page identifier set, and adjusting priorities of foreground memory pages corresponding to the foreground memory page identifiers; the priority of the adjusted foreground memory page is higher than that of the background memory page of the background application.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring a memory page identifier set corresponding to a currently running application program;
determining foreground application and background application in the currently running application program;
obtaining foreground memory page identifiers corresponding to the foreground applications in the memory page identifier set, and adjusting priorities of foreground memory pages corresponding to the foreground memory page identifiers; the priority of the adjusted foreground memory page is higher than that of the background memory page of the background application.
According to the memory processing method, the memory processing device, the electronic equipment and the computer readable storage medium, the memory page identifier set corresponding to the currently running application program is obtained, foreground application and background application in the currently running application program are determined, and the currently running application program can be divided into the foreground application and the background application. The foreground memory page identifiers corresponding to the foreground applications in the memory page identifier set are acquired, the memory pages of the foreground applications and the memory pages of the background applications can be distinguished, the priority of the foreground memory page corresponding to the foreground memory page identifiers is adjusted, the priority of the foreground memory page can be improved, and the adjusted priority of the foreground memory page is higher than the priority of the background memory page of the background applications. By improving the priority of the foreground memory page, the foreground application can obtain higher memory use priority, the foreground application delay is lower, and the response speed is higher.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of an application environment of a memory processing method according to an embodiment;
FIG. 2 is a flow diagram of a memory processing method in accordance with one embodiment;
fig. 3 is a flowchart illustrating acquiring foreground memory page identifiers corresponding to foreground applications in a memory page identifier set and adjusting priorities of foreground memory pages corresponding to the foreground memory page identifiers in one embodiment;
FIG. 4 is a block diagram of a memory processing method according to an embodiment;
FIG. 5 is a diagram illustrating adjusting priorities of memory pages, according to an embodiment;
FIG. 6 is a block diagram of a memory processing device in accordance with one embodiment;
fig. 7 is a block diagram showing a partial structure of an electronic apparatus in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first application identification may be referred to as a second application identification, and similarly, a second application identification may be referred to as a first application identification, without departing from the scope of the present application. The first application identification and the second application identification are both application identifications, but they are not the same application identification.
The memory processing method provided by the application can be applied to the application environment shown in fig. 1. Wherein the electronic device 102 communicates with the server 104 over a network. In one embodiment, the electronic device 102 may separately execute the memory processing method provided in the embodiment of the present application. The electronic device 102 and the server 104 may also be cooperatively used to execute the memory processing method provided in the embodiment of the present application. When the electronic device 102 and the server 104 are cooperatively used to execute the memory processing method provided in the embodiment of the present application, the server 104 stores a memory page identifier set corresponding to a currently running application program. The electronic device 102 may obtain, from the server 104, a memory page identifier set corresponding to the currently running application program, and the electronic device 102 determines a foreground application and a background application in the currently running application program. The electronic device 102 may obtain a foreground memory page identifier corresponding to a foreground application in the memory page identifier set, and adjust a priority of a foreground memory page corresponding to the foreground memory page identifier; the priority of the adjusted foreground memory page is higher than the priority of the background memory page of the background application. The electronic device 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, portable wearable devices, and televisions, and the server 104 may be implemented by an independent server or a server cluster composed of a plurality of servers.
FIG. 2 is a flow diagram of a memory processing method in one embodiment. The memory processing method in this embodiment is described by taking the electronic device in fig. 1 as an example. As shown in fig. 2, the memory processing method includes steps 202 to 206.
Step 202, a memory page identifier set corresponding to a currently running application program is obtained.
The currently running application refers to an application currently in a running state, and may specifically include at least one of a foreground application and a background application. The memory page identifier set is used for storing identifiers corresponding to the memory pages. The foreground application refers to an application in an operating state of a user on the electronic device, and the background application refers to an application which is not operated by the user but runs in a background of the electronic device.
Specifically, the electronic device may obtain a currently running application program, and obtain a memory page identifier set corresponding to the currently running application program. The memory page identifier set is used to record the identifier of the memory page corresponding to the currently running application program.
In one embodiment, the memory page identification set is used to record the identification of the memory pages used by the currently running application.
In an embodiment, when the foreground application is changed, the electronic device may obtain a currently running application program, and obtain a memory page identifier set corresponding to the currently running application program.
Step 204, determining foreground application and background application in the currently running application program.
Specifically, the electronic device may determine a currently running foreground application and a currently running background application from currently running application programs, respectively.
In one embodiment, the electronic device may determine a foreground application and a background application in the currently running application program by running the task list. The electronic equipment can acquire an operating task list within a preset time length, and foreground application and background application in the currently operating application program are determined through the operating task list. That is, the electronic device may obtain a list of a group of recently-running tasks, sort the tasks according to time, rank the most recently-used application at the forefront, that is, the foreground application, and rank the other applications as background applications.
In one embodiment, the electronic device may obtain an application process information list of its own running, and determine a foreground application and a background application in the currently running application according to the application process information list. And when the process contains the background running code, judging that the application program corresponding to the process is background application. And when a certain process in the application process information list is in the display state of the front-end interface, judging that the application program corresponding to the process is foreground application.
For example, the foreground application is switched from the application a to the application B, and the application a enters the background to continue running, so that the application a and the application B are currently running applications, the application B is the foreground application, and the application a is the background application.
Step 206, obtaining foreground memory page identifiers corresponding to foreground applications in the memory page identifier set, and adjusting priorities of foreground memory pages corresponding to the foreground memory page identifiers; the priority of the adjusted foreground memory page is higher than the priority of the background memory page of the background application.
The foreground memory page identifier refers to an identifier of a memory page corresponding to a foreground application, and the foreground memory page refers to a memory page corresponding to the foreground application. The background memory page refers to a memory page corresponding to the background application.
Specifically, the priority refers to the priority of memory usage. The electronic device may obtain a foreground memory page identifier corresponding to the foreground application from the memory page identifier set. The electronic device may determine a foreground memory page corresponding to the foreground memory page identifier, and adjust the priority of the foreground memory page to increase the priority of the foreground memory page, so that the adjusted priority of the foreground memory page is higher than the priority of the background memory page applied in the background.
In an embodiment, the electronic device may further obtain, from the memory page identifier set, a background memory page identifier corresponding to the background application. The background memory page identifier refers to an identifier of a memory page corresponding to the background application. The electronic device may determine a background memory page corresponding to the background memory page identifier, and the electronic device may adjust the priority of the foreground memory page to increase the priority of the foreground memory page, so that the adjusted priority of the foreground memory page is higher than the priority of the background memory page.
In this embodiment, a memory page identifier set corresponding to a currently running application program is obtained, foreground applications and background applications in the currently running application program are determined, and the currently running application program can be divided into the foreground applications and the background applications. The foreground memory page identifiers corresponding to the foreground applications in the memory page identifier set are acquired, the memory pages of the foreground applications and the memory pages of the background applications can be distinguished, the priority of the foreground memory page corresponding to the foreground memory page identifiers is adjusted, the priority of the foreground memory page can be improved, and the adjusted priority of the foreground memory page is higher than the priority of the background memory page of the background applications. By improving the priority of the foreground memory page, the foreground application can obtain higher memory use priority, the foreground application delay is lower, and the response speed is higher.
In one embodiment, the obtaining a foreground memory page identifier corresponding to a foreground application in the memory page identifier set, and adjusting the priority of a foreground memory page corresponding to the foreground memory page identifier includes:
acquiring foreground memory page identifiers corresponding to foreground applications in a memory page identifier set, and determining a linked list where foreground memory pages corresponding to the foreground memory page identifiers are located; under the condition that the foreground memory page is in the inactive linked list, moving the foreground memory page to the active linked list; the priority of the active linked list is higher than the priority of the inactive linked list.
The active linked list is used for storing memory pages which are frequently accessed and are in an active state. The inactive linked list is used to store memory pages that may be associated with one or more processes, but are not used frequently.
Specifically, the electronic device obtains a foreground memory page identifier corresponding to the foreground application from the memory page identifier set. The electronic device determines a foreground memory page corresponding to the foreground memory page identifier and determines a linked list where the foreground memory page is located. The linked list includes an active linked list and an inactive linked list. The active linked list uses memory with a higher priority than the inactive linked list.
When the foreground memory page is in the inactive linked list, indicating that the foreground memory page is placed in the queue which is not frequently accessed, the electronic device moves the foreground memory page to the active linked list, so that the foreground memory page is moved to the queue which is frequently accessed.
In one embodiment, the electronic device may determine each foreground memory page within the inactive linked list and move each foreground memory page from the inactive linked list to the active linked list.
In one embodiment, the linked lists are LRU (Least Recently Used) linked lists, which are divided into active and inactive linked lists. The active linked list is denoted as active linked list and the inactive linked list is denoted as inactive linked list.
In this embodiment, the priority of the active linked list is higher than that of the inactive linked list, the foreground memory page corresponding to the foreground application is placed in the active linked list, and the foreground memory page can be placed in the frequently-accessed queue, so that the priority of the foreground application for using the memory is improved, and the number of times of repeated loading errors of the foreground application page can be reduced. A page repetitive loading error (FAE) refers to a process of loading a page to a memory for the first time, releasing a memory space of the page after the page is not accessed for a period of time, and then generating a page missing interrupt again when the page is accessed again, and needing to read related data from the external memory to the memory again. The time difference between reading the external memory and directly reading the internal memory is very large, which results in the response delay of the application. In this embodiment, by increasing the priority of the foreground application using the memory, the number of times of repeated loading errors of the page of the foreground application is reduced, so that the starting speed of the foreground application can be increased.
In one embodiment, the method further comprises: and under the condition that the foreground memory page is in the active linked list, keeping the foreground memory page in the active linked list.
Specifically, the electronic device obtains, from the memory page identifier set, each foreground memory page identifier corresponding to the foreground application. For each foreground memory page identifier, the electronic device determines a foreground memory page corresponding to the foreground memory page identifier to obtain each foreground memory page. For each foreground memory page, the electronic device determines a linked list in which the foreground memory page is located. And judging whether the foreground memory page is in the active linked list or not aiming at each foreground memory page. And under the condition that the foreground memory page is in the active linked list, the foreground memory page is not moved so as to be kept in the active linked list.
In this embodiment, under the condition that the foreground memory page is in the active linked list, the foreground memory page is kept in the active linked list to keep the foreground memory page in the frequently-accessed queue, so that the priority of using the memory by the foreground application can be improved, the memory response of the foreground application is improved, and the user experience of the foreground application is improved.
In one embodiment, the method further comprises: acquiring background memory page identifications corresponding to background applications in a memory page identification set, and adjusting the priority of the background memory pages corresponding to the background memory page identifications; the priority of the adjusted foreground memory page is higher than the priority of the adjusted background memory page.
Specifically, the electronic device may obtain a foreground memory page identifier corresponding to the foreground application from the memory page identifier set. The electronic device may determine a foreground memory page corresponding to the foreground memory page identifier and adjust a priority of the foreground memory page to increase the priority of the foreground memory page.
Moreover, the electronic device may further obtain a background memory page identifier corresponding to the background application from the memory page identifier set. The electronic device may determine the background memory page corresponding to the background memory page identifier, and the electronic device may adjust the priority of the background memory page to reduce the priority of the foreground memory page, so that the adjusted priority of the foreground memory page is higher than the adjusted priority of the background memory page.
In one embodiment, the electronic device may determine a foreground memory page corresponding to the foreground memory page identifier and a background memory page corresponding to the background memory page identifier, and the electronic device may obtain priorities of the foreground memory page and the background memory page and compare the priorities of the foreground memory page and the background memory page. When the priority of the foreground memory page is lower than that of the background memory page, the priority of the foreground memory page is adjusted to improve the priority of the foreground memory page, so that the priority of the foreground memory page is higher than that of the background memory page.
In one embodiment, when the priority of the foreground memory page is lower than the priority of the background memory page, the electronic device may adjust the priority of the background memory page to lower the priority of the background memory page, so that the priority of the foreground memory page is higher than the priority of the background memory page.
In one embodiment, when the priority of the foreground memory page is lower than the priority of the background memory page, the electronic device may simultaneously adjust the priorities of the foreground memory page and the background memory page to increase the priority of the foreground memory page and decrease the priority of the background memory page, so that the priority of the foreground memory page is higher than the priority of the background memory page.
In this embodiment, by obtaining the background memory page identifier corresponding to the background application in the memory page identifier set, the background application can quickly and accurately find the background memory page being used by the background application through the background memory page identifier. The priority of the background memory page corresponding to the background memory page identifier is adjusted, so that the priority of the adjusted foreground memory page is higher than that of the adjusted background memory page, the priority of the foreground memory page is improved, foreground application obtains higher memory use priority, background application obtains lower memory use priority, the requirement of the background application on the memory can be reduced, and the memory response of the foreground application is promoted.
In one embodiment, acquiring a background memory page identifier corresponding to a background application in a memory page identifier set, and adjusting the priority of a background memory page corresponding to the background memory page identifier includes:
acquiring background memory page identifiers corresponding to background applications in a memory page identifier set, and determining a linked list where the background memory pages corresponding to the background memory page identifiers are located; under the condition that the background memory pages are in the active linked list, the background memory pages are moved to the inactive linked list; the priority of the active linked list is higher than the priority of the inactive linked list.
Specifically, the electronic device obtains a background memory page identifier corresponding to the background application from the memory page identifier set. The electronic device determines a background memory page corresponding to the background memory page identifier, and determines a linked list where the background memory page is located. The linked list includes an active linked list and an inactive linked list. The active linked list uses memory with a higher priority than the inactive linked list.
When the background memory page is in the active linked list, which means that the background memory page is placed in the frequently-accessed queue, the electronic device moves the background memory page to the active linked list, so that the background memory page is moved to the infrequently-accessed queue. And performing the same processing on each background memory page to move each background memory page in the active linked list to the inactive linked list.
In this embodiment, the priority of the active linked list is higher than the priority of the inactive linked list. For background memory pages in the active linked list, the background memory pages are moved to the inactive linked list, and the background memory pages can be moved to the queue which is accessed infrequently, so that the priority of using the memory by background application is reduced, and the starting speed of foreground application can be accelerated.
In one embodiment, the method further comprises: and under the condition that the background memory pages are in the inactive linked list, keeping the background memory pages in the inactive linked list.
Specifically, the electronic device obtains, from the memory page identifier set, each background memory page identifier corresponding to the background application. For each background memory page identifier, the electronic device determines a background memory page corresponding to the background memory page identifier to obtain each background memory page. For each background memory page, the electronic device determines a linked list where the background memory page is located. And judging whether the background memory pages are in the inactive linked list or not aiming at each background memory page. And under the condition that the background memory pages are in the inactive linked list, moving the background memory pages to keep the background memory pages in the active linked list.
In this embodiment, under the condition that the background memory page is in the inactive linked list, the background memory page is retained in the inactive linked list, so as to retain the background memory page in the queue that is accessed infrequently, thereby reducing the memory requirement of the background application, and providing more memories for the foreground application.
In one embodiment, the method further comprises: and determining a clean memory page in the inactive linked list, and recycling the clean memory page.
The clean memory page refers to an unmodified memory page in the memory space, and the clean memory page may be one or more memory pages.
Specifically, the electronic device may determine a clean memory page in the inactive linked list, and perform a recycle process on the clean memory page through a recycle process. The clean memory pages in the inactive linked list are recycled, for example, by the kswapd process.
In this embodiment, by recovering the clean memory pages in the inactive linked list, the usable memory space can be increased, and the normal operation of the application program is ensured.
In one embodiment, the method further comprises: and determining the dirty memory pages in the inactive linked list, and recycling the dirty memory pages.
The dirty memory page refers to a memory page that has been modified in the memory space, and the dirty memory page may be one or more memory pages.
Specifically, the electronic device may determine the dirty memory pages in the inactive linked list, and store and recycle the dirty memory pages through a recycle process. For example, the dirty memory pages are subjected to storage processing and reclamation processing through the kdflush process.
In one embodiment, the method further comprises: and determining a clean memory page and a dirty memory page in the inactive linked list, and sequentially recycling the clean memory page and the dirty memory page based on the priority of the clean memory page higher than that of the dirty memory page.
Specifically, the electronic device may directly perform the recycling process on the clean memory pages, and before performing the recycling process on the dirty memory pages, the dirty memory pages need to be stored, so that the processing time of the dirty memory pages is longer than that of the clean memory pages. In this embodiment, the clean memory pages are preferentially recycled, so that the memory recycling efficiency can be improved.
In an embodiment, as shown in fig. 3, acquiring a foreground memory page identifier corresponding to a foreground application in the memory page identifier set, and adjusting a priority of a foreground memory page corresponding to the foreground memory page identifier includes:
step 302, a first application identifier of a foreground application and a second application identifier of a background application are obtained.
Specifically, in the case that the currently running application program is divided into a foreground application and a background application, the application identifier of the application program is divided into a first application identifier and a second application identifier, respectively. The first application identifier refers to an application identifier corresponding to a foreground application, and the second application identifier refers to an application identifier corresponding to a background application. After the electronic device determines the currently running application program, foreground application and background application in the currently running application program can be determined. The electronic device may obtain a first application identifier corresponding to the foreground application and a second application identifier corresponding to the background application.
In one embodiment, the electronic device may obtain a configuration file of a foreground application through a kernel, and obtain a first application identifier of the foreground application from the configuration file of the foreground application. The electronic device can obtain the configuration file of the background application through the kernel, and obtain the second application identifier of the background application from the configuration file of the background application.
Step 304, determining a foreground memory page identifier matching the first application identifier from the memory page identifier set.
Specifically, the electronic device performs matching processing on the first application identifier and each memory page identifier in the memory page identifier set to determine a memory page identifier matched with the first application identifier. The electronic equipment judges the memory page identifier which is matched with the first application identifier in the memory page identifier set as a foreground memory page identifier. According to the same processing mode, the electronic device can screen out each foreground memory page identifier matched with the first application identifier from the memory page identifier set.
Step 306, adjusting the priority of the foreground memory page corresponding to the foreground memory page identifier.
Specifically, the electronic device may determine a foreground memory page corresponding to each foreground memory page identifier, respectively, to adjust the priority of each foreground memory page, so that the priority of each foreground memory page is higher than the priority of the background memory page.
In one embodiment, after determining the foreground memory pages, the electronic device determines a priority of each foreground memory page and a priority of each background memory page. Foreground memory pages with priorities lower than background memory pages are screened out, and the priorities of the screened foreground memory pages are improved, so that the priorities of the foreground memory pages are higher than the priorities of the background memory pages.
Obtaining a background memory page identifier corresponding to a background application in the memory page identifier set, and adjusting the priority of the background memory page corresponding to the background memory page identifier, including:
step 308, determining the background memory page identifier matched with the second application identifier from the memory page identifier set.
Specifically, the electronic device performs matching processing on the second application identifier and each memory page identifier in the memory page identifier set to determine a memory page identifier matched with the second application identifier. And the electronic equipment judges the memory page identifier which is matched with the second application identifier in the memory page identifier set as a background memory page identifier. According to the same processing mode, the electronic device can screen out each background memory page identifier matched with the second application identifier from the memory page identifier set.
Step 310, adjusting the priority of the background memory page corresponding to the background memory page identifier.
Specifically, the electronic device may determine a background memory page corresponding to each background memory page identifier, and adjust the priority of each background memory page to reduce the priority of each background memory page, so that the priority of each foreground memory page is higher than the priority of the background memory page.
In one embodiment, after determining each background memory page, the electronic device determines a priority of each foreground memory page and a priority of each background memory page. And screening background memory pages with higher priority than foreground memory pages, and reducing the priority of the screened background memory pages, so that the priority of each foreground memory page is higher than that of each background memory page.
It is understood that the execution sequence of the steps 304-306 and 308-310 is not limited, and the electronic device may execute the steps 304-306 and then 308-310, may execute the steps 308-310 and then 304-306, and may execute the operations of the steps 304-306 and 308-310 at the same time.
In this embodiment, the application identifier and the memory page identifier of the same application program have a corresponding relationship, and then the first application identifier of the foreground application and the second application identifier of the background application can be used to centrally find the matched foreground memory page identifier and background memory page identifier from the memory page identifiers, so as to perform priority adjustment on the foreground memory page corresponding to the foreground memory page identifier and the background memory page corresponding to the background memory page identifier, so as to improve the priority of the foreground memory page and reduce the priority of the background memory page, so that the foreground application obtains a higher priority for using the memory, and the starting speed of the foreground application is increased.
In one embodiment, the method further comprises: under the condition that the application program is updated, configuring an application identifier for the updated application program; and configuring a memory page identifier corresponding to the application identifier for the updated memory page of the application program.
The application identifier is a unique identifier configured for the application program of the electronic device, for example, if the application program a, the application program B, and the application program C are installed on the electronic device, the electronic device may allocate different application identifiers for the application program a, the application program B, and the application program C, respectively. The application identifier and the memory page identifier of the same application program have a corresponding relationship. For example, the application A has a tag A, the application A has a corresponding memory page tag A-1, the application A has multiple memory pages using the same memory page tag, or different memory page tags, such as A-1, A-2, A-3, etc.
Specifically, in the case where there is an update in the application of the electronic device itself, it may be determined that there is an updated application. The application existence update means that a new application is downloaded in the electronic device or the version of the original application is updated. The electronic device may configure an application for which an update exists to assign a unique application identification to the application. The electronic device may determine a memory page corresponding to the updated application program, configure a memory page identifier for the memory page corresponding to the updated application program, where the configured memory page identifier has a corresponding relationship with the application identifier of the updated application program.
In one embodiment, when the updated application program is executed, the electronic device determines a memory page used by the updated application program, and configures a memory page identifier corresponding to the application identifier for the used memory page.
In one embodiment, the electronic device configures an application identification for an updated application when the updated application is installed.
In one embodiment, the application identification and memory page identification of the same application may be the same. The electronic device may identify an application of the application to which the memory page belongs, the application being a memory page identification of the memory page.
In this embodiment, when an application program is updated, an application identifier is configured for the updated application program, and a unique application identifier can be assigned to each application program. The memory page identification corresponding to the application identification is configured for the memory page of the updated application program, and the memory page corresponding to each application program can be accurately determined through the corresponding relation between the memory page identification and the application identification, so that the memory page corresponding to foreground application and the memory page corresponding to background application can be determined, the priority of the memory page corresponding to foreground application is improved, more memory space is obtained for the foreground application, and the memory use efficiency is improved.
Fig. 4 is a block diagram illustrating a memory processing method according to an embodiment. A Foreground perception removal mechanism (FAE) is arranged in the electronic equipment.
Firstly, downloading an application program by the electronic equipment or updating the version of the application program installed in the electronic equipment;
and secondly, when the electronic equipment installs the application program, the electronic equipment updates the configuration file of the application program through a system framework, and the allocated application identification is recorded in the configuration file. The application identifier may be stored in a Page Table (PTE for short) and corresponds to the name of the application package. When the application program runs, the application identifier of the application program is marked in the memory page, and the application identifier is used as the memory page identifier of the memory page. In one embodiment, the electronic device uses an android operating system on which the application runs.
Executing the fourth step when the foreground application of the electronic equipment changes.
And fourthly, the system framework determines the currently running foreground application and transmits the application identification of the foreground application.
The foreground perception removal mechanism of the Kernel can obtain the application identifications of all the application programs of the electronic equipment by accessing the configuration file. In one embodiment, the Kernel may obtain the application identifier corresponding to the currently running application program through a foreground perception removal mechanism.
And sixthly, the Kernel accesses the configuration file of the foreground application through a foreground perception removal mechanism and acquires the application identifier of the foreground application from the configuration file.
The foreground perception removing mechanism can dynamically obtain the application identifier of the foreground application, identify the foreground memory page of the foreground application through the application identifier, and then adjust the priority of the foreground memory page of the foreground application in the active linked list and the inactive linked list, so that the priority of the foreground application for using the memory is improved.
FIG. 5 is a diagram illustrating adjusting the priority of memory pages according to an embodiment. The electronic equipment adjusts the priority of the memory pages through the active linked list and the inactive linked list. The priority of the active linked list is higher than the priority of the inactive linked list. When the memory page identifier corresponds to the application identifier of the foreground application, it indicates that the memory page corresponding to the memory page identifier is a foreground memory page. When the memory page identifier corresponds to the application identifier of the background application, the memory page corresponding to the memory page identifier is a background memory page.
When a memory page in an active linked list or a non-active linked list is accessed, the electronic device may determine whether the accessed memory page is a foreground memory page or a background memory page.
And when the accessed memory pages are background memory pages and the background memory pages are in the active linked list, the electronic equipment moves the background memory pages to the inactive linked list. And when the accessed memory pages are background memory pages and the background memory pages are in the inactive linked list, keeping the background memory pages in the inactive linked list.
And under the condition that the accessed memory pages are foreground memory pages and the foreground memory pages are in the inactive linked list, the electronic equipment moves the foreground memory pages to the active linked list. And under the condition that the accessed memory page is a foreground memory page and the foreground memory page is in the active linked list, the electronic equipment keeps the foreground memory page in the active linked list.
And when the memory page is a clean memory page, the electronic equipment recovers the clean memory page through a recovery process. And when the memory pages are dirty memory pages, writing the dirty memory pages back to the head of the inactive linked list from the tail of the inactive linked list.
Through the memory processing of the implementation, the memory allocation and recovery priority of foreground application and background application and the probability of the memory pages of the foreground application and the background application being recovered in the system are adjusted, the demand of the background application on the memory can be reduced, the memory response of the foreground application is promoted, and the user experience of the foreground application is promoted.
In one embodiment, a memory processing method is provided, including:
the electronic device downloads the application program or updates the installed application program.
When installing an application, the electronic device configures an application identification for the installed application.
And then, the electronic equipment configures the memory page identifier corresponding to the application identifier for the updated memory page of the application program.
When the foreground application is changed, the electronic device obtains a memory page identifier set corresponding to the currently running application program.
Then, the electronic device determines a foreground application and a background application in the currently running application program, and obtains a first application identifier of the foreground application and a second application identifier of the background application.
Further, the electronic device determines, from the memory page identifier set, a foreground memory page identifier that matches the first application identifier.
Then, the electronic device determines the linked list where the foreground memory page corresponding to the foreground memory page identifier is located.
Optionally, the electronic device moves the foreground memory page to the active linked list under the condition that the foreground memory page is in the inactive linked list; under the condition that the foreground memory page is in the active linked list, the electronic equipment keeps the foreground memory page in the active linked list; the priority of the active linked list is higher than the priority of the inactive linked list.
Optionally, from the memory page identifier set, the electronic device determines a background memory page identifier matched with the second application identifier, and determines a linked list where the background memory page corresponding to the background memory page identifier is located.
And under the condition that the background memory pages are in the active linked list, the electronic equipment moves the background memory pages to the inactive linked list.
Optionally, in a case that the background memory pages are in the inactive linked list, the electronic device retains the background memory pages in the inactive linked list.
Further, the electronic device starts to recycle the memory page from the tail of the inactive linked list, and when the memory page is a clean memory page, the electronic device performs a recycling process on the clean memory page. And when the memory pages are dirty memory pages, writing the dirty memory pages back to the head of the inactive linked list from the tail of the inactive linked list.
In this embodiment, a unique application identifier is configured for each application program, and when the application program runs, a memory page identifier corresponding to the application identifier is applied to the memory page tag of the application program. When the foreground application is changed, the identification of the memory page corresponding to the currently running application program is recorded through the memory page identification set, so that the foreground memory page corresponding to the foreground application and the background memory page corresponding to the background application are accurately determined according to the corresponding relation between the application identification and the memory page identification.
The priority of the active linked list is higher than that of the inactive linked list, foreground memory pages are moved from the inactive linked list to the active linked list, and the foreground memory pages can be moved to a frequently-accessed queue. Under the condition that the foreground memory page is in the active linked list, the foreground memory page is kept in the active linked list so as to be kept in the frequently accessed queue, the priority of the foreground application for using the memory can be improved, the number of times of repeated loading errors of the foreground application page is reduced, and the starting speed of the foreground application can be accelerated.
For the background memory pages in the active linked list, the background memory pages are moved to the inactive linked list, but the background memory pages in the inactive linked list are not moved, so that the background memory pages can be all placed in the queue which is accessed infrequently, the priority of the background application for using the memory can be reduced, and the starting speed of the foreground application can be accelerated.
And the usable memory space can be increased by recycling the clean memory pages in the inactive linked list, so that the normal operation of the application program is ensured.
It should be understood that although the various steps in the flowcharts of fig. 2-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
Fig. 6 is a block diagram of a memory processing device according to an embodiment. As shown in fig. 6, the memory processing apparatus includes: an acquisition module 602, a determination module 604, and an adjustment module 606. Wherein the content of the first and second substances,
an obtaining module 602, configured to obtain a memory page identifier set corresponding to a currently running application.
The determining module 604 is configured to determine a foreground application and a background application in the currently running application.
An adjusting module 606, configured to obtain a foreground memory page identifier corresponding to a foreground application in the memory page identifier set, and adjust a priority of a foreground memory page corresponding to the foreground memory page identifier; the priority of the adjusted foreground memory page is higher than the priority of the background memory page of the background application.
In this embodiment, a memory page identifier set corresponding to a currently running application program is obtained, foreground applications and background applications in the currently running application program are determined, and the currently running application program can be divided into the foreground applications and the background applications. The foreground memory page identifiers corresponding to the foreground applications in the memory page identifier set are acquired, the memory pages of the foreground applications and the memory pages of the background applications can be distinguished, the priority of the foreground memory page corresponding to the foreground memory page identifiers is adjusted, the priority of the foreground memory page can be improved, and the adjusted priority of the foreground memory page is higher than the priority of the background memory page of the background applications. By improving the priority of the foreground memory page, the foreground application can obtain higher memory use priority, the foreground application delay is lower, and the response speed is higher.
In one embodiment, the adjustment module 606 is further configured to: acquiring foreground memory page identifiers corresponding to foreground applications in a memory page identifier set, and determining a linked list where foreground memory pages corresponding to the foreground memory page identifiers are located; under the condition that the foreground memory page is in the inactive linked list, moving the foreground memory page to the active linked list; the priority of the active linked list is higher than the priority of the inactive linked list.
In this embodiment, the priority of the active linked list is higher than that of the inactive linked list, the foreground memory page corresponding to the foreground application is placed in the active linked list, and the foreground memory page can be placed in the frequently-accessed queue, so that the priority of the foreground application for using the memory is improved, and the number of times of repeated loading errors of the foreground application page can be reduced. The page repeated loading error refers to a process of loading a page to a memory for the first time, releasing the memory space of the page after the page is not accessed for a period of time, and then generating page missing interruption again when the page is accessed again, so that related data needs to be read from the external memory to the memory again. The time difference between reading the external memory and directly reading the internal memory is very large, which results in the response delay of the application. In this embodiment, by increasing the priority of the foreground application using the memory, the number of times of repeated loading errors of the page of the foreground application is reduced, so that the starting speed of the foreground application can be increased.
In one embodiment, the adjustment module 606 is further configured to: and under the condition that the foreground memory page is in the active linked list, keeping the foreground memory page in the active linked list.
In this embodiment, under the condition that the foreground memory page is in the active linked list, the foreground memory page is kept in the active linked list to keep the foreground memory page in the frequently-accessed queue, so that the priority of using the memory by the foreground application can be improved, the memory response of the foreground application is improved, and the user experience of the foreground application is improved.
In one embodiment, the adjustment module 606 is further configured to: acquiring background memory page identifications corresponding to background applications in a memory page identification set, and adjusting the priority of the background memory pages corresponding to the background memory page identifications; the priority of the adjusted foreground memory page is higher than the priority of the adjusted background memory page.
In this embodiment, by obtaining the background memory page identifier corresponding to the background application in the memory page identifier set, the background application can quickly and accurately find the background memory page being used by the background application through the background memory page identifier. The priority of the background memory page corresponding to the background memory page identifier is adjusted, so that the priority of the adjusted foreground memory page is higher than that of the adjusted background memory page, the priority of the foreground memory page is improved, foreground application obtains higher memory use priority, background application obtains lower memory use priority, the requirement of the background application on the memory can be reduced, and the memory response of the foreground application is promoted.
In one embodiment, the adjustment module 606 is further configured to: acquiring background memory page identifiers corresponding to background applications in a memory page identifier set, and determining a linked list where the background memory pages corresponding to the background memory page identifiers are located; under the condition that the background memory pages are in the active linked list, the background memory pages are moved to the inactive linked list; the priority of the active linked list is higher than the priority of the inactive linked list.
In this embodiment, the priority of the active linked list is higher than the priority of the inactive linked list. For background memory pages in the active linked list, the background memory pages are moved to the inactive linked list, and the background memory pages can be moved to the queue which is accessed infrequently, so that the priority of using the memory by background application is reduced, and the starting speed of foreground application can be accelerated.
In one embodiment, the adjustment module 606 is further configured to: and under the condition that the background memory pages are in the inactive linked list, keeping the background memory pages in the inactive linked list.
In this embodiment, under the condition that the background memory page is in the inactive linked list, the background memory page is retained in the inactive linked list, so as to retain the background memory page in the queue that is accessed infrequently, thereby reducing the memory requirement of the background application, and providing more memories for the foreground application.
In one embodiment, the apparatus further comprises: and a recovery module. The recovery module is used for determining a clean memory page in the inactive linked list and recovering the clean memory page.
In this embodiment, by recovering the clean memory pages in the inactive linked list, the usable memory space can be increased, and the normal operation of the application program is ensured.
In one embodiment, the recycling module is further configured to determine a dirty memory page in the inactive linked list, and recycle the dirty memory page.
In an embodiment, the recycling module is further configured to determine a clean memory page and a dirty memory page in the inactive linked list, and perform recycling processing on the clean memory page and the dirty memory page in sequence based on that the priority of the clean memory page is higher than the priority of the dirty memory page.
In one embodiment, the adjustment module 606 is further configured to: acquiring a first application identifier of a foreground application and a second application identifier of a background application; determining a foreground memory page identifier matched with the first application identifier from the memory page identifier set; adjusting the priority of the foreground memory page corresponding to the foreground memory page identifier;
the adjustment module 606 is further configured to: determining a background memory page identifier matched with the second application identifier from the memory page identifier set; and adjusting the priority of the background memory page corresponding to the background memory page identification.
In this embodiment, the application identifier and the memory page identifier of the same application program have a corresponding relationship, and then the first application identifier of the foreground application and the second application identifier of the background application can be used to centrally find the matched foreground memory page identifier and background memory page identifier from the memory page identifiers, so as to perform priority adjustment on the foreground memory page corresponding to the foreground memory page identifier and the background memory page corresponding to the background memory page identifier, so as to improve the priority of the foreground memory page and reduce the priority of the background memory page, so that the foreground application obtains a higher priority for using the memory, and the starting speed of the foreground application is increased.
In one embodiment, the apparatus further comprises: and configuring the module. The configuration module is used for configuring an application identifier for the updated application program under the condition that the application program is updated; and configuring a memory page identifier corresponding to the application identifier for the updated memory page of the application program.
In this embodiment, when an application program is updated, an application identifier is configured for the updated application program, and a unique application identifier can be assigned to each application program. The memory page identification corresponding to the application identification is configured for the memory page of the updated application program, and the memory page corresponding to each application program can be accurately determined through the corresponding relation between the memory page identification and the application identification, so that the memory page corresponding to foreground application and the memory page corresponding to background application can be determined, the priority of the memory page corresponding to foreground application is improved, more memory space is obtained for the foreground application, and the memory use efficiency is improved.
The division of each module in the memory processing apparatus is only for illustration, and in other embodiments, the memory processing apparatus may be divided into different modules as needed to complete all or part of the functions of the memory processing apparatus.
For specific limitations of the memory processing apparatus, reference may be made to the above limitations of the memory processing method, which is not described herein again. The modules in the memory processing device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 7 is a schematic diagram of an internal structure of an electronic device in one embodiment. As shown in fig. 7, the electronic device includes a processor and a memory connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole electronic equipment. In this embodiment, the processor is configured to obtain a memory page identifier set corresponding to a currently running application program, and determine a foreground application and a background application in the currently running application program; the processor obtains foreground memory page identifiers corresponding to foreground applications in the memory page identifier set, and adjusts priorities of the foreground memory pages corresponding to the foreground memory page identifiers so that the adjusted priorities of the foreground memory pages are higher than the priorities of the background memory pages of the background applications. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. In this embodiment, the memory is configured to store a memory page identifier set corresponding to a currently running application program. The computer program can be executed by a processor to implement a memory processing method provided in the following embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium. The electronic device may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a Point of Sales (POS), a vehicle-mounted computer, and a wearable device.
The implementation of each module in the memory processing device provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on a terminal or a server. Program modules constituted by such computer programs may be stored on the memory of the electronic device. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media embodying computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the memory processing method.
A computer program product comprising instructions which, when run on a computer, cause the computer to perform a memory processing method.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (11)

1. A memory processing method, comprising:
acquiring a memory page identifier set corresponding to a currently running application program;
determining foreground application and background application in the currently running application program;
obtaining foreground memory page identifiers corresponding to the foreground applications in the memory page identifier set, and adjusting priorities of foreground memory pages corresponding to the foreground memory page identifiers; the priority of the adjusted foreground memory page is higher than that of the background memory page of the background application.
2. The method according to claim 1, wherein the obtaining a foreground memory page identifier corresponding to the foreground application in the memory page identifier set, and adjusting the priority of a foreground memory page corresponding to the foreground memory page identifier comprises:
obtaining foreground memory page identifiers corresponding to the foreground applications in the memory page identifier sets, and determining a linked list where foreground memory pages corresponding to the foreground memory page identifiers are located;
under the condition that the foreground memory page is in the inactive linked list, moving the foreground memory page to the active linked list; the priority of the active linked list is higher than the priority of the inactive linked list.
3. The method of claim 1, further comprising:
obtaining a background memory page identifier corresponding to the background application in the memory page identifier set, and adjusting the priority of a background memory page corresponding to the background memory page identifier; the priority of the adjusted foreground memory page is higher than the priority of the adjusted background memory page.
4. The method according to claim 3, wherein the obtaining the background memory page identifier corresponding to the background application in the memory page identifier set and adjusting the priority of the background memory page corresponding to the background memory page identifier includes:
obtaining a background memory page identifier corresponding to the background application in the memory page identifier set, and determining a linked list where a background memory page corresponding to the background memory page identifier is located;
under the condition that the background memory page is in the active linked list, moving the background memory page to the inactive linked list; the priority of the active linked list is higher than the priority of the inactive linked list.
5. The method of claim 4, further comprising:
and under the condition that the background memory page is in the inactive linked list, keeping the background memory page in the inactive linked list.
6. The method of claim 4, further comprising:
and determining a clean memory page in the inactive linked list, and recovering the clean memory page.
7. The method according to claim 3, wherein the obtaining a foreground memory page identifier corresponding to the foreground application in the memory page identifier set and adjusting the priority of a foreground memory page corresponding to the foreground memory page identifier comprises:
acquiring a first application identifier of the foreground application and a second application identifier of the background application;
determining a foreground memory page identifier matched with the first application identifier from the memory page identifier set;
adjusting the priority of the foreground memory page corresponding to the foreground memory page identifier;
obtaining a background memory page identifier corresponding to the background application in the memory page identifier set, and adjusting the priority of the background memory page corresponding to the background memory page identifier, including:
determining a background memory page identifier matched with the second application identifier from the memory page identifier set;
and adjusting the priority of the background memory page corresponding to the background memory page identifier.
8. The method according to any one of claims 1 to 7, further comprising:
under the condition that the application program is updated, configuring an application identifier for the updated application program;
and configuring a memory page identifier corresponding to the application identifier for the updated memory page of the application program.
9. A memory processing apparatus, comprising:
the acquisition module is used for acquiring a memory page identifier set corresponding to a currently running application program;
the determining module is used for determining foreground application and background application in the currently running application program;
an adjustment module, configured to obtain a foreground memory page identifier corresponding to the foreground application in the memory page identifier set, and adjust a priority of a foreground memory page corresponding to the foreground memory page identifier; the priority of the adjusted foreground memory page is higher than that of the background memory page of the background application.
10. An electronic device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 8.
CN202110293624.7A 2021-03-19 2021-03-19 Memory processing method and device, electronic equipment and computer readable storage medium Pending CN113010228A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110293624.7A CN113010228A (en) 2021-03-19 2021-03-19 Memory processing method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110293624.7A CN113010228A (en) 2021-03-19 2021-03-19 Memory processing method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113010228A true CN113010228A (en) 2021-06-22

Family

ID=76402783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110293624.7A Pending CN113010228A (en) 2021-03-19 2021-03-19 Memory processing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113010228A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150160976A1 (en) * 2013-12-06 2015-06-11 Samsung Electronics Co., Ltd. Multitasking method and electronic device therefor
CN109684090A (en) * 2018-12-19 2019-04-26 三星电子(中国)研发中心 A kind of resource allocation methods and device
CN111352863A (en) * 2020-03-10 2020-06-30 腾讯科技(深圳)有限公司 Memory management method, device, equipment and storage medium
CN111984413A (en) * 2020-08-20 2020-11-24 Oppo(重庆)智能科技有限公司 Memory recovery method and device, electronic equipment and storage medium
CN112256997A (en) * 2020-11-11 2021-01-22 Oppo广东移动通信有限公司 Page management method, page management device, storage medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150160976A1 (en) * 2013-12-06 2015-06-11 Samsung Electronics Co., Ltd. Multitasking method and electronic device therefor
CN109684090A (en) * 2018-12-19 2019-04-26 三星电子(中国)研发中心 A kind of resource allocation methods and device
CN111352863A (en) * 2020-03-10 2020-06-30 腾讯科技(深圳)有限公司 Memory management method, device, equipment and storage medium
CN111984413A (en) * 2020-08-20 2020-11-24 Oppo(重庆)智能科技有限公司 Memory recovery method and device, electronic equipment and storage medium
CN112256997A (en) * 2020-11-11 2021-01-22 Oppo广东移动通信有限公司 Page management method, page management device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN108958844B (en) Application program control method and terminal
CN111651178A (en) Container configuration updating method and device, computer equipment and storage medium
US11086638B2 (en) Method and apparatus for loading application
CN108763572B (en) Method and device for realizing Apache Solr read-write separation
CN109992523B (en) Memory processing method and device, electronic equipment and computer readable storage medium
CN104951340A (en) Information processing method and device
CN110489138B (en) Application updating method, device and storage medium
CN109992402B (en) Memory processing method and device, electronic equipment and computer readable storage medium
CN111324303A (en) SSD garbage recycling method and device, computer equipment and storage medium
CN111488323A (en) Data processing method and device and electronic equipment
US11593003B2 (en) Method and systems for recommending storage management actions based on capacities of storage systems
CN106484691B (en) data storage method and device of mobile terminal
CN113010228A (en) Memory processing method and device, electronic equipment and computer readable storage medium
CN110866201A (en) Cache processing method and device, computer equipment and storage medium
WO2007056364A1 (en) Apparatus and associated methods for reducing application startup latency
CN116302376A (en) Process creation method, process creation device, electronic equipment and computer readable medium
CN102455919A (en) Automatic optimization setting method for basic input output system(BIOS)
CN112650513B (en) Program upgrading method, device, computer equipment and storage medium
CN112632080B (en) Data storage method, device and equipment based on block chain
CN102202129B (en) Method for loading mobile phone operating system
CN109144399B (en) Data storage method and device and electronic equipment
CN111562983A (en) Memory optimization method and device, electronic equipment and storage medium
CN109840156B (en) Data caching method and equipment, storage medium and terminal thereof
CN113641449B (en) Mirror image downloading control method and device, equipment and storage medium
US11960721B2 (en) Dynamic storage in key value solid state drive

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