deepseek-ai / deepseek-ai/3FS

Shared memory leakage issue due to symlink to /dev/shm not deleted

Open
#334 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
10.2k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

When a client process reading files via `hf3fs_fuse.io` APIs exited abruptly (such as being killed by SIGKILL), the symlinks under `/3fs/3fs-virt/iovs/` are not removed (because `iovec.__del__` is not called), and since those symlinks are pointing to shared memories under `/dev/shm`, those shared memories will never be freed unless someone manually delete those symlinks, or restart the entire `hf3fs_fuse_main` service.

And of course there're other scenarios in which `iovec.__del__` is not called, for example malformed user programs which contains cyclic reference. But if I expect 3FS to serve as a robust fundamental filesystem, which should withstand improper user use cases, what is the proper way to cope with this memory leakage issue?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.