You are not logged in.
Since I'm an SSD, I'm looking to reduce its IO as much as possible.
Would it be of any benefit to link these directories as indicated below?
ln -s /run/user/1000/ /home/$USER/.cache
ln -s /tmp /var/log
ln -s /tmp /var/tmp
I've done this very thing, and things seem to be working fine—storing in ram instead of on disk—but I don't know if this is a good idea, so I'm looking for some input.
Initially, I had mounted these directories as tmpfs in /etc/fstab, but I was thinking that linking them might be a more versatile way to do it.
Last edited by bedtime (2024-07-25 17:34:09)
Offline
Since I'm an SSD, I'm looking to reduce its IO as much as possible.
Those two have nothing to do with each other unless you inherited an ancient SSD. With modern SSDs the concern with IO wear is less than with most typical HDDs: as in it's pointless to worry about. There is no benefit.
While the directories you placed may work in tmpfs, there's no benefit and there are potential costs. First, you lose your entire cache every reboot which means you are retrieving the same data repeatedly. Second, you'll lose all of your logs including the journal - this is a horrible idea if you ask me. There should be no harm from moving /var/tmp, but again, still no benefit.
Last edited by Trilby (2024-07-25 12:26:19)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
1. You're gonna litter /tmp w/o any subdirectories and might run into collisions
2. You're gonna use up the tmpfs memory quota for that mount
3. Check the mountpoint for stale data - anything that opens a file before the tmpfs is mounted will just happily access the mountpoint inodes on your SSD. It's not very likely but then at least you know.
Offline
bedtime wrote:Since I'm an SSD, I'm looking to reduce its IO as much as possible.
Those two have nothing to do with each other unless you inherited an ancient SSD. With modern SSDs the concern with IO wear is less than with most typical HDDs: as in it's pointless to worry about. There is no benefit.
While the directories you placed may work in tmpfs, there's no benefit and there are potential costs. First, you lose your entire cache every reboot which means you are retrieving the same data repeatedly. Second, you'll lose all of your logs including the journal - this is a horrible idea if you ask me. There should be no harm from moving /var/tmp, but again, still no benefit.
Thanks. I ended up just removing those links and not having those directories in tmpfs. I don't really notice any speed difference anyways.
Seth,
Thanks. I'm gonna check that link out that you gave me and put that to use.
Seems like once again I was trying to fix an issue that didn't exist, lol.
Offline