NOTES - very much not working yet!
Attempt to port SGE to iphone...
"Imagine a BEOWULF of those!!" - well very soon we hope you will :)
Update 30th Sept 2007
Needed to add this to /opt/iphone/sge/util/arch:
Darwin)
case $osmachine in
i386)
ARCH=darwin-x86
;;
Power*)
ARCH=darwin
;;
iPhone*)
ARCH=darwin
;;
*)
darwin_machine=unsupported
;;
esac
;;
We have some viable binaries:
# uname -a
Darwin iPhone 9.0.0d1 Darwin Kernel Version 9.0.0d1: Fri Jun 22 00:38:56
PDT 2007; root:xnu-933.0.1.178.obj~1/RELEASE_ARM_S5L8900XRB iPhone1,1 Darwin
# pwd
/opt/iphone/sge/utilbin/darwin
# ../../bin/darwin/qping |& head -8
GE 6.0u11
usage: qping [-help] [-noalias] [-ssl|-tcp] [ [ [-i ] [-info] [-f] ] | [ [-dump_tag tag [param] ] [-dump] [-nonewline] ] ]
-i : set ping interval time
-info : show full status information and exit
-f : show full status information on each ping interval
-noalias : ignore $SGE_ROOT/SGE_CELL/common/host_aliases file
-ssl : use SSL framework
-tcp : use TCP framework
And we can get loads from the device - this is a huge step in the right direction!
# /opt/iphone/sge/utilbin/darwin/loadcheck
arch darwin-x86
num_proc 1
load_short 0.00
load_medium 0.01
load_long 0.04
mem_free 1.859375M
swap_free 0.000000M
virtual_free 1.859375M
mem_total 116.000000M
swap_total 0.000000M
virtual_total 116.000000M
mem_used 114.140625M
swap_used 0.000000M
virtual_used 114.140625M
cpu 2.0%
And DNS bites us again, this will need some work:
# /opt/iphone/sge/utilbin/darwin/gethostbyname -all imac
Hostname: imac.wickedpsyched.net
SGE name: imac.wickedpsyched.net
Aliases:
Host Address(es): 192.168.1.127
# /opt/iphone/sge/utilbin/darwin/gethostbyaddr 192.168.1.127
error resolving ip "192.168.1.127": can't resolve ip address (Unknown error: 0)