Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Linux


Reply
 
Share Thread Tools Display Modes
Old 09-03-2009, 11:20 PM   #1
Low Bitrate
 
eurocarpc's Avatar
 
Join Date: Jun 2006
Location: Madrid, Spain
Posts: 68
eurocarpc is on a distinguished road
system in RAM

Hi!

In order to reduce disk access and improve performance I thought about having the whole system running from a RAMdrive.

I know the system does very good caching for itself and so on, but it still may be interesting to "evaluate".

Let's say we could fit the whole OS and programs in about 2GB. A cheap pendrive can give you around 20MB/sec of read speed. That is 100 seconds +/-, and quite a resonable figure to me... From then on, I'say everything would go really really fast wouldn't it?

Quoting Jeremy Clarkson... "How hard can it be!!??"
eurocarpc is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 09-09-2009, 01:02 PM   #2
Newbie
 
Join Date: Jun 2005
Location: Maryland
Posts: 15
afd100 is on a distinguished road
eurocarpc,
My first setup used an initrd to accomplish what you mention. However, I used RH9, and at that time, initrd's were limited to 4 MB. However, this was enough to get the system running, and all variables which needed to be written off of the HD (SQL Database, logs, etc). I then mounted the HD as read-only and used it to start X and such.

I kept corrupting the SQL Database, because originally I had it read/write on the HD (2nd partition). This worked for about 2 years, then I switched to Puppy Linux, and the read/write parts are mounted from /dev/ram devices. This has been working for about 2 years now (maybe longer), and hos not corrupted the HD or SQL databases.

"Speeding things up" was not really my goal, I was more about reliability. However, the unit is a PIII 1 Ghz, and can rip dvds/CDs GPS Nav, and playback mp3s simultaneously without problem.

Just my 2 cents.
afd100 is offline   Reply With Quote
Old 09-10-2009, 12:15 AM   #3
Low Bitrate
 
eurocarpc's Avatar
 
Join Date: Jun 2006
Location: Madrid, Spain
Posts: 68
eurocarpc is on a distinguished road
That sounds very interesting. I see you don't have a worklog in this forum. Do you have a blog, or some thread here or there where you explain how you did that with a high level of detail? Links?

Thanks!
__________________
My project: double indash, Golf IV
http://www.mp3car.com/vbulletin/showthread.php?p=841754
eurocarpc is offline   Reply With Quote
Old 09-10-2009, 12:41 AM   #4
Variable Bitrate
 
Join Date: Jan 2009
Posts: 372
summer69guy is an unknown quantity at this point
i triedthis on a pc last year...the unik thing it gives me ..it instant result when i opened a program...but the pc was old
__________________
Carputer:

Psu: DCX6.360-H
Mobo: Intel D945GCLF2
Ssd: ssd ocz solid state 30gb
ram : 1024 meg kingston 667 mhz
Sound card : asus xonar d2 pci
Fan : one nexus and one noctua
case : i'm building a new one

Last edited by summer69guy; 09-10-2009 at 12:51 AM.
summer69guy is offline   Reply With Quote
Old 09-10-2009, 06:11 PM   #5
Low Bitrate
 
eurocarpc's Avatar
 
Join Date: Jun 2006
Location: Madrid, Spain
Posts: 68
eurocarpc is on a distinguished road
Quote: Originally Posted by summer69guy View Post
i triedthis on a pc last year...the unik thing it gives me ..it instant result when i opened a program...but the pc was old

What did you do exactly?
__________________
My project: double indash, Golf IV
http://www.mp3car.com/vbulletin/showthread.php?p=841754
eurocarpc is offline   Reply With Quote
Old 09-11-2009, 10:32 AM   #6
Newbie
 
Join Date: Jun 2005
Location: Maryland
Posts: 15
afd100 is on a distinguished road
I never kept a work log on this site, because I finished almost everything before joining the forums. As far as a list of things I did, you can start here:

My Website

I didn't talk about the exact details, but what I ended up doing is mounting /dev/ram1 on /mnt/disk and formatting it. Then I placed whatever files I needed there, and unmounted it. Next, I dd it to a file (dd if=/dev/ram1 of=/myfile.img). When I boot, I dd the file back to the ram1 device, then mount it all in the rc.local init script.

Again, the goal was not the same. I wanted reliability, so my databases are copied to ram drives, and all /var/log files. I even put in a menu option to commit the database back to the harddrive, just so I could change settings and still have them on next reboot.
afd100 is offline   Reply With Quote
Old 09-18-2009, 08:45 PM   #7
Newbie
 
Join Date: Sep 2009
Posts: 1
zerobelow is an unknown quantity at this point
I've been looking at using tinycore linux -- www.tinycorelinux.com ... It seems to very cleanly approach the "system in ram" issue...and has a decent repository of packages, and a super easy way to make new ones...

One thing I like about it is also that you can mix "run-from-ram" apps with some apps stored on disk and mounted via loopback from a file.
zerobelow is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A few observations in OS and why I'm now using Windows 2003... Mastiff Software & Software Development 12 01-21-2004 10:11 AM
My hardware/Software computer control system - Wish list/feedback - Easy power off DarkWolf General Hardware Discussion 22 08-13-2001 02:42 PM



All times are GMT -5. The time now is 06:53 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics