Commit 5419e478 authored by aumgn's avatar aumgn
Browse files

[migrations.org] Add more informations in the scheduling domains script

parent 151e956d
......@@ -216,19 +216,28 @@ This function will never be called at runtime and probably be optimized away by
flags_decl[SD_NUMA]=0x4000
for domain in /proc/sys/kernel/sched_domain/cpu0/domain*; do
echo -n "$(basename $domain) : "
echo -n "$(basename $domain): "
cat $domain/name
printf " imbalance_pct: "
cat $domain/imbalance_pct
printf " busy_factor: "
cat $domain/busy_factor
printf " cache_nice_tries: "
cat $domain/cache_nice_tries
flags=$(cat $domain/flags)
printf " Flags :\n"
printf " Flags:\n"
for k in "${!flags_decl[@]}"; do
if [[ $(( $flags & ${flags_decl[$k]} )) -ne 0 ]]; then
printf " $k\n"
fi
done
printf " Indexes :\n"
printf " Index of load exponential smoothing:\n"
printf " | busy | idle | newidle | wake | forkexec |\n"
printf " | %3d | %3d | %3d | %3d | %3d |\n" \
$(cat $domain/busy_idx) \
......@@ -239,21 +248,27 @@ This function will never be called at runtime and probably be optimized away by
done
#+END_SRC
On the mc2 :
:RESULTS:
On mc2
domain0 : MC
Flags :
domain0: MC
imbalance_pct: 117
busy_factor: 32
cache_nice_tries: 1
Flags:
SD_BALANCE_EXEC
SD_WAKE_AFFINE
SD_SHARE_PKG_RESOURCES
SD_LOAD_BALANCE
SD_BALANCE_FORK
SD_BALANCE_NEWIDLE
Indexes :
Index of load exponential smoothing:
| busy | idle | newidle | wake | forkexec |
| 2 | 0 | 0 | 0 | 0 |
domain1 : NUMA
Flags :
domain1: NUMA
imbalance_pct: 125
busy_factor: 32
cache_nice_tries: 2
Flags:
SD_BALANCE_EXEC
SD_WAKE_AFFINE
SD_NUMA
......@@ -262,11 +277,14 @@ domain1 : NUMA
SD_LOAD_BALANCE
SD_BALANCE_FORK
SD_BALANCE_NEWIDLE
Indexes :
Index of load exponential smoothing:
| busy | idle | newidle | wake | forkexec |
| 3 | 2 | 0 | 0 | 0 |
domain2 : NUMA
Flags :
domain2: NUMA
imbalance_pct: 125
busy_factor: 32
cache_nice_tries: 2
Flags:
SD_BALANCE_EXEC
SD_WAKE_AFFINE
SD_NUMA
......@@ -275,7 +293,7 @@ domain2 : NUMA
SD_LOAD_BALANCE
SD_BALANCE_FORK
SD_BALANCE_NEWIDLE
Indexes :
Index of load exponential smoothing:
| busy | idle | newidle | wake | forkexec |
| 3 | 2 | 0 | 0 | 0 |
:END:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment