shaloc / cluster-computing Goto Github PK
View Code? Open in Web Editor NEWCluster computing on s5pv210
License: GNU General Public License v3.0
Cluster computing on s5pv210
License: GNU General Public License v3.0
/etc/sysconfig/network-scripts/ifcfg-eth0
MACADDR= xx:xx:xx:xx:xx:xx
Since eth0 can't down for we connect it to NFS, this is the only way we setup it while system booting. Besides, it seems that changing /etc/init.d/network
doesn't work.
Beside calc \pi, we may need a new script to test the ability of cluster.
And we shall prove it have a complex of O(n^2)+.
Using shell script can use less resources, but the script is writeen by bash
the sh
can't run this script and it may throw an exception.
bootargs= ... machine=computer1
initrc set hosts according cmdline
# more /etc/init.d/hostname
#!/bin/sh
if [ "$1" = "start" ]
then
machine=`cat /proc/cmdline |sed -e "s:\S.*machine=::g"|sed -e "s: .*$::g"`
mkdir /tmp/$machine
ipv4=`ifconfig eth0|grep "inet addr"|sed -e "s/.*inet addr://g"|sed -e "s: .*$::g"`
cat > /tmp/$machine/hosts << EOF
127.0.0.1 localhost
EOF
echo "$ipv4 $machine" >> /tmp/$machine/hosts
ln -sf /tmp/$machine/hosts /etc/hosts
if [ -x /bin/hostname -o -x /usr/bin/hostname ]
then
echo Setting the hostname to $machine
hostname $machine
fi
fi
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.