VIPBG LINUX CLUSTER By Helen Wang Sept. 10, 2014.

Slides:



Advertisements
Similar presentations
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Advertisements

Chapter One The Essence of UNIX.
Network for Computational Nanotechnology (NCN) Purdue, Norfolk State, Northwestern, UC Berkeley, Univ. of Illinois, UTEP Basic Portable Batch System (PBS)
CCPR Workshop Lexis Cluster Introduction October 19, 2007 David Ash.
Southgreen HPC system Concepts Cluster : compute farm i.e. a collection of compute servers that can be shared and accessed through a single “portal”
Introduction to HPC Workshop October Introduction Rob Lane HPC Support Research Computing Services CUIT.
Job Submission on WestGrid Feb on Access Grid.
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
Sun Grid Engine Grid Computing Assignment – Fall 2005 James Ruff Senior Department of Mathematics and Computer Science Western Carolina University.
Quick Tutorial on MPICH for NIC-Cluster CS 387 Class Notes.
Guide To UNIX Using Linux Third Edition
Understanding the Basics of Computational Informatics Summer School, Hungary, Szeged Methos L. Müller.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
A crash course in njit’s Afs
ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011.
Introduction to UNIX/Linux Exercises Dan Stanzione.
BIOSTAT LINUX CLUSTER By Helen Wang October 10, 2013.
ITCS 4/5145 Parallel Programming, UNC-Charlotte, B. Wilkinson, 2012, Jan 18, 2012assignprelim.1 Assignment Preliminaries ITCS 4145/5145 Spring 2012.
Welcome to Linux & Shell Scripting Small Group How to learn how to Code Workshop small-group/
 Accessing the NCCS Systems  Setting your Initial System Environment  Moving Data onto the NCCS Systems  Storing Data on the NCCS Systems  Running.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Introduction to Unix/Linux Chapter One The Essence of UNIX.
ISG We build general capability Introduction to Olympus Shawn T. Brown, PhD ISG MISSION 2.0 Lead Director of Public Health Applications Pittsburgh Supercomputing.
MSc. Miriel Martín Mesa, DIC, UCLV. The idea Installing a High Performance Cluster in the UCLV, using professional servers with open source operating.
BIOSTAT LINUX CLUSTER By Helen Wang October 11, 2012.
VIPBG LINUX CLUSTER By Helen Wang March 29th, 2013.
HPC at HCC Jun Wang Outline of Workshop1 Overview of HPC Computing Resources at HCC How to obtain an account at HCC How to login a Linux cluster at HCC.
Bigben Pittsburgh Supercomputing Center J. Ray Scott
CCPR Workshop Introduction to the Cluster July 13, 2006.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
HPC for Statistics Grad Students. A Cluster Not just a bunch of computers Linked CPUs managed by queuing software – Cluster – Node – CPU.
Running Parallel Jobs Cray XE6 Workshop February 7, 2011 David Turner NERSC User Services Group.
ISG We build general capability Introduction to Olympus Shawn T. Brown, PhD ISG MISSION 2.0 Lead Director of Public Health Applications Pittsburgh Supercomputing.
Introduction to HPC Workshop October Introduction Rob Lane & The HPC Support Team Research Computing Services CUIT.
Portable Batch System – Definition and 3 Primary Roles Definition: PBS is a distributed workload management system. It handles the management and monitoring.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Advanced topics Cluster Training Center for Simulation and Modeling September 4, 2015.
Introduction to Parallel Computing Presented by The Division of Information Technology Computer Support Services Department Research Support Group.
+ Introduction to Unix Joey Azofeifa Dowell Lab Short Read Class Day 2 (Slides inspired by David Knox)
NREL is a national laboratory of the U.S. Department of Energy, Office of Energy Efficiency and Renewable Energy, operated by the Alliance for Sustainable.
Assignprelim.1 Assignment Preliminaries © 2012 B. Wilkinson/Clayton Ferner. Modification date: Jan 16a, 2014.
Using ROSSMANN to Run GOSET Studies Omar Laldin ( using materials from Jonathan Crider, Harish Suryanarayana ) Feb. 3, 2014.
An Brief Introduction Charlie Taylor Associate Director, Research Computing UF Research Computing.
BIOSTAT LINUX CLUSTER By Helen Wang October 6, 2016.
Advanced Computing Facility Introduction
Hackinars in Bioinformatics
GRID COMPUTING.
ENEE150 Discussion 01 Section 0101 Adam Wang.
Specialized Computing Cluster An Introduction
Welcome to Indiana University Clusters
PARADOX Cluster job management
INTRODUCTION TO VIPBG LINUX CLUSTER
HPC usage and software packages
INTRODUCTION TO VIPBG LINUX CLUSTER
How to use the HPCC to do stuff
Andy Wang Object Oriented Programming in C++ COP 3330
BIOSTAT LINUX CLUSTER By Helen Wang October 29, 2015.
CommLab PC Cluster (Ubuntu OS version)
The Linux Operating System
Assignment Preliminaries
Postdoctoral researcher Department of Environmental Sciences, LSU
Introduction to HPC Workshop
Introduction to TAMNUN server and basics of PBS usage
Compiling and Job Submission
CCR Advanced Seminar: Running CPLEX Computations on the ISE Cluster
High Performance Computing in Bioinformatics
Introduction to High Performance Computing Using Sapelo2 at GACRC
Quick Tutorial on MPICH for NIC-Cluster
Working in The IITJ HPC System
Presentation transcript:

VIPBG LINUX CLUSTER By Helen Wang Sept. 10, 2014

What is a Beowulf cluster? In Short A Beowulf clusters is a group of commodity computers - connected together through a local area network.  Each computer or node, which can have  a single or multiple processors, runs its own copy of an Open Source Unix-like operating system such as Linux,BSD, or Solaris.

Basic Beowulf Cluster Structure

What is our cluster configuration VIPBG hosts a Linux Beowulf cluster, installed with applications supporting computationally intensive processing. The following description can be used for the "Computing Resources" section of grant applications. - 21  Dell PE R610/R620 servers with CentOS6 64 bits Linux OS - 200 cores using Intel Xeon 56XX processors (2.67GHz to 3.4GHz) - Total 1.072TB RAM ( 24GB-64GB per node) - 100TB network attached storage with 50TB backup storage - 2.28TB internal disk storage  ( 120GB per node) - GBE /10GBE network connections to all nodes and storage. - Fail-over redundant master servers

Software available on cluster R 3.1.1 with CRAN packages and BIOCONDUCTOR packages C++/G++ and Fortran compilers JAVA compiler Perl compiler Python 2.7 and 3.4 and Biopython compiler SAS-9.3 for Linux 64bit PLINK HAPLO MPI and OpenMPI PBS Pro 11.0.2 (a portable batch system for cluster) Additional open source software upon user request

Biostat Beowulf Cluster Login Info Server Name: group.vipbg.vcu.edu IP: 128.172.85.5 2nd server as failover: light.vipbg.vcu.edu IP: 128.172.85.6 (invisible on mission) Software recommended to access servers: PC USERS: 1. MobaXterm http://mobaxterm.mobatek.net/ 2. ssh /open ssh / putty / winscp MAC USERS: Mac Terminal, Fetch samba connections on window

Access Cluster Server and nodes Master node (master1 / master2): group.vipbg.vcu.edu Running CentOS ( redhat kenrnel)Version 6.4, x86-64 Open source or Software download – choose 64 bits CentOS or RHEL 6 if possible Purposes: front-end user interface; slow; - not for running any jobs. Jobs running on master will be terminated without notice accessible from outside through VPN; Slave nodes (nodes): node2–node19: dual quart core or 6 core Intel Xeon processors with 64GB GB RAM computation; not prefer to access user interface, accessible via master and managed by portable batch management ( PBS ); fast; internal network; -10.0.0.X, not accessible directly from outside

Access Group from your computer How to use MobaXterm or ssh to access server Outside of VCU please use VCU VPN Client http://www.ts.vcu.edu/software-center/general-purpose/juniper-vpn/ Open new session then SSH to add the server name Open “SSH settings” to fill the information remote hostname: 128.172.85.5 username: YOUR_ACCOUNT_NAME port number: 22 Open session settings to put merlot in Session Name ssh –X USERACCT@SERVER_IP for graphical access Select the server to test the connection and exchange keys by giving password Create profile or bookmark for the easy access every time

UNIX Commands You Need to Know pwd clear mkdir cp cd mv ls head more less wc man rm chmod grep with head and tail nano sed cut top scp acct1@server1:/yourpath/yourfiles acct2@server2:/yourpath/

How to use cluster to submit jobs IMPORTANT The logon machine (GROUP.VIPBG.VCU.EDU) is only used for login. Jobs running on merlot will be terminated without notice. What do you need to submit a job via PBS an executable script, the script can be a program code ( R, SAS or other language) , shell script or a collection of command lines. test how much resources and time you may need before you submit multiple jobs. which queue to use to submit a job Node and queue configuration Nodes: Nodes are the physical computer servers incorporated together to make the cluster. Queues: Queues are being used by pbs scheduler to send jobs to different nodes, each node is assigned to a queue to handle different type of jobs. Most queue limits can be checked by running the command qstat -q. Note that if you need more job permissions, please send request to system admin and your supervisor to get a temporary expansion on job submissions

Nodes and queues configuration Queue Name Node assigned Job Limit (proc/user) Total Cores /Ram Size Comments express 2 4 cores / 24GB run small urgent jobs serial 4-7, 11-16 20 120 cores / 600GB Run R and generic jobs RAM<5GB openmx 8-10 10 69 cores / 192GB Openmx and parallel jobs workq 17-19 24 cores / 128GB Run large memory jobs RAM >5GB mxq 3 Run traditional mx jobs

Submitting a Job Jobs are submitted to a PBS queue so that PBS can dispatch them to be run on one or more of a cluster's compute nodes. There are two main types of PBS jobs: Non-interactive Batch Jobs: This is the most common PBS job. A job script is created that contains PBS resource requests and the commands necessary to execute the job. The job script is then submitted to PBS to be run non-interactively. Interactive Batch Jobs: This is a way to get an interactive terminal on one or more of the compute nodes of a cluster. Commands can then be run interactively through that terminal directly on the compute nodes for the duration of the job. Interactive jobs are helpful for such things as program debugging and running many short jobs.

#PBS –I walltime=HH:MM:SS A PBS script is a standard Unix/Linux shell script that contains a few extra comments at the beginning that specify directives to PBS. These comments all begin with #PBS. The most important PBS directives are: PBS Directives Description #PBS –I walltime=HH:MM:SS This directive specifies the maximum walltime (real time, not CPU time) that a job should take. If this limit is exceeded, PBS will stop the job. Keeping this limit close to the actual expected time of a job can allow a job to start more quickly than if the maximum walltime is always requested. #PBS -l pmem=SIZEgb This directive specifies the maximum amount of physical memory used by any process in the job. For example, if the job would run four processes and each would use up to 2 GB (gigabytes) of memory,  then the directive would read #PBS -l pmem=2gb #PBS -l nodes=N:ppn=M This specifies the number of nodes (nodes=N) and the number of processors per node (ppn=M) that the job should use. PBS treats a processor core as a processor, so a system with eight cores per compute node can have ppn=8 as its maximum ppn request. Note that unless a job has some inherent parallelism of its own through something like MPI or OpenMPI, requesting more than a single processor on a single node is usually wasteful and can impact the job start time. #PBS -q queuename This specifies what PBS queue a job should be submitted to. This is only necessary if a user has access to a special queue. This option can and should be omitted for jobs being submitted to a system's default queue. #PBS -j oe Normally when a command runs it prints its output to the screen. This output is often normal output and error output. This directive tells PBS to put both normal output and error output into the same output file.

An example of PBS script #This is a sample PBS script. It will request 1 processor on 1 node for 10 hours. # #Request 1 processors on 1 node # #PBS -l nodes=1:ppn=1 # #Request 10 hours of walltime # #PBS -l walltime=10:00:00 # #Request 1 gigabyte of memory per process # #PBS -l mem=1gb # #Request that regular output and terminal output go to the same file # #PBS -j oe # #The following is the body of the script. By default, PBS scripts execute in your home directory, not the #directory from which they were submitted. The following line places you in the directory from which the job #was submitted. # cd $PBS_O_WORKDIR # #Now we want to run the program "hello". "hello" is in the directory that this script is being submitted from, #$PBS_O_WORKDIR. # echo " " echo " " echo "Job started on `hostname` at `date`" ./hello echo " " echo "Job Ended at `date`" echo " "

Template used on cluster Modify template to create your own pbs script for running programs #!/bin/bash #PBS -q serial #PBS -N MYSCRIPT # # cd to the directory from which I submitted the job. # Otherwise it will execute in my home directory. set WORKDIR = ~/YOURWORDIR #PBS -V #echo “PBS batch job id is $PBS_JOBID“ echo "Working directory of this job is: " $WORKDIR echo "Beginning to run job“ Command line you need to execute the job ( /home/huan/bin/calculate - PARAMETEERS)

Job Submission Syntax qsub SCRIPTFILE Existing job submission scripts /usr/local/bin/q* R USERS qR YOUR_R_SCRIPT Large memory R jobs qRL YOUR_R_SCRIPT SAS USERS qsas YOUR_SAS_CODE Generic or other resources qsub YOUR_OWN_SCRIPT Interactive Batch Jobs Interactive PBS jobs are similar to non-interactive PBS jobs in that they are submitted to PBS via the command qsub. When submitting an interactive PBS job, PBS script is not necessary. All PBS directives can be specified on the command line. The syntax for qsub for submitting an interactive PBS job is: qsub -I ... pbs directives.. The -I flag above tells qsub that this is an interactive job. The following example shows using qsub to submit an interactive job using one processor on one node for four hours merlot:~$ qsub -I -l nodes=1:ppn=1 -l walltime=4:00:00 qsub: waiting for job 1064159.merlot.bis.vcu.edu start qsub: job 1064159.merlot.bis.vcu.edu ready node12:~$ There are two things of note here. The first is that the qsub command doesn't exit when run with the interactive -I flag. Instead, it waits until the job is started and gives a prompt on the first compute node assigned to a job. The second thing of note is the prompt node12:~$ - this shows that commands are now being executed on the compute node node12.

Monitoring and Managing Jobs Check Job Status using qstat Command Description qstat Shows the status of all PBS jobs. The time displayed is the CPU time used by the job. qstat –s qstat -a Shows the status of all PBS jobs. The time displayed is the walltime used by the job. qstat –u USERID Shows the status all PBS jobs submitted by the user userid. The time displayed is the walltime used by the job. qstat -n Shows the status all PBS jobs along with a list of compute nodes that the job is running on. qstat –f JOBID Shows detailed information about the job jobid.

Job Running Status State meaning Q The job is queued and is waiting to start. R The job is currently running E The job is currently ending. H The job has a user or system hold on it and will not be eligible to run until the hold is removed.

- qdel JOBID delete a job by Job_ID Managing jobs Deleting jobs - qdel JOBID delete a job by Job_ID - qdel $(qselect –u USERNAME) delete all jobs owned by USERNAME View job output If the PBS directive #PBS -j oe is used in a PBS script, the non-error and the error output are both written to the Jobname.oJob_ID file. JobName.oJobID : This file would contain the non-error output that would normally be written to the screen. JobName.eJobID: This file would contain the error output that would normally be written to the screen.

More to monitor a node To check a node configuration $pbsnodes NODE# To check a node status nodestatus NODE# Limitation for the name of the SCRIPT No more than 10 characters no space in between no special characters. use a temporary name if necessary and change it back when the job is done.

At Last Edit file using nano or vi http://www.ts.vcu.edu/faq/unix/picoeditor.html http://www.ts.vcu.edu/faq/unix/vieditor.html use samba connection to map a network drive on PC, recommending to use “EditPad Lite” Some one uses Rmate for macbook Useful links http://www.ts.vcu.edu/faq/unix/docs.html Wiki page for vipbg cluster – need vcu eID to login https://wiki.vcu.edu/display/vipbgit/VIPBG+Cluster+System