Commit 4af48245 authored by Kirill Smelkov's avatar Kirill Smelkov

X neotest: Also show target-latency for C-states

parent f694d643
#!/bin/bash -e #!/bin/bash -e
# neotest: run tests and benchmarks against FileStorage, ZEO and various NEO/py{sql,sqlite}, NEO/go clusters # neotest: run tests and benchmarks against FileStorage, ZEO and various NEO/py and NEO/go clusters
# Copyright (C) 2017 Nexedi SA and Contributors. # Copyright (C) 2017-2018 Nexedi SA and Contributors.
# Kirill Smelkov <kirr@nexedi.com> # Kirill Smelkov <kirr@nexedi.com>
# #
# This program is free software: you can Use, Study, Modify and Redistribute # This program is free software: you can Use, Study, Modify and Redistribute
# it under the terms of the GNU General Public License version 3, or (at your # it under the terms of the GNU General Public License version 3, or (at your
...@@ -603,14 +603,16 @@ system_info() { ...@@ -603,14 +603,16 @@ system_info() {
while read cpu; do while read cpu; do
is="`cat $sysidle/current_driver`/`cat $sysidle/current_governor_ro`:" is="`cat $sysidle/current_driver`/`cat $sysidle/current_governor_ro`:"
while read state; do while read state; do
# XXX add target residency?
is+=" " is+=" "
lat=`cat $state/latency` lat=`cat $state/latency`
res=`cat $state/residency`
test "`cat $state/disable`" = "1" && is+="!" || latmax=$(($lat>$latmax?$lat:$latmax)) test "`cat $state/disable`" = "1" && is+="!" || latmax=$(($lat>$latmax?$lat:$latmax))
is+="`cat $state/name`(${lat}μs)" is+="`cat $state/name`·${lat}/${res}"
done \ done \
< <(ls -vd $cpu/cpuidle/state[0-9]*) < <(ls -vd $cpu/cpuidle/state[0-9]*)
is+=" # elat/tres µs"
if [ "$is" != "$idlestr" ]; then if [ "$is" != "$idlestr" ]; then
idledump idledump
idlestr="$is" idlestr="$is"
......
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