Giter Site home page Giter Site logo

Comments (4)

gwnet avatar gwnet commented on July 26, 2024

and also from nvme spec PSDT need physical continuous, SPDK use huge page then each 2MB is continous, but jNVMf, have to use 4K continuous?
any insight to share me?

PRP or SGL for Data Transfer (PSDT): This field specifies whether PRPs or SGLs are used for any datatransfer associated with the command. PRPs shall be used for all Admin commands for NVMe over PCIe.SGLs shall be used for all Admin and I/O commands for NVMe over Fabrics. This field shall be set to 01b forNVMe over Fabrics 1.0 implementations. The definition is described in the table below.Value Definition00b PRPs are used for this transfer.01bSGLs are used for this transfer. If used, Metadata Pointer(MPTR) contains an address of a single contiguous physicalbuffer that is byte aligned.10bSGLs are used for this transfer. If used, Metadata Pointer(MPTR) contains an address of an SGL segment containingexactly one SGL Descriptor that is Qword aligned.11b ReservedIf there is metadata that is not interleaved with the logical block data, as specified in the Format NVMcommand, then the Metadata Pointer (MPTR) field is used to point to the metadata. The definition of theMetadata Pointer field is dependent on the setting in this field. Refer to Figure 11. Value Definition 00b PRPs are used for this transfer. 01b SGLs are used for this transfer. If used, Metadata Pointer(MPTR) contains an address of a single contiguous physicalbuffer that is byte aligned. 10b SGLs are used for this transfer. If used, Metadata Pointer(MPTR) contains an address of an SGL segment containingexactly one SGL Descriptor that is Qword aligned. 11b Reserved
Value Definition
00b PRPs are used for this transfer.
01b SGLs are used for this transfer. If used, Metadata Pointer(MPTR) contains an address of a single contiguous physicalbuffer that is byte aligned.
10b SGLs are used for this transfer. If used, Metadata Pointer(MPTR) contains an address of an SGL segment containingexactly one SGL Descriptor that is Qword aligned.
11b Reserved

from jnvmf.

PepperJo avatar PepperJo commented on July 26, 2024

Please take a look at the NVMe over Fabrics specification. Not all types are supported by NVMf. PRPs are NOT supported via NVMf.

from jnvmf.

gwnet avatar gwnet commented on July 26, 2024

nvmeof spec does not have it. this is defined in nvme spec. from the spec, it mention it need below payload is physical continuous. how about your jNVMf? SPDK use huge page, each page has 2MB. but jNVMf make sure underlying is physical continous?
req->cmd.dptr.sgl1.keyed.length = req->payload_size;
req->cmd.dptr.sgl1.address = (uint64_t)payload;

from jnvmf.

PepperJo avatar PepperJo commented on July 26, 2024

I can only urge you to read the NVMf specification. It is clearly layed out there how memory is handled. Certainly there is no need to make the underlying memory physical continuous since this is handled by the RDMA NIC.

from jnvmf.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.