gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit2d4be66f2d4be66fre-vendor Hybriel 5df4eb7e (GC: HL_GC_TABLE_LOAD knob, mission 406)mre2d4be66f/tests/realdata-070-bench.sh

1.4 KB

  1. #!/bin/bash
  2. # bench.sh <new|old> <port> [ENV=VAL …]: the app on its copy with every job done (TRACKER_SYNC=0), boot RSS (60 s after
  3. # listening), 200 signed-in page loads (load200.sh), RSS after, then stop (by PID). Output → real-<which>/bench-<label>.txt
  4. W=/media/STORAGE/projects/WorldAPI/tracker.worldapi.org; which=$1; port=$2; shift 2
  5. R=$W/.scratch/w070/real-$which; tree=$W; [ "$which" = old ] && tree=$W/.scratch/w070/oldtree
  6. sid=$(head -c 16 /dev/urandom | xxd -p); now=$(date +%s%3N)
  7. echo "{\"created\":$now,\"data\":{\"tag\":\"t\"},\"id\":\"$sid\",\"seen\":$now,\"user\":{\"id\":\"0mujqspn0aqb\"}}" > $R/sessions/$(printf %s "$sid" | sha256sum | cut -d' ' -f1)
  8. echo $sid > $R/sid
  9. cd $tree
  10. env "$@" TRACKER_PORT=$port TRACKER_URL=http://127.0.0.1:$port HL_HOST=127.0.0.1 TRACKER_WATCH=0 TRACKER_SYNC=0 \
  11. TRACKER_STORAGE=$R/storage/mpackdb TRACKER_SESSIONS=$R/sessions/ TRACKER_OLD_SHORT_IDS=$tree/data/old-short-ids.json \
  12. setsid ./bin/hybriel project.hl > $R/bench-server.log 2>&1 < /dev/null &
  13. pid=$!; echo $pid > $R/server.pid
  14. t0=$(date +%s)
  15. until curl -s -o /dev/null http://127.0.0.1:$port/; do sleep 1; done
  16. up=$(( $(date +%s) - t0 ))
  17. sleep 60
  18. echo "listening after ${up} s; boot RSS (60 s later): $(awk '/VmRSS/{printf "%.0f", $2/1024}' /proc/$pid/status) MB"
  19. $W/tests/realdata-070-load200.sh $which $port
  20. grep -i "nothing to do\|off\|error" $R/bench-server.log | head -12
  21. kill $pid; wait $pid 2>/dev/null; echo stopped

Branches

Latest commits

  • 2d4be66fre-vendor Hybriel 5df4eb7e (GC: HL_GC_TABLE_LOAD knob, mission 406)mre
  • 99e7c8b9tests: realdata-m035-radii, repro-t38, realdata-060-backfill ports from env (REAL_PORT, REAL_CHROME, REPRO_CHROME), defaults unchangedmre
  • 4625aa22re-vendor Hybriel 6f8a0689 (int 6–11: streaming cursors, #203 index heal + close() fix, fd403 listDir/cursor fds, hl:time browser side, hl:web batches 5+6)mre
  • a6dfd6ecdeploy: person-lookup gate (tracker#46)mre
  • 33ad4bd5Merge commit 'f57f64f'mre
  • 7d38cec4docker-compose: nofile 65536 (default soft 1024 refused boot: errno 24 in fs.listDir, Hybriel 528bc89f)mre
  • f57f64f0mission 046: report, LOGmre
  • 5965963adeploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
  • efe1b485mission 046: re-vendor Hybriel master 60b2817b (integration 8, #203): plugins mpackdb + web (bin/ git-ignored: hybriel, libhlrt.a, hlc.o, hlrt/ from native/zig-out)mre
  • 53099ffbmission 046: person page reads a slim per-title credit row cache (no whole-record fetch per credit); gate tests/person-lookup.mjsmre
  • 9b3828aemission 046a: report, LOGmre
  • 4b37356emission 046: franchise seed supersedeCollections reads the curated timelines once (10 s one-tick block at the end of boot)mre
  • ac6268e3mission 046a: re-vendor Hybriel 528bc89f (integration 6): plugins mpackdb/time/web (bin/ git-ignored)mre
  • 322b3293mission 046: photoQueue guard for non-row fetch results (damaged persons index)mre
  • e5b99aecmission 046: photoQueue in slices (people.hl photoQueueStart/Step, jobs.hl photoTick), tests/photoqueue.hlmre
  • 31dcf2admission 045: report, LOGmre
  • 9c3971d0tests/persons-skip-count.hlmre
  • 4d72e365mission 045mre
  • b9cae4c9slices: skip and count non-row values from range(); merge persons pass falls back to iterate; guard testmre
  • 3db7dc31merge w44-jobs-slices into w43-trkmemmre