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
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
neoppod
Commits
7dafe756
Commit
7dafe756
authored
Oct 03, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ea1e0835
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
go/neo/t/neotest
go/neo/t/neotest
+10
-4
No files found.
go/neo/t/neotest
View file @
7dafe756
...
...
@@ -402,21 +402,27 @@ header() {
echo
"#
`
whoami
`
@
`
hostname
--fqdn
`
(
$myaddr
)"
;
# cpu
# XXX review and read about CPU idle states more
# XXX review and read about CPU idle states more XXX
# XXX +power consumption
# XXX show C states usage diff after each benchmark XXX + same for P-states XXX ? D-states ?
# XXX somehow show stats about turbo?
# XXX +cpufreq transition statistics (CPU_FREQ_STAT)
echo
-n
"# cpu: "
;
grep
"^model name"
/proc/cpuinfo |head
-1
|sed
-e
's/model name\s*: //'
find /sys/devices/system/cpu
-name
"cpu[0-9]*"
|
sort
-n
|
\
while
read
cpu
;
do
# XXX deduplicate cpu info - if it is the same as prev - print "----//----"
cpuname
=
`
basename
$cpu
`
f
=
"
$cpu
/cpufreq"
echo
"#
$cpuname
:"
echo
-e
"#
\t
Fscale:
`
cat
$f
/scaling_governor
`
[
`
fkghz
$f
/scaling_min_freq
`
-
`
fkghz
$f
/scaling_max_freq
`
]"
echo
-e
"#
\t
energy:
`
cat
$f
/energy_performance_preference
`
"
echo
-e
"#
\t
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
-en
"#
\t
idle/latency:"
find
$cpu
/cpuidle
-name
"state[0-9]*"
|
sort
-n
|
\
while
read
state
;
do
echo
-n
"
`
cat
$state
/name
`
(
`
cat
$state
/latency
`
μs)"
echo
-n
"
`
cat
$state
/name
`
(
`
cat
$state
/latency
`
μs)"
done
echo
# XXX warn if != "performance"
done
# disk under .
...
...
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