320 likes | 467 Views
Outline. Subversion server What is it? Why is it useful? How to use Sandpit cluster What is it? Why is it useful? How to use. Subversion: What is it?. Version control system Successor to CVS. Subversion client 1 C:My Documents. Subversion client 2 D:My Documents.
E N D
Outline • Subversion server • What is it? • Why is it useful? • How to use • Sandpit cluster • What is it? • Why is it useful? • How to use Johan Muskens TU/e Computer Science, System Architecture and Networking
Subversion: What is it? • Version control system • Successor to CVS Subversion client 1 C:\My Documents\ Subversion client 2 D:\My Documents\ Subversion server https://svn.win.tue.nl/repos/san • education • courses • 2IC10 • 2IF20 • … • student_projects • research • personal • jmuskens • mchaudron • … • projects • robocop • space4u • … • www • courses • 2IC10 • 2IF20 • … • education • courses • 2IC10 • 2IF20 • … • student_projects • research • personal • jmuskens • mchaudron • … • projects • robocop • space4u • … • www Johan Muskens TU/e Computer Science, System Architecture and Networking
Subversion: Why is it useful? • Sharing knowledge • Now documents, code, etc. are only available on pc of individual group members • These artifacts should be access-able for all • Collaboration • Writing documents together • No need for mailing documents to each other over and over again • Backup Johan Muskens TU/e Computer Science, System Architecture and Networking
Subversion: How to use? Important actions: • Check-out • Update • Add • Remove • Move • Commit Johan Muskens TU/e Computer Science, System Architecture and Networking
Check-out • Create a local working copy of a sub-tree of the repository Subversion client C:\My Documents\ Subversion server https://svn.win.tue.nl/repos/san • education • courses • 2IC10 • 2IF20 • … • student_projects • research • personal • jmuskens • mchaudron • … • projects • robocop • space4u • … • www • courses • 2IC10 • 2IF20 • … Johan Muskens TU/e Computer Science, System Architecture and Networking
Update • Synchronize updates on the repository with your local copy. Subversion client C:\My Documents\ Subversion server https://svn.win.tue.nl/repos/san • education • courses • 2IC10’ • 2IF20 • … • student_projects • research • personal • jmuskens • mchaudron • … • projects • robocop • space4u • … • www • courses • 2IC10 ‘ • 2IF20 • … Johan Muskens TU/e Computer Science, System Architecture and Networking
Add • Put a (new) file under version control Subversion client C:\My Documents\ Subversion server https://svn.win.tue.nl/repos/san • education • courses • 2IC10 • 2IF20 • … • student_projects • research • personal • jmuskens • mchaudron • … • projects • robocop • space4u • … • www • courses • 2IC10 • New file • 2IF20 • … !! File will be added to repository during next commit. Johan Muskens TU/e Computer Science, System Architecture and Networking
Remove • Remove a file from version control (The history will remain !!). Subversion client C:\My Documents\ Subversion server https://svn.win.tue.nl/repos/san • education • courses • 2IC10 • file • 2IF20 • … • student_projects • research • personal • jmuskens • mchaudron • … • projects • robocop • space4u • … • www • courses • 2IC10 • file • 2IF20 • … !! File will be removed to repository during next commit. Johan Muskens TU/e Computer Science, System Architecture and Networking
Move • Move a file from one location in the repository to a different one. Subversion client C:\My Documents\ Subversion server https://svn.win.tue.nl/repos/san • education • courses • 2IC10 • file • 2IF20 • … • student_projects • research • personal • jmuskens • mchaudron • … • projects • robocop • space4u • … • www • courses • 2IC10 • file • 2IF20 • file • … !! File will be moved to repository during next commit. Johan Muskens TU/e Computer Science, System Architecture and Networking
Commit • Changes in your local working copy are synchronized with the repository Subversion client C:\My Documents\ Subversion server https://svn.win.tue.nl/repos/san • education • courses • 2IC10 • New file • 2IF20 • File • … • student_projects • research • personal • jmuskens • mchaudron • … • projects • robocop • space4u • … • www • courses • 2IC10 • New file • 2IF20 • File • … Johan Muskens TU/e Computer Science, System Architecture and Networking
Our Repository https://svn.win.tue.nl/repos/san/ • education • courses • 2IC10 • 2IF20 • … • student_projects • research • personal • jmuskens • mchaudron • … • projects • robocop • space4u • … • www Johan Muskens TU/e Computer Science, System Architecture and Networking
Tools • Windows client • Tortoise SVNClient • Integrated in Windows Explorer • Unix client • Command line (svn add/remove/…) • Graphical client ? Johan Muskens TU/e Computer Science, System Architecture and Networking
Things to remember • Changes are not effectuated at the server until you do a commit • You can only add, remove, … things when you have a local copy of a sub-tree of the repository • You can have multiple local copies of possibly different sub-trees of the repository • You can put files in a local working copy without putting them under version control • History remains • Once you add something to subversion, traces remain (even when you do a remove). Johan Muskens TU/e Computer Science, System Architecture and Networking
Guidelines • Make it available for all • Also old project documentation • Add sources, not the derived artefacts • Don’t use versions in the document names • Subversion does the versioning for you ! • Don’t alter the existing directory structure • How you structure your personal, course or project sub-tree is up to you • Keep it clean Johan Muskens TU/e Computer Science, System Architecture and Networking
SANdpitSAN distributed & parallel integrated terminal Richard Verhoeven to dig up information Johan Muskens TU/e Computer Science, System Architecture and Networking
Content • Hardware • Software • General, OpenPBS, LAM/MPI • Usage • Courses • Projects • Users • Data access Johan Muskens TU/e Computer Science, System Architecture and Networking
Old cluster • One master with 17 nodes (pacluster) • 533 MHz Pentium III, 256 MB, 10 GB, 100 Mbit • RedHat 7.3 with security fixes • Failing power supplies, fans, disks, video cards • Only 13 nodes kept running to some extend Johan Muskens TU/e Computer Science, System Architecture and Networking
New cluster • One master with 17 nodes (sandpit) • 3 GHz Pentium 4 with hyper-threading • 400 GB disk in master, 40 GB disk per node • 1 GB memory • 2 Gigabit NICs • 19” rack mounted Johan Muskens TU/e Computer Science, System Architecture and Networking
Hardware Internet 2x200 GB 40 GB Johan Muskens TU/e Computer Science, System Architecture and Networking
Software • Gentoo Linux distribution • Compile from source • Optimized for platform • Large collection of standard software • Text editors (vi, emacs, nano) • Compilers (gcc, g++, g77, gcj, icc, javac) • Text processing (perl, LaTeX, ps2???) • Graphic processing (netpbm, gstreamer) • GUI apps (gnome, mozilla) • More software is installed upon request Johan Muskens TU/e Computer Science, System Architecture and Networking
/home/user (190 GB) /local/user (190 GB) /wslocal/sb01/user /home/user /wslocal/sandman/user /local/user (30 GB) /wslocal/sb01/user Directory structure sb01 .. sb17 sandpit / sandman 890 GB shared disk space for users Johan Muskens TU/e Computer Science, System Architecture and Networking
OpenPBS • Portable Batch System • Jobs are submitted to the server with qsub • Status of queue is available through qstat • Scheduler allocates nodes to specific jobs. • Four queues for jobs • small (< 20 min, highest priority) • medium (< 2 hours) • large (< 12 hours) • verylarge (< 3 days) • Maui scheduler Johan Muskens TU/e Computer Science, System Architecture and Networking
LAM/MPI • MPI – message passing interface • LAM/MPI – open-source MPI implementation • lamboot – create a multicomputer • mpirun – run parallel program • lamhalt – terminate multicomputer • Under PBS • Create script with lamboot – mpirun – lamhalt • Create multicomputer from allocated nodes Johan Muskens TU/e Computer Science, System Architecture and Networking
Courses • Student accounts • Course specific software • Special PBS queue • Only for students and instructors • Only active queue during instruction hours • Cluster remains accessible for others • Getting started manual Johan Muskens TU/e Computer Science, System Architecture and Networking
Projects • Group of users • Project related directory • Software repository • Documentation • Guest accounts • Faculty, university, national, international Johan Muskens TU/e Computer Science, System Architecture and Networking
Users • SAN members • Copied from UNIX systems • Faculty members • mCRL group • Students of courses • Guest researchers • Use ssh to login and rsh/ssh to move between nodes. Johan Muskens TU/e Computer Science, System Architecture and Networking
Data Access • Central directories are not accessible • UNIX directories not NFS mountable (anymore) • Window G: disk not SAMBA mountable (yet) • Use ssh and scp Johan Muskens TU/e Computer Science, System Architecture and Networking
Data Backup • Cluster not under the backup policy of BCF • Data is often temporary • Too much data for offsite backups • Options: • Copy data to different nodes • Copy data regularly to central network disk • Integrate backup into PBS scripts • Check data into Subversion Johan Muskens TU/e Computer Science, System Architecture and Networking
Usage policy • No enforcement (yet) • By-passing PBS is possible • No disk quota • No accounting of processor time • Fair use • Clean up temporary data regularly • Don’t abuse the resources • Personal projects are allowed as long as they don’t interfere with education or research. • Otherwise • Enforcement will be added or account disabled Johan Muskens TU/e Computer Science, System Architecture and Networking
Possible extension • Use OpenMosix • Extension to move processes between nodes • Add real-time boot configuration • Reboot nodes when job scheduler asks for it • Use second network interface • Small ring • Second connection to the switch • Add cross-compiler tool chains • Familiar Linux for iPAQ • TinyOS for sensor motes • SymbianOS for mobile phones Johan Muskens TU/e Computer Science, System Architecture and Networking
What happened with … • the old cluster? • Already reused in other projects • Several nodes revisited to get them working • Create heterogeneous network setup • Ethernet, wifi, firewire, bluetooth, sensors • Combine or upgrade test environments • Give to family and friends Moet weg tegen elk aannemelijk bod Johan Muskens TU/e Computer Science, System Architecture and Networking
Questions? Johan Muskens TU/e Computer Science, System Architecture and Networking