Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This 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.


  Search this Thread
Old 03-09-2005, 05:31 AM   #1
Registered: Mar 2005
Location: Alphen aan den Rijn , netherlands
Distribution: core
Posts: 57

Rep: Reputation: 15
Angry How can i make a ramdisk of 1GB or more

Ive tried :

kernel /vmlinuz-2.6.10-1.770_FC3smp ro root=LABEL=/ ramdisk_size=1024000
and got :
none 632M 0 632M 0% /dev/shm

also did this :

mke2fs -vm0 /dev/ram0 1024000
mount -t tmpfs /dev/ram0 /ramdisk

and got the same 632M

must i change this in the kernel ?

who has done it ?

plz there is nothing of this matter on the net
Old 03-09-2005, 06:08 AM   #2
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
Haven't done this, but yes, you may need to change the kernel config:
Old 03-09-2005, 06:27 AM   #3
Registered: Mar 2005
Location: Alphen aan den Rijn , netherlands
Distribution: core
Posts: 57

Original Poster
Rep: Reputation: 15
im gonna compile the kernel hope it works

let you know here
Old 03-09-2005, 12:52 PM   #4
LQ Newbie
Registered: Jun 2003
Posts: 15

Rep: Reputation: 0
Here are alternatives:


You mount a volume to a mount point with or without
specifying a definite max size.

mount -t ramfs none /mnt/RAM1

It starts utilizing your ram as the mount point fills
with data. Once your ram is depleted, your box will
stop responding.

I have 32GB of ram with a ramfs mount. I created a
temp tablespace for oracle in it and it works great.


You mount a volume to a mount point and specify a

mount tmpfs /tmp -t tmpfs -o size=1000m

What is unique about this one is that once you run out
of physical ram, it will start using your virtual ram,
aka swap. This can be good or bad depending on you
application requirements.

I wouldn't bother too much with ramdisk, as your memory will be reserved whether you write to those mount points or not . You also have format ramdisks, filesystem overhead, etc. The alternatives are nice because what memory you don't use gets utilized by the system.

Hope this helps.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
RAMDISK: couldn't find valid ramdisk image starting at 0. iotc247 Slackware 10 12-10-2010 03:08 PM
Is 1GB ramdisk x10 possible in rhel3? dokterneo Red Hat 1 03-09-2005 01:01 PM
creating a ramdisk runtime from another ramdisk code123 Linux From Scratch 0 10-11-2004 08:59 AM
memory > 1GB a1penguin Linux - Newbie 10 07-22-2003 11:19 PM
I've got just over 1GB spare. Is that really enough? Bert Linux From Scratch 4 10-29-2002 04:39 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:33 PM.

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