llnl / llnl/UnifyFS

Excluding mountpoint for generating gfid

Open
#424 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
122
Forks
34
PR merge metrics
No merged PRs in 30d

Description

For generating global file identifier (gfid), unifyfs uses a full pathname including the mountpoint. This work fine when the file system is mounted under a consistent mountpoint (e.g., /unifyfs) across sessions. However, if a user uses different mountpoints across sessions, this becomes a problem:

[root@ninja70 testbed]$ mpirun -hostfile nodelist.txt -n 4 prefix/libexec/sysio-write-gotcha -m /unifyfs
[root@ninja70 testbed]$ mpirun -hostfile nodelist.txt -n 4 prefix/libexec/sysio-read-gotcha -m /unifyfs

Number of processes:      4
Each process wrote:       128.000000 MB
Total reads:              512.000000 MB
I/O pattern:              N to 1
I/O request size:         65536 B
Aggregate read bandwidth: 668.811403 MB/s
Min. read bandwidth:      216.077518 MB/s
Total Read time:          2.369520 sec.

[root@ninja70 testbed]$ mpirun -hostfile nodelist.txt -n 4 prefix/libexec/sysio-read-gotcha -m /unifyfs2
[3] open failed (errno=2, No such file or directory)
[0] open failed (errno=2, No such file or directory)
[2] open failed (errno=2, No such file or directory)
[1] open failed (errno=2, No such file or directory)

When generating gfid (and other places where unifyfs uses full pathnames), the mountpoint prefix should be excluded, i.e., /testfile-0 instead of /unifyfs/testfile-0.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior with sysio-write-gotcha and sysio-read-gotcha using different mountpoints, such as /unifyfs and /unifyfs2. Trace the gfid generation and other full-pathname handling involved in these commands. Done means the same file remains accessible across sessions when only the mountpoint changes, with the mountpoint excluded from the identifier.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.