Recently made a lot of stuff tmpfs (like /tmp and /var/cache and $HOME/.cache) and i'm not sure about this ...:
Is there any reason why /var cannot be completely tmpfs ?
That is, when
mounting /var/cache/apt as seperate harddisk partition, later on - i'd
like to keep the d/l packages for some time.
On 22.10.18 10:02, Michael wrote:
Recently made a lot of stuff tmpfs (like /tmp and /var/cache and $HOME/.cache) and i'm not sure about this ...:
Is there any reason why /var cannot be completely tmpfs ?
/var contains huge amount of data that keep changing but must not be lost.
Matus,interesting to check the other top folders of /var for that option too.
I don't totally need to make /var a tmpfs, it's just out of curiosity, and for the simplicity of configuration. Since /var/cache and /var/log are already tmpfs for me, and this extendet tmpfs setup works fine since at least 2 years, it seems to be
to re-create things (if it's only within a second).On 22.10.18 10:02, Michael wrote:
Recently made a lot of stuff tmpfs (like /tmp and /var/cache and $HOME/.cache) and i'm not sure about this ...:
Is there any reason why /var cannot be completely tmpfs ?
/var contains huge amount of data that keep changing but must not be lost.
ok, but shouldn't /var contain no configuration-like files ? In other words, are these all files to read or are they just only re-created everytime, thus only to write ? If so, then perhaps could i live with some extra time for starting services / apps
For example, here are my /var topfolders:
apt -> empty
backups -> write-only; and i did never need these in about 15 years, so i guess i can live without.
cache -> already tmpfs
lib -> don't know XXX
local -> empty
lock -> only a lockfile
log -> already tmpfs for me (if i ever need persistent logs, for specific reason, i'll just revert it. It's a desktop machine, rarely problems.)
mail -> don't need
opt -> empty
run -> already tmpf via Debian
spool -> cron/anacron, cups .... i guess, no need for persistent
tmp -> empty
www -> not used here
That leaves /var/lib as a main candidate for problems, because i don't know the usage of what is stored here.
ps. About /var/cache/apt, it is mounted as separate 5G partition. /tmp already is made tmpfs.
I don't totally need to make /var a tmpfs, it's just out of curiosity, andto re-create things (if it's only within a second).
for the simplicity of configuration. Since /var/cache and /var/log are already tmpfs for me, and this extendet tmpfs setup works fine since at
least 2 years, it seems to be interesting to check the other top folders
of /var for that option too.
On 22.10.18 10:02, Michael wrote:
Recently made a lot of stuff tmpfs (like /tmp and /var/cache and $HOME/.cache) and i'm not sure about this ...:
Is there any reason why /var cannot be completely tmpfs ?
/var contains huge amount of data that keep changing but must not be lost.
ok, but shouldn't /var contain no configuration-like files ? In other words, are these all files to read or are they just only re-created everytime, thus only to write ? If so, then perhaps could i live with some extra time for starting services / apps
For example, here are my /var topfolders:
apt -> empty
backups -> write-only; and i did never need these in about 15 years, so i guess i can live without.
cache -> already tmpfs
lib -> don't know XXX
local -> empty
lock -> only a lockfile
log -> already tmpfs for me (if i ever need persistent logs, for specific reason, i'll just revert it. It's a desktop machine, rarely problems.)
mail -> don't need
opt -> empty
run -> already tmpf via Debian
spool -> cron/anacron, cups .... i guess, no need for persistent
tmp -> empty
That leaves /var/lib as a main candidate for problems, because i don't know the usage of what is stored here.
I don't totally need to make /var a tmpfs, it's just out of curiosity, andto re-create things (if it's only within a second).
for the simplicity of configuration. Since /var/cache and /var/log are already tmpfs for me, and this extendet tmpfs setup works fine since at
least 2 years, it seems to be interesting to check the other top folders
of /var for that option too.
On 22.10.18 10:02, Michael wrote:
Recently made a lot of stuff tmpfs (like /tmp and /var/cache and $HOME/.cache) and i'm not sure about this ...:
Is there any reason why /var cannot be completely tmpfs ?
/var contains huge amount of data that keep changing but must not be lost.
ok, but shouldn't /var contain no configuration-like files ? In other words, are these all files to read or are they just only re-created everytime, thus only to write ? If so, then perhaps could i live with some extra time for starting services / apps
For example, here are my /var topfolders:
apt -> empty
backups -> write-only; and i did never need these in about 15 years, so i guess i can live without.
cache -> already tmpfs
lib -> don't know XXX
local -> empty
lock -> only a lockfile
log -> already tmpfs for me (if i ever need persistent logs, for specific reason, i'll just revert it. It's a desktop machine, rarely problems.)
mail -> don't need
opt -> empty
run -> already tmpf via Debian
spool -> cron/anacron, cups .... i guess, no need for persistent
tmp -> empty
That leaves /var/lib as a main candidate for problems, because i don't know the usage of what is stored here.
log -> already tmpfs for me (if i ever need persistent logs, for specific reason, i'll just revert it. It's a desktop machine, rarely problems.)
If I don't need them persistent, then I probably don't need them at all.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 229:05:53 |
Calls: | 6,624 |
Calls today: | 6 |
Files: | 12,171 |
Messages: | 5,319,108 |