Re: putting "/tmp" to memory help



On Sun, 23 Jan 2011, kellyremo wrote:
"to memory" means: mounting a ~2 GByte filesystem [ tmpfs?, or ramfs? ],
and put the "/tmp" on it. [ e.g.: 4 GByte ram in the pc ]. what to write
in the "/etc/fstab"?

tmpfs /tmp tmpfs defaults,nosuid,nodev,mode=1777,size=1G

In squeeze, edit /etc/default/tmpfs:
SHM_SIZE=6G
TMPFS_SIZE=1G
RUN_SIZE=10M
LOCK_SIZE=1M
RW_SIZE=10M

(adjust to your needs).

Disadvantages: - Security? [ how to set this up to be secure? any clear
howtos/links regarding it? :O ]

tmpfs does not support security labels in 2.6.32, which limits SELINUX
heavily. There is no workaround (unless Debian backported the support to
2.6.32, I didn't check). Switch to per-user TMP directories is recommended.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/20110123140827.GE24071@xxxxxxxxxxxxxxxxxxxxx



Relevant Pages

  • Re: disabling of XWindows start on ubunt
    ... No need to chroot to access disk when booted from live image. ... If you boot off the live CD you can mount the disk and remove ... Modify settings or unsubscribe at: ...
    (Ubuntu)
  • Re: "superblock last write time is in the future" on boot
    ... It has to do with the fact that the local time ... trouble. ... > "One disk to rule them all, ... > with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: Problem booting RAID1/mdadm system when one disk is unplugged
    ... My System has 2x120GB IDE disks with the an up-to-date Sarge install, running kernel 2.6.8-3 and configured for mirroring. ... some friends of mine do not agree that my initrd is the problem because they point out that I can still boot when two disks are present. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ... disk BIOS presents, and partition number 6 on that disk. ...
    (Debian-User)
  • Re: Problem booting RAID1/mdadm system when one disk is unplugged
    ... My System has 2x120GB IDE disks with the an up-to-date Sarge install, running kernel 2.6.8-3 and configured for mirroring. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ... first disk BIOS presents, and partition number 6 on that disk. ... You always want to RAID1 the swap as well. ...
    (Debian-User)
  • Re: how to fix logical bad sectors
    ... SMART test to diagnose any problem from the disk and better if you use ... If both SATA drives pass the tests then open your computer case and reseat/ ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)