Here are alternatives:
RAMFS
You mount a volume to a mount point with or without
specifying a definite max size.
mount -t ramfs none /mnt/RAM1
It starts utilizing your ram as the mount point fills
with data. Once your ram is depleted, your box will
stop responding.
I have 32GB of ram with a ramfs mount. I created a
10g
temp tablespace for oracle in it and it works great.
TMPFS
You mount a volume to a mount point and specify a
size.
mount tmpfs /tmp -t tmpfs -o size=1000m
What is unique about this one is that once you run out
of physical ram, it will start using your virtual ram,
aka swap. This can be good or bad depending on you
application requirements.
I wouldn't bother too much with ramdisk, as your memory will be reserved whether you write to those mount points or not . You also have format ramdisks, filesystem overhead, etc. The alternatives are nice because what memory you don't use gets utilized by the system.
Hope this helps.
|