cacheadm(1)

πŸ’– cacheadm β€” bestie edition πŸ’–

okay so real talk: this is cacheadm, a ShapeTools manual page from section 1, and it's literally the girlboss who runs your AtFS derived object cache. she does administering AND configuring, which is a lot for one icon but she ate πŸ’…


✨ NAME ✨

cacheadm β€” administer and configure AtFS derived object cache πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

cacheadm [-Amax_cached_per_cacheattr] [-Nmax_cached_per_name]
[-Tmax_total_cached] [-q] [-v] directories

🌸 DESCRIPTION 🌸

so cacheadm gives you control over the size of a derived object cache. you get to set:

  • the max total number (T) of derived files to be stored
  • the max number of derived files per name (N)
  • the max number of derived files with the same name and the same caching attribute (A)

and if you call it with no options at all? it just returns the actual sizes of the derived object caches in the directories you named. an empty list of directories makes cacheadm operate on the current directory. cute, low effort, we love that for her πŸ’–

the relationship between those three cache size values must always be:

T >= N >= A

like, that's the law. periodt. the whole caching attribute mechanism is described over on the af_cache(3) manual page if you wanna go deeper (iykyk πŸ‘€).

when you're calculating your caching sizes, keep in mind that you may set the total size (T) to any value you want, but your cache will never grow bigger than N*number_of_names. and Number_of_names is the number of source object histories in your directories, where derived objects may be compiled from. so if you set T to some astronomic value, the cache just adapts its size to the number of source histories automatically. she's self-regulating, main character energy ✨

🫢 the tea you need to know: in the current implementation, the caching sizes can only be increased. reduction of the maximum cache size is only possible when the cache is empty. so if you wanna shrink it you have to clean your cache first with atfsrepair -C (1). no shortcuts bestie, clean your room before you redecorate 🧹

πŸ’… OPTIONS πŸ’…

  • -A max_cached_per_cacheattr β€” sets the max number of derived files with the same name and the same caching attribute to be stored. default is 1.
  • -N max_cached_per_name β€” sets the max number of derived files with the same name to be stored. default is 3.
  • -T max_total_cached β€” sets the total maximum number of derived files to be stored in the derived object cache. default is 64.
  • -q β€” quiet operation πŸŒ™ suppresses any output to stdout. this option does not affect error messages (stderr) β€” those still show up, sorry bestie, the drama stays.
  • -v β€” outputs the version identification string. ✨

πŸ‘‘ SEE ALSO πŸ‘‘

chgrp(1), chmod(1), atfsrepair(1), af_cache(3)


πŸŽ€ AUTHOR πŸŽ€

Andreas.Lampen@cs.tu-berlin.de


and that's the whole page, bestie πŸ’– this was AtFS-1.71, dated Thu Jan 13 15:30:55 1994 β€” yes she's vintage, no she's not outdated, she's iconic ⭐ go set your cache sizes responsibly πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from