/home/myuser/.cache
Sorry i run ollama , and it's in /home/userdir/.ollama. Name me one stuff/model which stores in /home/userdir/.cache, ... i cannot. For me .cache is to throw away unless viable proof.Please don't post AI slop.
~//.cache can contain data that, yes, is automatically re-created. But it can be very expensive, for example local LLMs can be stored there and you would have to re-download 100 GB per model. You don't want to do that after every reboot.
/dev/nda0p1 none swap sw 0 0
/dev/ada0p1 / ufs rw 1 1
proc /proc procfs rw 0 0
fdesc /dev/fd fdescfs rw 0 0
SSD/usr /usr zfs rw 0 0
/dev/ada3p1 /mnt/ada3p1 ufs rw 2 2
tmpfs /tmp tmpfs rw,mode=1777,size=2G 0 0
tmpfs /var/tmp tmpfs rw,mode=1777,size=1G 0 0
tmpfs /home/x/.cache tmpfs rw,mode=0700,uid=1001,size=4G 0 0
tmpfs on /tmp (tmpfs, local, vnodes: count 19 )
tmpfs on /var/tmp (tmpfs, local, vnodes: count 9 )
tmpfs on /SSD/home/x/.cache (tmpfs, local, vnodes: count 18 )
Sorry i run ollama , and it's in /home/userdir/.ollama. Name me one stuff/model which stores in /home/userdir/.cache, ... i cannot. For me .cache is to throw away unless viable proof.
this was the premises behind a product called Deep Freeze that we had to deal with in high schoolI run 15 as a desktop so I'm not sure how my situation is different from you? One can overly complicate things which makes finding/understanding a problem more difficult.
There may be reason to run $HOME/.cache as tmpfs for some people, but honestly why not make a user home directory always a tmpfs from the host level and then when a user logs in it gets repopulated from a binary image stored somewhere. Great for security on multiuser systems because the data does not exist if the user is not logged in.
Didn't Poeterring (Mr Systemd) actually propose something like that at one point?
Why? Aren't its config files under ~/.config/?gnucash I'd have to recreate/reconfigure everytime I start
I think yes, config is under $HOME/.config/gnucash but also think about when tmpfs is unmounted.Why? Aren't its config files under ~/.config/?
~/.cache/ is just that, cache, and not configuration, like ~/*, ~/.config/* and ~/.local/*.
Bar some very specific cases, like cracauer@'s LLM example or gstreamer as you mentioned, things like fontconfig and mesa_shader_cache also don't have to be recreated every time one reboots the machine.
Me personally I wouldn't have ~/.cache/ mounted as tmpfs wholesale. I prefer another approach: having some directories symlinked to precreated corresponding files and directories under tmpfs-based /tmp.
I can confirm that. Software like Ardour store many things in ~/.cache with big project. It's slow to recreate them each time.~//.cache can contain data that, yes, is automatically re-created. But it can be very expensive, for example local LLMs can be stored there and you would have to re-download 100 GB per model. You don't want to do that after every reboot.