Am 18.03.21 um 02:54 schrieb J Leslie Turriff:
On 2021-03-17 16:23:56 Peter McD wrote:
|Am 17.03.21 um 20:39 schrieb J Leslie Turriff: |> On 2021-03-17 14:10:30 Simon Becherer wrote: |>> |Am 17.03.21 um 20:05 schrieb Carlos E. R.: |>> |> On 17/03/2021 19.33, J Leslie Turriff wrote: |>> |>> On 2021-03-17 01:52:36 Till Dörges wrote: |>> |>>> |Am 16.03.21 um 19:26 schrieb DennisG: |>> |> |>> |> ... |>> |> |>> |>> One wonders why both /tmp and /var/tmp exist. Is one of them |>> |>> deprecated? |>> |> |>> |> No. One is long term and the other short term. |>> | |>> |And depends on your installation one is now ramdrive as i think i |>> | remember a discussion a factory@ |>> |if your installation has it as ramdrive its normal that it will be |>> |after new start empty. |>> | |>> |simoN |> |> So which is which? Long-term/Short-term, RAM drive/physical drive? | |tmp is short term. tmp could be set up in RAM as tmpfs, I think default |ist max half of RAM and cleared automatically when powered down. |Could fill up in computers running permanently, so tmp in |/etc/tmpfiles.d/tmp.conf is not obsolete. | |In my computer tmp it is a line in fstab and takes a max of 20% of RAM, | |tmpfs /tmp tmpfs size=20%,mode=1777 0 0 |
Interesting. My machine shows | ● mount|grep ^tmpfs | tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) | tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755) | tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755) | tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=3274328k,mode=700,uid=1000,gid=100) | tmpfs on /run/user/1001 type tmpfs (rw,nosuid,nodev,relatime,size=3274328k,mode=700,uid=1001,gid=1001) | tmpfs on /run/user/1003 type tmpfs (rw,nosuid,nodev,relatime,size=3274328k,mode=700,uid=1003,gid=100) I like the idea of using a percentage; is that an easy change?
it works, my computer has 16G RAM, 20% are 3.2G df shows tmpfs 3187M 0M 3187M 0% /tmp I switch of the machine daily, so tmp gets cleared automatically. There is some information, google linux tmp tmpfs e.g https://wiki.archlinux.org/index.php/tmpfs Peter