Hmm I think I tried that (mainly because I installed an SSD) but then I had to rollback as I was running out of space on /tmp (or was it /var/tmp?). I had this error while installing Psychonauts (big installer), but also had issues with equo upgrade when a lot of packages were involved. I'm sorry I can't remember if it was /tmp or /var/tmp, however my fstab now looks like this: UUID=527b68f5-f44f-4a9f-adcb-3490c6884209 / ext4 defaults,noatime,nodiratime,discard 1 1 UUID=1b6a6202-7955-4f24-a23f-80dd9b3dd1a3 /home ext4 defaults,noatime,nodiratime,discard 1 2 UUID=796ec96a-4dfd-42ea-9f32-92b7d960e5aa swap swap defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 tmpfs /var/log tmpfs defaults,noatime,mode=0755,size=400M 0 0 tmpfs /var/tmp tmpfs defaults,noatime,mode=1777,size=1G 0 0 tmpfs /home/dev00/dev/build tmpfs size=768M,rw,mode=770,users,nosuid,nodev,exec,gid=1022 0 0 So since I increased /var/tmp to 1GiB and removed /tmp I'm inclined to think I had problems with the latter. Besides I had to go as high as 1GiB, which is probably because lower settings gave me problems. Also please keep in mind that tmpfs is swappable, which is probably the main difference with ramfs. Not sure what you want to achieve. Michele ----- Original Message ----- From: Fabio Erculiani Sent: 02/03/13 06:59 AM To: Sabayon public development mailing list Subject: [sabayon-dev] /tmp on tmpfs, with noexec, nodev, nosuid, size=100M (or 10% RAM)
I've just enabled it. New installs will get it by default. Basically, if you have less than 512Mb RAM, size is capped to 10% (size=10%), otherwise is capped to 100Mb. Let's see how many exotic apps will break. commit 14d6b4ec6c8b7e524552101bb69296bebb1cfa9c Author: Fabio Erculiani <[email protected]> Date: Sun Feb 3 05:42:33 2013 +0000 [storage] implement /tmp over tmpfs, with noexec,nosuid,nodev and variable size. Many unix oses do it since 1994, Fedora started doing it since 18. /tmp is typically world-writable, which is bad for many reasons. Forcing noexec,nosuid,nodev by default increases security by mitigating the damage of possible race-condition based attacks. See: http://git.sabayon.org/anaconda.git/commit/?id=14d6b4ec6c8b7e524552101bb69296bebb1cfa9c -- Fabio Erculiani
