Creating a ramdisk tested with 12G of ram and works
In the idea of sharing resources :
if you want to make a hudge ramdisk for mysql or what ever add this in /etc/fstab
none /ramdisk tmpfs size=16M 0 0
create the dir /ramdisk or whatever you want
and mount it.
now you have a ramdisk of 16M
Tested on RH, FC, and suse 2.4 and 2.6 kernel and large files 512M+
The ramdisk will use memory when it is filled.
NOTE !!!!
M can be replaced by G for giga...
DONT ! make it lager than you have ram is fact save at least 256 MB ut 512 M is better
NEVER make it larger then ramdisk and swap combined then the server will crash.
when it uses swap the system slows ofcourse
after a reboot the ramdisk is empty so also handy with lock files you dont want to have after a reboot.
i always make a /lock file dir of 16M but this is personal...
It is fun to make a hudge one (like 1 TERA) and mount it with samba ;-)
all those windows geeks freak out ...
|