LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-12-2006, 04:31 AM   #1
imagineers7
Member
 
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310

Rep: Reputation: 30
Ramdisk size, howto increase limit (Kernel parameters)


Hi everyone,

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 ?

Thanks in advance,
 
Old 06-12-2006, 05:01 AM   #2
imagineers7
Member
 
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310

Original Poster
Rep: Reputation: 30
Hey guys,

If it is impossible, please tell me so, So that I won't keep waiting for the answer.


I Hope some one will answer,


Bye
 
Old 06-12-2006, 06:00 AM   #3
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
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:
Code:
rmmod rd
insmod rd rd_size=SIZE_IN_KB
 
Old 06-12-2006, 06:21 AM   #4
imagineers7
Member
 
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310

Original Poster
Rep: Reputation: 30
Thanks zhangmaike,


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.


Thanks for your valuable help again
 
Old 03-23-2009, 02:37 PM   #5
CrazyToon
LQ Newbie
 
Registered: Jun 2003
Posts: 21

Rep: Reputation: 0
This link might be helpful to you: http://crazytoon.com/2007/06/01/ramd...s-rhel-fedora/

It does talk about rebooting but it shows how to setup different size in grub.
 
Old 03-23-2009, 02:44 PM   #6
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Did you notice the date on the question?

Last edited by johnsfine; 03-23-2009 at 02:46 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ramdisk size, howto increase limit (Kernel parameters) imagineers7 Linux - General 0 06-10-2006 01:34 AM
How to increase vmalloc space size in the kernel 2.6.11.4? gavin_guo Linux - Kernel 1 05-21-2006 09:23 AM
the size limit of LILO to load a ramdisk golien Linux - General 0 03-31-2005 12:32 AM
How do you increase a kernel stack size? ginda Linux - Newbie 4 01-24-2005 06:52 PM
howto increase partition size vasanthraghavan Linux - Software 4 07-01-2004 09:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration