Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 10-27-2008, 12:54 PM   #1
Registered: Sep 2004
Distribution: FC, ubuntu, OpenSuse
Posts: 112

Rep: Reputation: 16
map hard disk to ram?

Hi, I have a system with 12 G of ram. Since typically I don't come close to needing this much ram, I was wondering if there was a way to create a drive partition on say 4G of it to improve hard disk io performance? Maybe map a small partition on one hard disk to memory and then run completely from RAM?
Old 10-27-2008, 01:02 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,865

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
You can do that with a ramdisk. Here is a howto on creating a ramdisk:

Steve Stites
Old 10-27-2008, 01:53 PM   #3
Senior Member
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,125
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Linux will automatically cache files in ram and keep them there until the ram is needed for something else, it really isn't necessary to use a ramdisk in this instance.
Old 10-28-2008, 12:41 AM   #4
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,209
Blog Entries: 29

Rep: Reputation: 2417Reputation: 2417Reputation: 2417Reputation: 2417Reputation: 2417Reputation: 2417Reputation: 2417Reputation: 2417Reputation: 2417Reputation: 2417Reputation: 2417

There is a difference with cache of a file and creating a filesystem on a ramdisk. The filesystem will have better performance from a ramdisk vs a mechanical hdd where the files will be cached. The mechanical latency is the big problem with hdd that are based on physical storage with a moving head and platter. The ramdisk will have minute delay as compared to the mechanical hdd.

I think the newer silicon disks are twice the transfer rate typically. The density will be greater as the technology improves. The newer dynamic ramdisks will have more storage and out perform current hdd technology. As the density increases for the RAM then we will see even larger disks at lower cost. With new battery technology the backup is not a problem so you won't loose your data.
Old 10-28-2008, 04:53 AM   #5
LQ Guru
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
I recommend do not use RAM disk with that amount of RAM. I recommend use a high performance file system like XFS or JFS.


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
how to check processor, ram and hard disk? jolly Linux - General 16 02-11-2014 05:05 PM
mounting linux files from another hard disk(IDE) to current hard disk(sata) the lord protector Linux - Hardware 5 05-04-2008 11:30 AM
SATA Hard disk(Windows) MBR corrupted by IDE hard disk(Linux) Peter_APIIT Fedora 6 07-07-2007 12:20 AM
Can I use a virtual machine hard disk as a real hard disk, or vice versa? onlineapps Linux - Software 1 02-24-2007 08:40 PM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 10:55 AM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration