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
55cd6072
Commit
55cd6072
authored
Sep 12, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
cc7bb3c1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
18 deletions
+16
-18
go/neo/t/t.sh
go/neo/t/t.sh
+12
-12
go/neo/t/zhash.go
go/neo/t/zhash.go
+4
-6
No files found.
go/neo/t/t.sh
View file @
55cd6072
...
@@ -77,7 +77,7 @@ Sgo() {
...
@@ -77,7 +77,7 @@ Sgo() {
# -cpuprofile cpu.out
# -cpuprofile cpu.out
# -trace trace.out
# -trace trace.out
exec
-a
Sgo
\
exec
-a
Sgo
\
neo
-
trace
trace
.out
-log_dir
=
$log
storage
-cluster
=
$cluster
-bind
=
$Sbind
-masters
=
$Mbind
"
$@
"
&
neo
-
cpuprofile
cpu
.out
-log_dir
=
$log
storage
-cluster
=
$cluster
-bind
=
$Sbind
-masters
=
$Mbind
"
$@
"
&
}
}
...
@@ -288,10 +288,10 @@ bench1() {
...
@@ -288,10 +288,10 @@ bench1() {
# go run zhash.go --log_dir=$log -$hashfunc -useprefetch $url
# go run zhash.go --log_dir=$log -$hashfunc -useprefetch $url
}
}
echo
-e
"
\n
*** FileStorage"
#
echo -e "\n*** FileStorage"
for
i
in
$N
;
do
#
for i in $N; do
bench1
$fs1
/data.fs
#
bench1 $fs1/data.fs
done
#
done
# echo -e "\n*** ZEO"
# echo -e "\n*** ZEO"
# Zpy $fs1/data.fs
# Zpy $fs1/data.fs
...
@@ -318,13 +318,13 @@ done
...
@@ -318,13 +318,13 @@ done
# xmysql -e "SHUTDOWN"
# xmysql -e "SHUTDOWN"
# wait
# wait
#
echo -e "\n*** NEO/go"
echo
-e
"
\n
*** NEO/go"
#
NEOgo
NEOgo
#
for i in $N; do
for
i
in
$N
;
do
#
bench1 neo://$cluster@$Mbind
bench1 neo://
$cluster
@
$Mbind
#
done
done
#
xneoctl set cluster stopping
xneoctl
set
cluster stopping
#
wait
wait
# all ok
# all ok
trap
- EXIT
trap
- EXIT
...
...
go/neo/t/zhash.go
View file @
55cd6072
...
@@ -156,13 +156,13 @@ func zhash(ctx context.Context, url string, h hasher, useprefetch bool) (err err
...
@@ -156,13 +156,13 @@ func zhash(ctx context.Context, url string, h hasher, useprefetch bool) (err err
}
}
before
:=
lastTid
+
1
// XXX overflow ?
before
:=
lastTid
+
1
// XXX overflow ?
if
tru
e
{
if
fals
e
{
//
defer profile.Start(profile.TraceProfile).Stop()
defer
profile
.
Start
(
profile
.
TraceProfile
)
.
Stop
()
//defer profile.Start(profile.MemProfile).Stop()
//defer profile.Start(profile.MemProfile).Stop()
defer
profile
.
Start
(
profile
.
CPUProfile
)
.
Stop
()
//
defer profile.Start(profile.CPUProfile).Stop()
}
}
for
qqq
:=
0
;
qqq
<
3
0
;
qqq
++
{
for
qqq
:=
0
;
qqq
<
1
0
;
qqq
++
{
tstart
:=
time
.
Now
()
tstart
:=
time
.
Now
()
h
.
Reset
()
// XXX temp
h
.
Reset
()
// XXX temp
...
@@ -203,10 +203,8 @@ loop:
...
@@ -203,10 +203,8 @@ loop:
if
useprefetch
{
if
useprefetch
{
x
+=
" +prefetch"
x
+=
" +prefetch"
}
}
if
false
{
fmt
.
Printf
(
"%s:%x ; oid=0..%d nread=%d t=%s (%s / object) x=%s
\n
"
,
fmt
.
Printf
(
"%s:%x ; oid=0..%d nread=%d t=%s (%s / object) x=%s
\n
"
,
h
.
name
,
h
.
Sum
(
nil
),
oid
-
1
,
nread
,
δt
,
δt
/
time
.
Duration
(
oid
),
x
)
// XXX /oid cast ?
h
.
name
,
h
.
Sum
(
nil
),
oid
-
1
,
nread
,
δt
,
δt
/
time
.
Duration
(
oid
),
x
)
// XXX /oid cast ?
}
}
}
return
nil
return
nil
...
...
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