Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
What, like denim overalls or something?rodsfree said:the hardwear looks exactly the same as a farm.
fs2k155 said:The main workhorse of my points is a 16 processor cluster of 3.06GHz Xeons.
slowbiznatch said:I wouldn't mind taking a look at your scripts (if you don't mind). I'm seriously considering loading something up on the clusters we have here before we ship them out to the customers. Of course, we would only use this for testing purposes here and always remember to delete it before shipping the final product out...
Here's what we could work with right now:
http://www.hardforum.com/showthread.php?t=880078
#! /bin/sh
# fahlw - folding at home load watcher version 1.0
#
# Usage: fahlw
#
# If there is any signifigant machine usage, FaH is stopped with
# the folding script. This is dependant upon the finstall package.
#
# When the machine has no significant usage, the batch process is
# restarted.
#
# The 1, 5 and 15 minute average machine loads are found using
# uptime(1) and a long sed command. The load is converted from a
# decimal to an integer by removing the decimal point. This is done
# because test(1) ([] in sh if statements) can only compare integers.
# A load average of 1.23 is represented as 123.
#
# The machine load is checked by lw every minute.
#
# Based on code by:
# Fred Wheeler (wheeler at ipl.rpi.edu)
# Oct 6, 1997
#
# Modified for FaH by Paul Comfort (pc at null dot net)
# Feb 2005
# Modify these values to fit your environment:
# start if all load averages are below these values, in hundredths
ld_run1=150
ld_run5=170
ld_run15=170
# stop if any load average is above these values, in hundredths
ld_stop1=350
ld_stop5=300
ld_stop15=290
# how much output to print, 0: none, 1: starts/stops, 2: each check
verbose=1
# exit with error status if signaled
trap "exit 1" 1 2 15
# print a message on exit
trap 'echo lw: killed `date`' 0
# initial state of the batch process is assumed to be stopped
batch_state=s
# infinite loop
while true
do
# extract three 3 digit integers representing the load
cmd=`uptime | sed \
-e 's/.*load average:\(.*\)/\1/' \
-e 's/\.//g' \
-e 's/,//g' \
-e 's/ *\([0-9]*\) *\([0-9]*\) *\([0-9]*\)/ld1=\1;ld5=\2;ld15=\3;/'`
eval $cmd
# get the hour of the day and the day of the week
hour=`date +%H`
day=`date +%w`
# default new batch process state is the old batch process state
new_batch_state=$batch_state
# decide if batch process state should be changed
if [ $batch_state = r ]; then
if [ $ld1 -ge $ld_stop1 -o $ld5 -ge $ld_stop5 -o $ld15 -ge $ld_stop15 ] ; then
new_batch_state=s
fi
elif [ $batch_state = s ]; then
if [ $ld1 -le $ld_run1 -a $ld5 -le $ld_run5 -a $ld15 -le $ld_run15 ] ; then
new_batch_state=r
fi
else
echo lw: error, unknown batch process state name
exit 1
fi
# find signal name
if [ $new_batch_state = r ]; then
signal=start
elif [ $new_batch_state = s ]; then
signal=stop
else
echo lw: error, unknown batch process new state name
exit 1
fi
# determine if state has changed
if [ $batch_state != $new_batch_state ]; then
state_change=1
else
state_change=0
fi
if [ $state_change = 1 ]; then
# control the folding process(es)
# Modify this location to fit your environment
/usr/local/idle/foldingathome/folding $signal
kill_status=$?
fi
# display state transition, load and time is verbose set high enough
if [ \( $state_change = 1 -a $verbose -ge 1 \) -o $verbose -ge 2 ]; then
sc=${batch_state}-${new_batch_state}
echo lw: sc:$sc ld:$ld1 $ld5 $ld15 hr:$hour dy:$day `date`
fi
# update batch process state
batch_state=$new_batch_state
# sleep for one minute
sleep 60
done