Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


...

Info

A scratch filesystem is a place to store intermediate job data which can be destroyed when a job is finished. Performance is better than using your home directory or an LSS share which are meant for long term data storage.


Note
As of February 3, 2023, files on the cluster-wide /nfsscratch filesystem are subject to deletion

...

40 days after they were created. Policy for node-specific /localscratch filesystems is independent of this.

User Scratch Space

Each compute node has its own local scratch filesystem. Users may read from and write to this using their own exclusive directory at /localscratch/Users/<HawkID>.

In addition to local storage, each the HPC cluster system has its own two large, shared filesystem filesystems mounted across all its nodes via NFS and BeeGFS. Analogously, users can read from and write to this using their own exclusive directory at /nfsscratch/Users/<HawkID> for the NFS system and /scratch/Users/<HawkID> for the BeeGFS filesystem.

Anchor
scratch_clean
scratch_clean
Cleanup

...

Policy

Scratch filesystems are a shared resource available for the convenience of all users. Therefore, files on these filesystems are subject to deletion after a certain lifespan as specified determined by the HPC policy committee. As of July 1 2016, this lifespan is 60 . Home account storage and purchased storage are not subject to this policy.

/localscratch

login nodes

On /localscratch, the allowed file lifespan is 30 days after the file was last accessed, where each file's age is the time elapsed since its access timestamp ("atime"). An automated cleanup process runs periodically on each node to delete files whose atime has reached the maximum lifespan.

compute nodes

Cleaning of /localscratch on compute nodes is done on an opportunistic basis, cleaning when no jobs are on the node. However, if the space becomes limited, the node will go into an alarm state and will then be cleaned.

If your job writes data to /localscratch, please retrieve everything you need and remove unneeded files as the last part of the job, because it's difficult to access that same compute node after a job exits! A compute node can become unavailable if its /localscratch filesystem becomes too full. If that happens, all files will be removed from /localscratch without considering lifespan in order to restore the compute node to service. For more information on using localscratch see Advanced Job Submission#localscratch.

/nfsscratch

On /nfsscratch, the allowed file lifespan is 40 days after first being written. On /nfsscratch, a , where each file's age is the time elapsed since its creation timestamp ("crtime") , which is tracked on the fileserver. An automated cleanup process will run periodically on the server to delete files whose crtime is older than the policy's allowed lifespan.

Home account storage and purchased storage are *not* subject to this policy.

...

has reached the maximum lifespan. This space is provided by a single ZFS storage server connected via NFS. It is best suited to large streaming I/O, reading or writing large data sequentially to or from a small number of files.

Note
Altering or duplicating files solely to circumvent the scratch cleanup process is against policy. Please make legitimate use of scratch filesystems, then move your intermediate and final results to stable storage in a timely manneraccordance with policy.

Please contact hpc-sysadmins@iowa.uiowa.edu if you need contact research-computing@uiowa.edu with any questions or for assistance with this.

File Timestamps

...

/scratch

On /scratch, the allowed file lifespan is 60 days after first being written. This space is provided by a BeeGFS parallel filesystem. It is best suited for small random I/O, reading or writing to many small files or specific sections of files.

Local or Shared Scratch?

  • The compute node running your job might be running other jobs (belonging to you or other users). So Multiple jobs can compete for local storage I/O, causing contention independent of /nfsscratch. Only a job with exclusive access to a node can expect the full performance potential of the node's local storage.
  • A parallel job running on multiple nodes typically shouldn't use filesystems local to any of its nodes. Even if you're writing your own MPI instead of using an off-the-shelf application, you can expect better performance if you collate results in memory via message passing and write your result to the shared filesystem. Consider local disk primarily as a structured alternative to swap.
  • If your job places partial results on /localscratch but fails to handle them for any reason (logic error, eviction, crash, etc.), you won't have access to these anywhere else and they will be difficult to recover.
  • As always, please test a few jobs first if you are unsure before submitting a large batch.
  • If you are unsure whether /nfsscratch or /scratch would be better, test a smaller job using each system and compare the result.

Determining the age of files in scratch

File Timestamps

  • modification time (mtime): This is the time the contents of the file were last modified, for example, by editing it. The modification time can be seen with
    ls -l file

...

  • access time (atime): This is the time the contents of the file were last accessed; for example, by viewing with 'less'. The access time can be seen with
    ls -lu file
  • creation time (crtime): This is the time the contents of the file were first written to the filesystem. This attribute is part of the underlying ZFS filesystem and is not accessible via NFS or standard Linux utilities.

It is possible for all All of these timestamps to can be different for a single file. Most file and archive utilities will maintain the first 3 timestamps, either by default or optionally. This includes using archive mode ('-a') with either 'cp' or 'rsync'. However, note that no utility can affect a file's crtime is not affected by archive utilities at all over NFS.

Local or Shared Scratch?

...

Moving data to or from a scratch filesystem

If you have data to stage for a job or to retrieve after a job is finished in a scratch filesystem, there are a few options.

  • Incorporate the transfer into your job script before or after computation.
  • Move data using our data transfer server, data.hpc.uiowa.edu. You can log in with your Argon HawkID credentials and connect to LSS and Argon infrastructure. Only /nfsscratch and /scratch are accessible on the data transfer server, /localscratch of compute nodes is not.
  • Use the Research Data Collaboration Service which provides a web-based GUI to manage data transfers.