Organisationsocaml-multicoremulticore-bench41eee8 ()(lower-bound)

(lower-bound)

Link Copied
Code Copied

Logs

2024-10-13 10:51.57: New job: test ocaml-multicore/multicore-bench https://github.com/ocaml-multicore/multicore-bench.git#refs/heads/avoid-include (41eee82fd48033f4776d3f75dd5693eebba2176a) (linux-x86_64:(lower-bound))
Base: ocaml/opam:debian-12-ocaml-4.12@sha256:7217f08601ce7b0485a2195a56b2412ff32d5b038e3f1a25f2d1ff09957e503b
Opam project build


To reproduce locally:


git clone --recursive "https://github.com/ocaml-multicore/multicore-bench.git" -b "avoid-include" && cd "multicore-bench" && git reset --hard 41eee82f
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.12@sha256:7217f08601ce7b0485a2195a56b2412ff32d5b038e3f1a25f2d1ff09957e503b
# debian-12-4.12_opam-2.2
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/bin/opam-2.2 /usr/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
WORKDIR /src
RUN sudo chown opam /src
RUN cd ~/opam-repository && (git cat-file -e b876d7d37014df697368765c088aa86d24dc8b6b || git fetch origin master) && git reset -q --hard b876d7d37014df697368765c088aa86d24dc8b6b && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 multicore-bench.opam ./
RUN opam pin add -yn multicore-bench.dev './'
ENV DEPS="astring.0.8.5 backoff.0.1.1 base-bigarray.base base-bytes.base base-threads.base base-unix.base camlp-streams.5.0.1 cmdliner.1.1.0 conf-m4.1 cppo.1.6.1 csexp.1.3.2 domain-local-await.1.0.1 domain_shims.0.1.0 dune.3.14.0 fmt.0.8.7 jbuilder.1.0+beta20.1 logs.0.7.0 mdx.2.4.0 mtime.2.0.0 multicore-magic.2.1.0 ocaml.4.12.1 ocaml-base-compiler.4.12.1 ocaml-config.2 ocaml-options-vanilla.1 ocaml-version.2.4.0 ocamlbuild.0.14.0 ocamlfind.1.8.1 re.1.7.2 result.1.5 seq.0.2.2 stdlib-shims.0.1.0 thread-table.1.0.0 topkg.1.0.3 yojson.2.1.0"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.2 --depext-only -y multicore-bench.dev $DEPS
RUN opam install $DEPS
COPY --chown=1000:1000 . /src
RUN opam exec -- dune build @install @check @runtest && rm -rf _build


END-OF-DOCKERFILE
docker build .
END-REPRO-BLOCK


2024-10-13 10:51.57: Using cache hint "ocaml-multicore/multicore-bench-ocaml/opam:debian-12-ocaml-4.12@sha256:7217f08601ce7b0485a2195a56b2412ff32d5b038e3f1a25f2d1ff09957e503b-debian-12-4.12_opam-2.2-427895be547d7f2008e507744bf43993"
2024-10-13 10:51.57: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.12@sha256:7217f08601ce7b0485a2195a56b2412ff32d5b038e3f1a25f2d1ff09957e503b)
 (comment debian-12-4.12_opam-2.2)
 (user (uid 1000) (gid 1000))
 (env CLICOLOR_FORCE 1)
 (env OPAMCOLOR always)
 (workdir /src)
 (run (shell "sudo ln -f /usr/bin/opam-2.2 /usr/bin/opam"))
 (run (shell "opam init --reinit -ni"))
 (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
 (workdir /src)
 (run (shell "sudo chown opam /src"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "cd ~/opam-repository && (git cat-file -e b876d7d37014df697368765c088aa86d24dc8b6b || git fetch origin master) && git reset -q --hard b876d7d37014df697368765c088aa86d24dc8b6b && git log --no-decorate -n1 --oneline && opam update -u"))
 (copy (src multicore-bench.opam) (dst ./))
 (run (network host)
      (shell "opam pin add -yn multicore-bench.dev './'"))
 (env DEPS "astring.0.8.5 backoff.0.1.1 base-bigarray.base base-bytes.base base-threads.base base-unix.base camlp-streams.5.0.1 cmdliner.1.1.0 conf-m4.1 cppo.1.6.1 csexp.1.3.2 domain-local-await.1.0.1 domain_shims.0.1.0 dune.3.14.0 fmt.0.8.7 jbuilder.1.0+beta20.1 logs.0.7.0 mdx.2.4.0 mtime.2.0.0 multicore-magic.2.1.0 ocaml.4.12.1 ocaml-base-compiler.4.12.1 ocaml-config.2 ocaml-options-vanilla.1 ocaml-version.2.4.0 ocamlbuild.0.14.0 ocamlfind.1.8.1 re.1.7.2 result.1.5 seq.0.2.2 stdlib-shims.0.1.0 thread-table.1.0.0 topkg.1.0.3 yojson.2.1.0")
 (env CI true)
 (env OCAMLCI true)
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam update --depexts && opam install --cli=2.2 --depext-only -y multicore-bench.dev $DEPS"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam install $DEPS"))
 (copy (src .) (dst /src))
 (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
)


2024-10-13 10:51.57: Waiting for resource in pool OCluster
2024-10-13 10:51.58: Waiting for worker…
2024-10-13 10:51.59: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
HEAD is now at 41eee82 Avoid `include` of modules


(from ocaml/opam:debian-12-ocaml-4.12@sha256:7217f08601ce7b0485a2195a56b2412ff32d5b038e3f1a25f2d1ff09957e503b)
2024-10-13 10:52.00 ---> using "1cdbe15a8e96f0d3ba60a0c71b01b2e61dfe2ba44dec0093415cd80abaf592cd" from cache


/: (comment debian-12-4.12_opam-2.2)


/: (user (uid 1000) (gid 1000))


/: (env CLICOLOR_FORCE 1)


/: (env OPAMCOLOR always)


/: (workdir /src)


/src: (run (shell "sudo ln -f /usr/bin/opam-2.2 /usr/bin/opam"))
2024-10-13 10:52.00 ---> using "45011ded3453cbb02c3a65b8d91237a0019a1fbd7ec5522d81a4d282b6b1324d" from cache


/src: (run (shell "opam init --reinit -ni"))
Configuring from /home/opam/.opamrc and then from built-in defaults.
Checking for available remotes: rsync and local, git.
  - you won't be able to use mercurial repositories unless you install the hg command on your system.
  - you won't be able to use darcs repositories unless you install the darcs command on your system.


This development version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.2, which can't be reverted.
You may want to back it up before going further.


Continue? [y/n] y
[NOTE] The 'jobs' option was reset, its value was 39 and its new value will vary according to the current number of cores on your machine. You can restore the fixed value using:
           opam option jobs=39 --global
Format upgrade done.


<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2024-10-13 10:52.00 ---> using "282a2d67d54a97fa597c0a84826f47ff1109b6a9b47dc5f6f1a5a5ba166b21c6" from cache


/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-122-generic
The OCaml toplevel, version 4.12.1
2.2.1
2024-10-13 10:52.00 ---> using "1707bcdf8dc52706d44dbd0bc725fc0c573af7f8e9a5269e0c7340567fbae45c" from cache


/src: (workdir /src)


/src: (run (shell "sudo chown opam /src"))
2024-10-13 10:52.00 ---> using "7d0373663467e5c90c1af4a364324ec9597ecaf46cf91c6423198f2ba1077249" from cache


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "cd ~/opam-repository && (git cat-file -e b876d7d37014df697368765c088aa86d24dc8b6b || git fetch origin master) && git reset -q --hard b876d7d37014df697368765c088aa86d24dc8b6b && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
 * branch                  master     -> FETCH_HEAD
   75006f8c5e..ba44ffed3b  master     -> origin/master
b876d7d370 Merge pull request #26641 from polytypic/release-backoff-0.1.1


<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository


Everything as up-to-date as possible (run with --verbose to show unavailable upgrades).
However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
# Run eval $(opam env) to update the current shell environment
2024-10-13 10:52.00 ---> using "75f378dfe9b91a707f8eb4a91827da07e31a51c498f6c3f89cbe813f5e81f483" from cache


/src: (copy (src multicore-bench.opam) (dst ./))
2024-10-13 10:52.00 ---> using "9486e94bd82553aab61bb122ecdd74f51024bc40d4e8721edee243788b24ce31" from cache


/src: (run (network host)
           (shell "opam pin add -yn multicore-bench.dev './'"))
[multicore-bench.dev] synchronised (file:///src)
multicore-bench is now pinned to file:///src (version dev)
2024-10-13 10:52.00 ---> using "08e0474a19384d64a71b81a0fbd1490dce86d7a728f0f42b52e259c267c0d879" from cache


/src: (env DEPS "astring.0.8.5 backoff.0.1.1 base-bigarray.base base-bytes.base base-threads.base base-unix.base camlp-streams.5.0.1 cmdliner.1.1.0 conf-m4.1 cppo.1.6.1 csexp.1.3.2 domain-local-await.1.0.1 domain_shims.0.1.0 dune.3.14.0 fmt.0.8.7 jbuilder.1.0+beta20.1 logs.0.7.0 mdx.2.4.0 mtime.2.0.0 multicore-magic.2.1.0 ocaml.4.12.1 ocaml-base-compiler.4.12.1 ocaml-config.2 ocaml-options-vanilla.1 ocaml-version.2.4.0 ocamlbuild.0.14.0 ocamlfind.1.8.1 re.1.7.2 result.1.5 seq.0.2.2 stdlib-shims.0.1.0 thread-table.1.0.0 topkg.1.0.3 yojson.2.1.0")


/src: (env CI true)


/src: (env OCAMLCI true)


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "opam update --depexts && opam install --cli=2.2 --depext-only -y multicore-bench.dev $DEPS"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bookworm InRelease
- Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
- Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
- Get:4 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [188 kB]
- Fetched 291 kB in 0s (933 kB/s)
- Reading package lists...


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[multicore-bench.dev] synchronised (no changes)


[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 2).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.12.1).
[NOTE] Package ocaml is already installed (current version is 4.12.1).
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package base-threads is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).


The following system packages will first need to be installed:
    m4


<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>


+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "m4"
- debconf: delaying package configuration, since apt-utils is not installed


2024-10-13 10:52.00 ---> using "293b32224342b4dc41a26428608889efbe94b68b3211aabfd2309114728c8598" from cache


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "opam install $DEPS"))
[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 2).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.12.1).
[NOTE] Package ocaml is already installed (current version is 4.12.1).
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package base-threads is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
The following actions will be performed:
=== install 27 packages
  - install astring            0.8.5
  - install backoff            0.1.1
  - install base-bytes         base
  - install camlp-streams      5.0.1
  - install cmdliner           1.1.0
  - install conf-m4            1
  - install cppo               1.6.1
  - install csexp              1.3.2
  - install domain-local-await 1.0.1
  - install domain_shims       0.1.0
  - install dune               3.14.0
  - install fmt                0.8.7
  - install jbuilder           1.0+beta20.1
  - install logs               0.7.0
  - install mdx                2.4.0
  - install mtime              2.0.0
  - install multicore-magic    2.1.0
  - install ocaml-version      2.4.0
  - install ocamlbuild         0.14.0
  - install ocamlfind          1.8.1
  - install re                 1.7.2
  - install result             1.5
  - install seq                0.2.2
  - install stdlib-shims       0.1.0
  - install thread-table       1.0.0
  - install topkg              1.0.3
  - install yojson             2.1.0


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved camlp-streams.5.0.1  (cached)
-> retrieved astring.0.8.5  (cached)
-> retrieved backoff.0.1.1  (cached)
-> installed conf-m4.1
-> retrieved cppo.1.6.1  (cached)
-> retrieved cmdliner.1.1.0  (cached)
-> retrieved csexp.1.3.2  (cached)
-> retrieved domain-local-await.1.0.1  (cached)
-> retrieved domain_shims.0.1.0  (cached)
-> retrieved fmt.0.8.7  (cached)
-> retrieved logs.0.7.0  (cached)
-> retrieved mdx.2.4.0  (cached)
-> retrieved jbuilder.1.0+beta20.1  (cached)
-> retrieved mtime.2.0.0  (cached)
-> retrieved multicore-magic.2.1.0  (cached)
-> retrieved ocaml-version.2.4.0  (cached)
-> retrieved dune.3.14.0  (cached)
-> retrieved ocamlbuild.0.14.0  (cached)
-> retrieved ocamlfind.1.8.1  (cached)
-> retrieved re.1.7.2  (cached)
-> retrieved result.1.5  (cached)
-> retrieved seq.0.2.2  (cached)
-> retrieved stdlib-shims.0.1.0  (cached)
-> retrieved thread-table.1.0.0  (cached)
-> installed cmdliner.1.1.0
-> retrieved topkg.1.0.3  (cached)
-> retrieved yojson.2.1.0  (cached)
-> installed ocamlfind.1.8.1
-> installed base-bytes.base
-> installed ocamlbuild.0.14.0
-> installed jbuilder.1.0+beta20.1
-> installed re.1.7.2
-> installed cppo.1.6.1
-> installed topkg.1.0.3
-> installed mtime.2.0.0
-> installed astring.0.8.5
-> installed dune.3.14.0
-> installed domain_shims.0.1.0
-> installed stdlib-shims.0.1.0
-> installed result.1.5
-> installed thread-table.1.0.0
-> installed multicore-magic.2.1.0
-> installed camlp-streams.5.0.1
-> installed backoff.0.1.1
-> installed seq.0.2.2
-> installed ocaml-version.2.4.0
-> installed csexp.1.3.2
-> installed domain-local-await.1.0.1
-> installed fmt.0.8.7
-> installed yojson.2.1.0
-> installed logs.0.7.0
-> installed mdx.2.4.0
Done.
# Run eval $(opam env) to update the current shell environment
2024-10-13 10:52.00 ---> using "8957c53e1a3b5c2871892f1c2d0f3781c968bfd2d8f54e88c8256edf5bb94ca6" from cache


/src: (copy (src .) (dst /src))
2024-10-13 10:52.01 ---> saved as "cfe2f3ec359387de2fb4275f5f98c8b4c6e67b9014bfcf38cd1561f90b2dfbfc"


/src: (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
(cd _build/default/bench && ./main.exe -brief)
Atomic:
  ops over time/cas int:
    205.81 M/s
  ops over time/get:
    658.70 M/s
  ops over time/incr:
    263.11 M/s
  ops over time/push & pop:
    99.62 M/s
  ops over time/swap:
    148.37 M/s
  ops over time/xchg int:
    153.17 M/s
  time per op/cas int:
    4.86 ns
  time per op/get:
    1.52 ns
  time per op/incr:
    3.80 ns
  time per op/push & pop:
    10.04 ns
  time per op/swap:
    6.74 ns
  time per op/xchg int:
    6.53 ns
Atomic incr:
  ops over time/CAS, 1 domains:
    244.03 M/s
  ops over time/CAS with backoff, 1 domains:
    243.50 M/s
  ops over time/Incr, 1 domains:
    252.33 M/s
  time per op/CAS, 1 domains:
    4.10 ns
  time per op/CAS with backoff, 1 domains:
    4.11 ns
  time per op/Incr, 1 domains:
    3.96 ns
Bounded_q:
  messages over time/one domain:
    18.22 M/s
  time per message/one domain:
    54.88 ns
Hashtbl:
  operations over time/1 worker, 10% reads:
    16.83 M/s
  operations over time/1 worker, 50% reads:
    16.13 M/s
  operations over time/1 worker, 90% reads:
    20.58 M/s
  operations over time/2 workers, 10% reads:
    16.54 M/s
  operations over time/2 workers, 50% reads:
    16.11 M/s
  operations over time/2 workers, 90% reads:
    18.89 M/s
  operations over time/4 workers, 10% reads:
    12.89 M/s
  operations over time/4 workers, 50% reads:
    15.58 M/s
  operations over time/4 workers, 90% reads:
    19.17 M/s
  operations over time/8 workers, 10% reads:
    14.50 M/s
  operations over time/8 workers, 50% reads:
    14.73 M/s
  operations over time/8 workers, 90% reads:
    18.68 M/s
  operations over time/one domain, 10% reads:
    23.14 M/s
  operations over time/one domain, 50% reads:
    22.24 M/s
  operations over time/one domain, 90% reads:
    28.48 M/s
  time per operation/1 worker, 10% reads:
    59.41 ns
  time per operation/1 worker, 50% reads:
    62.01 ns
  time per operation/1 worker, 90% reads:
    48.60 ns
  time per operation/2 workers, 10% reads:
    120.92 ns
  time per operation/2 workers, 50% reads:
    124.15 ns
  time per operation/2 workers, 90% reads:
    105.88 ns
  time per operation/4 workers, 10% reads:
    328.17 ns
  time per operation/4 workers, 50% reads:
    256.78 ns
  time per operation/4 workers, 90% reads:
    208.68 ns
  time per operation/8 workers, 10% reads:
    551.79 ns
  time per operation/8 workers, 50% reads:
    542.96 ns
  time per operation/8 workers, 90% reads:
    428.29 ns
  time per operation/one domain, 10% reads:
    43.22 ns
  time per operation/one domain, 50% reads:
    44.97 ns
  time per operation/one domain, 90% reads:
    35.12 ns
Queue:
  messages over time/one domain:
    43.01 M/s
  time per message/one domain:
    23.25 ns
Ref with Mutex:
  ops over time/cas int:
    56.78 M/s
  ops over time/get:
    55.82 M/s
  ops over time/incr:
    55.82 M/s
  ops over time/push & pop:
    56.17 M/s
  ops over time/swap:
    54.80 M/s
  ops over time/xchg int:
    60.42 M/s
  time per op/cas int:
    17.61 ns
  time per op/get:
    17.91 ns
  time per op/incr:
    17.91 ns
  time per op/push & pop:
    17.80 ns
  time per op/swap:
    18.25 ns
  time per op/xchg int:
    16.55 ns
Ref with [@poll error]:
  ops over time/cas int:
    205.81 M/s
  ops over time/get:
    658.70 M/s
  ops over time/incr:
    316.16 M/s
  ops over time/push & pop:
    100.20 M/s
  ops over time/swap:
    142.51 M/s
  ops over time/xchg int:
    193.70 M/s
  time per op/cas int:
    4.86 ns
  time per op/get:
    1.52 ns
  time per op/incr:
    3.16 ns
  time per op/push & pop:
    9.98 ns
  time per op/swap:
    7.02 ns
  time per op/xchg int:
    5.16 ns
Stack:
  messages over time/one domain:
    46.27 M/s
  time per message/one domain:
    21.61 ns
Unix:
  blocking reads over time/1 worker:
    0.57 M/s
  time per blocking read/1 worker:
    1768.90 ns
2024-10-13 10:52.03 ---> saved as "50dd0d824c84b0c922e67e79ba1b1b0ddca69ad13bf5505fb89f41c72aab06a0"
Job succeeded
2024-10-13 10:52.04: Job succeeded