CN105868121B - A kind of information processing method and electronic equipment - Google Patents

A kind of information processing method and electronic equipment Download PDF

Info

Publication number
CN105868121B
CN105868121B CN201610184194.4A CN201610184194A CN105868121B CN 105868121 B CN105868121 B CN 105868121B CN 201610184194 A CN201610184194 A CN 201610184194A CN 105868121 B CN105868121 B CN 105868121B
Authority
CN
China
Prior art keywords
subdata
subcommand
memory space
transmitted
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610184194.4A
Other languages
Chinese (zh)
Other versions
CN105868121A (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.)
Shenzhen Union Memory Information System Co Ltd
Original Assignee
Beijing Legend Core Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Legend Core Technology Co Ltd filed Critical Beijing Legend Core Technology Co Ltd
Priority to CN201610184194.4A priority Critical patent/CN105868121B/en
Publication of CN105868121A publication Critical patent/CN105868121A/en
Application granted granted Critical
Publication of CN105868121B publication Critical patent/CN105868121B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • G06F12/0246Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The invention discloses a kind of information processing method and electronic equipment, the information processing method includes: reception data processing command;The data processing command is parsed, the pending data is divided into the transmission of at least two subdatas, generation and one-to-one at least two subcommand of at least two subdata, determines the address mapping relation at least two subcommand in each subcommand;State based on the corresponding memory space of subdata each at least two subdatas, determine the subdata transmitted next time at least two subdata, address mapping relation based on the corresponding subcommand of the subdata transmitted determined next time transmits the subdata, upon completion of the transmission, state based on the corresponding memory space of subdata not transmitted, the subdata transmitted next time is determined and transmits, until at least two subdata is all transmitted.The above method provided by the invention, solve in the prior art reading and writing data there is technical issues that it is larger.

Description

A kind of information processing method and electronic equipment
Technical field
The present invention relates to electronic technology field, in particular to a kind of information processing method and electronic equipment.
Background technique
With the rapid development of science and technology, more and more electronic equipments occur in people's lives, are people's lives It brings great convenience.In order to store a large amount of data, all kinds of hard disks are widely used in server platform and all kinds of electricity In sub- equipment.Current storage equipment, as solid state hard disk (Solid State Drives, SSD) is used as independent product or electricity The component part of sub- equipment has been widely used.Storage equipment is mainly used for the reading or write-in of data, rapidly carries out Data processing can embody the processing capacity of electronic equipment, enhance electronics market competitiveness.In the prior art, storage is set Standby corresponding reading and writing data is usually that sequence carries out, and will cause biggish read-write delay in this way, causes data processing speed slower. So in the prior art reading and writing data there is technical issues that it is larger.
Summary of the invention
The embodiment of the present invention provides a kind of information processing method and electronic equipment, for solving reading and writing data in the prior art There is technical issues that larger.
On the one hand the embodiment of the present invention provides a kind of information processing method, comprising:
Data processing command is received, the data processing command is used for pending data in two different types of storages It is transmitted between space;
The data processing command is parsed, the pending data is divided into the transmission of at least two subdatas, generation and institute One-to-one at least two subcommand of at least two subdatas is stated, is determined at least two subcommand in each subcommand Address mapping relation, each subcommand be used for control corresponding subdata by the subcommand address of cache close System's transmission;
Based on the state of the corresponding memory space of subdata each at least two subdata, described at least two are determined The subdata transmitted next time in a subdata, the address based on the corresponding subcommand of the subdata transmitted determined next time Mapping relations transmit the subdata, upon completion of the transmission, based on the state for the corresponding memory space of subdata not transmitted, determine And the subdata transmitted next time is transmitted, until at least two subdata is all transmitted.
Optionally, the address mapping relation in each subcommand, specifically: the corresponding subnumber of each subcommand According to the corresponding relationship between the memory space at place and the physical address of memory space to be stored.
Optionally, described two different types of memory spaces are respectively memory space and the institute of electronic equipment host memory State the memory space of electronic equipment solid state hard disk.
Optionally, the data processing command includes read command or write order;It is the reading in the data processing command When order, the read command is used to data to be read being transmitted to the host memory by the memory space of the solid state hard disk Memory space;When the data processing command is the write order, the write order is for being written into data by the master The memory space of machine memory is transmitted to the memory space of the solid state hard disk.
Optionally, the state based on the corresponding memory space of subdata each at least two subdata, really The subdata transmitted next time in fixed at least two subdata, specifically includes:
Determine that the physical address at least two subcommand in each subcommand in address mapping relation is that solid-state is hard The state of the corresponding memory space of disk address;
The state for determining the corresponding memory space in solid state hard disk address is the corresponding subdata of subcommand of idle state The state that transmission priority is greater than the corresponding memory space in solid state hard disk address is the corresponding subnumber of subcommand of busy state According to transmission priority;
Determine that the subdata transmitted next time at least two subdata is the highest subdata of transmission priority.
Optionally, it in the state based on the corresponding memory space of subdata not transmitted, determines and transmits and transmit next time Subdata, until after at least two subdata all transmitted, the method also includes:
Judge whether the electronic equipment completes the processing operation to the pending data after transmission;
If so, a status information is generated, so that the electronic equipment discharges according to the state information distributes to institute State the host memory memory space of pending data.
On the other hand the embodiment of the present invention provides a kind of electronic equipment, comprising:
Storage unit, for storing at least one program module;
At least one processor, at least one described processor pass through acquisition and run at least one described program module, Processing order for receiving data, the data processing command are used for pending data in two different types of memory spaces Between transmitted;Parse the data processing command, by the pending data be divided at least two subdatas transmission, generate with One-to-one at least two subcommand of at least two subdatas, determines each subcommand at least two subcommand In address mapping relation, each subcommand is for controlling corresponding subdata by the address of cache in the subcommand Relationship transmission;Based on the state of the corresponding memory space of subdata each at least two subdata, determination is described at least The subdata transmitted next time in two subdatas, the ground based on the corresponding subcommand of the subdata transmitted determined next time Location mapping relations transmit the subdata, upon completion of the transmission, based on the state for the corresponding memory space of subdata not transmitted, really The subdata transmitted next time is determined and transmits, until at least two subdata is all transmitted.
Optionally, the address mapping relation in each subcommand, specifically: the corresponding subnumber of each subcommand According to the corresponding relationship between the memory space at place and the physical address of memory space to be stored.
Optionally, described two different types of memory spaces are respectively the memory space of the electronic equipment host memory With the memory space of the electronic equipment solid state hard disk.
Optionally, the data processing command includes read command or write order;It is the reading in the data processing command When order, the read command is used to data to be read being transmitted to the host memory by the memory space of the solid state hard disk Memory space;When the data processing command is the write order, the write order is for being written into data by the master The memory space of machine memory is transmitted to the memory space of the solid state hard disk.
Optionally, at least one described processor is also used to:
Determine that the physical address at least two subcommand in each subcommand in address mapping relation is that solid-state is hard The state of the corresponding memory space of disk address;
The state for determining the corresponding memory space in solid state hard disk address is the corresponding subdata of subcommand of idle state The state that transmission priority is greater than the corresponding memory space in solid state hard disk address is the corresponding subnumber of subcommand of busy state According to transmission priority;
Determine that the subdata transmitted next time at least two subdata is the highest subdata of transmission priority.
Optionally, at least one described processor is also used to:
In the state based on the corresponding memory space of subdata not transmitted, determines and transmit the subnumber transmitted next time According to until judging whether the electronic equipment is completed to the institute after transmission after at least two subdata is all transmitted State the processing operation of pending data;
If so, a status information is generated, so that the electronic equipment discharges according to the state information distributes to institute State the host memory memory space of pending data.
On the other hand the embodiment of the present invention provides a kind of electronic equipment, comprising:
First receiving unit, processing order for receiving data, the data processing command is for existing pending data It is transmitted between two different types of memory spaces;
The pending data is divided at least two sons for parsing the data processing command by the first resolution unit Data transmission, generation and one-to-one at least two subcommand of at least two subdata determine at least two son Address mapping relation in order in each subcommand, each subcommand is for controlling corresponding subdata by the son Address mapping relation transmission in order;
First determination unit, for the shape based on the corresponding memory space of subdata each at least two subdata State determines the subdata transmitted next time at least two subdata, based on the subdata transmitted determined next time The address mapping relation of corresponding subcommand transmits the subdata, upon completion of the transmission, corresponding based on the subdata that do not transmit The state of memory space determines and transmits the subdata transmitted next time, until at least two subdata is all transmitted.
Said one or multiple technical solutions in the embodiment of the present application at least have following one or more technology effects Fruit:
1, data processing command is received due to using in technical solution in the embodiment of the present application, at the data Reason order between two different types of memory spaces for transmitting pending data;Parse the data processing life It enables, the pending data is divided into the transmission of at least two subdatas, is generated one-to-one at least two subdata At least two subcommands determine the address mapping relation at least two subcommand in each subcommand;Based on it is described extremely The state of the corresponding memory space of each subdata, determines and passes next time at least two subdata in few two subdatas Defeated subdata, the address mapping relation based on the corresponding subcommand of the subdata transmitted determined next time transmit the subnumber According to upon completion of the transmission, based on the state for the corresponding memory space of subdata not transmitted, determining and transmit and transmit next time Subdata, until the technological means that at least two subdata is all transmitted.In this way, electronic equipment is to data When reason, pending data can be resolved into multiple portions and carry out out-of-order transfer, without having to sequence as the prior art Transmission.Thus it is possible to effectively solve reading and writing data in the prior art there is technical issues that it is larger, realize to data carry out The technical effect quickly and efficiently handled.
2, due in technical solution in the embodiment of the present application, using depositing based on the subdata that do not transmit is corresponding The state in space is stored up, the subdata transmitted next time is determined and transmit, until at least two subdata is all by transmission Afterwards, judge whether the electronic equipment completes the processing operation to the pending data after transmission;If so, generating a shape State information, so that the electronic equipment discharges according to the state information and distributes to the host memory of the pending data and deposit Store up the technological means in space.In this way, can in time be discharged memory headroom after the processing of the complete paired data of electronic equipment, so that Memory can cache next group pending data, avoid that memory is occupied always to cause data to block, it is ensured that data processing Fluency.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application or in prior art, below retouches embodiment Attached drawing needed in stating is briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention one A little embodiments.
Fig. 1 is the flow chart of information processing method in the embodiment of the present application one;
Fig. 2 is the structure chart of a kind of electronic equipment in the embodiment of the present application two;
Fig. 3 is the structure chart of a kind of electronic equipment in the embodiment of the present application three.
Specific embodiment
The embodiment of the present invention provides a kind of information processing method and electronic equipment, for solving reading and writing data in the prior art There is technical issues that larger.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of information processing method, and general thought is as follows:
Data processing command is received, the data processing command is used for pending data in two different types of storages It is transmitted between space;
The data processing command is parsed, the pending data is divided into the transmission of at least two subdatas, generation and institute One-to-one at least two subcommand of at least two subdatas is stated, is determined at least two subcommand in each subcommand Address mapping relation, each subcommand be used for control corresponding subdata by the subcommand address of cache close System's transmission;
Based on the state of the corresponding memory space of subdata each at least two subdata, described at least two are determined The subdata transmitted next time in a subdata, the address based on the corresponding subcommand of the subdata transmitted determined next time Mapping relations transmit the subdata, upon completion of the transmission, based on the state for the corresponding memory space of subdata not transmitted, determine And the subdata transmitted next time is transmitted, until at least two subdata is all transmitted.
Due to using and receiving data processing command, the data processing in technical solution in the embodiment of the present application Order between two different types of memory spaces for transmitting pending data;The data processing command is parsed, The pending data is divided into the transmission of at least two subdatas, is generated at least two subdata correspondingly at least Two subcommands determine the address mapping relation at least two subcommand in each subcommand;Based on described at least two The state of the corresponding memory space of each subdata in a subdata is determined and is transmitted next time at least two subdata Subdata, the address mapping relation based on the corresponding subcommand of the subdata transmitted determined next time transmit the subdata, Upon completion of the transmission, the state based on the corresponding memory space of subdata not transmitted determines and transmits the son transmitted next time Data, until the technological means that at least two subdata is all transmitted.In this way, electronic equipment is handled to data When, pending data can be resolved into multiple portions and carry out out-of-order transfer, passed without having to sequence as the prior art It is defeated.Thus it is possible to effectively solve reading and writing data in the prior art there is technical issues that it is larger, realize data are carried out it is fast The technical effect of speed and efficient process.
With reference to the accompanying drawing to main realization principle, specific embodiment and its correspondence of the embodiment of the present application technical solution The beneficial effect that can reach is explained in detail.
Embodiment one
In the specific implementation process, which can be applied in an electronic equipment, and the electronic equipment can be with It is the electronic equipments such as desktop computer, laptop, mobile phone, tablet computer, is also possible to other electronic equipment, here, just not It schematically illustrates one by one.
Referring to FIG. 1, the embodiment of the present invention provides a kind of information processing method, comprising:
S101: receiving data processing command, and the data processing command is used for pending data in two different types Memory space between transmitted;
S102: parsing the data processing command, and the pending data is divided into the transmission of at least two subdatas, is generated With one-to-one at least two subcommand of at least two subdata, every height life at least two subcommand is determined Address mapping relation in order, each subcommand are reflected for controlling corresponding subdata by the address in the subcommand Penetrate relationship transmission;
S103: the state based on the corresponding memory space of subdata each at least two subdata, determine described in The subdata transmitted next time at least two subdatas, based on the corresponding subcommand of the subdata transmitted determined next time Address mapping relation transmit the subdata, upon completion of the transmission, the shape based on the corresponding memory space of subdata not transmitted State determines and transmits the subdata transmitted next time, until at least two subdata is all transmitted.
Wherein, the address mapping relation in each subcommand, specifically: the corresponding subdata of each subcommand Corresponding relationship between the physical address of the memory space at place and memory space to be stored;
Described two different types of memory spaces are respectively the memory space and the electronics of electronic equipment host memory The memory space of equipment solid state hard disk;
Based on the state of the corresponding memory space of subdata each at least two subdata, described at least two are determined The subdata transmitted next time in a subdata, specifically includes:
Determine that the physical address at least two subcommand in each subcommand in address mapping relation is that solid-state is hard The state of the corresponding memory space of disk address;
The state for determining the corresponding memory space in solid state hard disk address is the corresponding subdata of subcommand of idle state The state that transmission priority is greater than the corresponding memory space in solid state hard disk address is the corresponding subnumber of subcommand of busy state According to transmission priority;
Determine that the subdata transmitted next time at least two subdata is the highest subdata of transmission priority.
The data processing command includes read command or write order;When the data processing command is the read command, The storage that the read command is used to data to be read being transmitted to the host memory by the memory space of the solid state hard disk is empty Between;When the data processing command is the write order, the write order is for being written into data by the host memory Memory space be transmitted to the memory space of the solid state hard disk.
Specifically, in the present embodiment, host memory and solid state hard disk are provided in electronic equipment, the read-write of data is supported Operation, so, data processing command includes read command and write order.When data processing command is read command, read command is used for Data to be read are transmitted to the memory space of host memory by the memory space of solid state hard disk;It is to write life in data processing command When enabling, write order is for being written into the memory space that data are transmitted to solid state hard disk by the memory space of host memory.Having In body implementation process, solid state hard disk can be NVMe (Non-Volatile Memory Express, nonvolatile memory mark It is quasi-) hard disk, which supports NVMe agreement, NVMe agreement itself to support the concurrent queue of 64k 64k depth, can support at a high speed Parallel data transmission.Certainly, solid state hard disk can also be other hard disks, here, the application is with no restriction.It is connect in electronic equipment When receiving data processing command, pending data corresponding with the data processing command is determined, and the pending data is divided into At least two subdatas generate subcommand corresponding at least two subdatas.That is: each subdata is corresponding with a son Order, the subcommand include an address mapping relation, and it is corresponding to be used to indicate the physical address that the subdata stores before transmission The corresponding memory space of physical address to be stored, the subdata are needed by the address in subcommand after memory space and transmission Mapping relations transmission.Since each subdata is corresponding with address mapping relation required when respective data are transmitted, in this way, When carrying out data transmission, subdata to be transmitted is divided by electronic equipment to be transmitted several times, when transmitting each time, therefore, to assure that each In the corresponding subcommand of subdata in address mapping relation the corresponding memory space of physical address state, determine that this time needs to pass Defeated subdata, and transmitted by the address mapping relation in the subcommand for the subdata determined.Upon completion of the transmission, into Row transmits next time when, equally, reflected based on address in the corresponding subcommand of subdata each in the remaining subdata that do not transmit The state for penetrating the corresponding memory space of physical address in relationship determines the subdata that this time need to be transmitted, according to the son determined Address mapping relation in the subcommand of data is transmitted.Carry out data transmission according to aforesaid way, until pending data All it is transmitted.In the present embodiment, the corresponding subcommand of each subdata can be bound in the form of data message with subdata Together, it can also be transmitted by transmitting different channels from data, here, the application is with no restriction.
Such as: when electronic equipment receives the order for pending data to be written to NVMe hard disk, electronic equipment solution The order is analysed, data is written into and is divided into subdata 1, subdata 2, subdata 3.And establish the address of cache in each subcommand Relationship, specifically, the address mapping relation in the corresponding subcommand 1 of subdata 1 is from the physical address 1 of host memory to NVMe The physical address 3 of hard disk, the address mapping relation in the corresponding subcommand 2 of subdata 2 be from the physical address 2 of host memory to The physical address 1 of NVMe hard disk;Address mapping relation in the corresponding subcommand 3 of subdata 3 be from host memory physically The physical address 1 of NVMe hard disk is arrived in location 3.When carrying out data processing, firstly, determining that each subdata needs the NVMe stored hard The corresponding working condition of physical address in disk.Such as: at current time, the physical address 3 of NVMe hard disk is busy state, NVMe The physical address 1 of hard disk is idle state, and the physical address 2 of NVMe hard disk is busy state, at this point, electronic equipment determines this The subdata of secondary transmission is subdata 3, and subdata 3 is written to NVMe hard disk physically by the physical address 3 of host memory Location 1.After the completion of subdata 3 is written, electronic equipment confirms what the remaining digital data 1 that do not transmit and subdata 3 to be stored again The corresponding working condition of physical address in NVMe hard disk, at this point, the NVMe hard disk in address mapping relation corresponding with subdata 1 Physical address 3 be idle state, the physical address 2 of the NVMe hard disk in address mapping relation corresponding with subdata 2 is non- Idle state, at this point, electronic equipment determines that the subdata of this transmission is subdata 1, by subdata 1 by the physics of host memory Address 1 is written to the physical address 3 of NVMe hard disk.After the completion of subdata 1 is written, finally by subdata 2 by host memory Physical address 2 is written to the physical address 2 of NVMe hard disk.The write operation of pending data is completed in this way.
It similarly, is that pending data is read out into host memory by hard-disc storage space when handling the read operation of data Memory space, mode is the same with the out-of-order transfer mode of above-mentioned write operation, here, the application does not repeat them here.It follows that subnumber It can be subdata 3, subdata 1, subdata 2 with out-of-order transfer, transmission sequence according to.And in the prior art, subdata is necessary Sequential delivery, it is necessary to transmit subdata 2 after first etc. subdatas 1 have passed, then transmit subdata 3.
By above-mentioned example it is found that in the present embodiment, for the read-write operation of data, data to be read and write can be decoupled At multiple subdatas, generate subcommand corresponding with multiple subdatas, so in transmission consideration storage state by subdata into Row out-of-order transfer, reduces data delay.Without having to sequential delivery as the prior art.Thus it is possible to effectively solve existing The technical issues of delay larger with the presence of reading and writing data in technology, realizes the technology effect quickly and efficiently handled data Fruit.
Further, in the present embodiment, in step: in the state based on the corresponding memory space of subdata not transmitted, The subdata transmitted next time is determined and transmits, until the method is also after at least two subdata is all transmitted Include:
Judge whether the electronic equipment completes the processing operation to the pending data after transmission;
If so, a status information is generated, so that the electronic equipment discharges according to the state information distributes to institute State the host memory memory space of pending data.
Specifically, in the present embodiment, after subdata is transmitted each time, whether can all determine pending data It is completed through all processing, if it is determined that whether processing data have all been transmitted, and will generate a notification information for mentioning Show the processor pending data of electronic equipment whole end of transmissions, in turn, processor can under pending data into Row processing, such as: reading or save etc..After the completion of by data processing, use is distributed in processor notice host memory release In the memory space for storing device to be processed, reduce data for the occupancy of memory headroom, timely releasing memory space, in this way, After the processing of the complete paired data of electronic equipment, memory headroom can be discharged in time, enable memory to cache next group and wait locating Data are managed, avoid that memory is occupied always to cause data to block, it is ensured that the fluency of data processing.
Embodiment two
Referring to FIG. 2, the embodiment of the present application also provides a kind of electronic equipment, comprising:
Storage unit 201, for storing at least one program module;
At least one processor 202, at least one described processor is by obtaining and running at least one described program mould Block, for receiving data processing order, the data processing command are used for pending data in two different types of storages It is transmitted between space;The data processing command is parsed, the pending data is divided into the transmission of at least two subdatas, it is raw At with one-to-one at least two subcommand of at least two subdata, determine every height at least two subcommand Address mapping relation in order, each subcommand is for controlling corresponding subdata by the address in the subcommand Mapping relations transmission;Based on the state of the corresponding memory space of subdata each at least two subdata, determine described in The subdata transmitted next time at least two subdatas, based on the corresponding subcommand of the subdata transmitted determined next time Address mapping relation transmit the subdata, upon completion of the transmission, the shape based on the corresponding memory space of subdata not transmitted State determines and transmits the subdata transmitted next time, until at least two subdata is all transmitted.
Optionally, the address mapping relation in each subcommand, specifically: the corresponding subnumber of each subcommand According to the corresponding relationship between the memory space at place and the physical address of memory space to be stored.
Optionally, described two different types of memory spaces are respectively the memory space of the electronic equipment host memory With the memory space of the electronic equipment solid state hard disk.
Optionally, the data processing command includes read command or write order;It is the reading in the data processing command When order, the read command is used to data to be read being transmitted to the host memory by the memory space of the solid state hard disk Memory space;When the data processing command is the write order, the write order is for being written into data by the master The memory space of machine memory is transmitted to the memory space of the solid state hard disk.
Optionally, at least one described processor is also used to:
Determine that the physical address at least two subcommand in each subcommand in address mapping relation is that solid-state is hard The state of the corresponding memory space of disk address;
The state for determining the corresponding memory space in solid state hard disk address is the corresponding subdata of subcommand of idle state The state that transmission priority is greater than the corresponding memory space in solid state hard disk address is the corresponding subnumber of subcommand of busy state According to transmission priority;
Determine that the subdata transmitted next time at least two subdata is the highest subdata of transmission priority.
Optionally, at least one described processor is also used to:
In the state based on the corresponding memory space of subdata not transmitted, determines and transmit the subnumber transmitted next time According to until judging whether the electronic equipment is completed to the institute after transmission after at least two subdata is all transmitted State the processing operation of pending data;
If so, a status information is generated, so that the electronic equipment discharges according to the state information distributes to institute State the host memory memory space of pending data.
Embodiment three
Referring to FIG. 3, the embodiment of the present application also provides a kind of electronic equipment, comprising:
First receiving unit 301, for receiving data processing order, the data processing command are used for pending data It is transmitted between two different types of memory spaces;
The pending data is divided at least two for parsing the data processing command by the first resolution unit 302 Subdata transmission, generation and one-to-one at least two subcommand of at least two subdata, determine described at least two Address mapping relation in subcommand in each subcommand, each subcommand is for controlling corresponding subdata by this Address mapping relation transmission in subcommand;
First determination unit 303, for based on the corresponding memory space of subdata each at least two subdata State, the subdata transmitted next time at least two subdata is determined, based on the son transmitted determined next time The address mapping relation of the corresponding subcommand of data transmits the subdata, upon completion of the transmission, based on the subdata pair that do not transmit The state for the memory space answered determines and transmits the subdata transmitted next time, until at least two subdatas whole quilt Transmission.
Optionally, the address mapping relation in each subcommand, specifically: the corresponding subnumber of each subcommand According to the corresponding relationship between the memory space at place and the physical address of memory space to be stored.
Optionally, described two different types of memory spaces are respectively memory space and the institute of electronic equipment host memory State the memory space of electronic equipment solid state hard disk.
Optionally, the data processing command includes read command or write order;It is the reading in the data processing command When order, the read command is used to data to be read being transmitted to the host memory by the memory space of the solid state hard disk Memory space;When the data processing command is the write order, the write order is for being written into data by the master The memory space of machine memory is transmitted to the memory space of the solid state hard disk.
Optionally, first determination unit specifically includes:
First determining module, for determining at least two subcommand in each subcommand in address mapping relation Physical address is the state of the corresponding memory space in solid state hard disk address;
Second determining module, for determining that the state of the corresponding memory space in solid state hard disk address is that the son of idle state is ordered Enabling the transmission priority of corresponding subdata be greater than the state of the corresponding memory space in solid state hard disk address is busy state The transmission priority of the corresponding subdata of subcommand;
Third determining module, for determining that the subdata transmitted at least two subdata is transmission preferences next time The highest subdata of grade.
Optionally, the electronic equipment further include:
First judging unit, for determining and transmitting in the state based on the corresponding memory space of subdata not transmitted The subdata transmitted next time, until whether judging the electronic equipment after at least two subdata is all transmitted Complete the processing operation to the pending data after transmission;
First judging unit, for completing the processing operation to the pending data after transmission in the electronic equipment When, a status information is generated, so that the electronic equipment discharges according to the state information distributes to the pending data Host memory memory space.
By one or more technical solutions in the embodiment of the present application, following one or more technology effects may be implemented Fruit:
1, data processing command is received due to using in technical solution in the embodiment of the present application, at the data Reason order between two different types of memory spaces for transmitting pending data;Parse the data processing life It enables, the pending data is divided into the transmission of at least two subdatas, is generated one-to-one at least two subdata At least two subcommands determine the address mapping relation at least two subcommand in each subcommand;Based on it is described extremely The state of the corresponding memory space of each subdata, determines and passes next time at least two subdata in few two subdatas Defeated subdata, the address mapping relation based on the corresponding subcommand of the subdata transmitted determined next time transmit the subnumber According to upon completion of the transmission, based on the state for the corresponding memory space of subdata not transmitted, determining and transmit and transmit next time Subdata, until the technological means that at least two subdata is all transmitted.In this way, electronic equipment is to data When reason, pending data can be resolved into multiple portions and carry out out-of-order transfer, without having to sequence as the prior art Transmission.Thus it is possible to effectively solve reading and writing data in the prior art there is technical issues that it is larger, realize to data carry out The technical effect quickly and efficiently handled.
2, due in technical solution in the embodiment of the present application, using depositing based on the subdata that do not transmit is corresponding The state in space is stored up, the subdata transmitted next time is determined and transmit, until at least two subdata is all by transmission Afterwards, judge whether the electronic equipment completes the processing operation to the pending data after transmission;If so, generating a shape State information, so that the electronic equipment discharges according to the state information and distributes to the host memory of the pending data and deposit Store up the technological means in space.In this way, can in time be discharged memory headroom after the processing of the complete paired data of electronic equipment, so that Memory can cache next group pending data, avoid that memory is occupied always to cause data to block, it is ensured that data processing Fluency.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Specifically, the corresponding computer program instructions of information processing method in the embodiment of the present application can be stored in CD, hard disk, on the storage mediums such as USB flash disk, when the computer program instructions quilt corresponding with information processing method in storage medium First electronic equipment reads or is performed, and includes the following steps:
Data processing command is received, the data processing command is used for pending data in two different types of storages It is transmitted between space;
The data processing command is parsed, the pending data is divided into the transmission of at least two subdatas, generation and institute One-to-one at least two subcommand of at least two subdatas is stated, is determined at least two subcommand in each subcommand Address mapping relation, each subcommand be used for control corresponding subdata by the subcommand address of cache close System's transmission;
Based on the state of the corresponding memory space of subdata each at least two subdata, described at least two are determined The subdata transmitted next time in a subdata, the address based on the corresponding subcommand of the subdata transmitted determined next time Mapping relations transmit the subdata, upon completion of the transmission, based on the state for the corresponding memory space of subdata not transmitted, determine And the subdata transmitted next time is transmitted, until at least two subdata is all transmitted.
Optionally, the address mapping relation in each subcommand, specifically: the corresponding subnumber of each subcommand According to the corresponding relationship between the memory space at place and the physical address of memory space to be stored.
Optionally, described two different types of memory spaces are respectively memory space and the institute of electronic equipment host memory State the memory space of electronic equipment solid state hard disk.
Optionally, the data processing command includes read command or write order;It is the reading in the data processing command When order, the read command is used to data to be read being transmitted to the host memory by the memory space of the solid state hard disk Memory space;When the data processing command is the write order, the write order is for being written into data by the master The memory space of machine memory is transmitted to the memory space of the solid state hard disk.
Optionally, stored in the storage medium and step: based on each subdata at least two subdata The state of corresponding memory space determines the corresponding computer journey of the subdata transmitted next time at least two subdata Sequence instructs when executed, specifically comprises the following steps:
Determine that the physical address at least two subcommand in each subcommand in address mapping relation is that solid-state is hard The state of the corresponding memory space of disk address;
The state for determining the corresponding memory space in solid state hard disk address is the corresponding subdata of subcommand of idle state The state that transmission priority is greater than the corresponding memory space in solid state hard disk address is the corresponding subnumber of subcommand of busy state According to transmission priority;
Determine that the subdata transmitted next time at least two subdata is the highest subdata of transmission priority.
Optionally, other computer program instructions are also stored in the storage medium, the other computer Program instruction is with step: the state based on the corresponding memory space of the subdata do not transmitted is determined and is transmitted and transmits next time Subdata, until at least two subdata is held after being all performed by the corresponding computer program instructions of transmission It goes, includes the following steps: in implementation procedure
Judge whether the electronic equipment completes the processing operation to the pending data after transmission;
If so, a status information is generated, so that the electronic equipment discharges according to the state information distributes to institute State the host memory memory space of pending data.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (13)

1. a kind of information processing method, comprising:
Data processing command is received, the data processing command is used for pending data in two different types of memory spaces Between transmitted;
Parse the data processing command, by the pending data be divided at least two subdatas transmission, generate with it is described extremely Few one-to-one at least two subcommand of two subdatas, determines the ground at least two subcommand in each subcommand Location mapping relations, each subcommand are used to control corresponding subdata and pass by the address mapping relation in the subcommand It is defeated;
Based on the state of the corresponding memory space of subdata each at least two subdata, at least two son is determined The subdata transmitted next time in data, the address of cache based on the corresponding subcommand of the subdata transmitted determined next time Relationship transmits the subdata, upon completion of the transmission, based on the state for the corresponding memory space of subdata not transmitted, determines and passes The defeated subdata transmitted next time, until at least two subdata is all transmitted, wherein at least two subdata In the state of the corresponding memory space of each subdata be idle or busy state, the subdata that do not transmit is corresponding to deposit The state for storing up space is idle or busy state.
2. the method as described in claim 1, which is characterized in that the address mapping relation in each subcommand, specifically: Memory space where the corresponding subdata of each subcommand and pair between the physical address of memory space to be stored It should be related to.
3. method according to claim 2, which is characterized in that described two different types of memory spaces are respectively that electronics is set The memory space of standby host memory and the memory space of the electronic equipment solid state hard disk.
4. method as claimed in claim 3, which is characterized in that the data processing command includes read command or write order;? When the data processing command is the read command, the read command is used for data to be read by the storage of the solid state hard disk Space propagation to the host memory memory space;When the data processing command is the write order, the write order The memory space of the solid state hard disk is transmitted to for being written into data by the memory space of the host memory.
5. the method as claimed in claim 3 or 4, which is characterized in that described based on every height at least two subdata The state of the corresponding memory space of data determines the subdata transmitted next time at least two subdata, specifically includes:
Determine physical address at least two subcommand in each subcommand in address mapping relation for solid state hard disk The state of the corresponding memory space in location;
The state for determining the corresponding memory space in solid state hard disk address is the transmission of the corresponding subdata of subcommand of idle state Priority be greater than the corresponding memory space in solid state hard disk address state be busy state subcommand corresponding subdata Transmission priority;
Determine that the subdata transmitted next time at least two subdata is the highest subdata of transmission priority.
6. method as claimed in claim 5, which is characterized in that in the shape based on the corresponding memory space of subdata not transmitted State determines and transmits the subdata transmitted next time, until after at least two subdata is all transmitted, the method Further include:
Judge whether the electronic equipment completes the processing operation to the pending data after transmission;
If so, generate a status information so that the electronic equipment discharge according to the state information distribute to described in Handle the host memory memory space of data.
7. a kind of electronic equipment, comprising:
Storage unit, for storing at least one program module;
At least one processor, at least one described processor are used for by obtaining and running at least one described program module Receive data processing command, the data processing command be used for by pending data between two different types of memory spaces into Row transmission;Parse the data processing command, by the pending data be divided at least two subdatas transmission, generate with it is described One-to-one at least two subcommand of at least two subdatas determines at least two subcommand in each subcommand Address mapping relation, each subcommand is for controlling corresponding subdata by the address mapping relation in the subcommand Transmission;Based on the state of the corresponding memory space of subdata each at least two subdata, described at least two are determined The subdata transmitted next time in subdata, the address based on the corresponding subcommand of the subdata transmitted determined next time are reflected The relationship of penetrating transmits the subdata, upon completion of the transmission, based on the state for the corresponding memory space of subdata not transmitted, determines simultaneously The subdata transmitted next time is transmitted, until at least two subdata is all transmitted, wherein at least two subnumber The state of the corresponding memory space of each subdata is idle or busy state in, and the subdata that do not transmit is corresponding The state of memory space is idle or busy state.
8. electronic equipment as claimed in claim 7, which is characterized in that the address mapping relation in each subcommand, tool Body are as follows: memory space where the corresponding subdata of each subcommand and between the physical address of memory space to be stored Corresponding relationship.
9. electronic equipment as claimed in claim 8, which is characterized in that described two different types of memory spaces are respectively institute State the memory space of electronic equipment host memory and the memory space of the electronic equipment solid state hard disk.
10. electronic equipment as claimed in claim 9, which is characterized in that the data processing command includes read command or writes life It enables;When the data processing command is the read command, the read command is used for data to be read by the solid state hard disk Memory space be transmitted to the memory space of the host memory;It is described when the data processing command is the write order Write order is for being written into the memory space that data are transmitted to the solid state hard disk by the memory space of the host memory.
11. the electronic equipment as described in claim 9 or 10, which is characterized in that at least one described processor is also used to:
Determine physical address at least two subcommand in each subcommand in address mapping relation for solid state hard disk The state of the corresponding memory space in location;
The state for determining the corresponding memory space in solid state hard disk address is the transmission of the corresponding subdata of subcommand of idle state Priority be greater than the corresponding memory space in solid state hard disk address state be busy state subcommand corresponding subdata Transmission priority;
Determine that the subdata transmitted next time at least two subdata is the highest subdata of transmission priority.
12. electronic equipment as claimed in claim 11, which is characterized in that at least one described processor is also used to:
In the state based on the corresponding memory space of subdata not transmitted, determines and transmit the subdata transmitted next time, directly After all being transmitted at least two subdata, judge the electronic equipment whether complete to described in after transmission wait locate Manage the processing operation of data;
If so, generate a status information so that the electronic equipment discharge according to the state information distribute to described in Handle the host memory memory space of data.
13. a kind of electronic equipment, comprising:
First receiving unit, for receiving data processing order, the data processing command are used for pending data at two It is transmitted between different types of memory space;
The pending data is divided at least two subdatas for parsing the data processing command by the first resolution unit Transmission, generation and one-to-one at least two subcommand of at least two subdata, determine at least two subcommand In address mapping relation in each subcommand, each subcommand is for controlling corresponding subdata by the subcommand In address mapping relation transmission;
First determination unit, for the state based on the corresponding memory space of subdata each at least two subdata, Determine the subdata transmitted next time at least two subdata, it is corresponding based on the subdata transmitted determined next time The address mapping relation of subcommand transmit the subdata, upon completion of the transmission, based on the corresponding storage of subdata that do not transmit The state in space determines and transmits the subdata transmitted next time, until at least two subdata is all transmitted, wherein The state of the corresponding memory space of each subdata is idle or busy state at least two subdata, described not pass The state of the corresponding memory space of defeated subdata is idle or busy state.
CN201610184194.4A 2016-03-28 2016-03-28 A kind of information processing method and electronic equipment Active CN105868121B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610184194.4A CN105868121B (en) 2016-03-28 2016-03-28 A kind of information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610184194.4A CN105868121B (en) 2016-03-28 2016-03-28 A kind of information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105868121A CN105868121A (en) 2016-08-17
CN105868121B true CN105868121B (en) 2019-05-17

Family

ID=56625072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610184194.4A Active CN105868121B (en) 2016-03-28 2016-03-28 A kind of information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105868121B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018102967A1 (en) * 2016-12-05 2018-06-14 华为技术有限公司 Control method, storage device and system for data read/write command in nvme over fabric architecture
CN107273213B (en) * 2017-06-27 2024-04-19 联想(北京)有限公司 Calculation control method, network card and electronic equipment
CN111045732B (en) * 2019-12-05 2023-06-09 腾讯科技(深圳)有限公司 Data processing method, chip, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1752916A (en) * 2005-10-25 2006-03-29 威盛电子股份有限公司 Controller of magnetic disk array and its working method
CN101667157A (en) * 2008-09-04 2010-03-10 群联电子股份有限公司 Flash memory data transmission method, flash memory storage system and controller
CN103403681A (en) * 2010-12-20 2013-11-20 马维尔国际贸易有限公司 Descriptor scheduler
CN104571956A (en) * 2014-12-29 2015-04-29 成都致云科技有限公司 Data writing method and splitting device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1752916A (en) * 2005-10-25 2006-03-29 威盛电子股份有限公司 Controller of magnetic disk array and its working method
CN101667157A (en) * 2008-09-04 2010-03-10 群联电子股份有限公司 Flash memory data transmission method, flash memory storage system and controller
CN103403681A (en) * 2010-12-20 2013-11-20 马维尔国际贸易有限公司 Descriptor scheduler
CN104571956A (en) * 2014-12-29 2015-04-29 成都致云科技有限公司 Data writing method and splitting device

Also Published As

Publication number Publication date
CN105868121A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
US9898341B2 (en) Adjustable priority ratios for multiple task queues
US9021178B2 (en) High performance path for command processing
US8639898B2 (en) Storage apparatus and data copy method
US20080195833A1 (en) Systems, methods and computer program products for operating a data processing system in which a file system's unit of memory allocation is coordinated with a storage system's read/write operation unit
US10678437B2 (en) Method and device for managing input/output (I/O) of storage device
US8880832B2 (en) Controller for storage devices and method for controlling storage devices
CN105868121B (en) A kind of information processing method and electronic equipment
CN103324533A (en) distributed data processing method, device and system
CN103095686A (en) Hot metadata access control method and server
CN104425041A (en) Storage tester capable of individual control for a plurality of storage
CN104991737B (en) A kind of hard disk implementation method based on storage card array architecture
CN103744975A (en) Efficient caching server based on distributed files
US9245613B2 (en) Storage interface apparatus for solid state drive tester
US9176675B1 (en) Fast-zeroing in a file system
CN106569729A (en) Method and device for writing in data in distributed system
CN109983749A (en) It is transmitted using the faster data of Remote Direct Memory access communication
KR101465447B1 (en) Method for external merge sort, system for external merge sort and distributed processing system for external merge sort
CN106293504B (en) Existing back-up device is used as additional main storage to solve write-in pressure
CN102650932A (en) Method, equipment and system for accessing data
CN105471930A (en) Method, system and equipment for reading distributed data
KR20120021490A (en) Storage device wihh bi-directional communication techniques and system including the same
US20140068214A1 (en) Information processing apparatus and copy control method
CN104503924A (en) Area distribution method and device of tiered storage system
CN105512091A (en) Memory allocation method and device
CN103399949B (en) A kind of database storage block state control method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20170204

Address after: 100176 Beijing City, Daxing District branch of Beijing economic and Technological Development Zone, fourteen Street No. 99 building 33 building D No. 2226

Applicant after: Beijing legend core technology Co., Ltd.

Address before: 100085 Beijing on the road to entrepreneurship, No. 6 Haidian District

Applicant before: Lenovo (Beijing) Co., Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190809

Address after: 518067 Dongjiaotou Workshop D24/F-02, Houhai Avenue, Shekou Street, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen Yi Lian Information System Co., Ltd.

Address before: 100176 Beijing City, Daxing District branch of Beijing economic and Technological Development Zone, fourteen Street No. 99 building 33 building D No. 2226

Patentee before: Beijing legend core technology Co., Ltd.