Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
tmpfs not in use
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
LaoLiulaoliu
Apprentice
Apprentice


Joined: 31 Dec 2006
Posts: 199
Location: Nanjing,Jiangsu

PostPosted: Sun Jun 08, 2008 2:37 am    Post subject: tmpfs not in use Reply with quote

I added a line in /etc/fstab.
Code:

tmpfs         /dev/shm   tmpfs      nodev,nosuid,noexec   0 0


When I used "df -h" to see,I always saw the tmpfs have 0% been used.
How to deal with it?
Thank you.
_________________
Gentoo(~x86)+fvwm && Debian+gnome
Intel Pentium D,Intel Mobile GM965/GL960 Integrated
Back to top
View user's profile Send private message
Maliwik
Apprentice
Apprentice


Joined: 14 Apr 2008
Posts: 252
Location: Wisconsin, U.S. of A.

PostPosted: Sun Jun 08, 2008 3:47 am    Post subject: Reply with quote

If you haven't put anything in there, it's going to be empty. This is a quote from the sample /etc/fstab file that comes initially with a Gentoo install.

Quote:
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)

_________________
freelight wrote:
I have a severe case of procrastinitis.
Back to top
View user's profile Send private message
LaoLiulaoliu
Apprentice
Apprentice


Joined: 31 Dec 2006
Posts: 199
Location: Nanjing,Jiangsu

PostPosted: Sun Jun 08, 2008 4:31 am    Post subject: Reply with quote

I have read a lot of materials about tmpfs.
But I only know how to create it,I don't know how to use it,how to put things in it.
For example,I want to put the firefox process in it,or I want to put the tmp thing when compiling gftp.
_________________
Gentoo(~x86)+fvwm && Debian+gnome
Intel Pentium D,Intel Mobile GM965/GL960 Integrated
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Wed Jun 11, 2008 7:13 pm    Post subject: Reply with quote

Look here
https://forums.gentoo.org/viewtopic.php?p=1893381
http://gentoo-wiki.com/TIP_Speeding_up_portage_with_tmpfs
And if you are really daring:
https://forums.gentoo.org/viewtopic-t-296892.html :lol:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum