diff options
| author | eunhhu <[email protected]> | 2026-10-01 07:05:51 +0100 |
|---|---|---|
| committer | eunhhu <[email protected]> | 2026-10-01 07:05:51 +0100 |
| commit | 792b34a127de71abc73f4071e8a7363864eef170 (patch) | |
| tree | 09c70c9ca6b70d564eaac58fccf957ad25ae1fa6 /research/experiments/027-apps-sending/runs.sh | |
| parent | 0ad46603d88eccaefd250870109186f823e1845a (diff) | |
| download | pure-792b34a127de71abc73f4071e8a7363864eef170.tar.gz pure-792b34a127de71abc73f4071e8a7363864eef170.zip | |
Measure sending between two apps of a host: local outlet or link (112)
Two apps of one host, src sending one message for each of 1,000 items
in a burst event, 2,000 bursts a run, five rounds with the ways in
turns: the local outlet stores 1,141,642 sends a second at 1.17 us of
the host's CPU each, a loopback pure:// link to the host's own port
578,879 at 2.93 us (1.97 times the sends, 0.40 times the CPU). 017's
second stage asked for at least the link's rate at half its CPU or
less: it goes in. Every run checks dst's sum: each send came once.
Diffstat (limited to 'research/experiments/027-apps-sending/runs.sh')
| -rwxr-xr-x | research/experiments/027-apps-sending/runs.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/research/experiments/027-apps-sending/runs.sh b/research/experiments/027-apps-sending/runs.sh new file mode 100755 index 0000000..fe4dfda --- /dev/null +++ b/research/experiments/027-apps-sending/runs.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# The runs of docs/design/017's second stage, from the repository's root: +# two apps of one host, sending through the local outlet or over a +# loopback link, five rounds of 2,000 bursts (2,000,000 sends), the ways in +# turns, once the last minute's load is below 1.5. +set -e +out=research/experiments/027-apps-sending +until awk '{ exit !($1 < 1.5) }' /proc/loadavg; do sleep 10; done +echo "$(uptime)" > $out/2026-10-01-load.txt +make -s build/pure-serve +python3 $out/sends.py build/pure-serve 5 2000 > $out/2026-10-01-sends-linux-aarch64.jsonl +echo "$(uptime)" >> $out/2026-10-01-load.txt |
