Understanding Formatted Capacity versus Unformated Capacity

Have you wondered why Formatted Capacity is lesser than the Unformated Capacity of a Hard Disk. Do take a look at this article Formatted capacity confusion clarified

Storage hardware is using the base 10 system and software is using the base 2 system. So no storage is actually lost, it is just a question of how the information is represented.

Compling ANTLR 2.7.7 on CentOS 6

What is ANTLR?

ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a language tool that provides a framework for constructing recognizers, compilers, and translators from grammatical descriptions containing Java, C#, C++, or Python actions. ANTLR provides excellent support for tree construction, tree walking, and translation. There are

Step 1: Download ANTLR 2.7.7

Step 2: Untar ANTLR-2.7.7

# tar -zxvf antlr-2.7.7
# antlr-2.7.7

Step 3: For RHEL and CentOS, edit the source file /root/antlr-2.7.7/lib/cpp/antlr/CharScanner.hpp

# vim /root/antlr-2.7.7/lib/cpp/antlr/CharScanner.hpp

Add the following into the CharScanner.hpp file
antlr

Step 4: Compile the antlr-2.7.7

# ./configure --prefix=/usr/local/antlr2.7.7 --disable-examples
# make -j 8
# make install

References:

  1. http://sourceforge.net/p/nco/discussion/9830/thread/08ae0201

Install GCC 4.8.1 and other Scientitic Packages via Yum on CentOS

Do take a look at Linux @ CERN for the documentation on how to use yum to install devtoolset which contain the following packages. The latest version for CentOS 6 is devtoolset-2.1. Here is a summary of the Linux @ CERN

CentOS 6 / SL 6

Developer Toolset 2.1 provides following tools:

  • gcc/g++/gfortran – GNU Compiler Collection – version 4.8.2
  • gdb – GNU Debugger – version 7.6.34
  • binutils – A GNU collection of binary utilities – version 2.23.52
  • elfutils – A collection of utilities and DSOs to handle compiled objects – version 0.155
  • dwz – DWARF optimization and duplicate removal tool – version 0.11
  • systemtap – Programmable system-wide instrumentation system – version 2.1
  • valgrind – Tool for finding memory management bugs in programs – version 3.8.1
  • oprofile – System wide profiler – version 0.9.8
  • eclipse – An Integrated Development Environment – version 4.3.1 (Kepler)

CentOS 5 / SL 5

Developer Toolset 1.1 provides following tools:

  • gcc/g++/gfortran – GNU Compiler Collection – version 4.7.2
  • gdb – GNU Debugger – version 7.5
  • binutils – A GNU collection of binary utilities – version 2.23.51
  • elfutils – A collection of utilities and DSOs to handle compiled objects – version 0.154
  • dwz – DWARF optimization and duplicate removal tool – version 0.7
  • systemtap – Programmable system-wide instrumentation system – version 1.8
  • valgrind – Tool for finding memory management bugs in programs – version 3.8.1
  • oprofile – System wide profiler – version 0.9.7

Installation and Enablement

CentOS 6 / SL 6

Save repository information as /etc/yum.repos.d/slc6-devtoolset.repo on your system:

# cd /etc/yum.repos.d/ 
# wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo
# yum install devtoolset-2 --nogpgcheck
# scl enable devtoolset-2 bash

CentOS 5 / SL 5

Save repository information as /etc/yum.repos.d/slc5-devtoolset.repo on your system:

# cd /etc/yum.repos.d/
# wget -O /etc/yum.repos.d/slc5-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc5-devtoolset.repo
# yum install devtoolset-1.1
# scl enable devtoolset-1.1 bash

Platform LSF – Controlling Hosts

1. Closing a Host

# badmin hclose hostid
Close hostid ...... done

2. Opening a Host

# badmin hopen hostid
Open hostid ...... done

3. Log a comment when closing or opening a host

# badmin hopen -C "Re-Provisioned" hostA
# badmin hclose -C "Weekly backup" hostB

The comment text Weekly backup is recorded in lsb.events. If you close or open a host group, each host group member displays with the same comment string.

Platform LSF – Working with Hosts (lshosts, lsmon)

The lshosts command shows the load thresholds. Using lshosts -l

$ lshosts -l
HOST_NAME:  comp001
type             model  cpuf ncpus ndisks maxmem maxswp maxtmp rexpri server nprocs ncores nthreads
X86_64     Intel_EM64T  60.0    16      1    63G    16G 352423M      0    Yes      2      8        1

RESOURCES: Not defined
RUN_WINDOWS:  (always open)

LOAD_THRESHOLDS:
r15s   r1m  r15m   ut    pg    io   ls   it   tmp   swp   mem   root maxroot processes clockskew netcard iptotal  cpuhz cachesize diskvolume processesroot   ipmi powerconsumption ambienttemp cputemp
-   3.5     -    -     -     -    -    -     -     -     -      -       -         -         -       -       -      -         -          -             -      -                -           -       -