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.