LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-12-2005, 05:19 PM   #1
mabrodis
LQ Newbie
 
Registered: Jan 2005
Posts: 6

Rep: Reputation: 0
Put /proc and /var into a ramdisk, but other stuff on drive?


Is it possible to have a system which has /proc and /var (directories which get the most writes...hmm, although not sure what that means for /proc) onto a ramdisk but have the rest of the stuff on a normal disk?

This would be booting of a CF card, I don't mind having it execute off the CF card, but I'd like to keep writing to a min, but I don't have enough memory (nor do I think I'd need to) put everything in a ramdisk and run out of there. But things like /var (and maybe others) that get alot of 'traffic' would be great in a ramdisk.

Any help would be greatly appreciated?

I am running Gentoo with a 2.6.9 kernel, I figure making a kernel with initrd in it, then would I just set that up in grub.conf? (I'm using grub) What would go into /etc/fstab?

Thanks in advance!
Mark Brodis
 
Old 01-12-2005, 07:31 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Well, the /proc filesystem is a virtual filesystem. It's a means of communicating with the kernel itself. It exists in pure RAM - no disk storage required (other than the /proc stub to mount to).

As for moving the /var partition to RAM, I would advise against it. Logs are stored under the /var tree, and other applications store databases and run-time information there (the locate database comes to mind). Depending on the activity of the machine, the logs and databases could chew through the available ramdisk space in a hurry. Not to mention if something goes wrong, requiring a reboot, you can't look at your log files to find out what happened; they're toast since they were in RAM.

I know that's not the answer you were hoping for. I just don't think it's worth the effort. You'll probably run into a number of problems without seeing any substantial benefit.
 
Old 01-12-2005, 08:24 PM   #3
mabrodis
LQ Newbie
 
Registered: Jan 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Hmm, thanks for the reply.

I have seen several ways to make a Linux system boot off a CF card in read-only mode, so nothing is written to the CF card ever, it just creates a ramdisk and does everything in there (apparently any logging too, although in a setup like that probably no logging would be better, since even if you have a logfile, what good does it do you...). I am planning on doing something along that line, but didn't see the need to have *everything* in memory, since you can read off the CF card just fine, it's just the writing to it that you'd want to limit, so I figured if I just put the write-intensive directories into the ramdisk.

A friend just told me there is a flash-linux version which uses some different file system and takes care of all of this, so it doesn't do the intensive writing to the CF card, so I guess I'll look into that.

Thanks!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting /var into a ramdisk Myrdos Debian 5 03-22-2005 01:49 PM
Where do I put stuff? ShakyJake Linux - Newbie 3 06-22-2004 07:23 PM
How much stuff have I put into burn:/// ??? Jim Miller Linux - Distributions 3 08-15-2003 09:59 AM
Mounting /var on a RAMdisk gamu829 Linux - General 2 09-04-2002 07:54 AM
put stuff lacrimae Linux - Software 1 03-04-2002 05:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:02 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
Open Source Consulting | Domain Registration