From 1aacf7ece47a93686c155f51131fd5fe52bb1bae Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 23 Sep 2024 13:43:55 -0400 Subject: [PATCH] adds sims collection --- doc/git-annex-sim.mdwn | 8 +++----- doc/sims.mdwn | 5 +++++ doc/sims/balanced.mdwn | 19 +++++++++++++++++++ 3 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 doc/sims.mdwn create mode 100644 doc/sims/balanced.mdwn diff --git a/doc/git-annex-sim.mdwn b/doc/git-annex-sim.mdwn index 5888e8286a..3c83b52082 100644 --- a/doc/git-annex-sim.mdwn +++ b/doc/git-annex-sim.mdwn @@ -340,12 +340,10 @@ as passed to "git annex sim" while a simulation is running. * The [[git-annex-common-options]](1) can be used. -# HASKELL INTERFACE +# SIM FILE COLLECTION -There is also a Haskell interface to the simulation, -in the git-annex source tree in the Annex.Sim module. This allows -implementing simulations in pure Haskell code, without the overhead of -using a git repository. +git-annex includes a collection of sim files, +at # SEE ALSO diff --git a/doc/sims.mdwn b/doc/sims.mdwn new file mode 100644 index 0000000000..6987c0b0bb --- /dev/null +++ b/doc/sims.mdwn @@ -0,0 +1,5 @@ +This is a collection of sim files for the [[git-annex-sim]] command. + +[[!inline pages="./sims/* and !./sims/*/* +and !*/Discussion" actions=yes postform=yes postformtext="Add a new sim titled:" +show=0 feedlimit=10 archive=yes template=buglist]] diff --git a/doc/sims/balanced.mdwn b/doc/sims/balanced.mdwn new file mode 100644 index 0000000000..38764d791d --- /dev/null +++ b/doc/sims/balanced.mdwn @@ -0,0 +1,19 @@ +# size balanced preferred content sim +seed -4592890916829221843 +init foo +init bar +init baz +connect foo -> bar +connect foo -> baz +group bar test +group baz test +wanted bar sizebalanced=test +wanted baz sizebalanced=test +maxsize bar 20gb +maxsize baz 50gb +addmulti 10 bigfile 1GB 10GB foo +step 30 +add smallfile 500kb foo +step 1 +visit foo git-annex whereis +visit foo git-annex maxsize