Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
e850ef38
Commit
e850ef38
authored
Oct 04, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f9fd75e6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
28 deletions
+26
-28
go/neo/t/neotest
go/neo/t/neotest
+26
-28
No files found.
go/neo/t/neotest
View file @
e850ef38
...
@@ -403,27 +403,43 @@ header() {
...
@@ -403,27 +403,43 @@ header() {
echo
-n
"# "
;
uname
-a
echo
-n
"# "
;
uname
-a
# cpu
# cpu
# XXX show C states usage diff after each benchmark XXX + same for P-states
# XXX +cpufreq transition statistics (CPU_FREQ_STAT)
echo
-n
"# cpu: "
;
grep
"^model name"
/proc/cpuinfo |head
-1
|sed
-e
's/model name\s*: //'
echo
-n
"# cpu: "
;
grep
"^model name"
/proc/cpuinfo |head
-1
|sed
-e
's/model name\s*: //'
syscpu
=
/sys/devices/system/cpu
syscpu
=
/sys/devices/system/cpu
sysidle
=
$syscpu
/cpuidle
sysidle
=
$syscpu
/cpuidle
cpuvabbrev
()
{
# cpuvabbrev cpu0 cpu1 cpu2 ... cpuN -> cpu[0-N]
test
$#
-le
1
&&
echo
"
$@
"
&&
return
min
=
""
max
=
""
while
[
$#
-ne
0
]
;
do
v
=
$1
shift
n
=
${
v
#cpu
}
test
-z
"
$min
"
&&
min
=
$n
&&
max
=
$n
continue
if
((
$n
!=
$max
+ 1
))
;
then
die
"cpuvabbrev: assert: nonconsecutive
$max
$n
"
fi
max
=
$n
done
echo
"cpu[
$min
-
$max
]"
}
freqcpuv
=()
# [] of cpu
freqcpuv
=()
# [] of cpu
freqstr
=
""
# text about cpufreq for cpus in ^^^
freqstr
=
""
# text about cpufreq for cpus in ^^^
freqdump
()
{
freqdump
()
{
test
"
${#
freqcpuv
[@]
}
"
=
0
&&
return
test
"
${#
freqcpuv
[@]
}
"
=
0
&&
return
echo
"#
${
freqcpuv
[*]
}
:
$freqstr
"
echo
"#
`
cpuvabbrev
${
freqcpuv
[*]
}
`
:
$freqstr
"
freqcpuv
=()
freqcpuv
=()
freqstr
=
""
freqstr
=
""
}
}
# ----//---- for cpuidle
idlecpuv
=()
# ----//---- for cpuidle
idlecpuv
=()
idlestr
=
""
idlestr
=
""
idledump
()
{
idledump
()
{
test
"
${#
idlecpuv
[@]
}
"
=
0
&&
return
test
"
${#
idlecpuv
[@]
}
"
=
0
&&
return
echo
"#
${
idlecpuv
[*]
}
:
$idlestr
"
echo
"#
`
cpuvabbrev
${
idlecpuv
[*]
}
`
:
$idlestr
"
idlecpuv
=()
idlecpuv
=()
idlestr
=
""
idlestr
=
""
}
}
...
@@ -459,28 +475,6 @@ header() {
...
@@ -459,28 +475,6 @@ header() {
< <
(
ls
-vd
$syscpu
/cpu[0-9]
*
)
< <
(
ls
-vd
$syscpu
/cpu[0-9]
*
)
idledump
idledump
#echo
#ls -vd $syscpu/cpu[0-9]* | \
#while read cpu; do
# # XXX deduplicate cpu info - if it is the same as prev - print "----//----"
# cpuname=`basename $cpu`
# f="$cpu/cpufreq"
# echo -n "# $cpuname: "
# echo -e "freq: `cat $f/scaling_driver`/`cat $f/scaling_governor` [`fkghz $f/scaling_min_freq` - `fkghz $f/scaling_max_freq`]"
# #echo -e "#\tenergy: `cat $f/energy_performance_preference`"
# echo -n "# $cpuname: "
# echo -en "idle: `cat $sysidle/current_driver`/`cat $sysidle/current_governor_ro`:"
# ls -vd $cpu/cpuidle/state[0-9]* | \
# while read state; do
# # XXX add target residency?
# echo -n " "
# test "`cat $state/disable`" = "1" && echo -n "!"
# echo -n "`cat $state/name`(`cat $state/latency`μs)"
# done
# echo
# # XXX warn if freq != stable
# # XXX warn if idle latency is too much
#done
# disk under .
# disk under .
mntpt
=
`
stat
-c
'%m'
.
`
# mountpoint of current filesystem
mntpt
=
`
stat
-c
'%m'
.
`
# mountpoint of current filesystem
...
@@ -563,6 +557,10 @@ hashfunc=crc32
...
@@ -563,6 +557,10 @@ hashfunc=crc32
# bench <url> - run benchmarks against URL
# bench <url> - run benchmarks against URL
bench
()
{
bench
()
{
# XXX show C states usage diff after each benchmark XXX + same for P-states
# XXX +cpufreq transition statistics (CPU_FREQ_STAT)
# XXX place=?
url
=
$1
url
=
$1
# nrun time demo-zbigarray read $url
# nrun time demo-zbigarray read $url
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment