Conversation

hey , I'm told that apparently some distros don't mount /tmp/ as a tmpfs

would anyone happen to know which distros might do this?

6
1
0
@solonovamax its not linux but i know freebsd doesn't
1
0
0

@lily freebsd isn't too relevant in this context, bc it's about running mc, and I'm not too sure how well mc will run on freebsd lol

2
0
0

@solonovamax @lily it runs, and even if it doesn't I'll make it run anyway
FreeBSD is fun

1
1
0

@tranquillity @solonovamax @lily FreeBSD is amazing and pretty, a friend of mine is porting / has ported launchd to it

1
0
0

@solonovamax This struck me as an unusual observation given how malleable Linux-like operating systems are. Anything that's there by default is more a suggestion than anything.

Clearing /tmp still seems like a moral imperative to me, which suggests that I use traditional filesystems. Or... Traditional-ish anyway. Mostly ZFS nowadays. But I'm not sure what the default is on anything I use...

What's the context of the question, out of curiosity?

2
0
0

@mason context is this: https://tech.lgbt/@solonovamax/116383968784893219

I want to know bc as part of a blog post I'm working on I mention that linux uses a tmpfs for /tmp, so if there's any large distros that don't do this, then I want to call it out

1
0
0

@solonovamax Oh, that's interesting. That is an interesting finding. I'd say "well, folks should make sure their memory-mapped file is on something suitable" except that I can't imagine a lot of people would be aware of that quirk.

I'm curious, though - why doesn't filesystem caching make this utterly invisible? Or are you talking about files written with O_DIRECT|O_SYNC or something?

Man, there's a whole world of picky little details where I've just no clue here! Heh.

0
0
0

@lily yeah, but like nobody does it, sooo

this issue is also specifically to do with https://www.evanjones.ca/jvm-mmap-pause.html, and idk if that happens on freebsd, it very well might not happen bc they do smth different

1
0
0

@solonovamax I thought Debian was one of the last ones to do this, but it does now.

1
0
0

@va2lam yeah, I know debian recently switched to doing that

0
0
0
@solonovamax i think gentoo might not if you're not running sysd?
0
0
0
@solonovamax slackware might not mount /tmp as tmpfs
im basing this purely off of slackware just feeling old as shit
0
0
0

@mason @solonovamax

Clearing /tmp still seems like a moral imperative to me, which suggests that I use traditional filesystems. Or... Traditional-ish anyway. Mostly ZFS nowadays. But I'm not sure what the default is on anything I use...

Am I missing something? tmpfs keeps its data in RAM, right? So clearing it is as simple as unmounting or rebooting. (Or if you really really want to get technical, a powerdown I guess.) Conversely, zfs and etc would require manual overwriting to truly clear or really you would ideally want to put it on an encrypted partition.

Or am I completely misunderstanding something?

1
0
0

@nazokiyoubinbou @solonovamax No, that's it. I'm just poking fun at myself for not knowing what the defaults are for the systems I use.

1
0
0

@mason @solonovamax Ok, I just knew a moment of panic wondering if tmpfs for /tmp was bad somehow due to some exploits or bad implementations or something.

Would be a real pita for me to try to rig something up on an encrypted partition right now.

1
0
0

@nazokiyoubinbou @solonovamax If you're worried about security, make sure your swap is encrypted, or that your tmpfs mounts can't swap out. (Look at the noswap setting.)

1
0
0

@mason @solonovamax Yeah, my swap is on an encrypted partition. Anyway, I was just double checking. Thanks! (I may still do noswap though.)

0
0
0