LinuxQuestions.org
Visit Jeremy's Blog.
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 05-08-2007, 08:49 AM   #1
arsham
Member
 
Registered: Mar 2004
Location: London
Distribution: Arch Linux, Debian
Posts: 184

Rep: Reputation: 30
Lightbulb Loading into RAM , making a mirror!


I was surfing a lot and reading articles in this forum , and I've seen lots of question/advises about booting into RAM and ram disks , anyways...

Maybe this will help improving the system read/writes :
How about having a mirror in RAM ?
I mean : after bootup , make a ram disk and copy entire /usr directory in there , then with each read , just look into memory , and in each write , write into RAM and hard disk together

At least reading will be faster than before , and we will not have any data lost

Is it possible?
 
Old 05-08-2007, 11:18 AM   #2
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 4.0 Etch
Posts: 1,349

Rep: Reputation: 49
The operating system's disk cache will automatically do that with any spare RAM. The only thing is that it needs an excuse to read the entire /usr directory first. You could insert a command which cat's the entire /usr directory to /dev/null.
 
Old 05-09-2007, 04:10 AM   #3
arsham
Member
 
Registered: Mar 2004
Location: London
Distribution: Arch Linux, Debian
Posts: 184

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by IsaacKuo
The operating system's disk cache will automatically do that with any spare RAM. The only thing is that it needs an excuse to read the entire /usr directory first. You could insert a command which cat's the entire /usr directory to /dev/null.
Hi
Thats right , but after that caching , for example if you load couple big (x) files into memory , kernel will slightly push oldest cache away , instead of our expecting pushing old (x) cached file and keep /usr cache in memory

Anyways you are right , cat the whole /usr section in a way

Any other ideas ?

Regards
Arsham
 
  


Reply

Tags
cache, idea


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
LXer: How To Create A Local Debian/Ubuntu Mirror With apt-mirror LXer Syndicated Linux News 0 01-04-2007 06:33 PM
Making mirror copy of a partition with CP command? brgr88 Linux - Software 3 05-15-2006 01:09 AM
Loading object code into RAM and running it sto237 Linux - Software 1 01-27-2006 07:46 PM
ram disk problem with loading Mandrake (stage 2) OrganicOrange84 Linux - Newbie 1 08-11-2004 08:00 PM
W2k Server, making a mirror!!! shakespy Slackware 4 08-05-2004 10:38 PM


All times are GMT -5. The time now is 01:45 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration