Earlier quoted context omitted.
/tmp. If it's tmpfs, it can expand into swap space.
Swap is usually no bigger than two or three times your RAM. Disk in general is 10 to 100 times the size of your RAM.
Tmpfs considered harmful
81–85 of 85 posts
Re: Tmpfs considered harmful
#82Earlier quoted context omitted.
RAM really is a harmful kludge. Neither Turing machines nor lambda calculus call for some of an algorithm's state to suddenly be obliterated. The only reason we put up with it is that disk and SSD are so much slower.
Ram is just state. Turing machines require a non-tape state machine mechanism. You could consider ram a part of that, 4 gigs corresponding to many many possible states.
Re: Tmpfs considered harmful
#83Earlier quoted context omitted.
/tmp. If it's tmpfs, it can expand into swap space.
Swap is usually no bigger than two or three times your RAM. Disk in general is 10 to 100 times the size of your RAM.
Re: Tmpfs considered harmful
#84The Linux FHS explicitly states "Programs must not assume that any files or directories in /tmp are preserved between invocations of the program." That's not only reboots. It's not meant to be used to store drafts or anything that you might want to reopen at a later time. That's what we've got /var/tmp for. The FHS specifies as follows: "The /var/tmp directory is made available for programs that require temporary files or directories that are preserved between system reboots. Therefore, data stored in /var/tmp is more persistent than data in /tmp".
Tmpfs isn't harmful because of this, it's the default mutt configuration which is broken. If developers would have adhered to the standard the problem wouldn't exist. Since programs should adhere to the standard, because decisions like the one in question are made upon it, they should be reviewed and their default configurations should be changed in order to fix this issue.
Re: Tmpfs considered harmful
#85Earlier quoted context omitted.
RAM really is a harmful kludge. Neither Turing machines nor lambda calculus call for some of an algorithm's state to suddenly be obliterated. The only reason we put up with it is that disk and SSD are so much slower.
Speed is not the only benefit of RAM. The internal data structures of most programs are gnarly messes of intertwined pointers, fragile, easily corrupted, hard to upgrade in place, almost impossible to fix when they break. The division between RAM and disk forces everything to be serialized at intervals to clean storage formats that can be reread for a fresh start. As a practical matter, that's a big enough benefit to…