adds sims collection

This commit is contained in:
Joey Hess 2024-09-23 13:43:55 -04:00
parent 7bc8c2bfeb
commit 1aacf7ece4
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 27 additions and 5 deletions

View file

@ -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 <https://git-annex.branchable.com/sims/>
# SEE ALSO

5
doc/sims.mdwn Normal file
View file

@ -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]]

19
doc/sims/balanced.mdwn Normal file
View file

@ -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