LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Is 1GB ramdisk x10 possible in rhel3? (https://www.linuxquestions.org/questions/red-hat-31/is-1gb-ramdisk-x10-possible-in-rhel3-251477/)

dokterneo 11-05-2004 09:36 AM

Is 1GB ramdisk x10 possible in rhel3?
 
I have a server w/ 16gb of ram running rhel3 AS. I am running oracle 9iR2, and want to move the temp tablespace, and undo/redo/logs to ramdisks. Right now, I am aware of the max number of 16 ramdisks by default. I have also run into problems with having 512MB max size of each disk.

are 1GB ramdisks possible? If not, how can I increase the number of ramdisks beyond 16?
I haven't been able to find ANY documentation on this. All I can seem to get is yeah, having more than 16 is possible, but no explanation on howto do it.

dokterneo 03-09-2005 01:01 PM

For those that still can't find an answer
 
I've received quite a few inquires regarding the answer to this issue, so I am posting my findings:

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.


All times are GMT -5. The time now is 10:20 PM.