Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I wanted to create ramdisks but its size is limited to 16megs only. I wanted to increase it and found that it can be increased via kernel parameters while booting.
Can we do the same while the machine is running?
May be through some fine tunable parameter in /proc/sys/kernel ?
As far as I know, the size of ramdisks cannot be changed while the ramdisk module is loaded. If your kernel is compiled with ramdisks built-in rather than as a module, then the only way to change the ramdisk size is to change the kernel parameters passed at boot.
If your kernel is compiled with ramdisks as a module (called rd), it is mostly possible to change ramdisk size, but it requires unloading the module, and then loading it again with different parameters:
I think I have my kernel compiled with ramdisks built in.
I guessed so because:-
Quote:
[root@shakti myscripts]# modprobe rd
FATAL: Module rd not found.
You have new mail in /var/spool/mail/root
[root@shakti myscripts]# insmod rd
insmod: can't read 'rd': No such file or directory
[root@bramha myscripts]#
So, I don't have any other choice except to reboot it, isn't it?
I have to try other way round then:-
I wanted to create a ramdisk for speeding up performance and minimize disk writes and reads.
So, for now I will have to :-
Create ramdisks(16 in no.) of 16 megs then have them all integrated into one raid 0 device so that it will act as one whole part of disk of 256 mb and restrict myself within this limit.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.