LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices


Reply
  Search this Thread
Old 10-27-2008, 01:54 PM   #1
santana
Member
 
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, 02:02 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,863

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

http://www.vanemery.com/Linux/Ramdisk/ramdisk.html

-----------------------
Steve Stites
 
Old 10-27-2008, 02:53 PM   #3
estabroo
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, 01:41 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,898
Blog Entries: 27

Rep: Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185
Hi,

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, 05:53 AM   #5
Electro
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.
 
  


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
how to check processor, ram and hard disk? jolly Linux - General 16 02-11-2014 06:05 PM
mounting linux files from another hard disk(IDE) to current hard disk(sata) the lord protector Linux - Hardware 5 05-04-2008 12:30 PM
SATA Hard disk(Windows) MBR corrupted by IDE hard disk(Linux) Peter_APIIT Fedora 6 07-07-2007 01: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 09:40 PM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 11:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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