You are not logged in.

#1 2012-03-16 04:16:20

deemytch
Member
Registered: 2009-11-28
Posts: 27

I hate shm

Guys, how can I make my system do not mount TMPFS at start?
I cannot umount it after, because of some files created by daemons etc.

#fstab

/dev/sda1 swap swap defaults 0 0
/dev/sda2 / xfs defaults 0 1

I even don`t get which keywords do I need to use for search that.

//

Offline

#2 2012-03-16 04:16:55

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: I hate shm

/dev/shm is a requirement of glibc.

Offline

#3 2012-03-16 07:45:18

Awebb
Member
Registered: 2010-05-06
Posts: 6,286

Re: I hate shm

It's like opening a thread in a medical training board stating "I hate kidneys".

http://www.cyberciti.biz/tips/what-is-d … usage.html

Trivial:

$ whatis love
love: nothing appropriate.

Offline

#4 2012-03-16 08:01:36

deemytch
Member
Registered: 2009-11-28
Posts: 27

Re: I hate shm

You hate kidneys? You just don`t know how to cook em ))

Really, with 2Gb of RAM I see very fast as Firefox make my system swapping, with df swowing me that tmpfs use 1Gb.
Ok I found that I can don`t mount /tmp, and resize /run and /dev on the fly.

Offline

#5 2012-03-16 12:28:24

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: I hate shm

deemytch wrote:

You hate kidneys? You just don`t know how to cook em ))

Really, with 2Gb of RAM I see very fast as Firefox make my system swapping, with df swowing me that tmpfs use 1Gb.
Ok I found that I can don`t mount /tmp, and resize /run and /dev on the fly.

You seem to misunderstand how tmpfs works. You could allocate a 10GiB tmpfs instance with only 1GiB of physical RAM. These are swap backed filesystems that do not actually occupy RAM until there's files requesting the allocation. The "size" parameter is merely an upper bound.

Offline

#6 2012-03-16 17:28:35

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: I hate shm

Top or htop would tell you quite unequivocally that /dev/shm is not claiming half of your RAM as you think it is. Its maximum size defaults to half your RAM; on my desktop with 6 GB RAM it's 3 GB.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB