Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am running RH 7.3, grub, 2.4.18-18.7.xsmp kernel and would like to create a huge ramdisk, maybe 2 GB to store a static database in that is continually queried by my webserver (Apache). I can easily enough create a ramdisk but by default RH sets the size to 4 MB, only 1/500th of what I need! Does anyone know where this is defined?
I found a doc that mentioned adding a line to /etc/lilo.conf but it was for RH 6 and didn't work for me.
Another article said:
insmod rd rd_size=200000
but I don't have that module compiled and/or installed:
[root@system root]# insmod rd rd_size=200000
insmod: rd: no module by that name found
Either way, I believe that the setting in the kernel is the *default* size, but you shouldn't need to re-comple to make a larger ramdisk.
I've done this with isolinux, but lilo should be the same or similar:
#the kernel params (in the boot loader config):
ramdisk_size=16384 # if I remember correctly, that's +16 megs
#on the command line:
/sbin/mke2fs -m 0 -i 1024 /dev/ram0
mount /dev/ram0 /mnt/ramdisk
And that's it. Just adjust the ramdisk_size parameter (and verify size w/ df after you mount it all)
Now that I think about it, the above works if ramdisk support is built into the kernel, but you may be able to alter the size if you load it after boot with modules.conf or something. Maybe your other source meant:
Well, after further investigation, the 2 GB file is only 1 of 4 that must reside in the same directory. The combined size of all of the files is in excess of 4 GB so I am not going to persue a large ramdisk any further. Maybe if I can talk the boss into 8 GB RAM...
Thanks to all for the suggestions!