News for hackers. Stuff that matters.
Re:Nobody ever ported Doom to run on a Cray 1 by mr_toad on Monday December 21, 2020 @07:21PM (#25501456)
I think /dev/shm is available on most(?) Linux systems by default these days. I tend to use it instead of /tmp when I can.
Re:Nobody ever ported Doom to run on a Cray 1 by yjftsjthsd-h on Monday December 21, 2020 @07:42PM (#25501589)
On some distros, /tmp is a tmpfs (ramdisk) anyways. Which of course I discovered when building a package that was bigger than my installed memory (really big package on Arch Linux, which both mounts tmpfs there and then uses it as the default makepkg location).
Re:Nobody ever ported Doom to run on a Cray 1 by rcoveson on Monday December 21, 2020 @10:50PM (#25502649)
I really hate this hack. It feels like an attempt by distro maintainers to make their distro feel and/or benchmark quicker than others. I don't know if that's the original reason it was done, but I do know that it's a big pain to work around for a program author. If I'm writing to /tmp, I expect that the file might be swapped to disk, and indeed that it will be paged to disk before the OOM killer comes for me. If what I wanted was named shared memory, I'd put it in /dev/shm.
Re:Nobody ever ported Doom to run on a Cray 1 by fomine3 on Tuesday December 22, 2020 @01:43AM (#25503640)
What about /var/tmp ?