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
9f86eb40
Commit
9f86eb40
authored
Sep 28, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X bench += ioping
parent
5974c5fa
Changes
3
Show 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 @@
...
@@ -2,3 +2,4 @@
/var
/var
/zhash
/zhash
/zhash_go
/zhash_go
/ioping.tmp
go/neo/t/neotest
View file @
9f86eb40
...
@@ -456,6 +456,20 @@ nrunpar() {
...
@@ -456,6 +456,20 @@ nrunpar() {
wait
$jobv
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=sha1
#hashfunc=adler32
#hashfunc=adler32
hashfunc
=
crc32
hashfunc
=
crc32
...
@@ -493,6 +507,7 @@ bench_go() {
...
@@ -493,6 +507,7 @@ bench_go() {
cmd_bench-local
()
{
cmd_bench-local
()
{
echo
-e
">>> bench-local"
echo
-e
">>> bench-local"
header
header
bench_disk
install_trap
install_trap
gen_data
gen_data
...
@@ -546,6 +561,9 @@ cmd_bench-cluster() {
...
@@ -546,6 +561,9 @@ cmd_bench-cluster() {
echo
-e
"
\n
# client:"
echo
-e
"
\n
# client:"
on
$url
./neotest info-local
on
$url
./neotest info-local
echo
-e
"
\n
*** server disk:"
bench_disk
echo
-e
"
\n
*** link latency:"
echo
-e
"
\n
*** link latency:"
peer
=
`
python
-c
"import urlparse as p; u=p.urlparse(
\"
scheme://
$url
\"
); print u.hostname"
`
peer
=
`
python
-c
"import urlparse as p; u=p.urlparse(
\"
scheme://
$url
\"
); print u.hostname"
`
sizev
=
"56 1472"
sizev
=
"56 1472"
...
...
go/xcommon/tracing/cmd/gotrace/gotrace.go
View file @
9f86eb40
...
@@ -31,6 +31,10 @@ XXX tracepoints this package imports
...
@@ -31,6 +31,10 @@ XXX tracepoints this package imports
See package lab.nexedi.com/kirr/go123/tracing documentation on how to define
See package lab.nexedi.com/kirr/go123/tracing documentation on how to define
and use trace events in programs. XXX
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
FIXME build tags not taken into account
*/
*/
package
main
package
main
...
...
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