Commit 55cd6072 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent cc7bb3c1
......@@ -77,7 +77,7 @@ Sgo() {
# -cpuprofile cpu.out
# -trace trace.out
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() {
# go run zhash.go --log_dir=$log -$hashfunc -useprefetch $url
}
echo -e "\n*** FileStorage"
for i in $N; do
bench1 $fs1/data.fs
done
# echo -e "\n*** FileStorage"
# for i in $N; do
# bench1 $fs1/data.fs
# done
# echo -e "\n*** ZEO"
# Zpy $fs1/data.fs
......@@ -318,13 +318,13 @@ done
# xmysql -e "SHUTDOWN"
# wait
# echo -e "\n*** NEO/go"
# NEOgo
# for i in $N; do
# bench1 neo://$cluster@$Mbind
# done
# xneoctl set cluster stopping
# wait
echo -e "\n*** NEO/go"
NEOgo
for i in $N; do
bench1 neo://$cluster@$Mbind
done
xneoctl set cluster stopping
wait
# all ok
trap - EXIT
......
......@@ -156,13 +156,13 @@ func zhash(ctx context.Context, url string, h hasher, useprefetch bool) (err err
}
before := lastTid + 1 // XXX overflow ?
if true {
//defer profile.Start(profile.TraceProfile).Stop()
if false {
defer profile.Start(profile.TraceProfile).Stop()
//defer profile.Start(profile.MemProfile).Stop()
defer profile.Start(profile.CPUProfile).Stop()
//defer profile.Start(profile.CPUProfile).Stop()
}
for qqq := 0; qqq < 30; qqq++ {
for qqq := 0; qqq < 10; qqq++ {
tstart := time.Now()
h.Reset() // XXX temp
......@@ -203,10 +203,8 @@ loop:
if useprefetch {
x += " +prefetch"
}
if false {
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 ?
}
}
return nil
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment