Re: Is /dev/shm needed?

Robert Love
2001-12-16T23:11:47Z

On Sun, 2001-12-16 at 18:15, Raúl Núñez de Arenas Coronado wrote:
> Hello Robert :)
>
> >It is not needed. /dev/shm mounted 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.

> >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