Skip to content

fuse: add GPU Direct Storage (GDS) support - #198

Open
cding-ddn wants to merge 1 commit into
redfs-ubuntu-noble-6.8.0-58.60from
ubuntu-noble-6.8.0-58.60-gds
Open

cding-ddn wants to merge 1 commit into
redfs-ubuntu-noble-6.8.0-58.60from
ubuntu-noble-6.8.0-58.60-gds

Conversation

@cding-ddn

Copy link
Copy Markdown
Collaborator

Integrate with nvidia-fs to pass GPU buffer RDMA information to the filesystem server for direct GPU-to-storage transfers via NVIDIA GDS.

@cding-ddn
cding-ddn force-pushed the ubuntu-noble-6.8.0-58.60-gds branch 2 times, most recently from 4bff1d7 to fcdff22 Compare August 19, 2026 08:16
@cding-ddn cding-ddn changed the title redfs: add GPU Direct Storage (GDS) support fuse: add GPU Direct Storage (GDS) support Aug 19, 2026
@hbirth

hbirth commented Aug 28, 2026 •

Copy link
Copy Markdown
Collaborator

LGTM
But this is going to be a lot of fun with iomap in newer kernels ... unless you want to do this exclusively for DIO

@cding-ddn could you add a bit more information about how this is supposed to be working (conceptual part and what it is good for) in the commit message?

If I understand correctly we use the fuse just as a trigger interface for redfs to interact with the real data via the nvidia interface? ... so basically an external 'has pages'.

@cding-ddn
cding-ddn force-pushed the ubuntu-noble-6.8.0-58.60-gds branch from 56b584f to 484a26f Compare August 31, 2026 09:18
@cding-ddn

Copy link
Copy Markdown
Collaborator Author

LGTM But this is going to be a lot of fun with iomap in newer kernels ... unless you want to do this exclusively for DIO

@cding-ddn could you add a bit more information about how this is supposed to be working (conceptual part and what it is good for) in the commit message?

Done, reworded the commit message

If I understand correctly we use the fuse just as a trigger interface for redfs to interact with the real data via the nvidia interface? ... so basically an external 'has pages'.
Yes, an external 'has pages'. The storage server will do RDMA data transfer directly to the GPU memory

@hbirth

hbirth commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

If you could do the commits with 'git commit -s' to have the 'Signed-Off:' bit ... everything is fine ... code is the same anyway

yongzech
yongzech previously approved these changes Sep 3, 2026

@yongzech yongzech left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hbirth
hbirth requested a review from achhenderson November 2, 2026 19:39
Comment thread include/uapi/linux/fuse.h Resolved
Comment thread fs/fuse/file.c Resolved
Comment thread fs/fuse/dev.c Resolved
Comment thread fs/fuse/dev.c Resolved
Comment thread fs/fuse/dev_uring.c Resolved
Comment thread include/uapi/linux/fuse.h Resolved
Comment thread fs/fuse/fuse_i.h Resolved
@cding-ddn
cding-ddn force-pushed the ubuntu-noble-6.8.0-58.60-gds branch from 89da473 to 5be1942 Compare November 30, 2026 06:43
@hbirth

hbirth commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

please squash the commit 'address review comments' into where it is appropriate. That commit has no value on its own.

Comment thread fs/fuse/dev_uring.c Resolved
Comment thread fs/fuse/fuse_gds.c Resolved
@cding-ddn
cding-ddn force-pushed the ubuntu-noble-6.8.0-58.60-gds branch from 5be1942 to 35caa0f Compare December 1, 2026 03:01
@cding-ddn

Copy link
Copy Markdown
Collaborator Author

please squash the commit 'address review comments' into where it is appropriate. That commit has no value on its own.

They are there just for review. I have squashed all patches into one

@cding-ddn
cding-ddn force-pushed the ubuntu-noble-6.8.0-58.60-gds branch from 35caa0f to 6996352 Compare December 1, 2026 04:02
@hbirth

hbirth commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

A few issues:

  1. file.c fuse_send_read() / fuse_aio_complete_req(): read.out.size comes from the server unchecked. If it is bigger than the request, count -= nres in fuse_direct_io() wraps and read() returns more than asked. The async path also truncates it to u32, and with out_argvar a reply of the wrong size counts as a byte count. Suggest out_argvar = false for GDS and -EIO when read.out.size > read.in.size.
  2. fuse_gds.c fuse_register_nvfs_dma_ops(): only ops is checked. An nvidia-fs without nvfs_get_gpu_sglist_rdma_info (or nvfs_is_gpu_page) means a NULL deref on every direct I/O. Please check the callbacks, or ft_bmap, and return -EOPNOTSUPP.
  3. fuse_direct_io(): when fuse_gds_get_gpu_sglist_rdma_info() fails, the loop breaks without iov_iter_revert(iter, nbytes), unlike the nres < 0 path.

these are small issues and not really stoppers, but it would be nice to just fix them.

Integrate with nvidia-fs to pass GPU buffer RDMA information to the
filesystem server for direct GPU-to-storage transfers via NVIDIA GDS.
GDS transfers data between GPU memory and storage through RDMA without
CPU bounce buffers. This reduces host-memory use, latency, and CPU
overhead for GPU workloads.

- Negotiate GDS capability during filesystem initialization.
- Obtain GPU RDMA information from nvidia-fs.
- Pass that RDMA information to the server in read and write
  request extensions.

Signed-off-by: Cheng Ding <cding@ddn.com>
@cding-ddn
cding-ddn force-pushed the ubuntu-noble-6.8.0-58.60-gds branch from 6996352 to 750a337 Compare December 2, 2026 18:13
@cding-ddn

Copy link
Copy Markdown
Collaborator Author

A few issues:

  1. file.c fuse_send_read() / fuse_aio_complete_req(): read.out.size comes from the server unchecked. If it is bigger than the request, count -= nres in fuse_direct_io() wraps and read() returns more than asked. The async path also truncates it to u32, and with out_argvar a reply of the wrong size counts as a byte count. Suggest out_argvar = false for GDS and -EIO when read.out.size > read.in.size.
  2. fuse_gds.c fuse_register_nvfs_dma_ops(): only ops is checked. An nvidia-fs without nvfs_get_gpu_sglist_rdma_info (or nvfs_is_gpu_page) means a NULL deref on every direct I/O. Please check the callbacks, or ft_bmap, and return -EOPNOTSUPP.
  3. fuse_direct_io(): when fuse_gds_get_gpu_sglist_rdma_info() fails, the loop breaks without iov_iter_revert(iter, nbytes), unlike the nres < 0 path.

these are small issues and not really stoppers, but it would be nice to just fix them.

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants