[go: up one dir, main page]

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

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

Info

Publication number
CN113010228B
CN113010228B CN202110293624.7A CN202110293624A CN113010228B CN 113010228 B CN113010228 B CN 113010228B CN 202110293624 A CN202110293624 A CN 202110293624A CN 113010228 B CN113010228 B CN 113010228B
Authority
CN
China
Prior art keywords
memory page
application
foreground
memory
background
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.)
Active
Application number
CN202110293624.7A
Other languages
Chinese (zh)
Other versions
CN113010228A (en
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/CN113010228B/en
Publication of CN113010228A publication Critical patent/CN113010228A/en
Application granted granted Critical
Publication of CN113010228B publication Critical patent/CN113010228B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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, electronic equipment 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 a foreground application and a 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 that of the background memory page of the background application. By adopting the method, the response speed of the foreground application can be improved.

Description

Memory processing method, memory processing 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, a memory processing device, 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 being compatible with 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 can preempt memory use with the application process running in the foreground, so that the response speed of the foreground application is slow.
Disclosure of Invention
The embodiment of the application provides a memory processing method, a memory processing device, electronic equipment and a computer readable storage medium, which can improve the response speed of foreground application.
A memory processing method, comprising:
Acquiring a memory page identification set corresponding to a currently running application program;
determining a foreground application and a background application in the currently running application program;
acquiring a foreground memory page identifier corresponding to the foreground application in the memory page identifier set, and adjusting the priority of the foreground memory page corresponding to the foreground memory page identifier; the adjusted priority of the foreground memory page is higher than the priority 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 identification set corresponding to the currently running application program;
The determining module is used for determining a foreground application and a background application in the currently running application program;
The adjustment module is used for acquiring a foreground memory page identifier corresponding to the foreground application in the memory page identifier set and adjusting the priority of the foreground memory page corresponding to the foreground memory page identifier; the adjusted priority of the foreground memory page is higher than the priority of the background memory page of the background application.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
Acquiring a memory page identification set corresponding to a currently running application program;
determining a foreground application and a background application in the currently running application program;
acquiring a foreground memory page identifier corresponding to the foreground application in the memory page identifier set, and adjusting the priority of the foreground memory page corresponding to the foreground memory page identifier; the adjusted priority of the foreground memory page is higher than the priority of the background memory page of the background application.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
Acquiring a memory page identification set corresponding to a currently running application program;
determining a foreground application and a background application in the currently running application program;
acquiring a foreground memory page identifier corresponding to the foreground application in the memory page identifier set, and adjusting the priority of the foreground memory page corresponding to the foreground memory page identifier; the adjusted priority of the foreground memory page is higher than the priority 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 identification set corresponding to the currently running application program is obtained, the foreground application and the 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 method comprises the steps that foreground memory page identifiers corresponding to foreground applications in a memory page identifier set are obtained, the memory pages of the foreground applications and the memory pages of the background applications can be distinguished, the priority of the foreground memory pages corresponding to the foreground memory page identifiers is adjusted, the priority of the foreground memory pages can be improved, and the adjusted priority of the foreground memory pages is higher than that of the background memory pages of the background applications. By improving the priority of the foreground memory page, the foreground application can obtain higher memory use priority, and the foreground application has lower delay and higher response speed.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a diagram of an application environment of a memory processing method in one embodiment;
FIG. 2 is a flow chart of a memory processing method in one embodiment;
FIG. 3 is a flowchart of acquiring a foreground memory page identifier corresponding to a foreground application in a memory page identifier set, and adjusting a priority of a foreground memory page corresponding to the foreground memory page identifier in one embodiment;
FIG. 4 is a schematic diagram of a memory processing method according to an embodiment;
FIG. 5 is a diagram illustrating a method for adjusting the priority of memory pages according to one embodiment;
FIG. 6 is a block diagram illustrating an embodiment of a memory processing device;
Fig. 7 is a block diagram of a portion of the structure of an electronic device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
It will be understood that the terms first, second, etc. as used herein may be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element. 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 application. The first application identity and the second application identity are both application identities, but they are not the same application identity.
The memory processing method provided by the application can be applied to an application environment shown in figure 1. Wherein the electronic device 102 communicates with the server 104 via a network. In one embodiment, the electronic device 102 may independently perform the memory processing method provided in the embodiment of the present application. The electronic device 102 and the server 104 may also cooperate to perform the memory processing methods provided in embodiments of the present application. When the electronic device 102 and the server 104 cooperate to execute the memory processing method provided in the embodiment of the present application, the server 104 stores the set of memory page identifiers corresponding to the currently running application program. The electronic device 102 may obtain, from the server 104, a set of memory page identifiers corresponding to the currently running application, where the electronic device 102 determines a foreground application and a background application in the currently running application. The electronic device 102 may obtain a foreground memory page identifier corresponding to the foreground application in the memory page identifier set, and adjust a priority of the 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. The electronic device 102 may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers, portable wearable devices, and televisions, and the server 104 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers.
FIG. 2 is a flow chart 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, obtaining a memory page identifier set corresponding to a currently running application program.
The currently running application program refers to an application program in a current running state, and specifically may include at least one of a foreground application and a background application. The memory page identification set is used for storing the identification corresponding to the memory page. The foreground application refers to an application in which a user is operating on the electronic device, and the background application refers to an application which is not operated by the user but is also running in the background of the electronic device.
Specifically, the electronic device may obtain the currently running application program, and obtain the set of memory page identifiers corresponding to the currently running application program. The memory page identification set is used for recording the identification of the memory page corresponding to the currently running application program.
In one embodiment, the set of memory page identifiers is used to record the identity of memory pages used by the currently running application.
In one embodiment, under the condition that the foreground application is changed, the electronic device may acquire the currently running application program, and acquire a memory page identifier set corresponding to the currently running application program.
Step 204, determining a foreground application and a background application in the currently running application program.
Specifically, the electronic device may determine a foreground application and a background application that are currently running from the 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 operation task list in a preset duration, and a foreground application and a background application in the currently operated application program are determined through the operation task list. The electronic equipment can acquire a group of lists of recently operated tasks, the recently used applications are ordered in time, the most recently used applications are arranged at the forefront, namely the forefront applications, and the rest applications are background applications.
In one embodiment, the electronic device may obtain an application process information list running on itself, and determine a foreground application and a background application in the currently running application program according to the application process information list. When the process contains background running codes, judging that the application program corresponding to the process is background application. When a certain process in the application process information list is in a display state of the forefront interface, judging that an application program corresponding to the process is a foreground application.
For example, when the foreground application is switched from the application program a to the application program B, and the application program a enters the background to continue to run, the application program a and the application program B serve as the currently running application programs, and the application program B serves as the foreground application, and the application program a serves as the background application.
Step 206, obtaining a foreground memory page identifier corresponding to the foreground application in the memory page identifier set, and adjusting the priority of the 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.
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 a background application.
Specifically, the priority refers to a priority of memory usage. The electronic device may obtain a foreground memory page identifier corresponding to the foreground application from the set of memory page identifiers. 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 improve the priority of the foreground memory page, so that the adjusted priority of the foreground memory page is higher than a priority of a background memory page of a background application.
In one embodiment, the electronic device may further obtain a background memory page identifier corresponding to the background application from the memory page identifier set. The background memory page identifier refers to the identifier of the memory page corresponding to the background application. The electronic device can determine the background memory page corresponding to the background memory page identifier, and the electronic device can adjust the priority of the foreground memory page to improve 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, and a foreground application and a background application in the currently running application program are determined, so that the currently running application program can be divided into a foreground application and a background application. The method comprises the steps that foreground memory page identifiers corresponding to foreground applications in a memory page identifier set are obtained, the memory pages of the foreground applications and the memory pages of the background applications can be distinguished, the priority of the foreground memory pages corresponding to the foreground memory page identifiers is adjusted, the priority of the foreground memory pages can be improved, and the adjusted priority of the foreground memory pages is higher than that of the background memory pages of the background applications. By improving the priority of the foreground memory page, the foreground application can obtain higher memory use priority, and the foreground application has lower delay and higher response speed.
In one embodiment, obtaining a foreground memory page identifier corresponding to a foreground application in a memory page identifier set, and adjusting a priority of a foreground memory page corresponding to the foreground memory page identifier, includes:
acquiring a foreground memory page identifier corresponding to a foreground application in a memory page identifier set, and determining a linked list where a foreground memory page corresponding to the foreground memory page identifier is located; under the condition that the foreground memory page is in the inactive linked list, the foreground memory page is moved 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 frequently accessed memory pages 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 frequently used.
Specifically, the electronic device obtains a foreground memory page identifier corresponding to a foreground application from the memory page identifier set. The electronic equipment 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. Active linked lists use memory with a higher priority than inactive linked lists.
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 accessed frequently, the electronic device moves the foreground memory page to the active linked list, thereby moving the foreground memory page to the queue which is accessed frequently.
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 list is an LRU (LEAST RECENTLY Used ) list, which is divided into an active list and an inactive list. The active link list is denoted as active link list and the inactive link list is denoted as inactive link list.
In this embodiment, the priority of the active linked list is higher than that of the inactive linked list, and the foreground memory page corresponding to the foreground application is placed in the active linked list, so that the foreground memory page can be placed in the frequently accessed queue, thereby improving the priority of the foreground application in using the memory, and reducing the number of times of repeated loading errors of the page of the foreground application. The page repeated loading error (Foreground Aware Eviction Scheme, abbreviated as FAE) refers to a process of loading a page to a memory for the first time, releasing the memory space of the page after a period of non-access, and then generating a page missing interrupt 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 can lead to response delay of the application. In this embodiment, by increasing the priority of using the memory by the foreground application, the number of page repeated loading errors 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, the foreground memory page is reserved in the active linked list.
Specifically, the electronic device obtains each foreground memory page identifier corresponding to the foreground application from the memory page identifier set. Aiming at each foreground memory page identifier, the electronic equipment determines the 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 pages are in the active linked list or not according to 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 keep the foreground memory page in the active linked list.
In this embodiment, when the foreground memory page is in the active linked list, the foreground memory page is kept in the active linked list, so that the foreground memory page is kept in the frequently accessed queue, and the priority of the foreground application for using the memory can be improved, so that 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: obtaining a background memory page identifier corresponding to a background application in a memory page identifier set, and adjusting the priority of the 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.
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.
And the electronic equipment can also acquire the background memory page identifier corresponding to the background application from the memory page identifier set. The electronic device can determine the background memory page corresponding to the background memory page identifier, and the electronic device can 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. And under the condition that the priority of the foreground memory page is lower than that of the background memory page, adjusting the priority of the foreground memory page 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, in the case that 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 reduce 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, in the case that the priority of the foreground memory page is lower than the priority of the background memory page, the electronic device may adjust the priorities of the foreground memory page and the background memory page at the same time, so as 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, the background memory page identifier corresponding to the background application in the memory page identifier set is obtained, so that the background memory page being used by the background application can be quickly and accurately searched through the background memory page identifier. The priority of the background memory page corresponding to the background memory page identification is adjusted, so that the priority of the adjusted foreground memory page is higher than the priority of the adjusted background memory page, and by improving the priority of the foreground memory page, the foreground application obtains higher memory use priority, the 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 improved.
In one embodiment, obtaining a background memory page identifier corresponding to a background application in a memory page identifier set, and adjusting a priority of a background memory page corresponding to the background memory page identifier, including:
Obtaining a background memory page identifier corresponding to a background application in a 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, the background memory page is 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 a background application from the memory page identifier set. The electronic equipment determines a background memory page corresponding to the background memory page identifier, and determines a linked list in which the background memory page is located. The linked list includes an active linked list and an inactive linked list. Active linked lists use memory with a higher priority than inactive linked lists.
When the background memory page is in the active linked list, the electronic device moves the background memory page to the active linked list, so that the background memory page is moved to the queue which is not accessed frequently. And carrying out the same processing on each background memory page so as 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 the 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 not frequently accessed, so that the priority of the background application for using the memory is reduced, and the starting speed of the 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, the background memory pages are reserved in the inactive linked list.
Specifically, the electronic device obtains each background memory page identifier corresponding to the background application from the memory page identifier set. And aiming at each background memory page identifier, the electronic equipment determines the background memory page corresponding to the background memory page identifier to obtain each background memory page. And aiming at each background memory page, the electronic equipment determines a linked list in which the background memory page is positioned. And judging whether the background memory pages are in the inactive linked list or not according to each background memory page. And moving the background memory page under the condition that the background memory page is in the inactive linked list so as to keep the background memory page in the active linked list.
In this embodiment, when the background memory page is in the inactive linked list, the background memory page is kept in the inactive linked list, so that the background memory page is kept in the queue which is not frequently accessed, thereby reducing the memory requirement of the background application and providing more memory 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 reclamation process on the clean memory page through a reclamation process. The clean memory pages in the inactive linked list are reclaimed, for example, by kswapd processes.
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 can be ensured.
In one embodiment, the method further comprises: and determining a dirty memory page in the inactive linked list, and recycling the dirty memory page.
The dirty memory page refers to a modified memory page in the memory space, and the dirty memory page may be one or more memory pages.
Specifically, the electronic device may determine a dirty memory page in the inactive linked list, and store and reclaim the dirty memory page through a reclamation process. For example, the dirty memory pages are stored and reclaimed by 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 recycling the clean memory page and the dirty memory page in sequence based on the priority of the clean memory page being higher than that of the dirty memory page.
Specifically, the electronic device may directly recycle the clean memory page, and before recycling the dirty memory page, the electronic device may further need to store the clean memory page, which is longer than the processing time of the clean memory page. In this embodiment, the clean memory pages are preferentially recovered, so that the memory recovery efficiency can be improved.
In one embodiment, as shown in fig. 3, obtaining a foreground memory page identifier corresponding to a foreground application in a 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 where the currently running application program is divided into a foreground application and a background application, the application identification of the application program is divided into a first application identification and a second application identification, 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, a foreground application and a background application in the currently running application may 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, through a kernel, a configuration file of a foreground application, and obtain, from the configuration file of the foreground application, a first application identifier of the foreground application. The electronic equipment can acquire the configuration file of the background application through the kernel, and acquire the second application identifier of the background application from the configuration file of the background application.
Step 304, determining a foreground memory page identifier matched with 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. And the electronic equipment judges the memory page identifier 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 each foreground memory page identifier corresponds to a foreground memory page, so as 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, the electronic device determines the priority of each foreground memory page and the priority of each background memory page after determining the respective foreground memory page. And screening out foreground memory pages with priority lower than that of the background memory pages, and improving the priority of the screened foreground memory pages so that the priority of each foreground memory page is higher than that of the background memory pages.
Obtaining a background memory page identifier corresponding to a background application in a memory page identifier set, and adjusting the priority of the background memory page corresponding to the background memory page identifier, including:
Step 308, determining a 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, so as to determine a memory page identifier matched with the second application identifier. And the electronic equipment judges the memory page identifier matched with the second application identifier in the memory page identifier set as a background memory page identifier. According to the same processing manner, the electronic device can screen out each background memory page identifier matched with the second application identifier from the memory page identifier set.
In step 310, the priority of the background memory page corresponding to the background memory page identifier is adjusted.
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, the electronic device determines a priority of each foreground memory page and a priority of each background memory page after determining each background memory page. And screening out background memory pages with higher priority than the 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 the priority of the background memory page.
It will be appreciated that the order of execution of steps 304-306 and steps 308-310 is not limited, and the electronic device may execute steps 304-306 first and then 308-310, may execute steps 308-310 first and then 304-306, or may execute the operations of steps 304-306 and steps 308-310 simultaneously.
In this embodiment, if the application identifier and the memory page identifier of the same application program have a corresponding relationship, the foreground memory page identifier and the background memory page identifier that are matched can be found from the memory page identifier set by the first application identifier of the foreground application and the second application identifier of the background application, so that priority adjustment is performed on the foreground memory page corresponding to the foreground memory page identifier and the background memory page corresponding to the background memory page identifier respectively, so as to improve the priority of the foreground memory page, reduce the priority of the background memory page, enable the foreground application to obtain a higher memory use priority, and improve the starting speed of the foreground application.
In one embodiment, the method further comprises: in the case that the application program has an update, 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 refers to a unique identifier configured by the electronic device for its own application program, for example, if the electronic device installs an application program a, an application program B and an application program C, 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 is identified as A, the memory page corresponding to the application A is identified as A-1, and multiple memory pages of the application A may use the same memory page identifier, or may use different memory page identifiers, such as A-1, A-2, A-3, etc.
In particular, in the event that an update exists for its own application, the electronic device may determine that an updated application exists. Application presence updates refer to the downloading of a new application or the updating of a version of an original application in an electronic device. The electronic device may configure the application for which the update exists to assign a unique application identification to the application. The electronic device may determine a memory page corresponding to the updated application, configure a memory page identifier for the memory page corresponding to the updated application, where the configured memory page identifier has a correspondence with an application identifier of the updated application.
In one embodiment, when an updated application is run, the electronic device determines a memory page used by the updated application, 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 identifier for an updated application when the updated application is installed.
In one embodiment, the application identification and the memory page identification of the same application may be the same. The electronic device may identify an application of the application program to which the memory page belongs, where the application identifier is used as a memory page identifier 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 allocated to each application program. And configuring the memory page identifiers corresponding to the application identifiers for the memory pages of the updated application programs, and accurately determining the memory pages corresponding to the application programs through the corresponding relation between the memory page identifiers and the application identifiers, so that the memory pages corresponding to the foreground application and the memory pages of the background application can be determined, the priority of the memory pages corresponding to the 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 of a memory processing method according to one embodiment. A foreground aware removal mechanism (Foreground Aware Eviction Scheme, abbreviated as FAE) is provided in the electronic device.
① The electronic equipment downloads the application program or carries out version update on the application program installed in the electronic equipment;
② When the electronic equipment installs the application program, the electronic equipment updates a configuration file of the application program through a system framework, and the configuration file records the allocated application identification. The application identifier may be stored in a Page Table Entry (PTE) and corresponds to the application package name. When the application program runs, the application identifier of the application program to which the mark belongs in the memory page is used as the memory page identifier of the memory page. In one embodiment, the electronic device uses an android operating system on which applications run.
③ ④ Is executed when a foreground application of the electronic device changes.
④ The system framework determines a foreground application currently running and transmits an application identifier of the foreground application.
⑤ The Kernel foreground aware removal mechanism may obtain application identifiers of all application programs of the electronic device by accessing the configuration file. In one embodiment, the Kernel may obtain an application identifier corresponding to a currently running application program through a foreground aware removal mechanism.
⑥ The Kernel accesses the configuration file of the foreground application through the foreground perception removal mechanism, and obtains the application identification of the foreground application from the configuration file.
The foreground perception removing mechanism can dynamically obtain an application identifier of a foreground application, identify a foreground memory page of the foreground application through the application identifier, and then adjust priorities of the foreground memory page of the foreground application in an active linked list and an inactive linked list, so that the priority of the foreground application using the memory is improved.
FIG. 5 is a schematic diagram illustrating the adjustment of the priority of memory pages according to one embodiment. The electronic device 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, the memory page corresponding to the memory page identifier is indicated to be the foreground memory page. And when the memory page identifier corresponds to the application identifier of the background application, the memory page corresponding to the memory page identifier is indicated to be the background memory page.
When a memory page in the active linked list or inactive 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 under the condition that the accessed memory page is a background memory page and the background memory page is in the active linked list, the electronic equipment moves the background memory page to the inactive linked list. And when the accessed memory page is a background memory page and the background memory page is in the inactive linked list, the background memory page is reserved in the inactive linked list.
And under the condition that the accessed memory page is a foreground memory page and the foreground memory page is in the inactive linked list, the electronic equipment moves the foreground memory page 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 the electronic equipment recovers the memory page from the tail part of the inactive linked list, and when the memory page is a clean memory page, the electronic equipment recovers the clean memory page through a recovery process. When the memory page is a dirty memory page, the dirty memory page is written 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 recovery priority of the foreground application and the background application is adjusted, the probability that the memory pages of the foreground application and the background application are recovered in the system can be reduced, the memory requirement of the background application for the memory can be reduced, and the memory response of the foreground application can be improved, so that the user experience of the foreground application can be improved.
In one embodiment, a memory processing method is provided, including:
The electronic device downloads the application or updates the installed application.
When an application is installed, the electronic device configures an application identifier for the installed application.
Then, the electronic device configures a 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 equipment acquires a memory page identification set corresponding to the currently running application program.
Then, the electronic equipment determines a foreground application and a background application in the currently running application program, and acquires a first application identifier of the foreground application and a second application identifier of the background application.
Further, the electronic device determines a foreground memory page identifier that matches the first application identifier from the set of memory page identifiers.
Then, the electronic device determines a linked list in which 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 if 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 a background memory page corresponding to the background memory page identifier is located.
And under the condition that the background memory page is in the active linked list, the electronic equipment moves the background memory page to the inactive linked list.
Optionally, in a case where the background memory page is in the inactive linked list, the electronic device retains the background memory page in the inactive linked list.
Further, the electronic device retrieves the memory page from the tail of the inactive linked list, and when the memory page is a clean memory page, the electronic device retrieves the clean memory page through a retrieval process. When the memory page is a dirty memory page, the dirty memory page is written 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 memory page identifier of the application program is applied. 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, and the foreground memory pages can be moved from the inactive linked list to the active linked list, so that 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 reserved in the active linked list so as to be reserved 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 page of the foreground application is reduced, and therefore the starting speed of the foreground application can be increased.
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 completely placed in a queue which is not frequently accessed, the priority of using the memory by the background application can be reduced, and the starting speed of the foreground application can be accelerated.
And by recycling 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.
It should be understood that, although the steps in the flowcharts of fig. 2-3 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-3 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur in sequence, but may be performed alternately or alternately with at least a portion of the other steps or sub-steps 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 device includes: an acquisition module 602, a determination module 604, and an adjustment module 606. Wherein,
The obtaining module 602 is configured to obtain a set of memory page identifiers corresponding to a currently running application program.
A determining module 604, configured to determine a foreground application and a background application in the currently running application program.
The adjustment module 606 is 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 that 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, and a foreground application and a background application in the currently running application program are determined, so that the currently running application program can be divided into a foreground application and a background application. The method comprises the steps that foreground memory page identifiers corresponding to foreground applications in a memory page identifier set are obtained, the memory pages of the foreground applications and the memory pages of the background applications can be distinguished, the priority of the foreground memory pages corresponding to the foreground memory page identifiers is adjusted, the priority of the foreground memory pages can be improved, and the adjusted priority of the foreground memory pages is higher than that of the background memory pages of the background applications. By improving the priority of the foreground memory page, the foreground application can obtain higher memory use priority, and the foreground application has lower delay and higher response speed.
In one embodiment, the adjustment module 606 is further configured to: acquiring a foreground memory page identifier corresponding to a foreground application in a memory page identifier set, and determining a linked list where a foreground memory page corresponding to the foreground memory page identifier is located; under the condition that the foreground memory page is in the inactive linked list, the foreground memory page is moved 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, and the foreground memory page corresponding to the foreground application is placed in the active linked list, so that the foreground memory page can be placed in the frequently accessed queue, thereby improving the priority of the foreground application in using the memory, and reducing the number of times of repeated loading errors of the page of the foreground application. 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 not accessing the page for a period of time, and then generating page missing interruption again when accessing the page again, and reading 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 can lead to response delay of the application. In this embodiment, by increasing the priority of using the memory by the foreground application, the number of page repeated loading errors 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, the foreground memory page is reserved in the active linked list.
In this embodiment, when the foreground memory page is in the active linked list, the foreground memory page is kept in the active linked list, so that the foreground memory page is kept in the frequently accessed queue, and the priority of the foreground application for using the memory can be improved, so that 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: obtaining a background memory page identifier corresponding to a background application in a memory page identifier set, and adjusting the priority of the 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.
In this embodiment, the background memory page identifier corresponding to the background application in the memory page identifier set is obtained, so that the background memory page being used by the background application can be quickly and accurately searched through the background memory page identifier. The priority of the background memory page corresponding to the background memory page identification is adjusted, so that the priority of the adjusted foreground memory page is higher than the priority of the adjusted background memory page, and by improving the priority of the foreground memory page, the foreground application obtains higher memory use priority, the 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 improved.
In one embodiment, the adjustment module 606 is further configured to: obtaining a background memory page identifier corresponding to a background application in a 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, the background memory page is 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 the 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 not frequently accessed, so that the priority of the background application for using the memory is reduced, and the starting speed of the 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, the background memory pages are reserved in the inactive linked list.
In this embodiment, when the background memory page is in the inactive linked list, the background memory page is kept in the inactive linked list, so that the background memory page is kept in the queue which is not frequently accessed, thereby reducing the memory requirement of the background application and providing more memory for the foreground application.
In one embodiment, the apparatus further comprises: and (5) a recovery module. The recovery module is used for determining clean memory pages in the inactive linked list and carrying out recovery processing on the clean memory pages.
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 can be ensured.
In one embodiment, the reclamation module is further configured to determine a dirty memory page in the inactive linked list and perform reclamation processing on the dirty memory page.
In one embodiment, the reclamation module is further configured to determine a clean memory page and a dirty memory page in the inactive linked list, and sequentially reclaim pairs of the clean memory page and the dirty memory page based on the priority of the clean memory page being 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 a 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 identifier.
In this embodiment, if the application identifier and the memory page identifier of the same application program have a corresponding relationship, the foreground memory page identifier and the background memory page identifier that are matched can be found from the memory page identifier set by the first application identifier of the foreground application and the second application identifier of the background application, so that priority adjustment is performed on the foreground memory page corresponding to the foreground memory page identifier and the background memory page corresponding to the background memory page identifier respectively, so as to improve the priority of the foreground memory page, reduce the priority of the background memory page, enable the foreground application to obtain a higher memory use priority, and improve the starting speed of the foreground application.
In one embodiment, the apparatus further comprises: and (5) configuring a module. The configuration module is used for configuring application identification 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 allocated to each application program. And configuring the memory page identifiers corresponding to the application identifiers for the memory pages of the updated application programs, and accurately determining the memory pages corresponding to the application programs through the corresponding relation between the memory page identifiers and the application identifiers, so that the memory pages corresponding to the foreground application and the memory pages of the background application can be determined, the priority of the memory pages corresponding to the foreground application is improved, more memory space is obtained for the foreground application, and the memory use efficiency is improved.
The above-mentioned division of each module in the memory processing device is only used for illustration, and in other embodiments, the memory processing device may be divided into different modules as needed to complete all or part of the functions of the memory processing device.
For specific limitations of the memory processing device, reference may be made to the above limitation of the memory processing method, and the description thereof will not be repeated here. Each module in the memory processing device may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above 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 configured to provide computing and control capabilities to support operation of the entire electronic device. In this embodiment, the processor is configured to obtain a set of memory page identifiers corresponding to a currently running application, where the processor determines a foreground application and a background application in the currently running application; the processor acquires a foreground memory page identifier corresponding to a foreground application in the memory page identifier set, and adjusts the priority of the foreground memory page corresponding to the foreground memory page identifier so that the priority of the adjusted foreground memory page is higher than the priority of a background memory page of a background application. 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 set of memory page identifiers corresponding to a currently running application. The computer program may be executed by a processor to implement a memory processing method provided in the following embodiments. The internal memory provides a cached operating environment for 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 POS (Point of Sales), a car-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 run on a terminal or a server. Program modules of the computer program may be stored in the memory of the electronic device. Which when executed by a processor, performs the steps of the method described in the embodiments of the application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform steps of a 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 in the present application may include non-volatile and/or volatile memory. The nonvolatile 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), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1. A memory processing method, comprising:
Acquiring a memory page identification set corresponding to a currently running application program;
determining a foreground application and a background application in the currently running application program;
Accessing a configuration file of the foreground application through a foreground perception removal mechanism, and acquiring a first application identifier of the foreground application from the configuration file of the foreground application;
Accessing the configuration file of the background application through the foreground perception removal mechanism, and acquiring a second application identifier of the background application from the configuration file of the background application;
Determining a foreground memory page identifier matched with the first application identifier from the memory page identifier set through the foreground perception removal mechanism, and determining a linked list where a foreground memory page corresponding to the foreground memory page identifier is located;
under the condition that the foreground memory page is in an inactive linked list, the foreground memory page is moved to the active linked list through the foreground perception removing mechanism; the memory use priority of the active linked list is higher than the memory use priority of the inactive linked list;
Determining a background memory page identifier matched with the second application identifier from the memory page identifier set through the foreground perception removal mechanism, and determining a linked list where a background memory page corresponding to the background memory page identifier is located;
when the background memory page is in the active linked list, the background memory page is moved to the inactive linked list through the foreground perception removing mechanism;
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 and the priority of the dirty memory page; the clean memory pages have a higher priority than the dirty memory pages.
2. The method according to claim 1, wherein the method further comprises:
and under the condition that the background memory page is in an inactive linked list, the background memory page is reserved in the inactive linked list.
3. The method of claim 1, wherein the set of memory page identifiers is used to record an identifier of a memory page corresponding to a currently running application.
4. A method according to any one of claims 1 to 3, further comprising:
In the case that the application program has an update, configuring an application identifier for the updated application program;
and configuring a memory page identifier corresponding to the application identifier for the memory page of the updated application program.
5. A memory processing apparatus, comprising:
The acquisition module is used for acquiring a memory page identification set corresponding to the currently running application program;
The determining module is used for determining a foreground application and a background application in the currently running application program;
The adjusting module is used for accessing the configuration file of the foreground application through a foreground perception removing mechanism and acquiring a first application identifier of the foreground application from the configuration file of the foreground application; accessing the configuration file of the background application through the foreground perception removal mechanism, and acquiring a second application identifier of the background application from the configuration file of the background application; determining a foreground memory page identifier matched with the first application identifier from the memory page identifier set, and determining a linked list where a foreground memory page corresponding to the foreground memory page identifier is located; moving the foreground memory page to an active linked list under the condition that the foreground memory page is in the inactive linked list; the memory use priority of the active linked list is higher than the memory use priority of the inactive linked list; determining a background memory page identifier matched with the second application identifier from the memory page identifier set, and determining a linked list where a background memory page corresponding to the background memory page identifier is located; moving the background memory page to the inactive linked list under the condition that the background memory page is in the active linked list;
The recovery module is used for determining a clean memory page and a dirty memory page in the inactive linked list, and sequentially carrying out recovery processing on the clean memory page and the dirty memory page based on the priority of the clean memory page and the priority of the dirty memory page; the clean memory pages have a higher priority than the dirty memory pages.
6. The apparatus of claim 5, wherein the adjustment module is further configured to retain the background memory page in the inactive linked list if the background memory page is in the inactive linked list.
7. The apparatus according to any one of claims 5 to 6, further comprising:
The configuration module is used for configuring application identification 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 memory page of the updated application program.
8. An electronic device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of the method of any of claims 1 to 4.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 4.
10. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the method of any of claims 1 to 4.
CN202110293624.7A 2021-03-19 2021-03-19 Memory processing method, memory processing device, electronic equipment and computer readable storage medium Active CN113010228B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN113010228A CN113010228A (en) 2021-06-22
CN113010228B true CN113010228B (en) 2024-08-27

Family

ID=76402783

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN113010228B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102148948B1 (en) * 2013-12-06 2020-08-27 삼성전자주식회사 Multi tasking method of electronic apparatus and electronic apparatus thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN113010228A (en) 2021-06-22

Similar Documents

Publication Publication Date Title
US11080143B2 (en) Systems and processes for data backup and recovery
US20190220418A1 (en) Memory Management Method and Apparatus
CN109992523B (en) Memory processing method and device, electronic equipment and computer readable storage medium
CN111078406B (en) Memory management method and device, storage medium and electronic equipment
CN109992402B (en) Memory processing method and device, electronic equipment and computer readable storage medium
CN112115167B (en) Cache system hotspot data access method, device, device and storage medium
CN110018902B (en) Memory processing method and device, electronic equipment and computer readable storage medium
JP2007188499A (en) Method and apparatus for reducing page replacement execution time in a system to which demand paging technique is applied
US20190370009A1 (en) Intelligent swap for fatigable storage mediums
CN112783866B (en) Data reading method, device, computer equipment and storage medium
US20220283716A1 (en) Method and Systems for Recommending Storage Management Actions based on Capacities of Storage Systems
CN110489138B (en) Application updating method, device and storage medium
CN110704463A (en) Local caching method and device for common data, computer equipment and storage medium
CN112445766A (en) Terminal fragment sorting method and device and terminal
CN108205501B (en) Memory recovery method and device, computer device and computer readable storage medium
CN108287760B (en) Terminal device control method and device, terminal device and computer readable storage medium
CN113010228B (en) Memory processing method, memory processing device, electronic equipment and computer readable storage medium
CN108228340B (en) Terminal control method and device, terminal equipment and computer readable storage medium
CN108287761B (en) Memory recovery method and device, terminal equipment and computer readable storage medium
CN110334123A (en) Service data switching method, device, computer equipment and storage medium
CN116302376A (en) Process creation method, process creation device, electronic equipment and computer readable medium
CN113885969A (en) Embedded device, embedded software loading method and storage medium
CN114564148A (en) Method, device, equipment and storage medium for writing data to source volume in snapshot process
CN109144399B (en) Data storage method and device and electronic equipment
CN113377296A (en) Storage management method and system for NAND Flash of vehicle-mounted terminal, vehicle-mounted terminal and vehicle

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