CN110716886A - Data processing method, device, storage medium and terminal - Google Patents

Data processing method, device, storage medium and terminal Download PDF

Info

Publication number
CN110716886A
CN110716886A CN201910936639.3A CN201910936639A CN110716886A CN 110716886 A CN110716886 A CN 110716886A CN 201910936639 A CN201910936639 A CN 201910936639A CN 110716886 A CN110716886 A CN 110716886A
Authority
CN
China
Prior art keywords
data
virtual storage
memory
target
storage space
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
CN201910936639.3A
Other languages
Chinese (zh)
Other versions
CN110716886B (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.)
Huizhou Zhongkai Tcl Zhirong Technology Micro Loan Co ltd
Original Assignee
TCL Mobile Communication Technology Ningbo 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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN201910936639.3A priority Critical patent/CN110716886B/en
Publication of CN110716886A publication Critical patent/CN110716886A/en
Application granted granted Critical
Publication of CN110716886B publication Critical patent/CN110716886B/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/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0866Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches for peripheral storage systems, e.g. disk cache
    • G06F12/0873Mapping of cache memory to specific storage devices or parts thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application discloses a data processing method, a data processing device, a storage medium and a terminal; according to the method and the device, the corresponding storage position in the storage is selected as the associated storage position, the associated storage position is mapped to the virtual storage position in the virtual storage space, then, when data processing is carried out based on the networked network, the obtained network processing data are stored to the target virtual storage position in the virtual storage space according to the preset rule, then, the target associated storage position corresponding to the target virtual storage position is determined from the storage, and when the network processing data reading instruction is detected, the network processing data are output from the target associated storage position. The scheme enhances the storage environment safety of the data of the memory and improves the reading speed of the memory.

Description

Data processing method, device, storage medium and terminal
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a storage medium, and a terminal for data processing.
Background
With the vigorous development of informatization in China, the application of electronized data is increasingly wide, and the electronized data becomes an important asset of various industries and even common people while the production work efficiency is greatly improved. Confidentiality, integrity and availability of electronic data are increasingly linked to national security, enterprise core competitiveness and personal privacy. Therefore, data security issues are particularly important. In the prior art, when a mobile terminal carries out network search, a large amount of data suddenly gushes in, the data stored and processed by a memory is increased instantly, the data of the memory is easy to be covered and lost, and the rapidly increased data is not processed.
Disclosure of Invention
The embodiment of the application provides a data processing method, a data processing device, a storage medium and a terminal, which enhance the storage environment security of the data of a memory and improve the reading speed of the memory.
An embodiment of the present application provides a data processing method, including:
selecting a corresponding storage position in the memory as an associated storage position, wherein the associated storage position is mapped to a virtual storage position in a virtual storage space;
when data processing is carried out based on the connected network, the obtained network processing data is stored to a target virtual storage position in the virtual storage space according to a preset rule;
determining a target associated storage location corresponding to the target virtual storage location from the memory;
outputting the network processing data from the target associative storage location when a read instruction for the network processing data is detected.
Correspondingly, an embodiment of the present application further provides a data processing apparatus, including:
the selecting unit is used for selecting a corresponding storage position in the memory as an associated storage position, and the associated storage position is mapped to a virtual storage position in the virtual storage space;
the storage unit is used for storing the acquired network processing data to a target virtual storage position in the virtual storage space according to a preset rule when data processing is carried out based on the connected network;
a determining unit, configured to determine a target associated storage location corresponding to the target virtual storage location from the storage;
and the output unit is used for outputting the network processing data from the target associated storage position when the network processing data reading instruction is detected.
In some embodiments, the storage unit includes a grouping subunit, an obtaining subunit, a calculating subunit, and a selecting subunit;
the grouping subunit is configured to group the network processing data to obtain a plurality of data groups;
the acquiring subunit is configured to acquire a first rate when reading data from the virtual storage space and a second rate when reading data from the memory;
the calculating subunit is configured to calculate a ratio of the first rate to the second rate;
the selecting subunit is configured to select a target data set from the plurality of data sets according to the ratio and store the target data set in the virtual storage space.
In some embodiments, the apparatus further comprises a release subunit;
the releasing subunit is configured to release the storage space for storing the network processing data when the network data is completely read.
Correspondingly, the embodiment of the present application further provides a storage medium, where the storage medium stores instructions, and the instructions, when executed by a processor, implement the steps in the data processing method provided in any of the embodiments of the present application.
Correspondingly, the embodiment of the present application further provides a terminal, including: a processor and a memory; the memory stores a plurality of instructions, and the processor loads the instructions stored in the memory to execute the steps of the data processing method provided by any one of the embodiments of the present application.
The embodiment of the application can select a corresponding storage location in the memory as an associated storage location, and the associated storage location is mapped to a virtual storage location in the virtual storage space. When data processing is carried out based on the connected network, the obtained network processing data is stored to a target virtual storage position in the virtual storage space according to a preset rule, a target associated storage position corresponding to the target virtual storage position is determined from the storage, and when a reading instruction for the network processing data is detected, the network processing data is output from the target associated storage position. The scheme enhances the storage environment safety of the data of the memory and improves the reading speed of the memory.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a data processing method according to an embodiment of the present application.
Fig. 2 is a schematic flowchart of a data processing method according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application.
Fig. 4 is another schematic structural diagram of a data processing apparatus according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a terminal 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 only a part of the embodiments of the present application, and not all of the embodiments. 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 "third" in the present invention are used for distinguishing different objects, and are not used for describing a specific order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to the listed steps or modules but may alternatively include other steps or modules not listed or inherent to such process, method, article, or apparatus.
The embodiment of the application provides a data processing method, a data processing device, a storage medium and a terminal.
An embodiment of the present application provides a data processing system, including: according to the data processing device provided by the embodiment of the application, the data processing device can be integrated in a terminal, and the terminal can be a mobile phone, a tablet computer, a notebook computer and other equipment. The data processing system may also include other devices, such as servers and the like.
For example, taking the case that the data processing system is integrated in a terminal, the terminal selects a corresponding storage location in a memory as an associated storage location, the associated storage location is mapped to a virtual storage location in a virtual storage space, then, when performing data processing based on a connected network, stores the acquired network processing data to a target virtual storage location in the virtual storage space according to a preset rule, then, determines a target associated storage location corresponding to the target virtual storage location from the memory, and when detecting a read instruction for the network processing data, outputs the network processing data from the target associated storage location.
The data processing method provided by the embodiment of the application can be implemented in a data processing device, and the data processing device can be specifically integrated in electronic equipment, wherein the electronic equipment includes, but is not limited to, a computer, a smart watch, a mobile phone, a tablet computer and the like.
The following are detailed below. The order of the following examples is not intended to limit the preferred order of the examples.
In the present embodiment, description will be made from the viewpoint of a data processing apparatus, which may be integrated particularly in a terminal. The terminal may include a mobile phone, a smart watch, a tablet Computer, a notebook Computer, a Personal Computer (PC), and the like.
A method of data processing, comprising: selecting a corresponding storage position in a memory as an associated storage position, mapping the associated storage position to a virtual storage position in a virtual storage space, then, when performing data processing based on a networked network, storing the acquired network processing data to a target virtual storage position in the virtual storage space according to a preset rule, then, determining a target associated storage position corresponding to the target virtual storage position from the memory, and when detecting a read instruction for the network processing data, outputting the network processing data from the target associated storage position.
As shown in fig. 1, a data processing method is provided, where the data processing method may be executed by a processor of a terminal, and the specific flow may be as follows:
101. and selecting a corresponding storage position in the storage as an associated storage position, wherein the associated storage position is mapped to a virtual storage position in the virtual storage space.
The memory is a memory component used for storing data, instructions and the like in the terminal, for example, the terminal may be an electronic computer, a mobile phone, a tablet computer and the like. The memory is made up of a number of numbered cells. The number of a unit is called an address. Memory is a memory device used in modern information technology to hold information. The concept is wide, and has a plurality of layers, and in a digital system, the memory can be used as long as binary data can be stored; in an integrated circuit, a circuit without a physical form and having a storage function is also called a Memory, such as a RAM (Random Access Memory), a FIFO (First input First Output), and the like. In the system, the storage device in physical form is also called a Memory, such as a Memory bank, an SD card (Secure Digital Memory), and the like. All information in the computer, including the input raw data, the computer program, the intermediate run results and the final run results, is stored in memory. It stores and retrieves information based on the location specified by the controller. With the memory, the computer can only have the memory function, and the normal work can be ensured.
The virtual storage space is not part of the memory, and the content of the memory is stored in the virtual storage space through a corresponding storage relationship, that is, each storage location in the memory corresponds to a virtual storage location in the virtual storage space, and the corresponding storage relationship is embodied through a mapping relationship between the associated storage location and the virtual storage location of the virtual storage space, for example, the mapping relationship may be a point-to-point relationship, that is, the associated storage locations correspond to the virtual storage locations in the virtual storage space one to one. The virtual memory space does not occupy memory storage. For example, the virtual storage space may be a cloud space.
102. And when data processing is carried out based on the connected network, storing the obtained network processing data to a target virtual storage position in the virtual storage space according to a preset rule.
The data processing refers to processing the received data when the terminal is connected to the network, such as buffering, reading and the like of the received data. The target virtual storage position refers to a virtual storage position which enables the currently received data to be stored and has a corresponding relation with the associated storage position according to a preset rule.
The preset rule refers to that the data reading speed of the local memory and the data reading speed of the virtual storage space except the local memory are acquired, and then the data groups are distributed and stored in the local memory and the virtual storage space respectively through the acquired speeds.
In some embodiments, the step of "storing the acquired network processing data to the target virtual storage location in the virtual storage space according to the preset rule" may include the following processes:
(11) grouping the network processing data to obtain a plurality of data groups;
(12) acquiring a first rate when data is read from the virtual storage space and a second rate when data is read from the memory;
(13) calculating a ratio of the first rate and the second rate;
(14) and selecting a target data set from the plurality of data sets according to the ratio to store the target data set in the virtual storage space.
For example, the storage locations may be selected by assigning data sets according to a ratio of the first rate to the second rate, and if the ratio is 1:2, 1/3 data sets may be assigned for storage by the virtual storage space and 2/3 data sets may be assigned for storage by the storage.
In some embodiments, after the step "selecting a target data group from the plurality of data groups to be stored in the virtual storage space according to the ratio", the following process may be included:
the remaining data sets of the plurality of data sets are stored to a memory.
And releasing the storage space for storing the target data set when the network data is completely read.
The virtual storage space and the storage position of the memory are in a corresponding storage relationship, and through the corresponding storage relationship, the network processing data can be stored in the virtual storage position of the virtual storage space and also can be stored in the corresponding storage position of the memory. The processor reads the network processing data output by the memory through the corresponding storage relation, solves the problem of data loss of the memory, enhances the storage safety of the network data and reduces the occupied space of the data storage.
For example, the network processing data is stored in the virtual storage space through the memory associated storage location by the point-to-point corresponding storage relationship. And as the virtual storage space does not occupy the storage of the memory, the network processing data does not occupy the storage of the memory. The content of the memory is stored in the virtual storage space in a point-to-point mode, the associated storage position in the memory corresponds to the virtual storage position of the virtual storage space to form a corresponding storage relation, and the content stored in each storage position of the memory is not interfered with each other, so that the safety of data storage is enhanced.
103. A target associated storage location corresponding to the target virtual storage location is determined from the memory.
The target associated storage location refers to an associated storage location of a memory corresponding to a target virtual storage location where the currently stored network processing data is stored.
For example, the network processing data is stored in the virtual storage space through the memory associated storage location by the point-to-point corresponding storage relationship. And determining a target associated storage position corresponding to the target virtual storage position in the storage through the point-to-point corresponding storage relation.
104. Outputting the network processing data from the target associative storage location when a read instruction for the network processing data is detected.
And the processor actually outputs the corresponding virtual storage position in the virtual storage space by reading the corresponding virtual storage position in the virtual storage space. When a read instruction for the network processing data is detected, outputting the network processing data from a target virtual storage position in which the network processing data is stored through a target associated storage position of a target virtual storage position corresponding to the storage in the virtual storage space.
The embodiment of the application can select a corresponding storage location in the memory as an associated storage location, and the associated storage location is mapped to a virtual storage location in the virtual storage space. When data processing is carried out based on the connected network, the obtained network processing data is stored to a target virtual storage position in the virtual storage space according to a preset rule, a target associated storage position corresponding to the target virtual storage position is determined from the storage, and when a reading instruction for the network processing data is detected, the network processing data is output from the target associated storage position. The scheme enhances the storage environment safety of the data of the memory and improves the reading speed of the memory.
Referring to fig. 2, a method for data processing may include:
201. and the terminal selects a corresponding storage position in the memory as an associated storage position, and the associated storage position is mapped to a virtual storage position in the virtual storage space.
The memory is a memory component used for storing data, instructions and the like in the terminal, for example, the terminal may be an electronic computer, a mobile phone, a tablet computer and the like.
The virtual storage space is not part of the memory, and the content of the memory is stored in the virtual storage space through a corresponding storage relationship, that is, each storage location in the memory corresponds to a virtual storage location in the virtual storage space, and the corresponding storage relationship is embodied through a mapping relationship between the associated storage location and the virtual storage location of the virtual storage space, for example, the mapping relationship may be a point-to-point relationship, that is, the associated storage locations correspond to the virtual storage locations in the virtual storage space one to one. The virtual memory space does not occupy memory storage. For example, the virtual storage space may be a cloud space.
202. And when the terminal performs data processing based on the connected network, the terminal stores the acquired network processing data to a target virtual storage position in the virtual storage space according to a preset rule.
The data processing refers to processing the received data when the terminal is connected to the network, such as buffering, reading and the like of the received data. The target virtual storage position refers to a virtual storage position which enables the currently received data to be stored and has a corresponding relation with the associated storage position according to a preset rule.
For example, the following may be specifically mentioned: and grouping the network processing data to obtain a plurality of data groups. Then, a first rate when reading data from the virtual storage space and a second rate when reading data from the memory are obtained. Then, the ratio of the first rate and the second rate is calculated. And then selecting a target data set from the plurality of data sets according to the ratio to store the target data set in the virtual storage space. Finally, the remaining data sets of the plurality of data sets are stored to a memory. In some embodiments, when the network data is completely read, the storage space for storing the target data group is released.
The virtual storage space and the storage position of the memory are in a corresponding storage relationship, and through the corresponding storage relationship, the network processing data can be stored in the virtual storage position of the virtual storage space and also can be stored in the corresponding storage position of the memory. The processor reads the network processing data output by the memory through the corresponding storage relation, solves the problem of data loss of the memory, enhances the storage safety of the network data and reduces the occupied space of the data storage.
203. The terminal determines a target associated storage location corresponding to the target virtual storage location from the memory.
The target associated storage location refers to an associated storage location of a memory corresponding to a target virtual storage location where the currently stored network processing data is stored. For example, the network processing data is stored in the virtual storage space through the memory associated storage location by the point-to-point corresponding storage relationship. And determining a target associated storage position corresponding to the target virtual storage position in the storage through the point-to-point corresponding storage relation.
204. When a read instruction for the network processing data is detected, the terminal outputs the network processing data from the target associated storage location.
And the processor actually outputs the corresponding virtual storage position in the virtual storage space by reading the corresponding virtual storage position in the virtual storage space. When a read instruction for the network processing data is detected, outputting the network processing data from a target virtual storage position in which the network processing data is stored through a target associated storage position of a target virtual storage position corresponding to the storage in the virtual storage space.
The embodiment of the application can select a corresponding storage location in the memory as an associated storage location, and the associated storage location is mapped to a virtual storage location in the virtual storage space. When data processing is carried out based on the connected network, the obtained network processing data is stored to a target virtual storage position in the virtual storage space according to a preset rule, a target associated storage position corresponding to the target virtual storage position is determined from the storage, and when a reading instruction for the network processing data is detected, the network processing data is output from the target associated storage position. The scheme enhances the storage environment safety of the data of the memory and improves the reading speed of the memory.
In order to better implement the data processing method provided in the embodiments of the present application, in some embodiments, a data processing apparatus is further provided, and the data processing apparatus is suitable for a terminal, and specific implementation details may refer to the description in the method embodiments.
In some embodiments, a data processing apparatus is further provided, and the data processing apparatus may be specifically integrated in a terminal. For example, the data processing apparatus may be integrated in the form of a client, as shown in fig. 3, and may include: the selection unit 301, the storage unit 302, the determination unit 303, and the output unit 304 are as follows:
a selecting unit 301, configured to select a corresponding storage location in a memory as an associated storage location, where the associated storage location is mapped to a virtual storage location in a virtual storage space;
the memory is a memory component for storing data, instructions and the like in the electronic computer. Memory is a memory device used in modern information technology to hold information. The concept is wide, and has a plurality of layers, and in a digital system, the memory can be used as long as binary data can be stored; in an integrated circuit, a circuit without a physical form and having a storage function is also called a Memory, such as a RAM (Random Access Memory), a FIFO (First input First Output), and the like. In the system, the storage device in physical form is also called a Memory, such as a Memory bank, an SD card (Secure Digital Memory), and the like. All information in the computer, including the input raw data, the computer program, the intermediate run results and the final run results, is stored in memory. It stores and retrieves information based on the location specified by the controller. With the memory, the computer can only have the memory function, and the normal work can be ensured.
The virtual storage space is not part of the memory, and the content of the memory is stored in the virtual storage space through a corresponding storage relationship, that is, each storage location in the memory corresponds to a virtual storage location in the virtual storage space, and the corresponding storage relationship is embodied through a mapping relationship between the associated storage location and the virtual storage location of the virtual storage space, for example, the mapping relationship may be a point-to-point relationship, that is, the associated storage locations correspond to the virtual storage locations in the virtual storage space one to one. The virtual memory space does not occupy memory storage. For example, the virtual storage space may be a cloud space.
A storage unit 302, configured to, when performing data processing based on the connected network, store the obtained network processing data to a target virtual storage location in the virtual storage space according to a preset rule;
the data processing refers to processing the received data when the terminal is connected to the network, such as buffering, reading and the like of the received data. The target virtual storage position refers to a virtual storage position which enables the currently received data to be stored and has a corresponding relation with the associated storage position according to a preset rule.
The preset rule refers to that the data reading speed of the local memory and the data reading speed of the virtual storage space except the local memory are acquired, and then the data groups are distributed and stored in the local memory and the virtual storage space respectively through the acquired speeds.
A determining unit 303, configured to determine, from the storage, a target associated storage location corresponding to the target virtual storage location;
the target associated storage location refers to an associated storage location of a memory corresponding to a target virtual storage location where the currently stored network processing data is stored.
An output unit 304, configured to output the network processing data from the target associated storage location when a read instruction for the network processing data is detected.
And the processor actually outputs the corresponding virtual storage position in the virtual storage space by reading the corresponding virtual storage position in the virtual storage space. When a read instruction for the network processing data is detected, outputting the network processing data from a target virtual storage position in which the network processing data is stored through a target associated storage position of a target virtual storage position corresponding to the storage in the virtual storage space.
In some embodiments, referring to fig. 4, the storage unit 302 includes a grouping subunit 3021, an obtaining subunit 3022, a calculating subunit 3023, and a selecting subunit 3024;
the grouping subunit 3021, configured to group the network processing data to obtain a plurality of data groups;
the acquiring subunit 3022, configured to acquire a first rate when reading data from the virtual storage space and a second rate when reading data from the memory;
the calculating subunit 3023, configured to calculate a ratio of the first rate and the second rate;
the selecting subunit 3024 is configured to select a target data set from the plurality of data sets according to the ratio and store the target data set in the virtual storage space.
In some embodiments, referring to fig. 4, the apparatus further comprises a release subunit 305;
the release subunit 305 is configured to release the storage space for storing the network processing data when the network data is completely read.
As can be seen from the above, in the embodiment of the present application, a corresponding storage location in a memory is selected as an associated storage location, where the associated storage location is mapped to a virtual storage location in a virtual storage space, then, when data processing is performed based on a networked network, the obtained network processing data is stored in a target virtual storage location in the virtual storage space according to a preset rule, then, a target associated storage location corresponding to the target virtual storage location is determined from the memory, and when a read instruction for the network processing data is detected, the network processing data is output from the target associated storage location. The scheme enhances the storage environment safety of the data of the memory and improves the reading speed of the memory.
The embodiment of the application further provides a terminal, and the terminal can be a mobile phone, a smart watch, a tablet Computer, a notebook Computer, a Personal Computer (PC), and the like. As shown in fig. 5, it shows a schematic structural diagram of a terminal according to an embodiment of the present application, specifically:
the terminal may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the terminal structure shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the terminal. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The terminal further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are realized through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The terminal may further include an input unit 404, and the input unit 404 may be used to receive input numeric or character information and generate a keyboard, mouse, joystick, optical or trackball signal input in relation to user settings and function control.
Although not shown, the terminal may further include a display unit and the like, which will not be described in detail herein. Specifically, in this embodiment, the processor 401 of the terminal may load the acquired network processing data into the memory 402 according to a preset rule when the terminal performs data processing based on the connected network according to the following instructions, and the processor 401 runs the network processing data stored in the memory 402, so as to implement various functions as follows:
selecting a corresponding storage position in a memory as an associated storage position, mapping the associated storage position to a virtual storage position in a virtual storage space, then, when performing data processing based on a networked network, storing the acquired network processing data to a target virtual storage position in the virtual storage space according to a preset rule, then, determining a target associated storage position corresponding to the target virtual storage position from the memory, and when detecting a read instruction for the network processing data, outputting the network processing data from the target associated storage position.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Therefore, the terminal provided by the embodiment of the application can provide a terminal, so that the storage environment safety of the memory data is enhanced, and the reading speed of the memory is improved.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the data processing methods provided in the present application. Such as:
selecting a corresponding storage position in a memory as an associated storage position, mapping the associated storage position to a virtual storage position in a virtual storage space, then, when performing data processing based on a networked network, storing the acquired network processing data to a target virtual storage position in the virtual storage space according to a preset rule, then, determining a target associated storage position corresponding to the target virtual storage position from the memory, and when detecting a read instruction for the network processing data, outputting the network processing data from the target associated storage position. The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any data processing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any data processing method provided in the embodiments of the present application can be achieved, for details, see the foregoing embodiments, and are not described herein again.
The foregoing detailed description is directed to a method, an apparatus, a storage medium, and a terminal for data processing provided in the embodiments of the present application, and specific examples are applied in the present application to explain the principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the method and the core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method of data processing, comprising:
selecting a corresponding storage position in a memory as an associated storage position, wherein the associated storage position is mapped to a virtual storage position in a virtual storage space;
when data processing is carried out based on the connected network, the obtained network processing data are stored to a target virtual storage position in the virtual storage space according to a preset rule;
determining a target associated storage location from the memory corresponding to the target virtual storage location;
outputting the network processing data from the target associative storage location when a read instruction for the network processing data is detected.
2. The method according to claim 1, wherein the storing the acquired network processing data to a target virtual storage location in the virtual storage space according to a preset rule comprises:
grouping the network processing data to obtain a plurality of data groups;
the storing the acquired network processing data to a target virtual storage position in the virtual storage space according to a preset rule includes:
obtaining a first rate when reading data from the virtual storage space and a second rate when reading data from the memory;
calculating a ratio of the first rate and the second rate;
and selecting a target data group from the plurality of data groups according to the ratio and storing the target data group in a virtual storage space.
3. The method of claim 2, further comprising, after said selecting a target data set from the plurality of data sets according to the ratio for storage in a virtual storage space:
storing remaining ones of the plurality of data sets to a memory.
4. The method of claim 2, further comprising, after said selecting a target data set from the plurality of data sets according to the ratio for storage in a virtual storage space:
and releasing the storage space for storing the target data group when the network data is completely read.
5. The method of claim 1, wherein the associated storage locations correspond one-to-one to virtual storage locations in a virtual storage space.
6. An apparatus for data processing, comprising:
the device comprises a selecting unit, a storage unit and a processing unit, wherein the selecting unit is used for selecting a corresponding storage position in a storage as an associated storage position, and the associated storage position is mapped to a virtual storage position in a virtual storage space;
the storage unit is used for storing the acquired network processing data to a target virtual storage position in the virtual storage space according to a preset rule when data processing is carried out based on the connected network;
a determining unit, configured to determine, from the memory, a target associated storage location corresponding to the target virtual storage location;
an output unit configured to output the network processing data from the target associated storage location when a read instruction for the network processing data is detected.
7. The apparatus of claim 6, wherein the storage unit comprises: the system comprises a grouping subunit, an obtaining subunit, a calculating subunit and a selecting subunit;
the grouping subunit is configured to group the network processing data to obtain a plurality of data groups;
the acquiring subunit is configured to acquire a first rate when reading data from the virtual storage space and a second rate when reading data from the memory;
the calculating subunit is configured to calculate a ratio of the first rate and the second rate;
and the selecting subunit is used for selecting a target data group from the plurality of data groups according to the ratio and storing the target data group in a virtual storage space.
8. The apparatus of claim 6, further comprising: releasing the subunit;
and the release subunit is configured to release the storage space for storing the network processing data when the network data is completely read.
9. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the method of data processing according to any one of claims 1 to 5.
10. A terminal, comprising: a processor and a memory; the memory stores a plurality of instructions, and the processor loads the instructions stored in the memory to execute the steps of the data processing method according to any one of claims 1 to 5.
CN201910936639.3A 2019-09-29 2019-09-29 Data processing method, device, storage medium and terminal Active CN110716886B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910936639.3A CN110716886B (en) 2019-09-29 2019-09-29 Data processing method, device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910936639.3A CN110716886B (en) 2019-09-29 2019-09-29 Data processing method, device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN110716886A true CN110716886A (en) 2020-01-21
CN110716886B CN110716886B (en) 2022-12-13

Family

ID=69211171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910936639.3A Active CN110716886B (en) 2019-09-29 2019-09-29 Data processing method, device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN110716886B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1708742A (en) * 2002-01-23 2005-12-14 思科技术公司 Methods and apparatus for implementing virtualization of storage within a storage area network
CN101512482A (en) * 2005-02-08 2009-08-19 思科技术公司 Multi-threaded packeting processing architecture
CN104461393A (en) * 2014-12-09 2015-03-25 华中科技大学 Mixed mapping method of flash memory
US9436399B2 (en) * 2013-03-28 2016-09-06 Microsoft Technology Licensing, Llc Managing capacity of a thinly provisioned storage system
CN106201652A (en) * 2016-06-29 2016-12-07 联想(北京)有限公司 A kind of data processing method and virtual machine
CN107949833A (en) * 2015-07-27 2018-04-20 谷歌有限责任公司 Address caching in interchanger
CN109783397A (en) * 2017-11-13 2019-05-21 爱思开海力士有限公司 Storage system and its operating method
CN109885403A (en) * 2019-01-29 2019-06-14 努比亚技术有限公司 A kind of data managing method, mobile terminal and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1708742A (en) * 2002-01-23 2005-12-14 思科技术公司 Methods and apparatus for implementing virtualization of storage within a storage area network
CN101512482A (en) * 2005-02-08 2009-08-19 思科技术公司 Multi-threaded packeting processing architecture
US9436399B2 (en) * 2013-03-28 2016-09-06 Microsoft Technology Licensing, Llc Managing capacity of a thinly provisioned storage system
CN104461393A (en) * 2014-12-09 2015-03-25 华中科技大学 Mixed mapping method of flash memory
CN107949833A (en) * 2015-07-27 2018-04-20 谷歌有限责任公司 Address caching in interchanger
CN106201652A (en) * 2016-06-29 2016-12-07 联想(北京)有限公司 A kind of data processing method and virtual machine
CN109783397A (en) * 2017-11-13 2019-05-21 爱思开海力士有限公司 Storage system and its operating method
CN109885403A (en) * 2019-01-29 2019-06-14 努比亚技术有限公司 A kind of data managing method, mobile terminal and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
胡志凌 等: "虚拟化存储技术的I/O 调度研究", 《科技信息》 *

Also Published As

Publication number Publication date
CN110716886B (en) 2022-12-13

Similar Documents

Publication Publication Date Title
CN110888746B (en) Memory management method and device, storage medium and electronic equipment
JP2018534685A5 (en)
US9043806B2 (en) Information processing device and task switching method
US8312196B2 (en) Dual processor system and method for using the same
CN108701026A (en) Method and apparatus for the managing process under memory constraints
CN112734498B (en) Task rewarding acquisition method, device, terminal and storage medium
CN111078410B (en) Memory allocation method and device, storage medium and electronic equipment
WO2019024641A1 (en) Data synchronization method and apparatus, storage medium and electronic device
CN111143039A (en) Virtual machine scheduling method and device and computer storage medium
US20220229701A1 (en) Dynamic allocation of computing resources
CN114328281A (en) Method and device for processing abnormal power failure of solid state disk, electronic equipment and medium
CN111209243B (en) Data processing device, method and related product
CN110716886B (en) Data processing method, device, storage medium and terminal
CN111008079A (en) Process management method, device, storage medium and electronic equipment
CN117075711A (en) Memory temperature control method, system, device and readable storage medium
CN115454576B (en) Virtual machine process management method and system and electronic equipment
CN105551500B (en) A kind of acoustic signal processing method and device
CN114490432A (en) Memory processing method and device, electronic equipment and computer readable storage medium
CN116701248A (en) Page table management method, unit, SOC, electronic device and readable storage medium
CN112559568A (en) Virtual article determination method and device and computer readable storage medium
CN112138397A (en) Trigger management method and device, computer equipment and storage medium
CN111241099A (en) Industrial big data storage method and device
CN112732568B (en) System log acquisition method and device, storage medium and terminal
US11989420B2 (en) Memory allocation method and apparatus, electronic device, and storage medium
CN113238852B (en) Task allocation method and device, electronic equipment and 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20221121

Address after: 8th Floor, TCL Technology Building, No. 17, Huifeng 3rd Road, Zhongkai High-tech Zone, Huizhou City, Guangdong Province, 516006

Applicant after: Huizhou Zhongkai TCL Zhirong Technology Micro-loan Co.,Ltd.

Address before: 10 / F, No.5 Lane 999, Yangfan Road, high tech Zone, Ningbo City, Zhejiang Province

Applicant before: TCL mobile communication technology (Ningbo) Co.,Ltd.

GR01 Patent grant
GR01 Patent grant