Re: putting "/tmp" to memory help
- From: Henrique de Moraes Holschuh <hmh@xxxxxxxxxx>
- Date: Sun, 23 Jan 2011 12:08:27 -0200
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
- Follow-Ups:
- Re: putting "/tmp" to memory help
- From: Klistvud
- Re: putting "/tmp" to memory help
- References:
- putting "/tmp" to memory help
- From: kellyremo
- putting "/tmp" to memory help
- Prev by Date: Re: Where are "xrandr" settings stored?
- Next by Date: Re: a problem on crontab time format
- Previous by thread: Re: putting "/tmp" to memory help
- Next by thread: Re: putting "/tmp" to memory help
- Index(es):
Relevant Pages
|