Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and host for accessing storage device

A storage device and host technology, applied in the computer field, can solve problems such as kernel trapping, affecting access efficiency, and reducing system reliability.

Active Publication Date: 2019-03-05
HUAWEI TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in the above process of accessing the storage device, there are two switching between the kernel state and the user state, that is, there are two kernel traps and two kernel traps.
However, kernel trapping and kernel trapping will not only reduce the I / O access speed, affect the access efficiency, but also reduce the reliability of the system

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
  • Method and host for accessing storage device
  • Method and host for accessing storage device
  • Method and host for accessing storage device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0058] The embodiment of the invention proposes a method for accessing a storage device, which is used in an SDS-based storage system. The SDS-based storage system includes a host and the storage device, such as image 3 As shown, the method includes:

[0059] S301: A software-defined module running in user space in the host intercepts an input / output I / O operation instruction sent by an application program of the host, where the I / O operation instruction carries an access address.

[0060] When the application running in the user space accesses the storage device, it will send an I / O operation instruction to the operating system in the host. The software-defined module can intercept the I / O operation instruction before the I / O operation instruction reaches the operating system kernel, because the software-defined module runs in user space, avoiding the I / O operation instruction into the kernel state.

[0061] S302: The software definition module determines a storage service...

Embodiment 2

[0080] The embodiment of the present invention proposes a method for accessing a storage device, which is used in an SDS-based storage system. The SDS-based storage system includes a host and a storage device. When an I / O operation issued by an application program in the host When the storage service corresponding to the instruction includes an advanced function service, and the I / O operation instruction is a read operation instruction, the software definition module can access the storage device through the method described in the embodiment of the present invention, such as Figure 5 As shown, the method includes:

[0081] S501: A software-defined module running in a user space in the host intercepts an I / O operation instruction sent by an application program of the host, where the I / O operation instruction carries an access address.

[0082] The software-defined module can intercept the I / O operation instruction before the I / O operation instruction reaches the operating sys...

Embodiment 3

[0100] An embodiment of the present invention provides a method for accessing a storage device, which is used in an SDS-based storage system. The SDS-based storage system includes a host and a storage device. When an I / O operation issued by an application in the host is performed When the storage service corresponding to the instruction includes an advanced function service, and the I / O operation instruction is a write operation instruction, the software-defined module can access the storage device through the method described in the embodiment of the present invention, and the method include:

[0101] S601: A software-defined module running in a user space in the host intercepts an I / O operation instruction sent by an application program of the host, where the I / O operation instruction carries an access address.

[0102] S602: The software definition module determines the storage service corresponding to the I / O operation instruction according to the access address.

[0103]...

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

A method for accessing a storage device, and a host. A software defined module operating in a user space in a host can intercept an I / O operation instruction sent by an application program of the host, the I / O operation instruction carrying an access address (S301), which prevents the I / O operation instruction from trapping in a kernel state, so that the software defined module can determine a storage service corresponding to the I / O operation instruction according to the access address (S302), instruct a kernel of an operating system of the host to access the storage device according to the storage service corresponding to the I / O operation instruction, the I / O operation instruction and the access address (S303); receive an access result returned by the kernel of the operating system (S304), and send the access result to the application program (S305), and therefore, it is achieved that the application program accesses the storage device. In the process, there is only one trap-in of the kernel and one trap-out of the kernel, which reduces the number of times of the trap-in and the trap-out of the kernel of the system when the application program accesses the storage device, and improves the access speed.

Description

technical field [0001] The embodiment of the present invention relates to computer technology, in particular to a method for accessing a storage device and a host. Background technique [0002] Software-defined storage (Software-defined Storage, SDS) can place all storage-related control work in external software relative to the physical storage hardware. The software is not used as firmware in the storage device, but usually on a server, or As part of the operating system (OS) or hypervisor (ie Hypervisor), users do not need to purchase storage controller hardware such as hard disks, flash memory and other storage media from specific manufacturers. [0003] In an SDS-based storage system, storage virtualization is usually implemented through a software-defined layer (that is, software that performs all storage-related control tasks), and a virtual resource pool is provided for upper-layer applications to enable applications to access conveniently and efficiently. storage d...

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 Patents(China)
IPC IPC(8): G06F12/00
CPCG06F12/00
Inventor 王志美胡斐然
Owner HUAWEI TECH CO LTD