Is /dev/shm needed?
Hello Robert :)
Quoted 2 lines
It is not needed.
/dev/shmmounted with tmpfs is only needed for POSIX shared memory, which is still fairly rare.
That this means that I can mount more than one 'tmpfs' just like
if it's a *real* filesystem? I wasn't sure, since it's implemented thru the page cache.
Quoted 1 line
It is dynamic, so you don't need to specify a size.
Yes, I knew, I meant the maximum size. I don't want half of the
RAM occupied just by a programming mistake ;)))
Thanks a lot for your help :)
Ra�l
Quoted 8 lines · Raúl Núñez de Arenas Coronado
Hello Robert :)
Quoted 2 lines
It is not needed.
/dev/shmmounted with tmpfs is only needed for POSIX shared memory, which is still fairly rare.That this means that I can mount more than one 'tmpfs' just like
if it's a *real* filesystem? I wasn't sure, since it's implemented thru the page cache.
Yes, you can mount as many as you like.
Quoted 4 lines
Quoted 1 line
It is dynamic, so you don't need to specify a size.
Yes, I knew, I meant the maximum size. I don't want half of the
RAM occupied just by a programming mistake ;)))
Ah, right. Set the size to the minimum of the most RAM you can spare and the biggest size of your tmp. You can also specify max inode entries, but size is probably best here. You can pass "size=32m" or whatever as an option.
See Documentation/filesystems/tmpfs.txt for more information.
Robert Love
Quoted 1 line · :-> "Robert" == Robert Love <[email protected]> writes:
See
Documentation/filesystems/tmpfs.txtfor more information.
There's no such file in my tree... what version are you talking about?
ik5pvx@penny:/usr/src/linux/Documentation/filesystems $ ls
00-INDEX bfs.txt ext2.txt ncpfs.txt smbfs.txt umsdos.txt Locking coda.txt fat_cvf.txt ntfs.txt sysv-fs.txt vfat.txt adfs.txt cramfs.txt hpfs.txt proc.txt udf.txt vfs.txt affs.txt devfs isofs.txt romfs.txt ufs.txt
ik5pvx@penny:/usr/src/linux/Documentation/filesystems $ head ../../Makefile VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 16
EXTRAVERSION =
Pf
Signature · 4 lines
------------------------------------------------------------------------------- Pierfrancesco Caci | ik5pvx | mailto:[email protected] - http://gusp.dyndns.org Firenze - Italia | Office for the Complication of Otherwise Simple Affairs Linux penny 2.4.16 #1 Fri Nov 30 22:12:51 CET 2001 i686 unknown
Quoted 3 lines · Pierfrancesco Caci
Quoted 1 line · :-> "Robert" == Robert Love <[email protected]> writes:
See
Documentation/filesystems/tmpfs.txtfor more information.There's no such file in my tree... what version are you talking about?
I last saw this file in 2.4-ac - maybe it got lost somewhere....
There is quite a bit of help in Documentation/Configure.help though.
Signature · 2 lines
Nick Craig-Wood [email protected]
Hi RaúlNúñez,
Quoted 8 lines · RaúlNúñez de Arenas Coronado
Hello Robert :)
Quoted 2 lines
It is not needed.
/dev/shmmounted with tmpfs is only needed for POSIX shared memory, which is still fairly rare.That this means that I can mount more than one 'tmpfs' just like
if it's a *real* filesystem? I wasn't sure, since it's implemented thru the page cache.
Yes, every single mount is an independant tree.
Quoted 4 lines
Quoted 1 line
It is dynamic, so you don't need to specify a size.
Yes, I knew, I meant the maximum size. I don't want half of the
RAM occupied just by a programming mistake ;)))
What I like most about /tmp in tmpfs is the ability to resize on the
fly: I have a big swap partition and a reasonable limit for /tmp and /var/tmp.
When one of these gets full I can either stop the affending job or increase the limit: If there is swap left I can simply increase the limit. If swap is full I add a swap file on a real filesystem and increase the limit.
Greetings
Christoph
P.S: Documentation/filesystems/tmpfs.txt is in the 2.4.17-rc patch.