View Single Post
Old 09-16-2003, 11:51 AM   #8 (permalink)
nukes
Registered User
 
nukes's Avatar
 
Join Date: Oct 2002
Location: Scotland, UK
Posts: 2,946
nukes is on a distinguished road
Send a message via AIM to nukes Send a message via Yahoo to nukes
I'll just leave it I think. I've been messing around with RAM disks and they weren't that much better.
They got the load time down to about 1.5 seconds, but take more time to initialise. Plus you need 75mb free ram.
Here's the script I wrote for it if anyones interested. Maybe tune2fs will help things in terms of speed. I'm looking for near-instant load times, but doubt I'll get it.
Code:
#!/bin/bash
echo An attempt at using a RAMDISK to improve system performance
modprobe rd rd_size=75000
echo Module: rd loaded
mke2fs /dev/ram0 > /dev/null
echo Filesystem created
mkdir /tmp/mozrd
cp -rp /usr/lib/mozilla/* /tmp/mozrd/
echo backup made.
echo Initiating library ramdisk
mount /dev/ram0 /usr/lib/mozilla
cp -rp /tmp/mozrd/* /usr/lib/mozilla
echo Unless you saw any errors, it should be working now.
Maybe keep the backup somewhere so it doesn't have to be done each time?

__________________
_____
NuKeS
nukes is offline   Reply With Quote