CN104657084A - Information processing method and electronic device - Google Patents

Information processing method and electronic device Download PDF

Info

Publication number
CN104657084A
CN104657084A CN201310602993.5A CN201310602993A CN104657084A CN 104657084 A CN104657084 A CN 104657084A CN 201310602993 A CN201310602993 A CN 201310602993A CN 104657084 A CN104657084 A CN 104657084A
Authority
CN
China
Prior art keywords
buffer memory
data
memory medium
medium
storage medium
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
CN201310602993.5A
Other languages
Chinese (zh)
Other versions
CN104657084B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310602993.5A priority Critical patent/CN104657084B/en
Publication of CN104657084A publication Critical patent/CN104657084A/en
Application granted granted Critical
Publication of CN104657084B publication Critical patent/CN104657084B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0658Controller construction arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0659Command handling arrangements, e.g. command buffers, queues, command scheduling

Abstract

The invention discloses an information processing method applied to an electronic device. The electronic device comprises a storage controller, and a first storage medium and a second storage medium which are controlled by the storage controller. In the process of migrating the data of the first storage medium to the second storage medium, the method comprises the steps: reading the to-be-migrated data from the first storage medium by the storage controller and buffering in the buffering storage medium controlled by the storage controller; and reading the data from the buffering storage medium and writing into the second storage medium by the storage controller. The method is used for solving the technical problem in the prior art that the migration operation efficiency of the data between the storage mediums is low because the migration of the data between the storage mediums needs the operation of the external devices, and the copied content is needed to firstly buffered in the storage medium which is not controlled by the same storage controller, and achieving the technical effect of improving the migration operation efficiency of the data between the storage mediums.

Description

A kind of method of information processing and electronic equipment
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of method and electronic equipment of information processing.
Background technology
Along with the development of science and technology, electronic technology have also been obtained development at full speed, and the kind of electronic product also gets more and more, and people have also enjoyed the various facilities that development in science and technology brings.Present people can pass through various types of electronic product, enjoy the comfortable life along with development in science and technology brings.
In the prior art, a memory controller can control the storage medium of some, and storage medium can be the storage medium of same item, also can be inhomogeneous storage medium; Memory controller is in order to complete the operation of data-moving between storage medium, generally all can by CPU or DMA(Direct Memory Access, direct memory access) data read from a storage area by controller, be buffered in the storage medium of another one memory controller controls, and then be written to by another region of same memory controller controls.
But present inventor is in the process realizing invention technical scheme in the embodiment of the present application, find that above-mentioned technology at least exists following technical matters:
The operation needed by external unit is moved due to data between storage medium, and the content copied need first to be buffered in be not same memory controller controls storage medium in, therefore, there is the technical matters moving inefficient operation of data between storage medium.
Summary of the invention
The embodiment of the present application is by providing a kind of method and electronic equipment of information processing, solve and move due to data between storage medium in prior art the operation needed by external unit, and the content copied need first to be buffered in be not same memory controller controls storage medium in, cause the technical matters moving inefficient operation of data between storage medium, achieve the technique effect moving operating efficiency improving data between storage medium.
The embodiment of the present application provides a kind of information processing method, be applied in an electronic equipment, described electronic equipment comprises a memory controller and is subject to the first storage medium and second storage medium of described memory controller controls, by the data-moving of described first storage medium in the process of described second storage medium, described method comprises: the data that needs are moved by described memory controller read and are buffered in the buffer memory medium by described memory controller controls from described first storage medium; Described data read and write in described second storage medium by described memory controller from described buffer memory medium.
Optionally, when described buffer memory medium is specially a buffer memory medium, before described data to read and write in described second storage medium by described memory controller from described buffer memory medium, described method also comprises: the data determining in described buffer memory medium meet first pre-conditioned.
Optionally, describedly determine that the data in described buffer memory medium meet first and pre-conditionedly to comprise: determine the full described buffer memory medium of data stuffing in described buffer memory medium; Or determine that the data in described buffer memory medium are the total data needing to move; Or determine that the reserves of data in described buffer memory medium in described buffer memory medium meet a threshold value, described threshold value is less than the space of described buffer memory medium.
Optionally, when described buffer memory medium comprises the first buffer memory medium and the second buffer memory medium, described memory controller specifically comprises needing the data moved to read from described first storage medium and be buffered in the buffer memory medium by described memory controller controls: the data that needs are moved by described memory controller read and are buffered in the first buffer memory medium from described first storage medium; Whether detect the data of filling in described first buffer memory medium meets second pre-conditioned; When the data of filling in described first buffer memory medium meet described second pre-conditioned time, described memory controller reads needing the data moved and is buffered in the second buffer memory medium from described first storage medium; When the data of filling in described first buffer memory medium meet described second pre-conditioned time, described data read and write in described second storage medium and specifically comprise by described memory controller from described buffer memory medium: described data read and write in described second storage medium by described memory controller from described first buffer memory medium; Whether detect the data of filling in described second buffer memory medium meets the 3rd pre-conditioned; When the data of filling in described second buffer memory medium meet described 3rd pre-conditioned time, described data read and write in described second storage medium by described memory controller from described second buffer memory medium.
Optionally, described second pre-conditionedly comprises: the full described first buffer memory medium of the data stuffing of filling in described first buffer memory medium; Or the reserves of data in described first buffer memory medium of filling in described first buffer memory medium meet first threshold, described first threshold is less than the space of described first buffer memory medium; Described 3rd pre-conditionedly comprises: the full described second buffer memory medium of the data stuffing of filling in described second buffer memory medium; Or the reserves of data in described second buffer memory medium of filling in described second buffer memory medium meet Second Threshold, described Second Threshold is less than the space of described second buffer memory medium.
Optionally, described first storage medium and described second storage medium are specifically respectively: two zoness of different of same storage medium; Or two of same item storage mediums; Or inhomogeneous two storage mediums.
Present invention also offers a kind of electronic equipment, described electronic equipment comprises: memory controller; First storage medium, by described memory controller controls; Second storage medium, by described memory controller controls; Buffer memory medium, by described memory controller controls; Wherein, by the data-moving of described first storage medium in the process of described second storage medium, described memory controller specifically for: read needing the data moved from described first storage medium and be buffered in described buffer memory medium; Described data are read from described buffer memory medium and writes in described second storage medium.
Optionally, when described buffer memory medium is specially a buffer memory medium, described memory controller also for: determine that data in described buffer memory medium meet first pre-conditioned.
Optionally, described memory controller concrete also for: determine the full described buffer memory medium of data stuffing in described buffer memory medium; Or determine that the data in described buffer memory medium are the total data needing to move; Or determine that the reserves of data in described buffer memory medium in described buffer memory medium meet a threshold value, described threshold value is less than the space of described buffer memory medium.
Optionally, when described buffer memory medium comprises the first buffer memory medium and the second buffer memory medium, described memory controller concrete also for: described memory controller reads needing the data moved and is buffered in the first buffer memory medium from described first storage medium; Whether detect the data of filling in described first buffer memory medium meets second pre-conditioned; When the data of filling in described first buffer memory medium meet described second pre-conditioned time, described memory controller reads needing the data moved and is buffered in the second buffer memory medium from described first storage medium; When the data of filling in described first buffer memory medium meet described second pre-conditioned time, described data read and write in described second storage medium by described memory controller from described first buffer memory medium; Whether detect the data of filling in described second buffer memory medium meets the 3rd pre-conditioned; When the data of filling in described second buffer memory medium meet described 3rd pre-conditioned time, described data read and write in described second storage medium by described memory controller from described second buffer memory medium.
Optionally, described second pre-conditionedly comprises: the full described first buffer memory medium of the data stuffing of filling in described first buffer memory medium; Or the reserves of data in described first buffer memory medium of filling in described first buffer memory medium meet first threshold, described first threshold is less than the space of described first buffer memory medium; Described 3rd pre-conditionedly comprises: the full described second buffer memory medium of the data stuffing of filling in described second buffer memory medium; Or the reserves of data in described second buffer memory medium of filling in described second buffer memory medium meet Second Threshold, described Second Threshold is less than the space that described slow second deposits storage medium.
Optionally, described first storage medium and described second storage medium are specifically respectively: two zoness of different of same storage medium; Or two of same item storage mediums; Or inhomogeneous two storage mediums.
The one or more technical schemes provided in the embodiment of the present application, at least have following technique effect or advantage:
The operation of data-moving between the storage medium being subject to this memory controller controls is performed by memory controller, and in data-moving operating process, data can be buffered in the buffer memory medium of same memory controller controls, solve and move due to data between storage medium in prior art the operation needed by external unit, and the content copied need first to be buffered in be not same memory controller controls storage medium in, cause the technical matters moving inefficient operation of data between storage medium, achieve the technique effect moving operating efficiency improving data between storage medium.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the information processing method in one embodiment of the invention;
Fig. 2 is the process flow diagram of the information processing method only having a buffer memory medium in one embodiment of the invention;
Fig. 3 is the schematic diagram of the information processing only having a buffer memory medium in one embodiment of the invention;
Fig. 4 is the process flow diagram of the information processing method having two buffer memory media in one embodiment of the invention;
Fig. 5 is the schematic diagram of the information processing having two buffer memory media in one embodiment of the invention;
Fig. 6 is the functional block diagram of a kind of electronic equipment embodiment of the present invention.
Embodiment
The embodiment of the present application is by providing a kind of method and electronic equipment of information processing, solve and move due to data between storage medium in prior art the operation needed by external unit, and the content copied need first to be buffered in be not same memory controller controls storage medium in, cause the technical matters moving inefficient operation of data between storage medium, achieve the technique effect moving operating efficiency improving data between storage medium.
Technical scheme in the embodiment of the present application is solve above-mentioned technical matters, and general thought is as follows:
A kind of method of information processing is provided in one embodiment of the invention, be applied in an electronic equipment, described electronic equipment comprises a memory controller and is subject to the first storage medium and second storage medium of described memory controller controls, by the data-moving of described first storage medium in the process of described second storage medium, described method comprises: the data that needs are moved by described memory controller read and are buffered in the buffer memory medium by described memory controller controls from described first storage medium; Described data read and write in described second storage medium by described memory controller from described buffer memory medium.Therefore by the method in the present embodiment, storage controller performs the operation of data-moving between the storage medium by this memory controller controls, and in data-moving operating process, data can be buffered in the buffer memory medium of same memory controller controls, solve and move due to data between storage medium in prior art the operation needed by external unit, and the content copied need first to be buffered in be not same memory controller controls storage medium in, cause the technical matters moving inefficient operation of data between storage medium, achieve the technique effect moving operating efficiency improving data between storage medium.
In order to better understand technique scheme, below in conjunction with accompanying drawing, the main of the embodiment of the present application technical scheme being realized principle, embodiment and being explained in detail the beneficial effect that should be able to reach.
Embodiment one
Please refer to Fig. 1, one embodiment of the invention provides a kind of method of information processing, is applied in an electronic equipment, and this electronic equipment can be notebook computer, panel computer, mobile phone etc.This electronic equipment comprises a memory controller and by the first storage medium of memory controller controls and the second storage medium, by the data-moving of the first storage medium in the process of the second storage medium, method comprises:
Step 101: memory controller reads needing the data moved and is buffered in the buffer memory medium by memory controller controls from the first storage medium;
Step 102: data read and write in the second storage medium by memory controller from buffer memory storage medium.
Wherein, the first storage medium and the second storage medium are specifically respectively: two zoness of different of same storage medium; Or two of same item storage mediums; Or inhomogeneous two storage mediums.Such as, support DRAM(Dynamic Random Access Memory for one simultaneously, dynamic RAM) and MRAM(Magnetic Random Access Memory, magnetic RAM) memory controller of two class storage mediums, when electronic equipment needs the content replication in DRAM region in MRAM, then the first storage medium is DRAM, and the second storage medium is MRAM.Certainly, the first storage medium and the second storage medium can be two different storage zone in a DRAM, also can be two MRAM.
In specific implementation process, suppose to support in the memory controller of DRAM and MRAM two class storage medium at the same time, first storage medium is DRAM, second storage medium is MRAM, the buffer memory medium that this storage controls is SRAM(Static Random Access Memory, static RAM), then step 101 is specially: memory controller reads needing the data moved and is buffered in the SRAM by memory controller controls from DRAM.
Step 102 is performed: data read and write in MARM by memory controller from SRAM after step 101.
In practice process, memory controller comprises a register, has the source address of data Replica, destination address, size of data and data Replica status of processes in register.Memory controller carrys out control data according to the content in register and moves process.In data Replica process, the equipment beyond this memory controller does not visit the data in DRAM or MRAM by memory controller, but can be carried out the state of data query reproduction process by register.Memory controller also can by interrupting notifying whether CPU reproduction process completes or whether make mistakes.
Further, when buffer memory medium is specially a buffer memory medium, be that data read by memory controller from buffer memory storage medium and before writing in the second storage medium, method also comprises in step 102:
Step 103: determine that data in buffer memory medium meet first pre-conditioned.
Wherein, step 103 specifically comprises:
Determine the full buffer memory medium of data stuffing in buffer memory medium; Or
Determine that the data in buffer memory medium are the total data needing to move; Or
Determine that the reserves of data in buffer memory medium in buffer memory medium meet a threshold value, threshold value is less than the space of buffer memory medium.
The entire protocol of information processing method when buffer memory medium in the application is specially a buffer memory medium is described below by a specific embodiment, please refer to Fig. 2 and Fig. 3, suppose that buffer memory medium is a SRAM, first storage medium is DRAM, second storage medium is MRAM, memory controller is by data-moving in DRAM in the process of MRAM, and method comprises:
301: memory controller reads needing the data moved and is buffered in the SRAM by memory controller controls from DRAM;
302: determine that data in SRAM meet first pre-conditioned;
303: data read and write in MARM by memory controller from SRAM.
Wherein, in 302, determine that data in SRAM meet first and pre-conditionedly specifically to comprise: after determining that target data that needs are moved fills full SRAM, perform step 303; Or after determining that target data is less than the storage space of SRAM, perform step 303; Or after determining that data reserves in sram meet a threshold value, perform step 303, threshold value is less than the storage space of SRAM, this scheme can realize while in target data buffer memory write buffer memory medium, is write in the second storage medium by the data reading in buffer memory medium.When target data is larger, step 301,302,303 may need to be cycled to repeat execution repeatedly, until target data is stored in the second storage medium completely.
Preferably, in order to improve the efficiency of data-moving operation further, please refer to Fig. 4 and Fig. 5, buffer memory medium can comprise the first buffer memory medium and the second buffer memory medium, such as use two SRAM as buffer memory medium, then step 101 specifically comprises:
1011: memory controller reads needing the data moved and is buffered in the first buffer memory medium from the first storage medium;
1012: detect the data of filling in the first buffer memory medium and whether meet second pre-conditioned;
1013: when the data of filling in the first buffer memory medium meet second pre-conditioned time, memory controller reads needing the data moved and is buffered in the second buffer memory medium from the first storage medium;
When the data of filling in the first buffer memory medium meet second pre-conditioned time, step 102 specifically comprises:
1021: data read and write in the second storage medium by memory controller from the first buffer memory medium;
1022: detect the data of filling in the second buffer memory medium and whether meet the 3rd pre-conditioned;
1023: when the data of filling in the second buffer memory medium meet the 3rd pre-conditioned time, data read and write in the second storage medium by memory controller from the second buffer memory medium.
Wherein, second pre-conditionedly comprises: the full first buffer memory medium of the data stuffing of filling in the first buffer memory medium; Or first the reserves of data in the first buffer memory medium of filling in buffer memory medium meet first threshold, first threshold is less than the space of the first buffer memory medium.
3rd pre-conditionedly comprises: the full second buffer memory medium of the data stuffing of filling in the second buffer memory medium; Or second the reserves of data in the second buffer memory medium of filling in buffer memory medium meet Second Threshold, Second Threshold is less than the space of the second buffer memory medium.
Further, in step 1012, when testing result is no, continue to perform step 1012.In step 1021, when testing result is no, continue to perform step 1021; When testing result is for being certainly, while performing step 1023, perform step 1011, by repeatedly circulating, until memory controller moves the second storage medium by needing the data copied from the first storage medium.
Described as can be seen from above, by arranging two buffer memory media, can be implemented in while data buffer storage is carried out to one of them buffer memory medium, the data reading in another buffer memory medium is write in the second storage medium, improve the efficiency of data-moving operation.Certainly, in practice, also can arrange multiple buffer memory medium, the application is not specifically limited.
As can be seen from the above description detailed to the implementation process of information processing method in the present embodiment, the operation of data-moving between the storage medium being subject to this memory controller controls is performed by memory controller, and in data-moving operating process, data can be buffered in the buffer memory medium of same memory controller controls, solve and move due to data between storage medium in prior art the operation needed by external unit, and the content copied need first to be buffered in be not same memory controller controls storage medium in, cause the technical matters moving inefficient operation of data between storage medium, achieve the technique effect moving operating efficiency improving data between storage medium.
Embodiment two
Based on same inventive concept, one embodiment of the invention also provides a kind of electronic equipment, please refer to shown in Fig. 6, and this electronic equipment comprises: memory controller 601; First storage medium 602, controls by memory controller 601; Second storage medium 603, controls by memory controller 601; Buffer memory medium 604, controls by memory controller 601; Wherein, by the data-moving of the first storage medium 602 in the process of the second storage medium 603, memory controller 601 specifically for: read needing the data moved from the first storage medium 602 and be buffered in buffer memory medium 604; Data are read from buffer memory storage medium 604 and writes in the second storage medium 603.
Optionally, when buffer memory medium 604 is specially a buffer memory medium 604, memory controller 601 also for: determine that data in buffer memory medium 604 meet first pre-conditioned.
Optionally, memory controller 601 concrete also for: determine the full buffer memory medium 604 of data stuffing in buffer memory medium 604; Or determine that the data in buffer memory medium 604 are the total data needing to move; Or determine that the reserves of data in buffer memory medium 604 in buffer memory medium 604 meet a threshold value, threshold value is less than the space of buffer memory medium 604.
Optionally, when buffer memory medium 604 comprises the first buffer memory medium and the second buffer memory medium, memory controller 601 concrete also for: memory controller 601 reads needing the data moved and is buffered in the first buffer memory medium from the first storage medium 602; Whether detect the data of filling in the first buffer memory medium meets second pre-conditioned; When the data of filling in the first buffer memory medium meet second pre-conditioned time, memory controller 601 reads needing the data moved and is buffered in the second buffer memory medium from the first storage medium 602; When the data of filling in the first buffer memory medium meet second pre-conditioned time, data read and write in the second storage medium 603 by memory controller 601 from the first buffer memory medium; Whether detect the data of filling in the second buffer memory medium meets the 3rd pre-conditioned; When the data of filling in the second buffer memory medium meet the 3rd pre-conditioned time, data read and write in the second storage medium 603 by memory controller 601 from the second buffer memory medium.
Optionally, second pre-conditionedly comprises: the full first buffer memory medium of the data stuffing of filling in the first buffer memory medium; Or first the reserves of data in the first buffer memory medium of filling in buffer memory medium meet first threshold, first threshold is less than the space of the first buffer memory medium; 3rd pre-conditionedly comprises: the full second buffer memory medium of the data stuffing of filling in the second buffer memory medium; Or second the reserves of data in the second buffer memory medium of filling in buffer memory medium meet Second Threshold, Second Threshold is less than the space of the second buffer memory medium.
Optionally, the first storage medium 602 and the second storage medium 603 are specifically respectively: two zoness of different of same storage medium; Or two of same item storage mediums; Or inhomogeneous two storage mediums.
Information processing method in electronic equipment in embodiment two and earlier figures 1 and each variant embodiment thereof is based on the invention under same design, by the aforementioned detailed description to information processing method and various version thereof, those skilled in the art clearly can understand the implementation process of electronic equipment in the present embodiment, so succinct in order to instructions, do not repeat them here.
By the embodiment of in the above-described embodiment in the present invention or multiple embodiment, at least following technique effect can be realized:
The operation of data-moving between the storage medium being subject to this memory controller controls is performed by memory controller, and in data-moving operating process, data can be buffered in the buffer memory medium of same memory controller controls, solve and move due to data between storage medium in prior art the operation needed by external unit, and the content copied need first to be buffered in be not same memory controller controls storage medium in, cause the technical matters moving inefficient operation of data between storage medium, achieve the technique effect moving operating efficiency improving data between storage medium.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Specifically, the computer program instructions that information processing method in the embodiment of the present application is corresponding can be stored in CD, hard disk, on the storage mediums such as USB flash disk, read by an electronic equipment when the computer program instructions corresponding with information processing method in storage medium or when being performed, comprise the steps:
Described memory controller reads needing the data moved and is buffered in the buffer memory medium by described memory controller controls from described first storage medium;
Described data read and write in described second storage medium by described memory controller from described buffer memory medium.
Optionally, when described buffer memory medium is specially a buffer memory medium, before described data to read and write in described second storage medium by described memory controller from described buffer memory medium, when performing this instruction, also comprise step: determine that data in described buffer memory medium meet first pre-conditioned.
Optionally, when described buffer memory medium comprises the first buffer memory medium and the second buffer memory medium, described memory controller specifically comprises needing the data moved to read from described first storage medium and be buffered in the buffer memory medium by described memory controller controls: the data that needs are moved by described memory controller read and are buffered in the first buffer memory medium from described first storage medium; Whether detect the data of filling in described first buffer memory medium meets second pre-conditioned; When the data of filling in described first buffer memory medium meet described second pre-conditioned time, described memory controller reads needing the data moved and is buffered in the second buffer memory medium from described first storage medium; When the data of filling in described first buffer memory medium meet described second pre-conditioned time, described data read and write in described second storage medium and specifically comprise by described memory controller from described buffer memory medium: described data read and write in described second storage medium by described memory controller from described first buffer memory medium; Whether detect the data of filling in described second buffer memory medium meets the 3rd pre-conditioned; When the data of filling in described second buffer memory medium meet described 3rd pre-conditioned time, described data read and write in described second storage medium by described memory controller from described second buffer memory medium.
Optionally, described first storage medium and described second storage medium are specifically respectively: two zoness of different of same storage medium; Or two of same item storage mediums; Or inhomogeneous two storage mediums.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (12)

1. an information processing method, be applied in an electronic equipment, described electronic equipment comprises a memory controller and is subject to the first storage medium and second storage medium of described memory controller controls, by the data-moving of described first storage medium in the process of described second storage medium, described method comprises:
Described memory controller reads needing the data moved and is buffered in the buffer memory medium by described memory controller controls from described first storage medium;
Described data read and write in described second storage medium by described memory controller from described buffer memory medium.
2. the method for claim 1, it is characterized in that, when described buffer memory medium is specially a buffer memory medium, before described data to read and write in described second storage medium by described memory controller from described buffer memory medium, described method also comprises:
Determine that data in described buffer memory medium meet first pre-conditioned.
3. method as claimed in claim 2, is characterized in that, the described data determined in described buffer memory medium meet first and pre-conditionedly to comprise:
Determine the full described buffer memory medium of data stuffing in described buffer memory medium; Or
Determine that the data in described buffer memory medium are the total data needing to move; Or
Determine that the reserves of data in described buffer memory medium in described buffer memory medium meet a threshold value, described threshold value is less than the space of described buffer memory medium.
4. the method for claim 1, it is characterized in that, when described buffer memory medium comprises the first buffer memory medium and the second buffer memory medium, described memory controller specifically comprises needing the data moved to read from described first storage medium and be buffered in the buffer memory medium by described memory controller controls:
Described memory controller reads needing the data moved and is buffered in the first buffer memory medium from described first storage medium;
Whether detect the data of filling in described first buffer memory medium meets second pre-conditioned;
When the data of filling in described first buffer memory medium meet described second pre-conditioned time, described memory controller reads needing the data moved and is buffered in the second buffer memory medium from described first storage medium;
When the data of filling in described first buffer memory medium meet described second pre-conditioned time, described data read and write in described second storage medium and specifically comprise by described memory controller from described buffer memory medium:
Described data read and write in described second storage medium by described memory controller from described first buffer memory medium;
Whether detect the data of filling in described second buffer memory medium meets the 3rd pre-conditioned;
When the data of filling in described second buffer memory medium meet described 3rd pre-conditioned time, described data read and write in described second storage medium by described memory controller from described second buffer memory medium.
5. method as claimed in claim 4, is characterized in that, described second pre-conditionedly comprises:
The full described first buffer memory medium of the data stuffing of filling in described first buffer memory medium; Or
The reserves of the data of filling in described first buffer memory medium in described first buffer memory medium meet first threshold, and described first threshold is less than the space of described first buffer memory medium;
Described 3rd pre-conditionedly comprises:
The full described second buffer memory medium of the data stuffing of filling in described second buffer memory medium; Or
The reserves of the data of filling in described second buffer memory medium in described second buffer memory medium meet Second Threshold, and described Second Threshold is less than the space of described second buffer memory medium.
6. the method for claim 1, is characterized in that, described first storage medium and described second storage medium are specifically respectively:
Two zoness of different of same storage medium; Or
Two storage mediums of same item; Or
Inhomogeneous two storage mediums.
7. an electronic equipment, comprising:
Memory controller;
First storage medium, by described memory controller controls;
Second storage medium, by described memory controller controls;
Buffer memory medium, by described memory controller controls;
Wherein, by the data-moving of described first storage medium in the process of described second storage medium, described memory controller specifically for:
Read needing the data moved from described first storage medium and be buffered in described buffer memory medium;
Described data are read from described buffer memory medium and writes in described second storage medium.
8. electronic equipment as claimed in claim 7, is characterized in that, when described buffer memory medium is specially a buffer memory medium, described memory controller also for:
Determine that data in described buffer memory medium meet first pre-conditioned.
9. electronic equipment as claimed in claim 8, is characterized in that, described memory controller concrete also for:
Determine the full described buffer memory medium of data stuffing in described buffer memory medium; Or
Determine that the data in described buffer memory medium are the total data needing to move; Or
Determine that the reserves of data in described buffer memory medium in described buffer memory medium meet a threshold value, described threshold value is less than the space of described buffer memory medium.
10. electronic equipment as claimed in claim 7, is characterized in that, when described buffer memory medium comprises the first buffer memory medium and the second buffer memory medium, described memory controller concrete also for:
Described memory controller reads needing the data moved and is buffered in the first buffer memory medium from described first storage medium;
Whether detect the data of filling in described first buffer memory medium meets second pre-conditioned;
When the data of filling in described first buffer memory medium meet described second pre-conditioned time, described memory controller reads needing the data moved and is buffered in the second buffer memory medium from described first storage medium;
When the data of filling in described first buffer memory medium meet described second pre-conditioned time, described data read and write in described second storage medium by described memory controller from described first buffer memory medium;
Whether detect the data of filling in described second buffer memory medium meets the 3rd pre-conditioned;
When the data of filling in described second buffer memory medium meet described 3rd pre-conditioned time, described data read and write in described second storage medium by described memory controller from described second buffer memory medium.
11. electronic equipments as claimed in claim 10, is characterized in that, described second pre-conditionedly comprises:
The full described first buffer memory medium of the data stuffing of filling in described first buffer memory medium; Or
The reserves of the data of filling in described first buffer memory medium in described first buffer memory medium meet first threshold, and described first threshold is less than the space of described first buffer memory medium;
Described 3rd pre-conditionedly comprises:
The full described second buffer memory medium of the data stuffing of filling in described second buffer memory medium; Or
The reserves of the data of filling in described second buffer memory medium in described second buffer memory medium meet Second Threshold, and described Second Threshold is less than the space of described second buffer memory medium.
12. electronic equipments as claimed in claim 7, is characterized in that, described first storage medium and described second storage medium are specifically respectively:
Two zoness of different of same storage medium; Or
Two storage mediums of same item; Or
Inhomogeneous two storage mediums.
CN201310602993.5A 2013-11-25 2013-11-25 A kind of method and electronic equipment of information processing Active CN104657084B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310602993.5A CN104657084B (en) 2013-11-25 2013-11-25 A kind of method and electronic equipment of information processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310602993.5A CN104657084B (en) 2013-11-25 2013-11-25 A kind of method and electronic equipment of information processing

Publications (2)

Publication Number Publication Date
CN104657084A true CN104657084A (en) 2015-05-27
CN104657084B CN104657084B (en) 2018-08-31

Family

ID=53248281

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310602993.5A Active CN104657084B (en) 2013-11-25 2013-11-25 A kind of method and electronic equipment of information processing

Country Status (1)

Country Link
CN (1) CN104657084B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110809874A (en) * 2018-08-24 2020-02-18 深圳市大疆创新科技有限公司 Data synchronization method and system, movable platform and readable storage medium
CN112650439A (en) * 2019-10-10 2021-04-13 上海磁宇信息科技有限公司 MRAM-NAND controller and data writing method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080195799A1 (en) * 2007-02-13 2008-08-14 Samsung Electronics Co., Ltd. Systems, methods and computer program products for operating a data processing system in which a file delete command is sent to an external storage device for invalidating data thereon
CN202067260U (en) * 2011-02-21 2011-12-07 西安华芯半导体有限公司 Buffer memory system for reducing data transmission
CN103377152A (en) * 2012-04-26 2013-10-30 深圳市朗科科技股份有限公司 Write operation control method and write operation device for solid state disk

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080195799A1 (en) * 2007-02-13 2008-08-14 Samsung Electronics Co., Ltd. Systems, methods and computer program products for operating a data processing system in which a file delete command is sent to an external storage device for invalidating data thereon
CN202067260U (en) * 2011-02-21 2011-12-07 西安华芯半导体有限公司 Buffer memory system for reducing data transmission
CN103377152A (en) * 2012-04-26 2013-10-30 深圳市朗科科技股份有限公司 Write operation control method and write operation device for solid state disk

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110809874A (en) * 2018-08-24 2020-02-18 深圳市大疆创新科技有限公司 Data synchronization method and system, movable platform and readable storage medium
CN112650439A (en) * 2019-10-10 2021-04-13 上海磁宇信息科技有限公司 MRAM-NAND controller and data writing method thereof
CN112650439B (en) * 2019-10-10 2023-03-21 上海磁宇信息科技有限公司 MRAM-NAND controller and data writing method thereof

Also Published As

Publication number Publication date
CN104657084B (en) 2018-08-31

Similar Documents

Publication Publication Date Title
CN102609360B (en) Data processing method, data processing device and data processing system
CN103677654A (en) Method and electronic equipment for storing data
EP2665065A2 (en) Electronic device employing flash memory
CN107408019B (en) Method and apparatus for improving immunity to defects in non-volatile memory
CN103593226A (en) Method for improving IO performance of disc of virtual machine
US9324388B2 (en) Allocating memory address space between DIMMs using memory controllers
KR20120081351A (en) Non-volitile memory device for performing ftl and method thereof
CN103955433A (en) Shingled magnetic recording hard disk, and method and device for writing data in shingled magnetic recording hard disk
JP2016186828A5 (en) Storage device and storage control method
US20150149741A1 (en) Storage System and Control Method Thereof
KR20200108650A (en) Storage device and method for operating storage device
CN103150122A (en) Method and device for managing disk cache space
CN109791510B (en) Managing data flows in heterogeneous computing
US20180349058A1 (en) Buffer-based update of state data
TW201712540A (en) Data backup system
US9047923B1 (en) Fast shingled tracks recording
KR101996641B1 (en) Apparatus and method for memory overlay
TW201327185A (en) Memory storage device and memory controller and data writing method thereof
CN104407990A (en) Disk access method and device
CN104461384A (en) Data write-in method and storage device
CN104657084A (en) Information processing method and electronic device
CN104063284A (en) Method and device operating application program
CN107632779B (en) Data processing method and device and server
US20150261616A1 (en) Method of controlling memory swap operation and data processing system using same
US20190227740A1 (en) Atomic write method for multi-transaction

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant