Spazturtle
[H]ard|Gawd
- Joined
- Jan 4, 2013
- Messages
- 1,526
If you use the v6 client then click here for Musky's guide: http://hardforum.com/showthread.php?t=1751872
This guide was made for v7 of the folding@home software running on debian or a debian based distro.
Folding on a ramdisk
ALL AS ROOT
Make the ramdisk
4000m is the size of the ramdisk
Now lets add that to rc.local
Now add those 3 lines to the start of rc.local
The ramdisk will now be created at boot.
Backing up the ramdisk
We are now taken to the cron editor.
Add this line to the bottom
this will copy /mnt/ramdisk/work/ to /var/lib/fahclient/work-backup every 15 minuites.
Making FAH run on the ramdisk
First
Now the work is on the ramdisk
DO NOT REBOOT AT THIS POINT!!!
time to symlink
and bam to test if it works type cd work
time to make the restore script
Add the following 2 lines
you rc.local should now look like this
and you should be done.
Taken from my guide on my teams forum|
This guide was made for v7 of the folding@home software running on debian or a debian based distro.
Folding on a ramdisk
ALL AS ROOT
Make the ramdisk
Code:
mkdir -p /mnt/ramdisk
mount -t ramfs -o size=4000m ramfs /mnt/ramdisk
mkdir /mnt/ramdisk/work
Now lets add that to rc.local
Code:
nano /etc/rc.local
Now add those 3 lines to the start of rc.local
Code:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
mkdir -p /mnt/ramdisk
mount -t ramfs -o size=4000m ramfs /mnt/ramdisk
mkdir /mnt/ramdisk/work
exit 0
The ramdisk will now be created at boot.
Backing up the ramdisk
Code:
cd /var/lib/fahclient
mkdir work-backup
crontab -e
Add this line to the bottom
Code:
0/15 * * * * cp -R /mnt/ramdisk/work/* /var/lib/fahclient/work-backup
Making FAH run on the ramdisk
First
Code:
cd /var/lib/fahclient
service FAHClient stop
mv work/* /mnt/ramdisk/work
rm -rf work
chmod -R 777 /mnt/ramdisk
Now the work is on the ramdisk
DO NOT REBOOT AT THIS POINT!!!
time to symlink
Code:
ln -s /mnt/ramdisk/work work
time to make the restore script
Code:
nano /etc/rc.local
Add the following 2 lines
Code:
cp -R /var/lib/fahclient/work-backup/* /mnt/ramdisk/work
chmod -R 777 /mnt/ramdisk
you rc.local should now look like this
Code:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
mkdir -p /mnt/ramdisk
mount -t ramfs -o size=4000m ramfs /mnt/ramdisk
mkdir /mnt/ramdisk/work
cp -R /var/lib/fahclient/work-backup/* /mnt/ramdisk/work
chmod -R 777 /mnt/ramdisk
exit 0
and you should be done.
Taken from my guide on my teams forum|