标签:服务器 pbs torque ubuntu
apt-get install torque-server torque-client torque-mom torque-pam
/etc/init.d/torque-mom stop /etc/init.d/torque-scheduler stop /etc/init.d/torque-server stop pbs_server -t create
killall pbs_server
执行以下命令:
echo $HOSTNAME > /etc/torque/server_name
echo $HOSTNAME > /var/spool/torque/server_priv/acl_svr/acl_hosts
echo root@$HOSTNAME > /var/spool/torque/server_priv/acl_svr/operators
echo root@$HOSTNAME > /var/spool/torque/server_priv/acl_svr/managers
echo "$HOSTNAME np=8" > /var/spool/torque/server_priv/nodes(np代表计算节点的处理器个数)
echo $HOSTNAME > /var/spool/torque/mom_priv/config
/etc/init.d/torque-server start /etc/init.d/torque-scheduler start /etc/init.d/torque-mom start
qmgr -c ‘set server scheduling = true‘ qmgr -c ‘set server keep_completed = 300‘ qmgr -c ‘set server mom_job_sync = true‘
qmgr -c ‘create queue batch‘ 创建名为batch的处理队列,可修改 qmgr -c ‘set queue batch queue_type = execution‘ qmgr -c ‘set queue batch started = true‘ qmgr -c ‘set queue batch enabled = true‘ qmgr -c ‘set queue batch resources_default.walltime = 2:00:00‘ 应该是作业的默认运行时间 qmgr -c ‘set queue batch resources_default.nodes = 1‘ 计算节点只有一个 qmgr -c ‘set server default_queue = batch
qmgr -c ‘set server submit_hosts = $HOSTNAME‘ qmgr -c ‘set server allow_node_submit = true‘
提交任务
qsub -I
标签:服务器 pbs torque ubuntu
原文地址:http://blog.csdn.net/jideljd_2010/article/details/46575137