←back to thread

150 points shaunpud | 3 comments | | HN request time: 0s | source
Show context
Incipient ◴[] No.45060518[source]
Using the example from the article, extracting an archive. Surely that use case is entity not possible using in-memory? What happens if you're dealing with a not-unreasonable 100gb archive?

Who runs around with 100gb+ of swap?!

replies(2): >>45060583 #>>45061038 #
perlgeek ◴[] No.45060583[source]
Who runs around with a 100gb+ /tmp partition?

Our default server images come with a 4.4GB /tmp partition...

replies(1): >>45060779 #
wielebny ◴[] No.45060779[source]
I run a script that rotates my /tmp/ each day, so I can access yesterday's tmp files at /tmp/20250828/ and so on.

My /tmp is my default folder for downloads and temporary work. It will grow 100GB+ easily.

replies(5): >>45060892 #>>45060901 #>>45061000 #>>45061761 #>>45062109 #
cycomanic ◴[] No.45060892{3}[source]
Sure, but note that your usecase goes specifically against fhs and posix specs:

>Programs must not assume that any files or directories in /tmp are preserved between invocations of the program.

>Although data stored in /tmp may be deleted in a site-specific manner, it is recommended that files and directories located in /tmp be deleted whenever the system is booted.

https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s18.htm...

Now you can obviously use your Filesystem whichever way you like, but I would say Debian shouldn't have to take into consideration uses which are outside the general recommendations/specs.

replies(1): >>45061950 #
1. 1718627440 ◴[] No.45061950{4}[source]
Programs shouldn't assume that about /tmp, the user advising this is fine.
replies(1): >>45062597 #
2. pessimizer ◴[] No.45062597[source]
The user wasn't "advising" this, or asking if it was fine. They're just doing it. Everything that they want to do with their own computer is permissible.

The person you're replying to is saying that tmp is meant for temporary storage that could disappear between reboots. A permanent archive of the past states of the tmp directory is not temporary.

replies(1): >>45063507 #
3. 1718627440 ◴[] No.45063507[source]
I meant from the perspective of the program. You can't assume /tmp to be stable, but when the user tells you it's fine, then it is fine.

> A permanent archive of the past states of the tmp directory is not temporary.

From the perspective of a program it's still volatile, since the files don't stay in their original place.