Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
115b25d2
Commit
115b25d2
authored
Mar 09, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
26ad577f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
go/neo/t/neotest
go/neo/t/neotest
+7
-4
No files found.
go/neo/t/neotest
View file @
115b25d2
...
@@ -201,7 +201,7 @@ init_fs() {
...
@@ -201,7 +201,7 @@ init_fs() {
dataset
=
# name of current dataset
dataset
=
# name of current dataset
dataset_size
=
# size parameter for current dataset
dataset_size
=
# size parameter for current dataset
ds
=
# top-level dir of current dataset
ds
=
# top-level dir of current dataset
neocluster
=
# NEO cluster name (different for different datasets to avoid confus
t
ion)
neocluster
=
# NEO cluster name (different for different datasets to avoid confusion)
# switch_dataset <name> <size> - switch benchmarking dataset to named with size
# switch_dataset <name> <size> - switch benchmarking dataset to named with size
switch_dataset
()
{
switch_dataset
()
{
...
@@ -539,7 +539,7 @@ system_info() {
...
@@ -539,7 +539,7 @@ system_info() {
echo
-n
"
${
myaddr4v
[0]
}
"
echo
-n
"
${
myaddr4v
[0]
}
"
test
"
${#
myaddr4v
[@]
}
"
-eq
1
||
echo
-n
" (+
$((${#
myaddr4v
[@]
}
-
1
))
·ipv4)"
test
"
${#
myaddr4v
[@]
}
"
-eq
1
||
echo
-n
" (+
$((${#
myaddr4v
[@]
}
-
1
))
·ipv4)"
echo
")"
echo
")"
echo
-ne
"uname:
\t
"
;
uname
-a
# XXX key name
echo
-ne
"uname:
\t
"
;
uname
-a
# cpu
# cpu
echo
-ne
"cpu:
\t
"
;
grep
"^model name"
/proc/cpuinfo |head
-1
|sed
-e
's/model name\s*: //'
echo
-ne
"cpu:
\t
"
;
grep
"^model name"
/proc/cpuinfo |head
-1
|sed
-e
's/model name\s*: //'
...
@@ -623,7 +623,10 @@ system_info() {
...
@@ -623,7 +623,10 @@ system_info() {
idledump
idledump
test
"
$freqstable
"
=
y
||
echo
"WARNING: cpu: frequency not fixed - benchmark timings won't be stable"
test
"
$freqstable
"
=
y
||
echo
"WARNING: cpu: frequency not fixed - benchmark timings won't be stable"
test
"
$latmax
"
-le
10
||
echo
"WARNING: cpu: C-state exit-latency is max
${
latmax
}
μs - up to that can add to networked and IPC request-reply latency"
test
"
$latmax
"
-le
10
||
{
echo
"WARNING: cpu: C-state exit-latency is max
${
latmax
}
μs - benchmark timings won't be stable"
echo
"WARNING: cpu: (up to that might be adding to networked and IPC request-reply latency)"
}
# disk under .
# disk under .
...
@@ -830,7 +833,7 @@ cpustat() {
...
@@ -830,7 +833,7 @@ cpustat() {
# XXX we assume cpuidle states are the same for all cpus and get list of them from cpu0
# XXX we assume cpuidle states are the same for all cpus and get list of them from cpu0
statev
=(
`
ls
-vd
${
cpuv
[0]
}
/cpuidle/state[0-9]
*
|xargs
-n
1
basename
`
)
statev
=(
`
ls
-vd
${
cpuv
[0]
}
/cpuidle/state[0-9]
*
|xargs
-n
1
basename
`
)
# get current [state]usage. usage for a state is summed ac
creso
all cpus
# get current [state]usage. usage for a state is summed ac
ross
all cpus
statev_usage
()
{
statev_usage
()
{
usagev
=()
usagev
=()
for
s
in
${
statev
[*]
}
;
do
for
s
in
${
statev
[*]
}
;
do
...
...
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