LFS-HEAT(1)

πŸ“¦ version 2.17.58, in ubuntu stonking

πŸ’– LFS-HEAT(1) β€” bestie's guide to file heat πŸ’–

okay so this is LFS-HEAT(1), from the Lustre User Utilities manual set, and we're gonna talk about file heat. yes. heat. like temperature but for your files. slay.


✨ NAME ✨

lfs-heat_get, lfs-heat_set β€” the two commands you use to vibe with the file heat features πŸ¦‹


🌸 SYNOPSIS 🌸

lfs heat_get FILE...
lfs heat_set [--help|-h] [--clear|-c] [--on|-O] [--off|-o] FILE...

like. that's it. that's the whole vibe. FILE... means you can hand it a whole little list of files, we love a command that takes a crowd πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

so these are a set of lfs commands for interacting with the Lustre file heat feature. iconic.

now here's the tea, and it's important tea, no cap: file heat is only stored in memory with the file inode. meaning it might get reset to zero at literally any time, whenever the inode gets released because of memory reclaim. so don't treat it like a permanent record bestie, it's giving vibes, ephemeral. 😭

  • lfs heat_get β€” gets the file heat for the files in your list 🫢
  • lfs heat_set β€” sets heat flags on the files in your list ✨

πŸ’… OPTIONS πŸ’…

  • -c, --clear β€” clear the file heat on the files you gave it. bye bye heat 🧹
  • -h, --help β€” print the usage message. the classic cry for help, we all need it sometimes πŸ™ˆ
  • -o, --off β€” turn file heat off on the given files
  • -O, --on β€” turn file heat on on the given files πŸ‘‘
okay bestie notice how -o is lowercase and -O is uppercase and they do the exact opposite things?? case matters. do not get cute with it. ⭐

🌈 EXAMPLES 🌈

turn on file heat support for the whole Lustre filesystem:

# lctl set_param llite.$FSNAME*.file_heat=1

turn it off for the whole Lustre filesystem:

# lctl set_param llite.$FSNAME*.file_heat=0

display the current file heat for foo:

# lfs heat_get /mnt/lustre/foo
flags: 0

readsample: 0
writesample: 16
readbyte: 0
writebyte: 16777216

look at those numbers go. writebyte: 16777216. she's been writing. πŸ“

clear the file heat for foo:

# lfs heat_set -c /mnt/lustre/foo

turn off file heat for foo:

# lfs heat_set -o /mnt/lustre/foo

turn on file heat for foo:

# lfs heat_set -O /mnt/lustre/foo

⭐ AVAILABILITY ⭐

the lfs heat_get and lfs heat_set commands are part of the lustre(7) filesystem package, and they've been in there since release 2.13.0 πŸŽ€ so if you're on something older... bestie. upgrade. πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹


and that's the whole page!! this was LFS-HEAT(1) from Lustre, dated 2024-08-30 πŸ’– go forth and check ur file heat, ily, periodt 🌸✨🫢

πŸ“¦ where this page comes from