mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
split demo in two seperate files
This commit is contained in:
parent
ebae439002
commit
321013c320
5 changed files with 11607 additions and 7790 deletions
|
@ -1,101 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# do not use this script
|
||||
# it is written only for internal reasons
|
||||
|
||||
MYPROMPT="/work/HermitCore> "
|
||||
|
||||
clear
|
||||
echo -n $MYPROMPT
|
||||
echo " # HermitCore extends the multi-kernel approach and combines it with unikernel" | randtype -m 2 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " # features while providing better programmability and scalability for " | randtype -m 2 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " # hierarchical systems." | randtype -m 0 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo ""
|
||||
echo -n $MYPROMPT
|
||||
echo " # By starting a HermitCore application, cores are be sperated from Linux and" | randtype -m 2 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " # a unikernel is be booted on these cores with the application." | randtype -m 2 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " # Consequently, HermitCore is a single-address space operating system which" | randtype -m 2 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " # promise a lower OS noise and better scalability." | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo ""
|
||||
echo -n $MYPROMPT
|
||||
echo " # Now, a quick test via HelloWorld" | randtype -m 0 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " hermit/usr/tests/hello" | randtype -m 0 -t 18,10000
|
||||
hermit/usr/tests/hello
|
||||
echo -n $MYPROMPT
|
||||
echo " # Linux' kernels messages show that CPU 1 is unplugged from Linux." | randtype -m 2 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " # After the termination of the HermitCore application, CPU 1 is" | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " # re-registered to the Linux system." | randtype -m 0 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " dmesg | tail -10" | randtype -m 1 -t 18,10000
|
||||
dmesg | tail -10
|
||||
echo -n $MYPROMPT
|
||||
echo " # HermitCore's kernel message is published at /sys/hermit/isle0/log" | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " cat /sys/hermit/isle0/log" | randtype -m 1 -t 18,10000
|
||||
cat /sys/hermit/isle0/log
|
||||
echo -n $MYPROMPT
|
||||
echo " # HermitCore supports OpenMP (including Intel's OpenMP Runtime)." | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " # The benchmark STREAM is used to show the mode of operation." | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " hermit/usr/benchmarks/stream" | randtype -m 0 -t 18,10000
|
||||
hermit/usr/benchmarks/stream
|
||||
echo -n $MYPROMPT
|
||||
echo " # Per default, only CPU 1 is used. This can be changed by setting" | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " # the environment variable HERMIT_CPUS." | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " HERMIT_CPUS=\"1-2\" hermit/usr/benchmarks/stream" | randtype -m 0 -t 18,10000
|
||||
HERMIT_CPUS="1-2" hermit/usr/benchmarks/stream
|
||||
echo -n $MYPROMPT
|
||||
echo " # In this example CPUs 1-2 are booted to run STREAM." | randtype -m 1 -t 18,10000
|
||||
#echo -n $MYPROMPT
|
||||
#echo " # Now, the same benchmark on Linux." | randtype -m 1 -t 18,10000
|
||||
#echo -n $MYPROMPT
|
||||
#echo " gcc -o stream_linux -O3 -fopenmp -mtune=native -march=native hermit/usr/benchmarks/stream.c" | randtype -m 0 -t 18,10000
|
||||
#gcc -o stream_linux -O3 -fopenmp -mtune=native -march=native hermit/usr/benchmarks/stream.c
|
||||
#echo -n $MYPROMPT
|
||||
#echo " OMP_NUM_THREADS=2 ./stream_linux" | randtype -m 0 -t 18,10000
|
||||
#OMP_NUM_THREADS=2 ./stream_linux
|
||||
echo $MYPROMPT
|
||||
echo -n $MYPROMPT
|
||||
echo " # Our test system is a NUMA system based on Intel's CPU E5-2650 v3" | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " numactl --hardware" | randtype -m 0 -t 18,10000
|
||||
numactl --hardware
|
||||
echo -n $MYPROMPT
|
||||
sleep 1
|
||||
echo " lscpu" | randtype -m 0 -t 18,10000
|
||||
lscpu
|
||||
echo -n $MYPROMPT
|
||||
echo " # HermitCore is able to boot an application on each NUMA node which we calle isles." | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " # The message passing interface iRCCE is supported for the inter-node communication." | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " # MPI support will be published soon. A prototyp exists already." | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " # The environment variable HERMIT_ISLE specifies on which isle the application will be started." | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " # The functionality will be demonstrated with a PingPong benchmark." | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " HERMIT_CPUS=1 HERMIT_ISLE=0 hermit/usr/benchmarks/RCCE_pingpong 2 533 0 1 &" | randtype -m 0 -t 18,10000
|
||||
HERMIT_CPUS=1 HERMIT_ISLE=0 hermit/usr/benchmarks/RCCE_pingpong 2 533 0 1 &
|
||||
sleep .3
|
||||
echo -n $MYPROMPT
|
||||
echo " HERMIT_CPUS=11 HERMIT_ISLE=1 hermit/usr/benchmarks/RCCE_pingpong 2 533 0 1" | randtype -m 1 -t 18,10000
|
||||
HERMIT_CPUS=11 HERMIT_ISLE=1 hermit/usr/benchmarks/RCCE_pingpong 2 533 0 1 &
|
||||
sleep 4
|
||||
#echo $MYPROMPT
|
||||
echo -n $MYPROMPT
|
||||
sleep .3
|
||||
echo " HermitCore (http://www.hermitcore.org) is an experimental platform. But try it out and send us a feedback!" | randtype -m 1 -t 18,10000
|
61
hermit/tools/demo_ircce.sh
Executable file
61
hermit/tools/demo_ircce.sh
Executable file
|
@ -0,0 +1,61 @@
|
|||
#!/bin/bash
|
||||
|
||||
# do not use this script
|
||||
# it is written only for internal reasons
|
||||
|
||||
MYPROMPT="~ > "
|
||||
|
||||
clear
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# HermitCore extends the multi-kernel approach and combines it with uni-\e[39m" | randtype -m 2 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# kernel features while providing better programmability and scalability\e[39m" | randtype -m 2 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# for hierarchical systems.\e[39m" | randtype -m 0 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo ""
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# By starting a HermitCore application, cores are be sperated from Linux and\e[39m" | randtype -m 2 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# a unikernel is be booted on these cores with the application.\e[39m" | randtype -m 2 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# Consequently, HermitCore is a single-address space operating system which\e[39m" | randtype -m 2 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# promise a lower OS noise and better scalability.\e[39m" | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo ""
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# Our test system is a NUMA system based on Intel's CPU E5-2650 v3\e[39m" | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " numactl --hardware" | randtype -m 0 -t 18,10000
|
||||
numactl --hardware
|
||||
echo -n $MYPROMPT
|
||||
sleep 1
|
||||
echo " lscpu" | randtype -m 0 -t 18,10000
|
||||
lscpu
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# HermitCore is able to boot an application on each NUMA node which we call\e[39m" | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# isles. The message passing interface iRCCE is supported for the inter-node\e[39m" | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# communication. MPI support will be published soon. A prototyp exists\e[39m" | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# already. The environment variable HERMIT_ISLE specifies on which isle the\e[39m" | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# application will be started.\e[39m" | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# The functionality will be demonstrated with a PingPong benchmark.\e[39m" | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " HERMIT_CPUS=1 HERMIT_ISLE=0 hermit/usr/benchmarks/RCCE_pingpong 2 533 0 1 &" | randtype -m 0 -t 18,10000
|
||||
HERMIT_CPUS=1 HERMIT_ISLE=0 hermit/usr/benchmarks/RCCE_pingpong 2 533 0 1 &
|
||||
sleep .6
|
||||
echo -n $MYPROMPT
|
||||
echo " HERMIT_CPUS=11 HERMIT_ISLE=1 hermit/usr/benchmarks/RCCE_pingpong 2 533 0 1" | randtype -m 1 -t 18,10000
|
||||
HERMIT_CPUS=11 HERMIT_ISLE=1 hermit/usr/benchmarks/RCCE_pingpong 2 533 0 1 &
|
||||
sleep 4
|
||||
#echo $MYPROMPT
|
||||
echo -n $MYPROMPT
|
||||
sleep .3
|
||||
echo -e " \e[92mHermitCore (\e[31mhttp://www.hermitcore.org\e[92m) is an experimental platform.\e[39m" | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92mBut try it out and send us a feedback!\e[39m" | randtype -m 1 -t 18,10000
|
75
hermit/tools/demo_omp.sh
Executable file
75
hermit/tools/demo_omp.sh
Executable file
|
@ -0,0 +1,75 @@
|
|||
#!/bin/bash
|
||||
|
||||
# do not use this script
|
||||
# it is written only for internal reasons
|
||||
|
||||
MYPROMPT="~ > "
|
||||
|
||||
clear
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# HermitCore extends the multi-kernel approach and combines it with\e[39m" | randtype -m 2 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# unikernel features while providing better programmability and scalability\e[39m" | randtype -m 2 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# for hierarchical systems.\e[39m" | randtype -m 0 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo ""
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# By starting a HermitCore application, cores are be sperated from Linux and\e[39m" | randtype -m 2 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# a unikernel is be booted on these cores with the application.\e[39m" | randtype -m 2 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# Consequently, HermitCore is a single-address space operating system which\e[39m" | randtype -m 2 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# promise a lower OS noise and better scalability.\e[39m" | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo ""
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# Now, a quick test via HelloWorld\e[39m" | randtype -m 0 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " hermit/usr/tests/hello" | randtype -m 0 -t 18,10000
|
||||
hermit/usr/tests/hello
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# Linux' kernels messages show that CPU 1 is unplugged from Linux.\e[39m" | randtype -m 2 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# After the termination of the HermitCore application, CPU 1 is\e[39m" | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# re-registered to the Linux system.\e[39m" | randtype -m 0 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " dmesg | tail -10" | randtype -m 1 -t 18,10000
|
||||
dmesg | tail -10
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# HermitCore's kernel message is published at /sys/hermit/isle0/log\e[39m" | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " cat /sys/hermit/isle0/log" | randtype -m 1 -t 18,10000
|
||||
cat /sys/hermit/isle0/log
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# HermitCore supports OpenMP (including Intel's OpenMP Runtime).\e[39m" | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# The benchmark STREAM is used to show the mode of operation.\e[39m" | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " hermit/usr/benchmarks/stream" | randtype -m 0 -t 18,10000
|
||||
hermit/usr/benchmarks/stream
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# Per default, only CPU 1 is used. This can be changed by setting\e[39m" | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# the environment variable HERMIT_CPUS.\e[39m" | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo " HERMIT_CPUS=\"1-2\" hermit/usr/benchmarks/stream" | randtype -m 0 -t 18,10000
|
||||
HERMIT_CPUS="1-2" hermit/usr/benchmarks/stream
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92m# In this example CPUs 1-2 are booted to run STREAM.\e[39m" | randtype -m 1 -t 18,10000
|
||||
#echo -n $MYPROMPT
|
||||
#echo -e " \e[92m# Now, the same benchmark on Linux.\e[39m" | randtype -m 1 -t 18,10000
|
||||
#echo -n $MYPROMPT
|
||||
#echo " gcc -o stream_linux -O3 -fopenmp -mtune=native -march=native hermit/usr/benchmarks/stream.c" | randtype -m 0 -t 18,10000
|
||||
#gcc -o stream_linux -O3 -fopenmp -mtune=native -march=native hermit/usr/benchmarks/stream.c
|
||||
#echo -n $MYPROMPT
|
||||
#echo " OMP_NUM_THREADS=2 ./stream_linux" | randtype -m 0 -t 18,10000
|
||||
#OMP_NUM_THREADS=2 ./stream_linux
|
||||
echo $MYPROMPT
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92mHermitCore (\e[31mhttp://www.hermitcore.org\e[92m) is an experimental platform.\e[39m" | randtype -m 1 -t 18,10000
|
||||
echo -n $MYPROMPT
|
||||
echo -e " \e[92mBut try it out and send us a feedback!\e[39m" | randtype -m 1 -t 18,10000
|
||||
|
5782
hermit/tools/hermit_ircce.json
Normal file
5782
hermit/tools/hermit_ircce.json
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue