1

GNU parallel load balancing

view story
linux-howto

http://stackoverflow.com – I am trying to find a way to execute CPU intensive parallel jobs over a cluster. My objective is to schedule one job per core, so that every job hopefully gets 100% CPU utilization once scheduled. This is what a have come up with so far: FILE build_sshlogin.sh #!/bin/bash serverprefix="compute-0-" lastserver=15 function worker { server="$serverprefix$1"; free=$(ssh $server /bin/bash << 'EOF' cores=$(grep "cpu MHz" /proc/cpuinfo | wc -l) stat=$(head -n 1 /proc/stat) work1=$(echo $stat | awk '{print $2+$3+$4;}') total1=$(echo $stat | awk '{print (HowTos)