zoukankan      html  css  js  c++  java
  • Torque Installation on Redhat Linux EL 5.4

    Versions
    • Linux: RHEL 5.4
    • Torque: 2.5.5 
    Install TORQUE on the server node
    • decompress

    [root@server ~]tar -xzvf torque-2.5.5.tar.gz
    [root@server ~]cd torque-2.5.5 

    • configure

    [root@server torque-2.5.5]./configure --prefix=/opt/torque-2.5.5

    • install

    [root@server torque-2.5.5]make
    [root@server torque-2.5.5]make install

    Install TORQUE on compute nodes

    • make packages on server

    [root@server torque-2.5.5]make packages

    • scp *clients*.sh and *mom*.sh to compute nodes

    [root@server torque-2.5.5]scp *clients*.sh *mom*.sh root@node:~/

    • install on compute nodes

    [root@node ~]./torque-package-clients-linux-x86_64.sh --install
    [root@node ~]./torque-package-mom-linux-x86_64.sh --install

    Configure Torque on the server node

    TORQUE=/opt/torque2.2.5
    if [ ”`id u`” -eq 0 ]; then
    PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:”
    PATH=$PATH:$TORQUE/bin:$TORQUE/sbin:$MAUI/bin:
    else
    PATH=”/usr/local/bin:/usr/bin:/bin:/usr/games:$TORQUE/bin”
    PATH=$PATH:$TORQUE/bin
    fi

    • take effect

    [root@server torque-2.5.5]source /etc/profile

    • set a user as a administrator, here set [root] as the administrator

    [root@server torque-2.5.5]./torque.setup root

    • specify compute nodes, add copute nodes compute ability to /var/spool/torque/server_priv/nodes

    node1 np=12
    node2 np=12 

    • create torque server

    [root@server torque-2.5.5]pbs_server -t create

    • configure torque server
    • ref: http://wenku.baidu.com/view/06d7cbce0508763231121265.html
    • submit_host: a node or nodes which can be able to submit jobs
    • resources_default.walltime: the max time a job can running at mmost
    • query_other_jobs: whether a user can query other users' jobs  

    [root@server torque-2.5.5]qmgr -c 'set server submit_hosts=server'
    [root@server torque-2.5.5]qmgr -c 'set queue batch resources_default.walltime=604800'
    [root@server torque-2.5.5]qmgr -c ' set server query_other_jobs=TRUE'

    Configure Torque on a compute node

    Launch TORQUE

    • on compute nodes

    [root@node ~]/opt/torque-2.5.5/sbin/pbs_mom

    • on the server, launch torque server and scheduler

    [root@server ~]qterm
    [root@server ~]pbs_server 
    [root@server ~]pbs_sched 

    Check TORQUE

    • check compute nodes state

    [root@server ~]qnodes

    • check queue state

    [root@server ~]qstat -q

    • check job state in a queue or queues

    [root@server ~]qstat

    • check recent job specific

    [root@server ~]qstat -f

    Submit a job

    • when submint a job, must su to a non-root user.
    • submit a simple job 

    [user@server ~]echo "sleep 30; hostname" | qsub

    • submit a MPI job, take the default example - cpi

    [user@server ~]vi test.pbs

    • the  content of test.pbs is:
    • use the complete path of mpiexec and cpi

    #PBS -N [job name]
    #PBS -l nodes=[nodes count to be needed]
    cd $PBS_O_WORKDIR
    /home/mpich2-1.4.1p1/bin/mpiexec -np 6 /home/user/cpi

    • submit a MPI job

    [user@server ~]qsub test.pbs

  • 相关阅读:
    concrete maths ch4 number theory
    Aho-Corasick algorithm
    Finding repetitions
    Suffix Automaton
    Z-function and its calculation
    mongodb安装与启动
    centos redis 集群搭建
    nginx实现热部署(平滑升级)
    nacos集群部署安装
    springboot+zookeeper+dubbo整合
  • 原文地址:https://www.cnblogs.com/snigoal/p/2240897.html
Copyright © 2011-2022 走看看