←back to thread

150 points shaunpud | 1 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 #
nolist_policy ◴[] No.45061038[source]
Use `/var/tmp` of you want a disk backed tmp. Not sure why the article omits that.
replies(2): >>45062126 #>>45063303 #
1. rwmj ◴[] No.45062126[source]
And so you now have to make a decision, is this file small or large? This pushes the problem to users and programs. (A very real problem too, we made large changes throughout libguestfs to sort out "small" and "large" files and put them into /tmp or /var/tmp. Entirely unnecessary if /tmp wasn't tmpfs on some systems).