Data storage method and device

A data storage and data technology, applied in memory systems, electrical digital data processing, memory address/allocation/relocation, etc., can solve problems such as low memory utilization and insufficiency of target memory.

Active Publication Date: 2016-11-09
HUAWEI TECH CO LTD
View PDF4 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, one target may correspond to multiple initiators. If the target reserves the corresponding memory for each initiator, the current memory of the target is difficult to satisfy. In fact, not all initiators need to be on the same target at the same time. Therefore, the existing technology will cause the problem of low memory utilization

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data storage method and device
  • Data storage method and device
  • Data storage method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0073] figure 2 An interactive flowchart of the data storage method provided by an embodiment of the present invention, such as figure 2 As shown, the method includes the following processes:

[0074] Step S201: the target end receives the first SCSI write command and the data to be written sent by the initiator;

[0075] Step S202: the target end judges whether the length of the data to be written is less than or equal to the available memory of the target end;

[0076] Step S203: If the target end determines that the length of the data to be written is less than or equal to the available memory of the target end, the target end stores the data to be written into the corresponding memory.

[0077] Specifically, the memory of the target end is shared by multiple initiators. After the target end receives the data to be written initiated by the initiator, the target end parses the packet header of the data to be written, and obtains the length field of the data to be writte...

Embodiment 2

[0080] Based on the basis of Embodiment 1, further, before the target receives the first small computer system interface SCSI write command and the data to be written sent by the initiator, it further includes: a negotiation process between the initiator and the target.

[0081] image 3 An interactive flowchart of the data storage method provided for another embodiment of the present invention, such as image 3 As shown, the method includes the following processes:

[0082] Step S301: During the process of establishing a connection between the target end and the initiator end, the target end receives the negotiation request message sent by the initiator end;

[0083] Wherein, the negotiation request message is used for the initiator to request whether the first SCSI write command and the data to be written can be sent, that is, the purpose of the initiator sending the negotiation request message to the target is to request whether it can perform steps S303 to S305;

[0084]...

Embodiment 3

[0092] Based on the basis of Embodiment 1, further, before the target end receives the first small computer system interface SCSI write command sent by the initiator and the data to be written, it also includes: a negotiation process between the initiator and the target end, wherein the embodiment Three and embodiment two are two kinds of parallel schemes, specifically as follows:

[0093] Figure 4 Another embodiment of the present invention provides an interactive flowchart of the data storage method provided, such as Figure 4 As shown, the method includes the following processes:

[0094] Step S401: During the process of establishing a connection between the target end and the initiator end, the target end receives the negotiation request message sent by the initiator end;

[0095]Wherein, the negotiation request message is used for the initiator to request whether the first SCSI write command and the data to be written can be sent, that is, the purpose of the initiator ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention provides a data storage method and device. The method comprises the steps that a target side receives a first SCSI write command sent by an initiator and to-be-written data; the target side judges whether the length of the to-be-written data is smaller than or equal to an available memory of the target side or not; if the target side judges that the length of the to-be-written data is smaller than or equal to the available memory of the target side, the target side stores the to-be-written data in the corresponding memory, wherein the memory of the target side is shared by multiple initiators. In the above-mentioned process, multiple initiators can share the memory, the target side does not need to reserve the memory for all the initiators, and therefore the memory use ratio is increased.

Description

technical field [0001] Embodiments of the present invention relate to data storage technologies, and in particular, to a data storage method and device. Background technique [0002] Internet Small Computer System Interface (iSCSI) technology is a storage technology that runs the Small Computer System Interface (SCSI) protocol on an Internet Protocol (IP) network. . The initiator and target can use iSCSI to exchange SCSI commands, allowing the target to emulate the initiator's local storage. Therefore, iSCSI technology has the advantages of easy installation, low cost, no geographical restrictions, good interoperability, and convenient management. [0003] At present, the data storage process of the initiator in the target is as follows: in the process of establishing a connection between the initiator and the target, the initiator negotiates with the target to make the target reserve memory for the initiator, and the initiator will wait The written data can be directly w...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F12/02
CPCG06F12/0223
Inventor 李耀华王云龙
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products