2 tmpfs partitions on new Linode
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda 12G 979M 11G 9% /
tmpfs 271M 0 271M 0% /lib/init/rw
tmpfs 271M 4.0K 271M 1% /dev/shm
Which one is correct and how do I get rid of the other one.
I only have one swap space setup in my Linode Manager
7 Replies
tmpfs doesn't allocate any RAM it's not actually using, so the 271M you see there is some kind of maximum that'll never be approached. Do a du on those directories and you'll find they're so close to empty it's not even worth looking at.
@NeoGuru:
Which one is correct and how do I get rid of the other one.
I only have one swap space setup in my Linode Manager.
The tmpfs in /dev/shm is the "real" one. Don't get rid of the other one, as init scripts that write there may be run at other times (if you manually restart a service, or switch runlevels).
@Xan:
Neither one of those is your "tmp space".
What are these then?
/dev/shm is for a particular inter-process shared memory mechanism.
Whether or not those are safe to noexec is something you'd have to ask the Debian folks about…