Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hpc-compendium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZIH
hpcsupport
hpc-compendium
Commits
17a33944
Commit
17a33944
authored
2 years ago
by
Martin Schroschk
Browse files
Options
Downloads
Patches
Plain Diff
Add good practices
parent
8005192b
No related branches found
Branches containing commit
No related tags found
2 merge requests
!673
Automated merge from preview to main
,
!656
Add good practices
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc.zih.tu-dresden.de/docs/data_lifecycle/lustre.md
+28
-1
28 additions, 1 deletion
doc.zih.tu-dresden.de/docs/data_lifecycle/lustre.md
with
28 additions
and
1 deletion
doc.zih.tu-dresden.de/docs/data_lifecycle/lustre.md
+
28
−
1
View file @
17a33944
...
...
@@ -21,9 +21,36 @@ marie@login$ lfs setstripe -c 20 /scratch/ws/marie-stripe20/tar
This does not affect existing files. But all files that **will be created** in this
directory will be distributed over 20 OSTs.
## Good Practices
!!! hint "Avoid accessing metadata information"
Queering metadata information such as file and directory attributes is a resource intensive task
in Lustre filesystems. When these tasks are performed frequently or over large directories, it
can degrade the filesystem's performance and thus affect all users.
In this sense, you should minimize the usage of system calls quering or modifying file
and directory attributes, e.g.
`stat()`
,
`statx()`
,
`open()`
,
`openat()`
etc.
Please, also avoid commands basing on the above mentioned system calls such as
`ls -l`
and
`ls
--color`
.
Instead, you should invoke
`ls`
or
`ls -l <filename`
to reduce metadata operations.
This also holds
for commands walking the filessystems recursively performing massive metadata operations such as
`ls
-R`
,
`find`
,
`locate`
,
`du`
and
`df`
.
Lustre offers a number of commands that are suited to its architecture.
| Good | Bad |
|:-----|:----|
|
`lfs df`
|
`df`
|
|
`lfs find`
|
`find`
|
|
`ls -l <filename>`
|
`ls -l`
|
|
`ls`
|
`ls --color`
|
## Useful Commands for Lustre
These commands work for
`/scratch`
and
`/ssd`
.
These commands work for
Lustre file systems
`/scratch`
and
`/ssd`
.
### Listing Disk Usages per OST and MDT
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment