Connecting and processing method of solid state disk (SSD), SSD and system

A solid-state hard disk and processing device technology, applied in the field of communications, can solve problems such as unfavorable SSD performance, large overhead, and improvement, and achieve the effects of improving performance and reducing the number of setup and shutdown times.

CN102043592BActive Publication Date: 2012-05-02HUAWEI TECH CO LTD
0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2012-05-02

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a connecting and processing method of a solid state disk (SSD), the SSD and a communication system. In the embodiment of the invention, the method comprises the following steps of: when connection between the SSD and a host is established, establishing a new command queue and a standby command queue; executing host commands by using the queues; and after all host commands are executed, not closing the connection directly but closing the connection when the standby command queue is empty. Therefore, connection establishing and closing times is reduced greatly, the input / output per second (IOPS) of the SSD is enhanced effectively and the improvement on the performance of the SSD is facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present invention relates to the technical field of communication, in particular to a solid state disk (SSD, solid state disk) connection processing method, SSD and a communication system. Background technique

[0002] Serial Attached Small Computer System Interface (SAS, Serial Attached SCSI) is a new generation of Small Computer System Interface (SCSI, Small Computer System Interface) technology, and a new interface developed after the parallel SCSI interface. Because SAS has great advantages in transmission speed, reliability and compatibility, it should be widely used on various storage devices, such as SSD.

[0003] Since SAS has the feature of supporting multi-device connections, each time SAS needs to establish a connection before interacting between an initiator (such as a host) and a target (such as an SSD). Wherein, the interaction includes issuing commands, transmitting data, or returning responses. Since the traditional disk seek time...

Examples

Embodiment 1

[0029] This embodiment will be described from the perspective of SSD.

[0030] Such as figure 1 As shown, the specific process can be as follows:

[0031] 101. Establish a connection between the SSD and the host, and establish a corresponding new command queue and a ready command queue for the connection; wherein, the new command queue is used to store unexecuted host commands received from the host, and the ready command The queue is used to store the execution result of the host command, which has not yet returned a response to the host.

[0032] Since SAS has the feature of supporting multi-device connections, SSDs can establish connections with multiple hosts through SAS. During specific implementation, preset rules can be used to control the timing of establishing connections between each host and SSD. For example, the preset rule can be:

[0033] Establish connection A between the SSD and the first host (referred to as host 1), maintain connection A, and establish con...

Embodiment 2

[0056] According to the method described in Embodiment 1, an example will be given below for further detailed description.

[0057] The SSD establishes connections with multiple hosts through SAS, and establishes new command queues and standby command queues for each host. When the host sends host commands to the SSD, the command receiving module of the SSD receives these host commands and sends the received host commands to the SSD. The command is placed in the new command queue of the corresponding host, and the command execution module of the SSD invokes the required host command from the new command queue for execution, and puts the execution result into the standby command queue of the corresponding host, which can then be passed to the SSD The command receiving module returns a command response to the corresponding host. After executing the host command, the SSD will not immediately disconnect from the corresponding host, but when it is determined that the connection reac...

Embodiment 3

[0089] In order to better implement the above method, the embodiment of the present invention also provides a corresponding SSD, such as Figure 3a As shown, the SSD includes a building unit 301, a receiving unit 302, an executing unit 303 and a closing unit 304;

[0090] Establishing unit 301, configured to establish a connection between the SSD and the host, and establish a new command queue and a standby command queue;

[0091] For example, the SSD receives a connection request message (open_req) sent by the host, and then returns an accept connection message (open_accept) to the host to establish a connection between the SSD and the host according to the received open_req, and establishes a new command queue and a standby command queue.

[0092] It should be noted that since SAS has the feature of supporting multi-device connections, SSDs can establish connections with multiple hosts through SAS, namely:

[0093] The establishment unit 301 is specifically configured to es...