LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-12-2005, 07:55 PM   #1
narmida
Member
 
Registered: Mar 2005
Location: Alphen aan den Rijn , netherlands
Distribution: core
Posts: 57

Rep: Reputation: 15
Creating a ramdisk tested with 12G of ram and works


In the idea of sharing resources :

if you want to make a hudge ramdisk for mysql or what ever add this in /etc/fstab
none /ramdisk tmpfs size=16M 0 0

create the dir /ramdisk or whatever you want
and mount it.
now you have a ramdisk of 16M
Tested on RH, FC, and suse 2.4 and 2.6 kernel and large files 512M+
The ramdisk will use memory when it is filled.
NOTE !!!!

M can be replaced by G for giga...

DONT ! make it lager than you have ram is fact save at least 256 MB ut 512 M is better
NEVER make it larger then ramdisk and swap combined then the server will crash.
when it uses swap the system slows ofcourse

after a reboot the ramdisk is empty so also handy with lock files you dont want to have after a reboot.
i always make a /lock file dir of 16M but this is personal...

It is fun to make a hudge one (like 1 TERA) and mount it with samba ;-)
all those windows geeks freak out ...
 
Old 10-12-2005, 08:33 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hope you don't do that kind of monkey business on a
production server :}

/me thinks "Power-failure ... RAM failure... data loss... "


Cheers,
Tink
 
Old 10-12-2005, 09:32 PM   #3
narmida
Member
 
Registered: Mar 2005
Location: Alphen aan den Rijn , netherlands
Distribution: core
Posts: 57

Original Poster
Rep: Reputation: 15
no monkeys on production ;-)

but the thing works search many answers but the answer was so simpel a tmpfs
all other on the web couldnt make a file lager as 512MB

we needed this for a MySql database of 8 GB the 15K SCSI just wouldnt cut it anymore.
no worries it is for read only purp...

but ofcourse nobody must do testing on a PROD server unless your stupid etc.
that why i added all the warnings for the n00bies who want to crash
 
Old 12-27-2005, 06:02 PM   #4
niverson
Member
 
Registered: Jun 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 128

Rep: Reputation: 15
Thanks you for this post. This is exactly what I was looking for. I wanted to create a 1G ram disk to use as a live tv buffer with mythtv -- all the other posts(swap on ramdisk) weren't as elegant as this. I have 3 capture cards and I have been seeing choppy video when writing 3 streams(1 stream live tv, 2 streams recording other shows) to my raid 5 storage.

Thanks,
Nate
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
SATA Harddrive Installation with Linux (TESTED) and works with LILO jonnyblinux Linux - Hardware 8 10-25-2005 11:26 PM
S A T A HARDDRIVE INSTALLATION with LINUX Slackware 10.1/10.2 (TESTED) and works jonnyblinux Linux - Software 0 10-16-2005 04:23 PM
creating a ramdisk runtime from another ramdisk code123 Linux From Scratch 0 10-11-2004 08:59 AM
RAMDISK: Couldn't find valid RAM disk toshiro Linux - Software 0 03-06-2003 08:34 AM
creating a ramdisk nakkaya Linux - General 1 02-24-2003 04:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:16 PM.

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