• Post Reply Bookmark Topic Watch Topic
  • New Topic

uses for a ram drive?  RSS feed

 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have 1.5 and 2Gb on two machines and Linux is far too efficient to require all of that. I have been considering set aside some to use as a ram drive, but it hasn't been quite what I expected.

Firstly, does anyone use a ram drive and have a generic use for one? Secondly, my understanding was that the tmpfs file system would automatically create a ram drive which would resize up to a maximum percentage of the total memory and then swap when required, but I found mine had a fixed value of around 64M
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've used a ram drive several times on machines without a hard drive (or with a slow "hard drive equivalent" such as flash), but I guess that's not really the situation you are asking about.

Can you tell us a bit more about the applications you are running - maybe some of them would benefit from configuring to use a ram drive for working storage?
 
Guy Allard
Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Generic use. That is tough I think.

A contrived example where I think you would benefit:

You are in the business of running kernel builds (a lot of them).

Place make, gcc, cp, and some other utilities on a RAMDISK.

Make it first in your PATH.

I have never done something like this with Linux - but I have with some DOS systems (and yes, they had slow or no HDs to begin with).

Guy
 
Guy Allard
Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as the size is concerned, take a look at this:

HowTo

I think it answers that question.

Guy
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!