2014年10月30日 星期四

How to run perfomance on Intel GPGPU(MIC) under linux

How to run perfomance on  Intel GPGPU(MIC) under linux

Please setup MPSS service first
http://lisoulin.blogspot.tw/2014/10/how-to-stress-intel-gpgpumic-under-linux.html

 A.Install Linpack
1.Dowload  linpack package from Intel website
https://software.intel.com/en-us/articles/intel-math-kernel-library-linpack-download
2.Copy l_lpk_p_11.2.0.003 to SLES OS
3.Unzip package
#tar zxvf  l_lpk_p_11.2.0.003.tgz

B.Install Intel® C++ Composer XE 2013
1.Dowload  Composer XE package from Intel website
https://software.intel.com/en-us/articles/redistributable-libraries-for-the-intel-c-and-fortran-composer-xe-2013-sp1-for-linux
2.Copy l_ccompxe_2013_sp1.4.211_redist to SLES OS
3.Unzip package
#tar zxvf  l_ccompxe_2013_sp1.4.211_redist.tgz
4.Install composer xe package
#cd l_ccompxe_2013_sp1.4.211_redist
#./install.sh
accept

C.Install micperf
1.Install micperf rpm
#cd /mpss-3.4.1/perf
#rpm -ivh *.rpm
2.Setup micperf
#cd /usr/src/micperf/micp-3.4.1
#./setup.py install

D.Setting environment
#export PYTHONPATH=/usr/src/micperf/micp-3.4.1
#echo $PYTHONPATH
#export MKLROOT=/linpack_11.2.0
#echo $MKLROOT
#source /root/bin/compileravars.sh intel64

E.Running Linpack
Running linpack with default parameter
#micprun -k linpack

The deafualt parameter will be
micprun -k linpack -p '--matrix_size 36864 --num_rep 3--lead_dim 36928'
The performance result is GFlops

Try to run linpack with different parameter to find out best GFlops value
#micprun -k linpack -p '--matrix_size 10000 --num_rep 3 --lead_dim 10000'

2014年10月7日 星期二

How to check sata link under linux

How to check sata link under linux

#dmesg | grep -i sata | grep link 

How to text TXT under linux (Old)

How to text TXT under linux     2015/06/03 update

TXT only support in BIOS legacy mode , not support UEFI mode.

  1. Install trousuers and trousers-devel
#rpm –ivh trousers-devel-0.3.4-4.e16.x86_64.rpm
  1. Unzip the tboot source code to a folder under root
Type the following command:
# tar -xzvf tboot.1.8.tar.bz2 -C /root
# cd /root/tboot-1.8/
  1. Browse to the tboot source code and execute “make all”
This compile successfully and generates a tboog.gz image which needs to be copied to the /boot folder.
Type the following command:
#cp /root/tboot-1.8/tboot/tboot.gz /boot/
#cp /root/tboot-1.8/tboot/tboot.syms /boot/
  1. Once tboot and the Linux kernel 3.1.5 is compiled and images are generated we should modify the menu.lst file in /boot folder. Just copy the existing boot entry and modify it like this 
a)      title Red Hat Enterprise Linux Sever  + TBOOT
b)       root (hd0,0)  --- # use what is there in your original menu.lst
c)       kernel /tboot.gz logging=serial,vga,memory
d)      module /vmlinuz-*.*.* root=/dev/VolGroup00/LogVol00  ro # use what is there in your original menu.lst
e)       module /initramfs-*.*.*.img # use what is there in your original menu.lst
1.1.1.1.2                    Booting tboot
Now reboot the system and select the Linux with Intel® Trusted Execution technology from the boot loader. Now your system should boot with a set of tboot messages to the Linux login prompt.



1.1.1    R. TXT.MeasuredLaunchEnvironment.Function

logged in as root
Proceed to the folder where tboot was extracted and compiled.
Browse to /tboot-1.6/utils folder
Execute the txt-stat utility in the terminal by typing “./txt-stat”<ENTER>   (dump log: ./txt-stat >> *.log)

Verify if the log mentions “Measured Launch : TRUE”


How to change monitor resolution under linux text mode

How to change monitor resolution under linux text mode


When you modify wrong VGA resolution, then you cannot login the graph mode
Try to modify under text mode

RHEL:
Delete the file
#rm -rf .config/monitor.xml
#reboot

SLES:
#sax2

How to check CPU/Memory watt by node manager

How to check CPU/Memory watt by node manager


test under linux

Check CPU watt
#ipmi-oem intelnm -h x.x.x.x -u root -p superuser get-node-manager-statistics domainid=1

Check Memory watt
#ipmi-oem intelnm -h x.x.x.x -u root -p superuser get-node-manager-statistics domainid=2

How to stress Intel GPGPU(MIC) under linux

How to stress Intel GPGPU(MIC) under linux (kncptu ,knc, ptu)    2015/3/13 update

MIC card test under RHEL
Dowload  latest MPSS package from Intel website
https://software.intel.com/en-us/articles/intel-manycore-platform-software-stack-mpss#lx34rel
1.Intall driver MPSS
2.#tar xvf mpss-3.2-rhel-6.0.tar

3.#yum install*.rpm          

4.#modprobe mic (If you can not load mic modules, please use old mpss version , mpss 3.4 has issue)
5.#micctrl --initdefaults

6.#micctrl --sshkeys=root mic0
7.#service mpss restart
8.#ssh mic0
If you cannot ssh to mic0, please use ip
#ifconfig=>check mic0 ip
#ssh x.x.x.x (mic0 ip)
9.#mkdir tmp
10.#exit
11.#scp ./KncPtuGen mic0:tmp
12.#ssh mic0 (password: "your SUT's password")
13.#cd tmp
14.#./KncPtuGen -P100
If system reboot automatically, please stop bmc watchdog
#service bmc-watchdog stop
If you want to retest, please go to step 7

/opt/mpss/3.4.1/sysroots/klom-mpss-linux/bin/micsmc-gui (RHEL)
This will open a graphical Linux application showing the temperature and power for the MIC cards


MIC card test under SLES
Dowload  latest MPSS package from Intel website

https://software.intel.com/en-us/articles/intel-manycore-platform-software-stack-mpss#lx34rel
1.Intall driver MPSS
2.#tar xvf mpss-3.2.suse-11.3.tar
vi /etc/modprobe.d/unsupported-modules  
(SLES 12=>vim /etc/modprobe.d/10-unsupported-modules)
=>allow_unsupported_modules 1
3.#zypper install *.rpm
4.#modprobe mic
5.#micctrl --initdefaults

6.#service mpss start
7.#ssh mic0
(If ssh requre password, please try  
to ssh ip directly)
8.#mkdir tmp
9.#exit
10.#scp ./KncPtuGen mic0:tmp

11.#ssh mic0
12.#cd tmp
13.#./KncPtuGen -P100
run ‘/opt/intel/mic/bin/micsmc-gui’  (SLES)   

This will open a graphical Linux application showing the temperature and power for the MIC cards