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
9f86eb40
Commit
9f86eb40
authored
Sep 28, 2017
by
Kirill Smelkov
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X bench += ioping
parent
5974c5fa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
go/neo/t/.gitignore
go/neo/t/.gitignore
+1
-0
go/neo/t/neotest
go/neo/t/neotest
+18
-0
go/xcommon/tracing/cmd/gotrace/gotrace.go
go/xcommon/tracing/cmd/gotrace/gotrace.go
+4
-0
No files found.
go/neo/t/.gitignore
View file @
9f86eb40
...
...
@@ -2,3 +2,4 @@
/var
/zhash
/zhash_go
/ioping.tmp
go/neo/t/neotest
View file @
9f86eb40
...
...
@@ -456,6 +456,20 @@ nrunpar() {
wait
$jobv
}
# bench_disk - print disk identification and benchmark direct (uncached) and cached random reads
bench_disk
()
{
echo
-e
"
\n
*** random direct (no kernel cache) 4K-read disk latency"
nrun ioping
-D
-i
0ms
-s
4k
-S
1024M
-w
3s
-q
-k
.
echo
-e
"
\n
*** random cached 4K-read disk latency"
# warmup so kernel puts the file into pagecache
for
i
in
`
seq
3
`
;
do
cat
ioping.tmp
>
/dev/null
done
nrun ioping
-C
-i
0ms
-s
4k
-S
1024M
-w
3s
-q
-k
.
}
#hashfunc=sha1
#hashfunc=adler32
hashfunc
=
crc32
...
...
@@ -493,6 +507,7 @@ bench_go() {
cmd_bench-local
()
{
echo
-e
">>> bench-local"
header
bench_disk
install_trap
gen_data
...
...
@@ -546,6 +561,9 @@ cmd_bench-cluster() {
echo
-e
"
\n
# client:"
on
$url
./neotest info-local
echo
-e
"
\n
*** server disk:"
bench_disk
echo
-e
"
\n
*** link latency:"
peer
=
`
python
-c
"import urlparse as p; u=p.urlparse(
\"
scheme://
$url
\"
); print u.hostname"
`
sizev
=
"56 1472"
...
...
go/xcommon/tracing/cmd/gotrace/gotrace.go
View file @
9f86eb40
...
...
@@ -31,6 +31,10 @@ XXX tracepoints this package imports
See package lab.nexedi.com/kirr/go123/tracing documentation on how to define
and use trace events in programs. XXX
TODO automatically turn every trace:event in an USDT probe so that they can be
traced from outside of the process too.
See e.g. https://github.com/iovisor/bcc/issues/327 for context.
FIXME build tags not taken into account
*/
package
main
...
...
Kirill Smelkov
@kirr
mentioned in commit
ee6c2796
·
Jul 12, 2018
mentioned in commit
ee6c2796
mentioned in commit ee6c27965586f214bf5af865fd60fddbc87b3253
Toggle commit list
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