2014年5月8日 星期四

mellanox OFED infiniband test under RHEL 6.5

mellanox OFED infiniband test under RHEL 6.5

Download latest OFED SW
https://www.openfabrics.org/downloads/OFED/

BIOS setting of SUT:
Disable SpeedStep/Hyper-threading/C3/C6 in BIOS CPU configuration.

The test steps are seperated to
1.Install OFED,
2. ib IP setting
3.ssh key setting
4.run script
---------------------------------------------------------------------------
1.Install OFED
#cd OFED
#./install.sh
From the following menu select  2 “Install OFED Software”
InfiniBand OFED Distribution Software Installation Menu

          1) View OFED Installation Guide
          2) Install OFED Software
          3) Show Installed Software
          4) Configure IPoIB Network Interface and OpenSM Server
          5) Uninstall InfiniBand Software
          6) Build OFED Software RPMs

          Q) Exit

Select Option [1-6]:          


From the following sub-menu select 3 “All packages (all of openib, mpi)”

                     Select OFED Software

          1) Basic (InfiniBand modules and basic user level libraries)
          2) HPC (InfiniBand modules and libraries, mpi and diagnostic tools)
          3) All packages (all of openib, mpi)
          4) Customize

          Q) Exit

Select Option [1-4]:


After selecting the complete installation you will be prompted for the compiler used for compiling the 2 MPI packages included in the distribution.  Accept the default of gcc when prompted.


Install complete and successfully.

2. ib IP setting
#/etc/init.d/openibd start
#service opensmd start
#chkconfig opensmd on


make sure state is Active in ibstat

#ibstat
Set ib ip address in SUT1
#ifconfig ib0 10.0.0.1 255.255.255.0

Set ib ip address in SUT2
#ifconfig ib0 10.0.0.2 255.255.255.0

Disable iptables on both SUT1 and SUT2
#service iptables stop

Check SUT1 and SUT2 connect
(SUT1)# ping 10.0.0.2

3.ssh key setting

From the host 10.0.0.1 perform the following steps:

 #ssh 10.0.0.2     (ssh   ip)

At the prompt similar to the following, type yes and press Enter.
----------------------------------------------------------------------------------------------------photo
The authenticity of host 'localhost (10.0.0.2)' can't be established.
RSA key fingerprint is 23:35:92:2b:df:5b:d6:1b:6a:32:24:ee:18:d2:82:18.
Are you sure you want to continue connecting (yes/no)?
-----------------------------------------------------------------------------------------------------
Enter root password then type exit.

Generate authentication keys

cd ~/.ssh
ssh-keygen –t rsa 

Continue to press enter to accept default file name and no passphrase.
-----------------------------------------------------------------------------------------------------------photo
[root@localhost ~/.ssh]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
7a:e0:dc:a5:ec:99:0a:7a:33:4f:d6:ee:9d:5c:7d:c2 root@localhost
------------------------------------------------------------------------------------------------------------
Create the authorized_keys file for uutn1.

cat id_rsa.pub >> authorized_keys

Copy the authorized_keys file to the initiator host uutn1.

scp authorized_keys  10.0.0.2:~/.ssh/10.0.0.2.id

From the initiator host 10.0.0.2 perform the following steps.

cd ~/.ssh
cat 10.0.0.2.id >> authorized_keys


Re-do test, you have to clear the old key 
Clear all existing auth-keys in SUT1 (unsvr) and SUT2 (unsvr1)
SUT1) # rm -rf ~/.ssh/*
SUT2) # rm -rf ~/.ssh/*

4.run script

 install perftest-2.0-2.el6.x86_64.rpm 

(Download from :http://mirror.centos.org/centos/6/os/x86_64/Packages/perftest-2.0-2.el6.x86_64.rpm)

 #rpm -ivh perftest-2.0-2.el6.x86_64.rpm--force

 1Open a new file using an editor such as vi and copy the sample script from below into the file.  Save the file and use chmod to make it executable 

#vim runall

chmod +x ./runall

#!/bin/sh
# trivial script to launch all server/client bandwidth and latency
# tests with ssh.  Must be launched from client. Uses test defaults
# and runs both unidirectional and bidirectional bandwidth tests.
# examples: runall <servername> or runall <server_ip>

BW_TESTS="rdma_bw ib_read_bw ib_send_bw ib_write_bw"
LAT_TESTS="rdma_lat ib_read_lat ib_send_lat ib_write_lat"
OFED_BINDIR=/usr/bin
SERVER=$1

run ()
{
        server=$1
        shift
        ssh $server $* >& /dev/null &
        #give server time to start
        sleep 2
        $* $server
        status=$?
        wait
        return $status
}

if [ $# -lt 1 ] ; then
        echo "Usage: runall <server>"
        exit 3
fi

for test in $BW_TESTS ; do
        run $SERVER $OFED_BINDIR/$test
        run $SERVER $OFED_BINDIR/$test -b
done

for test in $LAT_TESTS ; do
        run $SERVER $OFED_BINDIR/$test
done


2. Run the script.  If desired, you can redirect the output to a file for inclusion in the final report.  A sample of the output is provided below.

./runall <server name or IP address>

Or

./runall <server name or IP address> > <output file>

  local address:  LID 0x05, QPN 0x830405, PSN 0xbc893c RKey 0x7a002400 VAddr 0x002aedf208f000
  remote address: LID 0x04, QPN 0x810405, PSN 0xe022f6, RKey 0x12002400 VAddr 0x002b1b7d7fb000
Bandwidth peak (#0 to #989): 744.555 MB/sec
Bandwidth average: 744.527 MB/sec
Service Demand peak (#0 to #989): 4535 cycles/KB
Service Demand Avg  : 4535 cycles/KB
  local address:  LID 0x05, QPN 0x840405, PSN 0xaf75dc RKey 0x002400 VAddr 0x002b5970ce6000
  remote address: LID 0x04, QPN 0x820405, PSN 0xca1275, RKey 0x18002400 VAddr 0x002af22122a000
Bandwidth peak (#0 to #890): 1344.07 MB/sec
Bandwidth average: 1343.9 MB/sec
Service Demand peak (#0 to #890): 2512 cycles/KB
Service Demand Avg  : 2512 cycles/KB
------------------------------------------------------------------
                    RDMA_Read BW Test
Connection type : RC
  local address:  LID 0x05, QPN 0x850405, PSN 0x416402 RKey 0x6002400 VAddr 0x002ab8a3128000
  remote address: LID 0x04, QPN 0x830405, PSN 0x1d2d1e, RKey 0x1e002400 VAddr 0x002ad71ee91000
Mtu : 2048
------------------------------------------------------------------
 #bytes #iterations    BW peak[MB/sec]    BW average[MB/sec]
  65536        1000             722.06                722.04
------------------------------------------------------------------
------------------------------------------------------------------
                    RDMA_Read Bidirectional BW Test
Connection type : RC
  local address:  LID 0x05, QPN 0x860405, PSN 0xb27762 RKey 0xc002400 VAddr 0x002b353f60e000
  remote address: LID 0x04, QPN 0x840405, PSN 0xf4a018, RKey 0x24002400 VAddr 0x002b42dc3e2000
Mtu : 2048
------------------------------------------------------------------
 #bytes #iterations    BW peak[MB/sec]    BW average[MB/sec]
  65536        1000            1213.91               1213.91
------------------------------------------------------------------
------------------------------------------------------------------
                    Send BW Test
Inline data is used up to 400 bytes message
Connection type : RC
  local address:  LID 0x05, QPN 0x870405, PSN 0x893f8f
  remote address: LID 0x04, QPN 0x850405, PSN 0x52149e
Mtu : 2048
------------------------------------------------------------------
 #bytes #iterations    BW peak[MB/sec]    BW average[MB/sec]
  65536        1000             743.12                743.12
------------------------------------------------------------------
------------------------------------------------------------------
                    Send Bidirectional BW Test
Inline data is used up to 400 bytes message
Connection type : RC
  local address:  LID 0x05, QPN 0x880405, PSN 0x7879ae
remote address: LID 0x04, QPN 0x860405, PSN 0xbd3577
Mtu : 2048
------------------------------------------------------------------
 #bytes #iterations    BW peak[MB/sec]    BW average[MB/sec]
  65536        1000            1319.16               1319.16
------------------------------------------------------------------
------------------------------------------------------------------
                    RDMA_Write BW Test
Inline data is used up to 400 bytes message
Number of qp's running 1
Connection type : RC
Each Qp will post up to 100 messages each time
  local address:  LID 0x05, QPN 0x890405, PSN 0xf51a5b RKey 0x1e002400 VAddr 0x002ab514275000
  remote address: LID 0x04, QPN 0x870405, PSN 0x82d78, RKey 0x36002400 VAddr 0x002b8f7954e000
Mtu : 2048
------------------------------------------------------------------
 #bytes #iterations    BW peak[MB/sec]    BW average[MB/sec]
  65536        5000             744.72                744.72
------------------------------------------------------------------
------------------------------------------------------------------
                    RDMA_Write Bidirectional BW Test
Inline data is used up to 400 bytes message
Number of qp's running 1
Connection type : RC
Each Qp will post up to 100 messages each time
  local address:  LID 0x05, QPN 0x8a0405, PSN 0x17cc0 RKey 0x24002400 VAddr 0x002af1b8b05000
  remote address: LID 0x04, QPN 0x880405, PSN 0x23d292, RKey 0x3c002400 VAddr 0x002af1a056b000
Mtu : 2048
------------------------------------------------------------------
 #bytes #iterations    BW peak[MB/sec]    BW average[MB/sec]
  65536        5000            1345.45               1345.45
------------------------------------------------------------------
   local address: LID 0x05 QPN 0x8b0405 PSN 0x61f8fa RKey 0x2a002400 VAddr 0x00000000509001
  remote address: LID 0x04 QPN 0x890405 PSN 0x8879fe RKey 0x42002400 VAddr 0x00000000509001
Latency typical: 3.8045 usec
Latency best   : 3.72367 usec
Latency worst  : 179.276 usec
------------------------------------------------------------------
                    Read Req Latency Test
   local address: LID 0x05 QPN 0x8c0405 PSN 0x168f09 RKey 0x30002400 VAddr 0x0000000050c080
  remote address: LID 0x04 QPN 0x8a0405 PSN 0x287769 RKey 0x48002400 VAddr 0x0000000050c080
Mtu : 2048
------------------------------------------------------------------
 #bytes #iterations    t_min[usec]    t_max[usec]  t_typical[usec]
      2        1000           8.49          18.40             8.61
------------------------------------------------------------------
------------------------------------------------------------------
                    Send Latency Test
Inline data is used up to 400 bytes message
Connection type : RC
   local address: LID 0x05 QPN 0x8d0405 PSN 0xf2d6d8
  remote address: LID 0x04 QPN 0x8b0405 PSN 0x3da316
Mtu : 2048
------------------------------------------------------------------
 #bytes #iterations    t_min[usec]    t_max[usec]  t_typical[usec]
      2        1000           5.08          63.87             5.13
------------------------------------------------------------------
------------------------------------------------------------------
                    RDMA_Write Latency Test
Inline data is used up to 400 bytes message
Connection type : RC
   local address: LID 0x05 QPN 0x8e0405 PSN 0x5c8536 RKey 0x3e002400 VAddr 0x0000000050c002
  remote address: LID 0x04 QPN 0x8c0405 PSN 0xcb23fc RKey 0x56002400 VAddr 0x0000000050c002
Mtu : 2048
------------------------------------------------------------------
 #bytes #iterations    t_min[usec]    t_max[usec]  t_typical[usec]
      2        1000           3.70          24.04             3.79
------------------------------------------------------------------







2014年5月4日 星期日

Install .NET Framework 3.5 under Windows 8 / Windows 2012 (offline)

Install .NET Framework 3.5 under Windows 8 / Windows 2012 (offline)

Download Windows 8 .NET Framework 3.5 Offline Installation.cmd
https://docs.google.com/open?id=0B3-Z3r0VKlidTndpNmVmcGRwc3c

Put your windows 8 DVD into DVD rom.

Execute cmd file with "administrator" permission



You can use follow command to install,too.

DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:d:\sources\sxs
d: is your DVD-rom letter.


Reference:
http://msdn.microsoft.com/zh-tw/library/hh506443.aspx

雲端網路實務 2013/5/5

01-Apache 2 安裝與啟動

 更新套件情單
$ sudo apt-get update

Apache 2 安裝

$ sudo apt-get install apache2
[sudo] password for student:
正在讀取套件清單... 完成
正在重建相依關係
正在讀取狀態資料... 完成
以下套件是被自動安裝進來的,且已不再會被用到了:
  linux-headers-2.6.32-21 linux-headers-2.6.32-22
  linux-headers-2.6.32-22-generic-pae
使用 'apt-get autoremove' 來將其移除。
下列的額外套件將被安裝:
  apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1
  libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
建議套件:
  apache2-doc apache2-suexec apache2-suexec-custom
下列【新】套件將會被安裝:
  apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common
  libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
升級 0 個,新安裝 9 個,移除 0 個,有 1 個未被升級。
需要下載 3,328kB 的套件檔。
此操作完成之後,會多佔用 10.1MB 的磁碟空間。
是否繼續進行 [Y/n]?y
下載:1 http://tw.archive.ubuntu.com/ubuntu/ lucid/main libapr1 1.3.8-1build1 [116kB]
下載:2 http://tw.archive.ubuntu.com/ubuntu/ lucid/main libaprutil1 1.3.9+dfsg-3build1 [85.4kB]
下載:3 http://tw.archive.ubuntu.com/ubuntu/ lucid/main libaprutil1-dbd-sqlite3 1.3.9+dfsg-3build1 [27.1kB]
下載:4 http://tw.archive.ubuntu.com/ubuntu/ lucid/main libaprutil1-ldap 1.3.9+dfsg-3build1 [25.1kB]
下載:5 http://tw.archive.ubuntu.com/ubuntu/ lucid/main apache2.2-bin 2.2.14-5ubuntu8 [2,622kB]
下載:6 http://tw.archive.ubuntu.com/ubuntu/ lucid/main apache2-utils 2.2.14-5ubuntu8 [159kB]
下載:7 http://tw.archive.ubuntu.com/ubuntu/ lucid/main apache2.2-common 2.2.14-5ubuntu8 [290kB]
下載:8 http://tw.archive.ubuntu.com/ubuntu/ lucid/main apache2-mpm-worker 2.2.14-5ubuntu8 [2,364B]
下載:9 http://tw.archive.ubuntu.com/ubuntu/ lucid/main apache2 2.2.14-5ubuntu8 [1,482B]
取得 3,328kB 用了 2s (1,345kB/s)
選取了原先未被選取的套件 libapr1。
(正在讀取資料庫 ... 系統目前共安裝了 159384 個檔案和目錄。)
正在解開 libapr1 (從 .../libapr1_1.3.8-1build1_i386.deb)...
選取了原先未被選取的套件 libaprutil1。
正在解開 libaprutil1 (從 .../libaprutil1_1.3.9+dfsg-3build1_i386.deb)...
選取了原先未被選取的套件 libaprutil1-dbd-sqlite3。
正在解開 libaprutil1-dbd-sqlite3 (從 .../libaprutil1-dbd-sqlite3_1.3.9+dfsg-3build1_i386.deb)...
選取了原先未被選取的套件 libaprutil1-ldap。
正在解開 libaprutil1-ldap (從 .../libaprutil1-ldap_1.3.9+dfsg-3build1_i386.deb)...
選取了原先未被選取的套件 apache2.2-bin。
正在解開 apache2.2-bin (從 .../apache2.2-bin_2.2.14-5ubuntu8_i386.deb)...
選取了原先未被選取的套件 apache2-utils。
正在解開 apache2-utils (從 .../apache2-utils_2.2.14-5ubuntu8_i386.deb)...
選取了原先未被選取的套件 apache2.2-common。
正在解開 apache2.2-common (從 .../apache2.2-common_2.2.14-5ubuntu8_i386.deb)...
選取了原先未被選取的套件 apache2-mpm-worker。
正在解開 apache2-mpm-worker (從 .../apache2-mpm-worker_2.2.14-5ubuntu8_i386.deb)...
選取了原先未被選取的套件 apache2。
正在解開 apache2 (從 .../apache2_2.2.14-5ubuntu8_i386.deb)...
正在進行 man-db 的觸發程式 ...
正在進行 ufw 的觸發程式 ...
正在進行 ureadahead 的觸發程式 ...
ureadahead will be reprofiled on next reboot
正在設定 libapr1 (1.3.8-1build1) ...

正在設定 libaprutil1 (1.3.9+dfsg-3build1) ...

正在設定 libaprutil1-dbd-sqlite3 (1.3.9+dfsg-3build1) ...
正在設定 libaprutil1-ldap (1.3.9+dfsg-3build1) ...
正在設定 apache2.2-bin (2.2.14-5ubuntu8) ...
正在設定 apache2-utils (2.2.14-5ubuntu8) ...
正在設定 apache2.2-common (2.2.14-5ubuntu8) ...
Enabling site default.
Enabling module alias.
Enabling module autoindex.
Enabling module dir.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module status.
Enabling module auth_basic.
Enabling module deflate.
Enabling module authz_default.
Enabling module authz_user.
Enabling module authz_groupfile.
Enabling module authn_file.
Enabling module authz_host.
Enabling module reqtimeout.

正在設定 apache2-mpm-worker (2.2.14-5ubuntu8) ...
 * Starting web server apache2                                                  
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
                                                                         [ OK ]
正在設定 apache2 (2.2.14-5ubuntu8) ...

正在進行 libc-bin 的觸發程式 ...
ldconfig deferred processing now taking place

[問題] 由上述安裝資訊, Apache 2 已啟動那些 Module ?

檢視 Apache 2 的內部設定值

$ /usr/sbin/apache2 -V
Server version: Apache/2.2.14 (Ubuntu)
Server built:   Apr 13 2010 19:29:28
Server's Module Magic Number: 20051115:23
Server loaded:  APR 1.3.8, APR-Util 1.3.9
Compiled using: APR 1.3.8, APR-Util 1.3.9
Architecture:   32-bit
Server MPM:     Worker
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/worker"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT=""
 -D SUEXEC_BIN="/usr/lib/apache2/suexec"
 -D DEFAULT_PIDLOG="/var/run/apache2.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
 -D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"

[註] 由上面資訊中, 可以得知 Apache 2 的主要設定檔是 /etc/apache2/apache2.conf


檢視 /etc/apache2/sites-enabled/000-default 設定檔 (網站根目錄, cgi-bin 目錄)

這個設定檔, 定義 Apache 2 網站根目錄所在的目錄 (DocumentRoot /var/www), 還有定義 /cgi-bin 目錄, 執行 CGI 程式
<VirtualHost *:80>
 ServerAdmin webmaster@localhost

 DocumentRoot /var/www

 <Directory />
  Options FollowSymLinks
  AllowOverride None
 </Directory>

 <Directory /var/www/>
  Options Indexes FollowSymLinks MultiViews
  AllowOverride None
  Order allow,deny
  allow from all
 </Directory>

 ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
 <Directory "/usr/lib/cgi-bin">
  AllowOverride None
  Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  Order allow,deny
  Allow from all
 </Directory>

 ErrorLog /var/log/apache2/error.log

 # Possible values include: debug, info, notice, warn, error, crit,
 # alert, emerg.
 LogLevel warn

 CustomLog /var/log/apache2/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>

網站根目錄放置在 /var/www 這個目錄嗎? 為什麼呢?因為 DocumentRoot 這個設定值的關係啦!此外,由於 Apache 允許 Internet 對我們的資料進行瀏覽, 所以你當然必須要針對可被瀏覽的目錄進行權限的相關設定,那就是 <Directory> 這個設定值的重要特色!先讓我們來看看預設的主網頁設定吧!
DocumentRoot "/var/www"           放置首頁的目錄!
這個設定值重要到不行,因為他規範了 WWW 伺服器主網頁所放置的『目錄』所在。這個設定值是可以被隨意更動的,不過更動之後你必須要針對該目錄進行權限設定,也就是底下要講到的 Directory 這個設定值來規範目錄的權限才行喔!
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
以最嚴格設定值, 設定系統根目錄 (/)





tar.xz file

tar.xz file



# xz -d linux-3.1-rc4.tar.xz
#tar xvf  linux-3.1-rc4.tar

If you don't have xz program, download xz-5.0.3.tar.bz2
http://download.chinaunix.net/download/0014000/13078.shtml
#tar -xf xz-5.0.3.tar
#cd xz-5.0.3
#./configure
#make
#make install

STREAM Memory Bandwidth Benchmark

STREAM  Memory Bandwidth Benchmark  
2020.06.12 update for Purley

BIOS Settings:

Intel® Turbo Boost Technology=>Enabled
Intel® Hyper-Threading Technology=>Disabled
NUMA Optimized=>Enabled
Memory Power Optimization=>Performance Optimized
SNC (Sub NUMA Clustering) =>Enable
IMC Interleaving => 1 way
------------------------------------------------------------------

1) Install Red Hat* Enterprise Linux 6.4 with all packages.OS and Application Settings
2) Install the Intel® Parallel Studio XE for Linux* Product for 32-bit/x86-64bit development (Intel® C Compiler) v13.1. Install to the default directory (/opt/intel/bin)
3) Download the source code, stream_omp.c, from the University of Virginia located at:  http://www.cs.virginia.edu/stream/FTP/Code/Versions/ 
4) Copy the stream_omp.c file to a source directory on the server under test (SUT).
5) Use a text editor to make the following changes to the .c code:
#define N: 80000000
#define NTIMES: 100
6) From the source directory, type:
source /opt/intel/bin/compilervars.sh intel64
7) Build the STREAM* binary using the following build instructions.  Type:
icc stream_omp.c -O3 -openmp -o stream_omp_NTW -parallel -ffreestanding -openmp-link static
Running STREAM* 
1) Open a terminal window in Red Hat* Enterprise Linux 
8) Change to the subdirectory of the STREAM* binary built in step 8 of the previous section.
9) Type: 
export OMP_NUM_THREADS=”28”
10) Type: 
export KMP_AFFINITY=”scatter”
11) Type: 
echo never >/sys/kernel/mm/redhat_transparent_hugepage/enabled
12) Type:
./stream_omp
Note: “-ffreestanding” option is not being recommended as a general purpose optimization flag.It is being used here only to produce non-temporal writes in STREAM* binary.

LINPACK* Benchmark for Linux* OS

LINPACK* Benchmark for Linux* OS 
2015/08/14 update for Grantley
2020.06.12 update for Purley

 BIOS Settings:
Intel® Turbo Boost Technology=>Enabled
Intel® Hyper-Threading Technology=>Disabled
NUMA Optimized=>Enabled
Memory Power Optimization=>Performance Optimized
SNC (Sub NUMA Clustering) =>Disable   
IMC Interleaving => 2 way   

------------------------------------------------------------------------------------
OS and Application Settings
1) Install Red Hat* Enterprise Linux 6.4 with all packages.
2) Download and install Intel® Optimized LINPACK Linux package v11.0.5.009 or later from http://software.intel.com/en-us/articles/intel-math-kernel-library-linpack-download 
3) Create a directory on the system under test called /linpack.
4) Copy the linpack .tgz file to /linpack directory.  For this example the linpack compressed file is named l_lpk_p_11.0.5.009.tgz.
5) Decompress the linpack .tgz file by typing
tar xvzf l_lpk_p_11.0.5.009.tgz
6) Expand the Make the following changes in the lininput_xeon64:
− Problem size: 90000 120000
− Leading Dimensions: 90000 120000
− Alignment: 11
Invocation
1) Open a terminal window in Red Hat* Enterprise Linux 6.1 in the linpack directory
7) Type “./runme_xeon64”.
Results
Results will appear in lin_xeon64.txt

---------------------------------------------------
設定linpack參數
假設memory size 為128G
可用mermoy size 為119G (透過OS資源監控檢視剩餘記憶體)

problem size=
119*1024*1024*1024/8  開根號
=126380

#vim /linpack_11.1.1/benchmarks/linpcak/liniput_xeon64
1                   # number of tests
126380        # problem sizes
126380        # leading dimens
999999        # times to run a test  要跑幾次,stress設99999
4                   # alignment values   預設

#./runme_xeon64

 

2014年5月2日 星期五

Netperf_Linux

Netperf_Linux 

1. Load BIOS default, Then boot into OS to run Netperf.   
  2. Copy netperf-2.6.0.tar.gz to OS:
        # cp  /mnt/netperf-2.6.0.tar.gz  /   
  3. Uncompress Netperf:
        # tar  zxvf  /netperf-2.6.0.tar.gz   
  4. Install Netperf:
        # cd  /netperf-2.6.0
          # ./configure
          # make  install   
  5. Setting IP of Testing NIC.
        # ifconfig  eth0  192.1.1.100   
  6. Do the same steps 1 to 5 in the 2 Servers.   (192.1.1.200)

  7. In Remote Server, start up Netperf Server Role (IP: 192.1.1.100):
        # cd  /netperf-2.6.0/src
          # netserver       (Starting netserver with host "IN(6)ADDR_ANY" port `12865' and)
  8. In Local Server (Main Server, IP: 192.1.1.200), Test TCP Stream Throughput:
        # cd  /netperf-2.6.0/src
          # netperf  -t  TCP_STREAM  -l  180  -H  192.1.1.100  -c  --  -s  128k  -S  128K   
  9. In Local Server (Main Server), Test UDP Stream Throught:
        # netperf  -t  UDP_STREAM  -l  180  -H  192.1.1.100  -c  --  -s  128k  -S  128K   
  10. In Local Server (Main Server), Test TCP Request/Response in 1 byte:
        # netperf  -t  TCP_RR  -l  180  -H  192.1.1.100  -c   
  ***11. In Local Server (Main Server), Test TCP Request/Response in 32/1024 byte:
        # netperf  -t  TCP_RR  -l  180  -H  192.1.1.100  -c  --  -r  32/1024   
  12. In Local Server (Main Server), Test TCP Connect/Request/Response in 1 byte:
        # netperf  -t  TCP_CRR  -l  180  -H  192.1.1.100  -c   
  ***13. In Local Server (Main Server), Test TCP Connect/Request/Response in 32/1024 byte:
        # netperf  -t  TCP_CRR  -l  180  -H  192.1.1.100  -c  --  -r  32/1024   
 14.In Local Server (Main Server), Test UDP Request/Response :
        # netperf  -t  UDP_RR  -l  180  -H  192.1.1.100  -c  
  15. Save Test Result and Log files.   
  16. Report as defect if there is any error happened or low Test Result.   
    

2014年4月23日 星期三

Disk sda contains BIOS RAID metadata, but is not part of any recognized BIOS RAID sets. Ignoring disk sda

When install linux, system show "Disk sda contains BIOS RAID metadata, but is not part of any recognized BIOS RAID sets. Ignoring disk sda"

This may cause by this disk have create RAID array by other RAID card.







Try:
# parted
(parted) # parted /dev/sdb --script mklabel gpt
y

q
# parted /dev/sdb --script -- mkpart primary 0 -1
Warning: The resulting partition is not properly aligned for best performance.
# parted /dev/sdb --script print
Model: ATA TOSHIBA MK1002TS (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
#Ctrl+alt+del



Reinstall OS again.

2014年4月21日 星期一

Install RHEL with RAID driver

Install RHEL with RAID driver


RHEL 6 series

The boot option should be "linux dd blacklist=ahci nodmraid".



RHEL 7 series
linux dd modprobe.blacklist=ahci
--------------------------------------------------------------------------
Make a USB DUD key:
       1). Insert the USB key into a linux system
       2). Open a terminal
       3). Type “fdisk –l” to find out what device the USB key is (e.g. "/dev/sda”)
       4). Make sure the USB key is unmounted by typing “umount /dev/sdX” where sdX is the device name
       5). Navigate to where the DUD .img file is located
       6). Type “dd if=nameofDUD.img of=/dev/sdX” where nameofDUD.img is the file name of the DUD image and sdX is the
           device name of the USB key


or
linux inst.dd
Put dirver *.iso in USB key.




2014年4月20日 星期日

When meet grub error 17 installing SLES with ESRT2

When meet grub error 17 installing SLES with ESRT2
At F6 page select Yes,
Enter following command(Boot opion)
while giving driver "brokenmodules=ahci,isci"




To use AHCI controller in LSI Raid Mode
- AHCI controller has to be in LSI RAID mode.
- brokenmodules=ahci has to be provided during OS installation.

To use SCU controller in LSI Raid Mode
- SCU controller has to be in LSI RAID mode.
- brokenmodules=isci  has to be provided during OS installation.

To use both controllers in LSI Raid Mode
- brokenmodules=ahci,isci  has to be provided during OS installation.

Note:
If your RAID volume large than 2T, your grub will have issue while installation.




2014年4月10日 星期四

linux Console_Redirection -RHEL 6.x

linux Console_Redirection -RHEL 6.x

步驟一:編輯 /boot/grub/menu.lst   (legacy mode)
                           /boot/efi/EFI/redhat/grub.conf (UEFI mode)
在 title ..... 上方,加上

## Enable serial console
serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1
terminal --timeout=10 serial console

這行前面加上註解

#splashimage=(hd0,1)/boot/grub/splash.xpm.gz

找到實際開機所需的那一行,例如是

title CentOS-4 i386-up (2.6.9-34.0.2.EL)
        root (hd0,1)
        kernel /boot/vmlinuz-2.6.9-34.0.2.EL ro root=LABEL=/1
        initrd /boot/initrd-2.6.9-34.0.2.EL.img

在 kernel 後方加上 console=tty0 console=ttyS0,9600n8

kernel /boot/vmlinuz-2.6.9-34.0.2.EL ro root=LABEL=/1 console=tty0 console=ttyS0,9600n8
步驟二:編輯 /etc/inittab最下方加上這行

# Enable serial console
sc:2345:respawn:/sbin/agetty ttyS0 115200,9600 xterm

步驟三: 系統預設是不予許 root 直接從 serial console 登入,這樣造成管理不是很方便,所以修改一下設定。
編輯 /etc/securetty,最底下加上
ttyS0

若在Redhat 6的系統發生進入OS發生亂碼
那是因為安裝了tboot套件
可將grub.conf做修改

Removing tboot after installation

1) Using grubby add the existing kernel
# ARGS=$(grep "^[[:space:]]*module /vmlinuz-$(uname -r)" /boot/grub/grub.conf | sed -e 's/^.*x86_64 //' | head -n 1)

# grubby --add-kernel=/boot/vmlinuz-$(uname -r) --args="${ARGS}" --initrd=/boot/initramfs-$(uname -r).img --make-default --title "Red Hat Enterprise Linux without tboot ($(uname -r))"

# grep -v ^# /boot/grub/grub.conf 
default=0
timeout=5
serial --unit=0 --speed=115200
terminal --timeout=5 serial console
title Red Hat Enterprise Linux without tboot (2.6.32-358.el6.x86_64
    kernel /vmlinuz-2.6.32-358.el6.x86_64 ro root=/dev/mapper/vg00-root intel_iommu=on rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_LVM_LV=vg00/swap LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 rd_LVM_LV=vg00/root crashkernel=auto crashkernel=auto console=ttyS0,115200 rd_NO_DM
    initrd /initramfs-2.6.32-358.el6.x86_64.img
title Red Hat Enterprise Linux (2.6.32-358.el6.x86_64)
    root (hd0,0)
    kernel /tboot.gz logging=vga,serial,memory
    module /vmlinuz-2.6.32-358.el6.x86_64 ro root=/dev/mapper/vg00-root intel_iommu=on rd_NO_LUKS  KEYBOARDTYPE=pc KEYTABLE=us rd_LVM_LV=vg00/swap LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 rd_LVM_LV=vg00/root crashkernel=auto crashkernel=auto console=ttyS0,115200 rd_NO_DM
    module /initramfs-2.6.32-358.el6.x86_64.img
2) Remove the tboot kernel
# grubby --remove-kernel=/boot/tboot.gz

# grep -v ^# /boot/grub/grub.conf 
default=0
timeout=5
serial --unit=0 --speed=115200
terminal --timeout=5 serial console
title Red Hat Enterprise Linux without tboot (2.6.32-358.el6.x86_64
    kernel /vmlinuz-2.6.32-358.el6.x86_64 ro root=/dev/mapper/vg00-root intel_iommu=on rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_LVM_LV=vg00/swap LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 rd_LVM_LV=vg00/root crashkernel=auto crashkernel=auto console=ttyS0,115200 rd_NO_DM
    initrd /initramfs-2.6.32-358.el6.x86_64.img
  • Now can remove tboot, as not in use by grub.





How to install RPM ignore conflicts

How to install RPM ignore conflicts


#rpm -Uvh --force ***.rpm

How to check cpu current frequency

How to check cpu current frequency

#cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq


or 

#cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq

2014年3月11日 星期二

How to clone ESXi with USB key

How to clone ESXi with USB key

dd if=/dev/sda of=/dev/sdb bs=32M
(sda=>Source ,sdb=> new usb key)

2014年3月10日 星期一

Linux IOmeter

2016/04/22 update

Linux IOmeter

#vim src/IOPerfmance.h
 第一百行,刪除字串 defined(IOMTR_OS_LINUX) ||
(1.1.0正式版不用)


Choose and copy Makefilecp Makefile-Linux.x86_64 Makefile
Compile
# make all

# ./dynamo  -i  192.168.1.100(Client)  -m  192.168.1.1 (SUT)  

-m 跑dynamo那台ip
-i   開啟iometer主控的那台ip


記得先關閉防火牆 service iptables stop

Uninstall
# make clean

  



2014年2月26日 星期三

How to flash BMC under Linux 6.4/6.5 later OS

How to flash BMC under Linux 6.4 later OS             2015/8/7 update

1.#Service ipmi start
2.# echo "remove,kcs,i/o,0xca2,rsp=1,rsi=1,rsh=0,irq=0,ipmb=0"  >  /sys/module/ipmi_si/parameters/hotmod
3.#Service ipmi stop
4.#./Yafuflash -kcs  XXX.bin 

How to stop/disable watchdog timer under OS

How to stop/disable watchdog timer under OS


Remote ipmitool
Check watchdog status
D:\IPMITOOL1811>IPMITOOL -I lanplus -H 192.168.1.150 -U root -P superuser mc watchdog get

Stop watchdog
D:\IPMITOOL1811>IPMITOOL -I lanplus -H 192.168.1.150 -U root -P superuser mc watchdog off

----------------------------------------------------------------------------------------------------------------------
Windows Local
Check watchdog status
D:\IPMITOOL1811>IPMITOOL -I ms watchdog get    (-大寫i)

Stop watchdog
#ipmitool mc watchdog off

----------------------------------------------------------------------------------------------------------------------
RHEL 
Check watchdog status
#Service bmc-watchdog status

Stop watchdog
#Service bmc-watchdog stop
------------------------------------------------------------------------------------------------------------------------
SLES 
Check watchdog status
#ipmitool bmc watchdog get

Stop watchdog
#ipmitool bmc watchdog off




2014年1月17日 星期五

stressapptest

stressapptest

20141225 update

download latest package 1.0.7
https://drive.google.com/folderview?id=0B9osgFjBr2UyaWdiWndZUFZrTzg&usp=sharing#list

1. Install stressapptest      
 "#tar zxvf stressapptest-1.0.7_autoconf.tar.gz"      
 #./configure   
 "#make
#sudo make install"      
2. Execute stressapptest      
 #stressapptest -s 172800 -M 1024 -m 8 -i 8 -C 8 -W -n 127.0.0.1 --listen  -f /tmp/file1 -f /tmp/file2 -d /dev/sdb -c 4 -l  /var/log/stressapptest.log      
       
       
  -s 172800    =>Run time in seconds      
  -M 1024 -m 8 -i 8  => -M memory size      
  -C 8  => number of memory CPU stress threads to run    =>This number can be set to 256, if your CPU is powerful
  -W =>Use more CPU-stressful memory copy      
  -n 127.0.0.1 --listen => Network stress      
  -f /tmp/file1 -f /tmp/file2 =>File copy       
  -d /dev/sdb -c 4 =>Stress disk      
  -l  /var/log/stressapptest.log  =>record log      
       
3. When running stress, run "top" to check CPU & memory usage      

Check if windows system support trim for SSD

Check if windows system support trim for SSD

1.Open cmd
2.#fsutil behavior query disabledeletenotify
3.DisableDeleteNotify=0 => Already enable trim

2014年1月16日 星期四

ESXi SRIOV

ESXi SRIOV fuction


1.Upload driver(Including all folder and file under "ixgbe-3.18.7" to datastore)
2.Enter VM to maintain mode (Right click vm host under vsphere=>Enter manintain mode)


3.Execute CLI command: (Enable ESXi shell)

   #esxcli software vib install -v /vmfs/volume/datastore/xxx.vib         (必須用絕對路徑)
4.#esxcli system module parameters set -m ixgbe -p "max_vfs=8,8"

If you have more NIC card, execute
#esxcli system module parameters set -m ixgbe -p "max_vfs=8,8,8,8"

5.Reboot


(By my experince ,SRIOV total number cannot over 52 clients)

TEMP-2026

 123