I have the current scenario:
16GB or RAM. For the most part, around 10~12GB unused
Almost never install/remove software, this is a mature system
Only reboot like once a week, so (re-)boot time is irrelevant
/usr
is around 8GBHDD is slow, and no budget to change that in the near future
Mounting
/tmp
astmpfs
infstab
did wonders for performance
And I just had this crazy idea:
Is it possible to, somehow, use my RAM to "store" /usr
?
In that that, when starting up, it reads current /usr
content from HDD and copy it to a tmpfs
and mount that as /usr
?
If possible, also flushing the (perhaps updated) contents back to HDD when shutting down? Or maybe allowing me to easily "temporarily switch back to HDD" when eventually needed to install/remove new software or updates?
Any approach is welcome, ready-to-use commands will be highly regarded.
Thanks!