-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathrt_check.bash
executable file
·70 lines (58 loc) · 2.13 KB
/
rt_check.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/env bash
#
# Copyright (c) 2019 European Spallation Source ERIC
#
# The program is free software: you can redistribute
# it and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 2 of the
# License, or any newer version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see https://www.gnu.org/licenses/gpl-2.0.txt
#
# Author : Jeong Han Lee
# email : jeonghan.lee@gmail.com
# Date : Monday, December 30 11:58:55 CET 2019
#
# version : 0.0.2
declare -gr SC_SCRIPT="$(realpath "$0")"
declare -gr SC_SCRIPTNAME=${0##*/}
declare -gr SC_TOP="${SC_SCRIPT%/*}"
declare -gr SC_LOGDATE="$(date +%y%m%d%H%M)"
# declare -gr SUDO_CMD=$(which sudo);
printf "\n>>> Current System Clock Source : it should be tsc.\n";
cat /sys/devices/system/clocksource/clocksource0/current_clocksource
printf "\n>>> Boot Cmdline \n";
cat /proc/cmdline
printf "\n>>> pidstat -C isolcpus\n"
pidstat -C isolcpus
printf "\n>>> Present CPU core \n"
cat /sys/devices/system/cpu/present
printf "\n>>> Isolated CPU core \n"
cat /sys/devices/system/cpu/isolated
printf "\n>>> System service : irqbalance\n"
systemctl status irqbalance
printf "\n>>> System service : tuned\n"
systemctl status tuned
printf "\n Tune Active Profile \n";
tuned-adm active
printf "\n Tune Realtime variable \n";
cat /etc/tuned/realtime-variables.conf
printf "\n Tune Realtime bootcmdline\n";
tail -n 2 /etc/tuned/bootcmdline
printf "\n>>> pidstat\n";
pidstat |grep " 0 [a-z,A-Z,0-9]"
pidstat |grep " 1 [a-z,A-Z,0-9]"
pidstat |grep " 2 [a-z,A-Z,0-9]"
pidstat |grep " 3 [a-z,A-Z,0-9]"
pidstat |grep " 4 [a-z,A-Z,0-9]"
pidstat |grep " 5 [a-z,A-Z,0-9]"
pidstat |grep " 6 [a-z,A-Z,0-9]"
pidstat |grep " 7 [a-z,A-Z,0-9]"
pidstat |grep " 8 [a-z,A-Z,0-9]"
pidstat |grep " 9 [a-z,A-Z,0-9]"