LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-08-2005, 07:07 PM   #1
PeteRossi
Member
 
Registered: Jun 2002
Location: Southeast PA
Distribution: Slackware
Posts: 40

Rep: Reputation: 15
Maximum size of initrd image ??


I am looking for information about the maximum size (if there is one)
for an initrd image.

I have been trying some things with loading one and a small 4 MB image
works just fine (run as 4 MB ramdisk with virtually no free space).

The same 4 MB image contained inside an actual 40 MB ramdisk (runs as
4 MB of data with about 36 MB of free space) will also work fine.

But if I take that larger sized ramdisk and fill it with more files to
make it more like 30 MB .. so it now (should run) as the 40 MB ramdisk
with about 10 MB free space, everything falls apart. First attempt
the Kernel wouldn't even load. Later (not quite sure what I did) I
got the Kernel to load but right after it starts up I get a Kernel
message :

initrd overwritten (0xXXXXXXXX < 0xXXXXXXXX) - disabling it.

And then when it gets to the point were it tries to mount the initrd
root, it fails saying it can't mount it.

Repeating this last scenario but only filling the ramdisk to about 16 MB,
it will work OK. So somewhere between 16 and 32 MB it stops working.

So it appears that I am hitting some kind of size limit (?) for the
initrd image size. The kernel is installed with RAMDISK=42000 so
the actual ramdisk is large enough.

Seems that usually you hear of initrd images being rather small.
Is there a size limit I am hitting?

Last edited by PeteRossi; 04-08-2005 at 07:09 PM.
 
Old 04-08-2005, 10:49 PM   #2
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
There is no limit. Of couse it can't be bigger than the amount of ram you have.

The default size of the ram disk in slack is 16,384. To use an image that is bigger than that pass ramdisk_size=? to the kernel.
 
Old 04-08-2005, 10:54 PM   #3
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
In case your are curious were I got 16,384 from...

Code:
cat /proc/config.gz | gzip -d | grep -i ram
Just so you know I didn't pull it out of thin air. If you compile a new kerenl you can make this number anything you want but making it to big is not a good idea. Wastes memory because the ram disk memory once loaded can never recovered until reboot.
 
Old 04-09-2005, 07:45 AM   #4
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
well.........is that so ?
from kerneldocumentation/initrd.txt
-----------
<snip>
Now, the initrd can be unmounted and the memory allocated by the RAM
disk can be freed:

# umount /initrd
# blockdev --flushbufs /dev/ram0 # /dev/rd/0 if using devfs
<snip>
---------

egag
 
Old 04-10-2005, 01:31 AM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,771

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
If you don't pass the RAMDISK size, RAM will be dynamically allocated. If you want to load other stuff into RAM, create another RAMDISK for it in /dev/ram2.
 
Old 03-26-2007, 10:30 AM   #6
leitao
LQ Newbie
 
Registered: Mar 2007
Posts: 4

Rep: Reputation: 0
PPC and initrd maximum size

Note that the when you are in the PPC archicture, your initrd has a maximum file size, but I can't remember the size right now.

Regards
Breno Leitão
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Maximum Share size + Samba hendrixbart Linux - Software 1 11-11-2010 01:10 PM
[lilo] increasing the maximum image size MD3 Linux - Software 1 04-22-2005 09:18 AM
maximum size for crontab? JakeS Linux - Software 6 01-18-2005 06:23 PM
maximum linux file size? alec77 Linux - Newbie 8 12-03-2004 10:31 AM
avisync maximum file size david.skinner Linux - Software 0 11-26-2004 06:19 PM


All times are GMT -5. The time now is 09:44 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration