CN111858395A - Data management method and device - Google Patents

Data management method and device Download PDF

Info

Publication number
CN111858395A
CN111858395A CN202010616451.3A CN202010616451A CN111858395A CN 111858395 A CN111858395 A CN 111858395A CN 202010616451 A CN202010616451 A CN 202010616451A CN 111858395 A CN111858395 A CN 111858395A
Authority
CN
China
Prior art keywords
type
application program
page address
data
mapping table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010616451.3A
Other languages
Chinese (zh)
Other versions
CN111858395B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010616451.3A priority Critical patent/CN111858395B/en
Publication of CN111858395A publication Critical patent/CN111858395A/en
Application granted granted Critical
Publication of CN111858395B publication Critical patent/CN111858395B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/10Address translation
    • G06F12/1009Address translation using page tables, e.g. page table structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/06Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication
    • G06F12/0615Address space extension
    • G06F12/0623Address space extension for memory modules

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a data management method and a device, which belong to the technical field of communication, wherein the method comprises the following steps: determining the type of the application program based on preset parameters; under the condition that the type is a first type, adding the corresponding relation between the logical page address and the physical page address of the application program data into a page mapping table; and if the type is the second type, adding the corresponding relation between the logical page address and the physical page address of the application program data into a block mapping table. According to the data management method, the read-write request response speed of the first type application program can be ensured without expanding the memory space, and the fluency of the first type application program during use is ensured. Because the memory space does not need to be enlarged, the cost and the design difficulty of the electronic equipment are not additionally increased.

Description

Data management method and device
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a data management method and device.
Background
With the rapid development of electronic device technology, the types of applications that can be installed in electronic devices are increasing. The user can chat by voice, watch videos, shoot images or perform navigation route planning and the like through the electronic equipment. The data generated during the installation package or the operation process of each application installed in the electronic device occupies the memory of the electronic device, and therefore, as the number of the applications installed on the electronic device is increased, the memory space of the electronic device is also decreased. The most intuitive manifestation of insufficient memory space is that the application program is seriously stuck in the running process, and the use experience of a user is seriously influenced.
At present, in order to solve the problem of insufficient memory space of the electronic equipment, the memory space of the electronic equipment is mainly enlarged, and the method not only increases the cost of the electronic equipment, but also improves the design difficulty of the electronic equipment.
Disclosure of Invention
The embodiment of the application aims to provide a data management method, which can solve the problems of high cost and high design difficulty when the memory space of electronic equipment is enlarged in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present application provides a data management method, where the method includes: determining the type of the application program based on preset parameters, wherein the preset parameters comprise at least one of the following parameters: user preset information, the use frequency of the application program and a user characteristic analysis result; under the condition that the type is a first type, adding the corresponding relation between the logical page address and the physical page address of the application program data into a page mapping table; and if the type is a second type, adding the corresponding relation between the logical page address and the physical page address of the application program data into a block mapping table.
In a second aspect, an embodiment of the present application provides a data management apparatus, where the apparatus includes: the first determining module is used for determining the type of the application program based on preset parameters, wherein the preset parameters comprise at least one of the following parameters: user preset information, the use frequency of the application program and a user characteristic analysis result; the first adding module is used for adding the corresponding relation between the logical page address and the physical page address of the application program data to a page mapping table under the condition that the type is a first type; and the second adding module is used for adding the corresponding relation between the logical page address and the physical page address of the application program data to the block mapping table under the condition that the type is the second type.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, the type of the application program is determined based on preset parameters; under the condition that the type is a first type, adding the corresponding relation between the logical page address and the physical page address of the application program data into a page mapping table; and if the type is the second type, adding the corresponding relation between the logical page address and the physical page address of the application program data into the block mapping table. According to the data management method provided by the embodiment of the application, the types of the application programs installed in the electronic equipment can be divided, the first type of application program data is stored in a page mapping mode, and the second type of application program data is stored in a conventional block mapping mode. The storage mode of the block mapping can save occupied memory space, the storage mode of the page mapping can improve the response speed of the reading and writing requests of the application programs, the data of each installed application program is stored by combining the page mapping and the block mapping, the reading and writing request response speed of the first type application program can be ensured without expanding the memory space, and the smoothness of the first type application program in use is ensured. Because the memory space does not need to be enlarged, the cost and the design difficulty of the electronic equipment are not additionally increased.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flow chart illustrating the steps of a data management method according to an embodiment of the present application;
FIG. 2 is a flow chart illustrating the steps of an application type determination method according to an embodiment of the present application;
fig. 3 is a block diagram showing a configuration of a data management apparatus according to an embodiment of the present application;
fig. 4 is a block diagram showing a configuration of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic diagram illustrating a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The data management method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, a flowchart illustrating steps of a data management method according to an embodiment of the present application is shown.
The data management method of the embodiment of the application comprises the following steps:
step 101: the type of the application program is determined based on preset parameters.
Wherein the preset parameter comprises at least one of the following parameters: the user preset information, the use frequency of the application program and the user characteristic analysis result.
The data management method shown in the embodiment of the application manages data of each application program installed in the electronic device. In the embodiment of the present application, data management of one application is taken as an example for description, and in a specific implementation process, the data management apparatus manages data of each application installed in the electronic device with reference to a data management flow shown in the embodiment of the present application.
The type to which the application belongs may include: a first type and a second type. The first type may be an application program with a usage frequency higher than a preset frequency within a preset time duration, that is, a user frequently-used application program, and the second type may be an application program with a usage frequency lower than or equal to a preset frequency within a preset time duration, that is, an application program not frequently-used by a user.
Step 102: and if the type is the first type, adding the corresponding relation between the logical page address and the physical page address of the application program data into the page mapping table.
And adding the corresponding relation between the logical page address and the physical page address of the application program data into a page mapping table, namely managing the first type of application program data in a page mapping mode. And the application program data is managed by adopting a page mapping mode, so that the address conversion efficiency is higher, and the address allocation is more flexible.
And for the second type of application program, managing the data thereof in a block mapping mode.
Step 103: and if the type is the second type, adding the corresponding relation between the logical page address and the physical page address of the application program data into the block mapping table.
And adding the corresponding relation between the logical page address and the physical page address of the application program data into the block mapping table, namely managing the data in a block mapping mode. The block mapping mode is a conventional data address mapping mode in the prior art. The data of the second type application program is managed in a block mapping mode, occupation of memory space of a storage can be reduced, and the response speed of reading and writing requests of the application program can be sacrificed because the second type application program is an application program which is not commonly used by a user.
At present, the address mapping mode of a flash memory storage device in electronic equipment is relatively fixed, and the address conversion time cost is large, so that the read-write request response delay of an application program is caused, and a user feels that the application program is blocked during use. In order to solve the problem, in the application, a page mapping mode with higher address conversion efficiency and more flexible address allocation is adopted when data of a first type application program installed in the electronic equipment is managed, and because the memory space of a memory for storing an address conversion page table is limited, a block mapping mode which saves the memory space of the memory is adopted for the data of a second type application program installed in the electronic equipment, the problem of blocking during the operation process of the first type application program can be prevented while the limited memory space of the memory is fully utilized.
Moreover, in the using process of the electronic equipment, the using habit change condition of the user to each application program can be continuously learned, the type of each application program in the electronic equipment is adaptively adjusted based on the learned using habit change condition, and accordingly, when the type of the application program changes, the data management mode is adaptively changed. For example: when a certain application program is changed from a first type to a second type, the data management mode of the application program is changed from page mapping to block mapping; for another example: when the second type of the application program is changed into the first type, the data management mode of the application program is changed from block mapping into page mapping. The technical means for adaptively adjusting the management mode of the application program data according to the change of the use habit of the user to each application program can effectively prevent the response delay problem of the frequently-used application program of the user caused by address mapping overhead while fully utilizing the limited memory space of the memory.
The data management method provided by the embodiment of the application determines the type of the application program based on the preset parameters; under the condition that the type is a first type, adding the corresponding relation between the logical page address and the physical page address of the application program data into a page mapping table; and if the type is the second type, adding the corresponding relation between the logical page address and the physical page address of the application program data into the block mapping table. According to the data management method provided by the embodiment of the application, the types of the application programs installed in the electronic equipment can be divided, the first type of data of the application programs is stored in a page mapping mode, and the other types of data of the application programs are stored in a conventional block mapping mode. The storage mode of the block mapping can save occupied memory space, the storage mode of the page mapping can improve the response speed of the reading and writing requests of the application programs, the data of each installed application program is stored by combining the page mapping and the block mapping, the reading and writing request response speed of the first type application program can be ensured without expanding the memory space, and the smoothness of the first type application program in use is ensured. Because the memory space does not need to be enlarged, the cost and the design difficulty of the electronic equipment are not additionally increased.
In an optional embodiment, when determining the type of the application program based on the preset parameter, the method may be implemented by the application program type determination method shown in fig. 2, and specifically includes the following steps:
step 201: and acquiring user preset information input by a user in advance.
The user preset information comprises at least one of the following information: gender information, hobby information.
The user can show different tendencies in daily habits, the user can define the self characteristics when the user uses the electronic equipment for the first time, and the application program which is used more frequently by the user is preliminarily judged according to the self characteristics of the user. The user preset information may be used as one dimension for determining the user's traits. In a specific implementation process, a guide interface can be displayed when a user uses the electronic equipment for the first time, and the user is prompted to input gender information, preference information and the like so as to obtain user preset information.
User preferences may include, but are not limited to: games, drama chases, chatting, and gourmets. In inputting the preference information, the user may input one or more preference information. For example, if the user inputs the preference information as a game, the user may be preliminarily determined as "game control", and if the user inputs the preference information as a series, the user may be preliminarily determined as "video control", or the like.
Step 202: based on historical operating data for each installed application, a usage frequency ranking of the applications is determined.
And periodically ranking the use frequency of each application program installed in the electronic equipment during the use of the electronic equipment by the user. The higher the usage frequency of an application is ranked, the more often the user is using the application. The usage frequency ranking of the applications also serves as a dimension to characterize the user's features.
Step 203: and analyzing the managed preset type data to obtain a user characteristic analysis result.
The preset type data is data in the low risk application program, such as: and analyzing the short message to obtain the user preference, living habit and other information as a user characteristic analysis result by means of keyword extraction, matching and the like on the preset type data.
Step 204: and determining the type of the application program according to the preset information of the user, the use frequency ranking and the user characteristic analysis result.
After the information of three dimensions representing the user traits is acquired through steps 201 to 204, the types of the application programs installed in the electronic device are determined based on the information of the three dimensions.
For example: weights may be assigned to the three dimensions of information to derive a ranking for each application installed in the electronic device. And setting a threshold value T, and determining the application programs ranked at the top T% as the first type application programs, and determining the rest application programs as the second type application programs.
It should be noted that steps 201 to 203 are not limited to the above described sequence, there is no restriction on the sequence of execution among the three steps, and the three steps may also be executed in parallel. In a specific implementation process, the type of the application program is not limited to be determined by three pieces of three-dimensional information, and the type of each application program installed in the electronic device may be determined based on any one or two of the three pieces of three-dimensional information.
The manner of optionally determining the type of the application shown in steps 201 to 204 is more accurate and reliable.
In an optional embodiment, after the correspondence between the logical page address and the physical page address of the application data is added to the page mapping table, the following process is further included:
under the condition of receiving a data request of an application program, determining a target logical page address corresponding to the data request; and searching a target physical page address corresponding to each target logical page address according to the mapping relation between each logical page address and the physical page address managed in the page mapping table.
Under the condition of receiving a data request of a first type application program, directly positioning a physical storage address corresponding to the request through a page mapping table, and accessing the address, so that the response time of the data request can be shortened, and the smooth operation of the application program is ensured.
In an optional embodiment, after the correspondence between the logical page address and the physical page address of the application data is added to the page mapping table, the following application data management procedure may be further included:
firstly, updating the type of an application program according to a preset parameter corresponding to the application program;
the type of the application program can be updated once at preset time intervals, or when the electronic device is in an idle state.
According to preset parameters corresponding to the application programs, when the types of the application programs belong to the updated application programs, the types of the application programs installed in the electronic equipment are re-determined based on the mode shown in fig. 2, the re-determined types are compared with the types recorded in the system for each application program, and if the comparison result shows that the types do not change, the types of the application programs do not change to be updated; and if the comparison result shows that the type is changed, replacing the type recorded in the system by the redetermined type so as to finish updating the type of the application program.
And secondly, under the condition that the type of the application program is changed from the first type to the second type, the corresponding relation between the logical page address and the physical page address of the application program data is transferred from the page mapping table to the block mapping table.
For example: and if the ranking of the application program is changed from the top T% to the bottom (100-T)%, the type of the application program is changed from the first type to the second type, and the management mode of the page mapping of the application program data is changed into the management mode of the block mapping.
The physical addresses of data in the block mapping mode should be continuous, so if data of an application program is converted from page mapping to block mapping, the data of the original page mapping needs to be migrated, and is stored in a storage unit with continuous addresses in a centralized manner, and after the data migration is completed, a block mapping table is re-established for the migrated data.
The technical means of optionally updating the application program type and adaptively adjusting the data management mode of the application program can effectively utilize the memory space of the memory of the electronic equipment.
In an optional embodiment, when the type to which the application program belongs is the second type, after the correspondence between the logical page address and the physical page address of the application program data is added to the block mapping table, the following application program data management procedure may be further included:
Firstly, updating the type of an application program according to a preset parameter corresponding to the application program;
for the specific way of updating the type of the application program according to the preset parameter corresponding to the application program, reference may be made to the foregoing related description, which is not described herein again.
And secondly, under the condition that the type of the application program is changed from the second type to the first type, the corresponding relation between the logical page address and the physical page address of the application program data is transferred from the block mapping table to the page mapping table.
For example: if the application program ranking is changed from the last (100-T)% to the last T%, the type of the application program is changed from the second type to the first type, and the management mode of the block mapping of the application program data is changed into the management mode of the page mapping.
The address mapping unit of the page mapping mode is a page, and therefore, after the data of the application program is converted from the block mapping to the page mapping, a corresponding page table entry needs to be established for each page in the block, so as to realize the fast indexing of the data of the application program.
The technical means of optionally updating the application program type and adjusting the data management mode of the application program according to the type adaptability can ensure the response speed of the read-write request of the first type application program, so that the first type application program can smoothly run, and the use experience of a user is improved.
In the data management method provided in the embodiment of the present application, the execution subject may be a data management apparatus, or a control module in the data management apparatus for executing the data management method. In the embodiment of the present application, a data management apparatus executes a data management method as an example, and the data management apparatus provided in the embodiment of the present application is described.
Fig. 3 is a block diagram of a data management apparatus for implementing an embodiment of the present application. The data management apparatus shown in fig. 3 is for implementing the data management method shown in fig. 1 to 2.
The data management apparatus 300 according to the embodiment of the present application includes:
a first determining module 301, configured to determine a type to which an application belongs based on preset parameters, where the preset parameters include at least one of: user preset information, the use frequency of the application program and a user characteristic analysis result;
a first adding module 302, configured to add, to a page mapping table, a correspondence between a logical page address and a physical page address of the application data when the type is a first type;
and the second adding module is used for adding the corresponding relation between the logical page address and the physical page address of the application program data to the block mapping table under the condition that the type is the second type.
Optionally, the first determining module includes: the obtaining sub-module is used for obtaining user preset information input by a user in advance, wherein the preset information comprises at least one of the following information: gender information, hobby information; the ranking determining submodule is used for determining the ranking of the use frequency of the application program based on historical operation data of the installed application programs; the analysis submodule is used for analyzing the managed preset type data to obtain a user characteristic analysis result; and the type determining submodule is used for determining the type of the application program according to the user preset information, the use frequency ranking and the user characteristic analysis result.
Optionally, the apparatus further comprises: a second determining module, configured to determine, after the first adding module adds the correspondence between the logical page address and the physical page address of the application data to a page mapping table, a target logical page address corresponding to the data request when the data request of the application is received; and the searching module is used for searching a target physical page address corresponding to each target logical page address according to the mapping relation between each logical page address and the physical page address managed in the page mapping table.
Optionally, the apparatus further comprises: a first updating module, configured to update a type to which the application program belongs according to the preset parameter corresponding to the application program after the first adding module adds the correspondence between the logical page address and the physical page address of the application program data to a page mapping table; and the first transferring module is used for transferring the corresponding relation between the logical page address and the physical page address of the application program data from the page mapping table to the block mapping table under the condition that the type of the application program is changed from the first type to the second type.
Optionally, the apparatus further comprises: the second updating module is used for updating the type of the application program according to the preset parameter corresponding to the application program after the second adding module adds the corresponding relation between the logical page address and the physical page address of the application program data into the block mapping table; and the second unloading module is used for unloading the corresponding relation between the logical page address and the physical page address of the application program data from the block mapping table to the page mapping table under the condition that the type of the application program is changed from the second type to the first type.
The data management device provided by the embodiment of the application determines the type of the application program based on the preset parameters; under the condition that the type is a first type, adding the corresponding relation between the logical page address and the physical page address of the application program data into a page mapping table; when the type is the second type, the data management apparatus provided in the embodiment of the present application may perform type division on each application installed in the electronic device, store each application data of the first type in a page mapping manner, and store each application data of the second type in a conventional block mapping manner. The data management device in the embodiment of the application stores the data of each installed application program in a page mapping and block mapping mode, can ensure the response speed of the read-write request of the first type of application program without expanding the memory space, and ensures the smoothness of the first type of application program when in use. Because the memory space does not need to be enlarged, the cost and the design difficulty of the electronic equipment are not additionally increased.
The data management device shown in fig. 3 in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The data management apparatus shown in fig. 3 in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The data management device shown in fig. 3 provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 2, and is not described here again to avoid repetition.
Optionally, as shown in fig. 4, an electronic device 400 according to an embodiment of the present application further includes: the processor 401, the memory 402, and a program or an instruction stored in the memory 402 and capable of running on the processor 401, where the program or the instruction is executed by the processor 401 to implement each process of the data management method embodiment, and can achieve the same technical effect, and are not described herein again to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and the like.
Those skilled in the art will appreciate that the electronic device 500 may further include a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 510 is configured to determine a type to which the application program belongs based on preset parameters, where the preset parameters include at least one of: user preset information, the use frequency of the application program and a user characteristic analysis result; under the condition that the type is a first type, adding the corresponding relation between the logical page address and the physical page address of the application program data into a page mapping table; and if the type is a second type, adding the corresponding relation between the logical page address and the physical page address of the application program data into a block mapping table.
The electronic equipment provided by the embodiment of the application determines the type of the application program based on the preset parameters; under the condition that the type is a first type, adding the corresponding relation between the logical page address and the physical page address of the application program data into a page mapping table; and if the type is the second type, adding the corresponding relation between the logical page address and the physical page address of the application program data into the block mapping table. The electronic device provided by the embodiment of the application can divide types of the installed application programs, store the application program data of the first type in a page mapping manner, and store the application program data of other types in a conventional block mapping manner. The storage mode of the block mapping can save occupied memory space, the storage mode of the page mapping can improve the response speed of the reading and writing requests of the application programs, the electronic equipment in the embodiment of the application stores the data of each installed application program in combination with the mode of the page mapping and the block mapping, the reading and writing request response speed of the first type application program can be ensured without expanding the memory space, and the smoothness of the first type application program in use is ensured. Because the memory space does not need to be enlarged, the cost and the design difficulty of the electronic equipment are not additionally increased.
Optionally, when determining the type of the application program based on the preset parameter, the processor 510 is specifically configured to: acquiring user preset information input by a user in advance, wherein the preset information comprises at least one of the following information: gender information, hobby information; determining a usage frequency ranking for each installed application based on historical operational data for the application; analyzing the managed preset type data to obtain a user characteristic analysis result; and determining the type of the application program according to the user preset information, the use frequency ranking and the user characteristic analysis result.
Optionally, the processor 510 is further configured to: after the corresponding relation between the logical page address and the physical page address of the application program data is added into a page mapping table, under the condition that a data request of the application program is received, determining a target logical page address corresponding to the data request; and searching a target physical page address corresponding to each target logical page address according to the mapping relation between each logical page address and the physical page address managed in the page mapping table.
Optionally, the processor 510 is further configured to: after the corresponding relation between the logical page address and the physical page address of the application program data is added into a page mapping table, updating the type of the application program according to the preset parameters corresponding to the application program; and under the condition that the type of the application program is changed from a first type to a second type, the corresponding relation between the logical page address and the physical page address of the application program data is transferred from the page mapping table to the block mapping table.
Optionally, the processor 510 is further configured to update the type to which the application program belongs according to the preset parameter corresponding to the application program after adding the correspondence between the logical page address and the physical page address of the application program data to the block mapping table; and when the type of the application program is changed from a second type to a first type, the corresponding relation between the logical page address and the physical page address of the application program data is transferred from the block mapping table to the page mapping table.
It should be understood that in the embodiment of the present application, the input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the graphics processing Unit 5041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes a touch panel 5071 and other input devices 5072. A touch panel 5071, also referred to as a touch screen. The touch panel 5071 may include two parts of a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in further detail herein. The memory 509 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. Processor 510 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the data management method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the data management method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for managing data, the method comprising:
determining the type of the application program based on preset parameters, wherein the preset parameters comprise at least one of the following parameters: user preset information, the use frequency of the application program and a user characteristic analysis result;
under the condition that the type is a first type, adding the corresponding relation between the logical page address and the physical page address of the application program data into a page mapping table;
and if the type is a second type, adding the corresponding relation between the logical page address and the physical page address of the application program data into a block mapping table.
2. The method of claim 1, wherein the step of determining the type of the application program based on the preset parameters comprises:
acquiring user preset information input by a user in advance, wherein the preset information comprises at least one of the following information: gender information, hobby information;
determining a usage frequency ranking for each installed application based on historical operational data for the application;
analyzing the managed preset type data to obtain a user characteristic analysis result;
And determining the type of the application program according to the user preset information, the use frequency ranking and the user characteristic analysis result.
3. The method of claim 1, wherein after the step of adding the correspondence of the logical page address and the physical page address of the application data to a page mapping table, the method further comprises:
under the condition that a data request of the application program is received, determining a target logical page address corresponding to the data request;
and searching a target physical page address corresponding to each target logical page address according to the mapping relation between each logical page address and the physical page address managed in the page mapping table.
4. The method of claim 1, wherein after the step of adding the correspondence of the logical page address and the physical page address of the application data to a page mapping table, the method further comprises:
updating the type of the application program according to the preset parameters corresponding to the application program;
and under the condition that the type of the application program is changed from a first type to a second type, the corresponding relation between the logical page address and the physical page address of the application program data is transferred from the page mapping table to the block mapping table.
5. The method of claim 1, wherein after the step of adding the correspondence of the logical page address and the physical page address of the application data to a block mapping table, the method further comprises:
updating the type of the application program according to the preset parameters corresponding to the application program;
and when the type of the application program is changed from a second type to a first type, the corresponding relation between the logical page address and the physical page address of the application program data is transferred from the block mapping table to the page mapping table.
6. A data management apparatus, characterized in that the apparatus comprises:
the first determining module is used for determining the type of the application program based on preset parameters, wherein the preset parameters comprise at least one of the following parameters: user preset information, the use frequency of the application program and a user characteristic analysis result;
the first adding module is used for adding the corresponding relation between the logical page address and the physical page address of the application program data to a page mapping table under the condition that the type is a first type;
and the second adding module is used for adding the corresponding relation between the logical page address and the physical page address of the application program data to the block mapping table under the condition that the type is the second type.
7. The apparatus of claim 6, wherein the first determining module comprises:
the obtaining sub-module is used for obtaining user preset information input by a user in advance, wherein the preset information comprises at least one of the following information: gender information, hobby information;
the ranking determining submodule is used for determining the ranking of the use frequency of the application program based on historical operation data of the installed application programs;
the analysis submodule is used for analyzing the managed preset type data to obtain a user characteristic analysis result;
and the type determining submodule is used for determining the type of the application program according to the user preset information, the use frequency ranking and the user characteristic analysis result.
8. The apparatus of claim 6, further comprising:
a second determining module, configured to determine, after the first adding module adds the correspondence between the logical page address and the physical page address of the application data to a page mapping table, a target logical page address corresponding to the data request when the data request of the application is received;
And the searching module is used for searching a target physical page address corresponding to each target logical page address according to the mapping relation between each logical page address and the physical page address managed in the page mapping table.
9. The apparatus of claim 6, further comprising:
a first updating module, configured to update a type to which the application program belongs according to the preset parameter corresponding to the application program after the first adding module adds the correspondence between the logical page address and the physical page address of the application program data to a page mapping table;
and the first transferring module is used for transferring the corresponding relation between the logical page address and the physical page address of the application program data from the page mapping table to the block mapping table under the condition that the type of the application program is changed from the first type to the second type.
10. The apparatus of claim 6, further comprising:
the second updating module is used for updating the type of the application program according to the preset parameter corresponding to the application program after the second adding module adds the corresponding relation between the logical page address and the physical page address of the application program data into the block mapping table;
And the second unloading module is used for unloading the corresponding relation between the logical page address and the physical page address of the application program data from the block mapping table to the page mapping table under the condition that the type of the application program is changed from the second type to the first type.
CN202010616451.3A 2020-06-30 2020-06-30 Data management method and device Active CN111858395B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010616451.3A CN111858395B (en) 2020-06-30 2020-06-30 Data management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010616451.3A CN111858395B (en) 2020-06-30 2020-06-30 Data management method and device

Publications (2)

Publication Number Publication Date
CN111858395A true CN111858395A (en) 2020-10-30
CN111858395B CN111858395B (en) 2024-03-19

Family

ID=72988990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010616451.3A Active CN111858395B (en) 2020-06-30 2020-06-30 Data management method and device

Country Status (1)

Country Link
CN (1) CN111858395B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312196A (en) * 2021-06-16 2021-08-27 维沃移动通信(杭州)有限公司 Address synchronization method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014157817A1 (en) * 2013-03-25 2014-10-02 아주대학교산학협력단 Method for mapping page address based on flash memory and system therefor
US20150227313A1 (en) * 2014-02-11 2015-08-13 Samsung Electronics Co., Ltd. Method of mapping address in storage device, method of reading data from storage devices and method of writing data into storage devices
CN105224240A (en) * 2014-05-30 2016-01-06 北京忆恒创源科技有限公司 By the method for data write storage device, device and memory device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014157817A1 (en) * 2013-03-25 2014-10-02 아주대학교산학협력단 Method for mapping page address based on flash memory and system therefor
US20150227313A1 (en) * 2014-02-11 2015-08-13 Samsung Electronics Co., Ltd. Method of mapping address in storage device, method of reading data from storage devices and method of writing data into storage devices
CN105224240A (en) * 2014-05-30 2016-01-06 北京忆恒创源科技有限公司 By the method for data write storage device, device and memory device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312196A (en) * 2021-06-16 2021-08-27 维沃移动通信(杭州)有限公司 Address synchronization method and device

Also Published As

Publication number Publication date
CN111858395B (en) 2024-03-19

Similar Documents

Publication Publication Date Title
US11099861B2 (en) Method for preloading application, storage medium, and terminal
US20170031563A1 (en) Method and apparatus for display control and electronic device
CN103530220A (en) Display method and system and terminal for application program icons
CN111831182B (en) Application icon control method and device and electronic equipment
CN112540740A (en) Split screen display method and device, electronic equipment and readable storage medium
CN112083854A (en) Application program running method and device
CN112148165A (en) Display method and device and electronic equipment
CN111767012A (en) Screen projection method and device
CN113835580A (en) Application icon display method and device, electronic equipment and storage medium
CN108664286B (en) Application program preloading method and device, storage medium and mobile terminal
CN112269522A (en) Image processing method, image processing device, electronic equipment and readable storage medium
US9959010B1 (en) Method for displaying information, and terminal equipment
CN109358927B (en) Application program display method and device and terminal equipment
CN111666023B (en) Interface display method and device, electronic equipment and readable storage medium
CN111858395B (en) Data management method and device
CN111813307B (en) Application program display method and device and electronic equipment
CN111817944A (en) Picture sharing method and device and electronic equipment
CN114374663B (en) Message processing method and message processing device
CN113805997B (en) Information display method, information display device, electronic equipment and storage medium
CN115729544A (en) Desktop component generation method and device, electronic equipment and readable storage medium
CN114638742A (en) Scene picture processing method and electronic equipment
CN113032290A (en) Flash memory configuration method and device, electronic equipment and storage medium
CN113885748A (en) Object switching method and device, electronic equipment and readable storage medium
CN112818147A (en) Picture processing method, device, equipment and storage medium
CN112148406A (en) Page switching method and device, electronic equipment and readable storage medium

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