LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-07-2009, 06:10 AM   #1
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Rep: Reputation: 31
Persistent ramdrive for Linux?


Does anyone know of an persistent ramdrive solution for Linux? I'd prefer free, open-source, but I'm willing to look into commercial solutions (or my boss is, that is).

I guess I could go with a script that would tar a ramdisk's data and store it on the hard drive, then restore it at the next boot, but I'm a little leery of this. I imagine a ready-made solution would do exactly the same thing, but I'd like to find out if somebody is developing and maintaining a project for a persistent ramdrive, I'd like to know.

Thanks.
 
Old 03-07-2009, 08:51 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Have you checked out any howtos? I would not be leery, many distributions like puppy and knoppix do just that. In addition Puppy periodically writes to file too. I do not know of any ready-made solutions but it should not be difficult. In a nutshell add an entry in fstab and create a start up/shutdown script to restore/save data.

tmpfs makes it easy.
http://www.ibm.com/developerworks/library/l-fs3.html
 
Old 03-07-2009, 08:52 AM   #3
TBC Cosmo
Member
 
Registered: Feb 2004
Location: NY
Distribution: Fedora 10, CentOS 5.4, Debian 5 Sparc64
Posts: 356

Rep: Reputation: 43
It would help to know what this is for. It seems to me that you would need to have non-volatile memory to use where the data actually does remain persistent. Otherwise, your alternative method is not a persistent ramdrive, rather a way to store data on a disk and copy it into a ramfs on boot.

Quote:
Currently Linux has no support for a persistent, non-volatile RAM-based filesystem, persistent meaning the filesystem survives a system reboot or power cycle intact. The existing RAM-based filesystems such as tmpfs and ramfs have no actual backing store but exist entirely in the page and buffer caches, hence the filesystem disappears after a system reboot or power cycle.
Protected and Persistent RAM Filesystem
 
Old 03-07-2009, 12:49 PM   #4
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Original Poster
Rep: Reputation: 31
Thanks, guys, for your help. I think I'll go with a script that writes data to and from tmpfs. I'm still looking for some good examples, so if you know of any, I'd be interested in seeing the links.

We use some custom apps that require frequent drive access, and we're running some older machines (this is a school application in a developing country). I thought I could speed things up with a ramdisk, but I wanted to make sure I could keep the data from session to session.

For a while I used a nifty commerical (though not expensive) ramdrive in Windows, and I was wondering if there could be anything like that for Linux. I'd like to reduce setup and configuration hassle as much as possible for the sake of endusers.
 
Old 03-07-2009, 07:41 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
There used to be a thread on forums.gentoo for running the entire system from RAM.
Should have all the scripts to harden in-storage filesystems prior to shutdown as well as loading them into RAM on start-up.
 
Old 03-08-2009, 03:10 AM   #6
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by syg00 View Post
There used to be a thread on forums.gentoo for running the entire system from RAM.
Should have all the scripts to harden in-storage filesystems prior to shutdown as well as loading them into RAM on start-up.
Thanks for the info. I think this may be the Gentoo thread you referred to. It does have a lot of applicable info. There's also this, which is useful, but not as detailed.

I'll see if I can extract the specific info I need (good scripts for moving data back and forth from RAM to hd.

Thanks again.
 
Old 03-08-2009, 03:31 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Yep, they should cover things.
 
Old 03-08-2009, 12:47 PM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
dhave

Before you spend too much time on this, have you considered just installing one of the physical ram drives (they stay active as long as the computer has power)? Gigabyte has one model(4GB?) and IBM has several(much larger). They are fairly expensive for their size but they are very fast.

http://www.gigabyte.com.tw/Products/...ProductID=2180

http://www.hyperossystems.co.uk/

Last edited by lazlow; 03-08-2009 at 12:52 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add a persistent route in Debian Linux LotharIrausquin Linux - Networking 11 03-11-2008 09:18 AM
run centos on ramdrive mattsoftnet Linux - Server 1 09-13-2007 03:42 PM
persistent static routes, not so persistent Hewson Linux - Networking 4 04-27-2007 05:09 PM
Compiling speed increased by ramdrive? exodist Linux - Software 1 07-31-2004 10:16 AM
Second stage ramdrive not working in Mandrake orange400 Linux - General 4 08-20-2003 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:22 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