aivika-distributed
Parallel distributed discrete event simulation module for the Aivika library
This package extends the aivika-transformers [1] package and allows running parallel distributed simulations.
It uses an optimistic strategy known as the Time Warp method. To synchronize the global virtual time,
it uses Samadi's algorithm.
Moreover, this package uses the author's modification that allows recovering the distributed
simulation after temporary connection errors whenever possible. For that, you have to enable explicitly
the recovering mode and enable the monitoring of all logical processes including the specialized Time Server process
as it is shown in one of the test examples included in the distribution.
With the recovering mode enabled, you can try to build a distributed simulation using ordinary computers connected
via the ordinary net. For example, such a distributed model could even consist of computers located in different
continents of the Earth, where the computers could be connected through the Internet. Here the most exciting thing
is that this is the optimistic distributed simulation with possible rollbacks. It is assumed that optimistic methods
tend to better support the parallelism inherited in the models.
You can test the distributed simulation using your own laptop, although the package is still destined to be
used with a multi-core computer, or computers connected in the distributed cluster.
There are additional packages that allow you to run the distributed simulation experiments by using
the Monte-Carlo method. They allow you to save the simulation results in SQL databases and then generate a report
or a set of reports consisting of HTML pages with charts, histograms, links to CSV tables, summary statistics etc.
Regarding the speed of simulation, the recent rough estimation is as follows. This estimation may change from
version to version. For example, in version 1.0 the rollback log was rewritten, which had a significant effect.
When simulating sequential models, the speed of single logical process of the distributed module in comparison with
the sequential aivika [2] module varies and depends essentially on the number of
simultaneously processed discrete events, or the number of simultaneously running discontinuous processes,
which is very close. If there are many simultaneous events, then the distributed module can be slower in 4-5 times only.
The more simultaneous events are defined in the model, the less is a gap in the speed between modules.
But if the simultaneous events are rare, then the distributed module can be slower even in 15 times,
where the sequential module can be exceptionally fast. At the same time, the message passing between the logical
processes can dramatically decrease the speed of distributed simulation, especially if the messages cause rollbacks.
Then it makes sense to define the time horizon parameter. Thus, much depends on the distributed model itself.
When residing the logical processes in a computer with multi-core processor, you should follow the next recommendations.
You should reserve at least 1 core for each logical process, or even reserve 2 cores if the logical process extensively
sends and receives messages. Also you should additionally reserve at least 1 or 2 cores for each computational node.
These additional processor cores will be used by the GHC run-time system that includes the garbage collector as well.
The Aivika distributed module creates a huge amount of short-living small objects. Therefore, the garbage collector
needs at least one core to utilize efficiently these objects.
You should compile your code with options -O2 and -threaded, but then launch it with run-time options +RTS -N.
\[1] <http://hackage.haskell.org/package/aivika-transformers>
\[2] <http://hackage.haskell.org/package/aivika>
| version | uploaded | uploader | changes | |
|---|---|---|---|---|
| 1.5.1 | 2024-06-29 13:28 UTC | DavidSorokin | +1/−1 lines, 1 filesPVP ok | |
| 1.5 | 2024-05-21 17:13 UTC | DavidSorokin | +64/−51 lines, 13 filesdep +vectordep ~aivikadep ~aivika-transformersdep ~distributed-processPVP ok | |
| 1.4 | 2018-05-06 12:25 UTC | DavidSorokin | +177/−64 lines, 9 filesPVP ok | |
| 1.3 | 2018-04-14 16:26 UTC | DavidSorokin | +629/−338 lines, 12 filesPVP ok | |
| 1.2 | 2018-03-24 07:56 UTC | DavidSorokin | +82/−38 lines, 6 filesPVP ok | |
| 1.1.2 | 2018-02-17 05:18 UTC | DavidSorokin | +17/−11 lines, 2 filesPVP ok | |
| 1.1.1 | 2018-02-03 05:17 UTC | DavidSorokin | +8/−3 lines, 3 filesPVP ok | |
| 1.1 | 2018-02-02 05:28 UTC | DavidSorokin | +47/−11 lines, 9 filesPVP ok | |
| 1.0 | 2017-11-11 03:50 UTC | DavidSorokin | +156/−46 lines, 7 filesdep +arrayPVP ok | |
| 0.8 | 2017-10-27 04:38 UTC | DavidSorokin | +17/−17 lines, 6 filesdep ~aivikadep ~aivika-transformersPVP ok | |
| 0.7.4.2 | 2017-10-04 05:36 UTC | DavidSorokin | +10/−5 lines, 2 filesPVP ok | |
| 0.7.4.1 | 2017-10-03 04:43 UTC | DavidSorokin | +15/−6 lines, 2 filesPVP ok | |
| 0.7.4 | 2017-09-06 05:37 UTC | DavidSorokin | +19/−5 lines, 3 filesPVP ok | |
| 0.7.3 | 2017-09-03 10:18 UTC | DavidSorokin | +1526/−12 lines, 16 filesPVP: major bump suggested | |
| 0.7.2 | 2017-08-26 15:22 UTC | DavidSorokin | +15/−2 lines, 5 filesPVP ok | |
| 0.7.1.1 | 2017-08-26 12:25 UTC | DavidSorokin | +350/−160 lines, 9 filesPVP: major bump suggested | |
| 0.7 | 2017-08-20 17:38 UTC | DavidSorokin | +110/−105 lines, 7 filesPVP ok | |
| 0.6 | 2017-07-09 10:15 UTC | DavidSorokin | +456/−7 lines, 9 filesdep +mwc-randomdep ~aivikadep ~aivika-transformersPVP ok | |
| 0.5 | 2017-06-10 14:37 UTC | DavidSorokin | +1426/−300 lines, 44 filesdep ~aivikadep ~aivika-transformersdep ~basePVP ok | |
| 0.3.1 | 2016-11-27 16:24 UTC | DavidSorokin | +16/−9 lines, 13 filesPVP ok | |
| 0.3 | 2016-11-27 06:12 UTC | DavidSorokin | +538/−239 lines, 18 filesPVP ok | |
| 0.2 | 2016-06-12 09:07 UTC | DavidSorokin | +104/−88 lines, 12 filesdep −bytestringdep ~aivikadep ~aivika-transformersPVP ok | |
| 0.1.3 | 2016-04-24 05:25 UTC | DavidSorokin | +823/−50 lines, 10 filesPVP: major bump suggested | |
| 0.1.1 | 2016-04-23 13:43 UTC | DavidSorokin | +2/−2 lines, 2 filesPVP ok | |
| 0.1 | 2016-04-23 08:44 UTC | DavidSorokin | +3500/−0 lines, 31 filesdep +aivikadep +aivika-transformersdep +basesetup-changed |
Dependencies of aivika-distributed-1.5.1
aivika >=6.0.0 6.1.1 → 6.2
| 2025-10-07 08:58 UTC | 6.2 | +43/−14 lines, 7 filesPVP ok |
| 2024-06-29 13:21 UTC | 6.1.1 | +1/−1 lines, 1 filesPVP ok |
| 2023-10-28 10:36 UTC | 6.1 | +60/−23 lines, 4 filesPVP ok |
| 2023-10-14 11:52 UTC | 6.0.0 | +493/−62 lines, 16 filesPVP ok |
| 2021-03-31 07:20 UTC | 5.9.1 outside bounds | +9/−9 lines, 6 filesdep ~mwc-randomPVP: major bump suggested |
showing 5 of 53 versions
aivika-transformers >=6.0.0 6.1 → 6.1.1
| 2024-06-29 13:24 UTC | 6.1.1 | +1/−1 lines, 1 filesPVP: major bump suggested |
| 2023-10-28 10:36 UTC | 6.1 | +57/−22 lines, 3 filesPVP ok |
| 2023-10-14 11:53 UTC | 6.0.0 | +158/−75 lines, 16 filesdep ~aivikaPVP ok |
| 2021-03-31 07:20 UTC | 5.9.1 outside bounds | +9/−9 lines, 5 filesdep ~aivikadep ~mwc-randomPVP: major bump suggested |
| 2018-12-21 11:02 UTC | 5.9 outside bounds | +50/−6 lines, 10 filesdep ~aivikadep ~basePVP ok |
showing 5 of 27 versions
array >=0.3.0.0 0.5.7.0 → 0.5.8.0
| 2024-09-08 07:13 UTC | 0.5.8.0 | +204/−8 lines, 6 filesdep ~basePVP ok |
| 2024-04-12 14:38 UTC | 0.5.7.0 | +34/−17 lines, 9 filesdep ~basePVP: major bump suggested |
| 2023-07-10 15:24 UTC | 0.5.6.0 | +159/−39 lines, 8 filesdep ~basenew-uploaderPVP ok |
| 2023-02-13 16:01 UTC | 0.5.5.0 | +8/−4 lines, 3 filesdep ~basenew-uploaderPVP ok |
| 2019-09-01 06:48 UTC | 0.5.4.0 | +33/−8 lines, 5 filesdep ~basesetup-changedPVP: major bump suggested |
showing 5 of 18 versions
base >=4.6.0.0 && <6 4.22.0.0 → 4.22.1.0
| 2026-12-01 12:38 UTC | 4.22.1.0 | +388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested |
| 2025-12-19 11:52 UTC | 4.22.0.0 | +886/−215 lines, 28 filesdep ~ghc-internalPVP ok |
| 2026-03-27 12:26 UTC | 4.21.2.0 | +10/−3 lines, 4 filesdep ~ghc-internalPVP ok |
| 2025-12-27 10:31 UTC | 4.21.1.0 | +17/−5 lines, 4 filesdep ~ghc-internalPVP ok |
| 2024-12-16 09:24 UTC | 4.21.0.0 | +1170/−396 lines, 39 filesdep ~ghc-internalPVP ok |
showing 5 of 61 versions
binary >=0.6.4.0 0.9.0.0 → 0.10.0.0
| 2018-08-02 10:08 UTC | 0.10.0.0 | +504/−101 lines, 10 filesdep +generic-derivingdep −tardep ~Cabaldep ~QuickCheckPVP ok |
| 2017-03-13 22:00 UTC | 0.9.0.0 | +245/−690 lines, 15 filesdep +tardep −base-orphansdep −binarydep −generic-derivingdep ~Cabaldep ~QuickCheckdep ~basePVP ok |
| 2025-01-28 16:34 UTC | 0.8.9.3 | +8/−3 lines, 3 filesPVP ok |
| 2024-04-12 15:16 UTC | 0.8.9.2 | +23/−9 lines, 5 filesPVP: major bump suggested |
| 2022-08-04 23:02 UTC | 0.8.9.1 | +13/−12 lines, 3 filesPVP ok |
showing 5 of 50 versions
containers >=0.4.0.0 0.8 → 0.8.1
| 2026-10-04 06:08 UTC | 0.8.1 | +8085/−5169 lines, 39 filesdep +template-haskell-liftdep ~arraydep ~deepseqPVP: major bump suggested |
| 2025-03-01 13:03 UTC | 0.8 | +8447/−7031 lines, 37 filesnew-uploaderPVP ok |
| 2023-09-27 12:15 UTC | 0.7 | +76/−33 lines, 3 filesPVP ok |
| 2023-09-28 04:21 UTC | 0.6.8 | +644/−184 lines, 17 filesdep ~basedep ~deepseqPVP: major bump suggested |
| 2023-02-01 03:11 UTC | 0.6.7 | +783/−229 lines, 20 filesPVP: major bump suggested |
showing 5 of 43 versions
distributed-process >=0.7.6 0.7.9 → 0.7.10
| 2026-10-13 23:32 UTC | 0.7.10 | +198/−33 lines, 7 filesPVP ok |
| 2026-09-21 17:16 UTC | 0.7.9 | +830/−421 lines, 10 filesdep +tasty-benchPVP: major bump suggested |
| 2025-02-05 01:53 UTC | 0.7.8 | +19/−9 lines, 4 filesdep −transformersdep ~containersdep ~template-haskellPVP ok |
| 2024-09-03 15:06 UTC | 0.7.7 | +85/−126 lines, 11 filesdep −old-localedep ~basedep ~binarydep ~bytestringsetup-changednew-uploaderPVP: major bump suggested |
| 2024-04-04 05:10 UTC | 0.7.6 | +6/−2 lines, 2 filesdep ~hashablePVP ok |
showing 5 of 41 versions
exceptions >=0.8.0.2 0.10.11 → 0.10.12
| 2026-01-10 20:26 UTC | 0.10.12 | +30/−7 lines, 4 filesdep ~QuickCheckdep ~template-haskellPVP ok |
| 2025-10-13 12:05 UTC | 0.10.11 | +86/−10 lines, 5 filesPVP ok |
| 2025-06-17 11:54 UTC | 0.10.10 | +22/−16 lines, 4 filesdep +tastydep +tasty-hunitdep +tasty-quickcheckdep −test-frameworkdep −test-framework-hunitdep −test-framework-quickcheck2dep ~QuickCheckPVP: major bump suggested |
| 2024-10-31 12:54 UTC | 0.10.9 | +51/−160 lines, 5 filesdep −faildep −transformers-compatdep ~QuickCheckdep ~basedep ~mtlPVP: major bump suggested |
| 2024-04-20 19:31 UTC | 0.10.8 | +1767/−1763 lines, 13 filesdep ~QuickCheckdep ~template-haskellsetup-changedPVP: major bump suggested |
showing 5 of 34 versions
mtl >=2.1.1 2.3.1 → 2.3.2
| 2025-12-08 04:58 UTC | 2.3.2 | +112/−21 lines, 12 filesdep ~basenew-uploaderPVP: major bump suggested |
| 2022-10-31 21:28 UTC | 2.3.1 | +188/−33 lines, 8 filesdep ~basePVP: major bump suggested |
| 2022-05-07 20:34 UTC | 2.3 | +1284/−520 lines, 29 filesdep ~basedep ~transformersnew-uploaderPVP ok |
| 2018-02-24 22:15 UTC | 2.2.2 | +152/−36 lines, 14 filesdep ~basePVP: major bump suggested |
| 2014-06-02 02:22 UTC | 2.2.1 | +179/−4 lines, 8 filesdep ~basedep ~transformersPVP: major bump suggested |
showing 5 of 20 versions
mwc-random >=0.13.1.0 0.15.2.0 → 0.15.3.0
| 2025-12-30 11:17 UTC | 0.15.3.0 | +158/−13 lines, 5 filesPVP: major bump suggested |
| 2025-01-18 14:56 UTC | 0.15.2.0 | +109/−59 lines, 7 filesdep ~doctestdep ~randomdep ~tasty-quickcheckPVP ok |
| 2024-07-09 17:21 UTC | 0.15.1.0 | +541/−130 lines, 13 filesdep +mtldep +tasty-benchdep +tasty-papidep −gaugedep ~basedep ~doctestdep ~math-functionsPVP: major bump suggested |
| 2021-08-15 14:44 UTC | 0.15.0.2 | +14/−14 lines, 4 filesdep ~doctestPVP: major bump suggested |
| 2020-08-08 17:20 UTC | 0.15.0.1 | +18/−5 lines, 3 filesdep ~doctestdep ~randomPVP ok |
showing 5 of 40 versions
random >=1.0.0.3 1.3.0 → 1.3.1
| 2025-04-04 14:25 UTC | 1.3.1 | +15/−6 lines, 3 filesPVP ok |
| 2025-01-06 04:03 UTC | 1.3.0 | +2410/−538 lines, 16 filesdep +data-array-bytedep ~basedep ~transformersPVP ok |
| 2024-12-14 20:31 UTC | 1.2.1.3 | +22/−37 lines, 3 filesdep −doctestdep −mwc-randomdep −unliftiodep ~basedep ~containersdep ~primitivePVP ok |
| 2024-02-04 16:26 UTC | 1.2.1.2 | +17/−12 lines, 2 filesdep ~doctestdep ~tastyPVP: major bump suggested |
| 2022-05-09 02:32 UTC | 1.2.1.1 | +8/−9 lines, 3 filesdep −ghc-byteorderdep ~bytestringdep ~doctestdep ~mtlPVP ok |
showing 5 of 15 versions
stm >=2.4.2 2.5.3.0 → 2.5.3.1
| 2024-04-12 15:34 UTC | 2.5.3.1 | +7/−3 lines, 3 filesdep ~basePVP: major bump suggested |
| 2023-11-17 23:47 UTC | 2.5.3.0 | +222/−123 lines, 6 filesPVP: major bump suggested |
| 2023-10-06 15:16 UTC | 2.5.2.1 | +11/−5 lines, 3 filesPVP ok |
| 2023-10-05 21:19 UTC | 2.5.2.0 | +258/−270 lines, 9 filesdep ~basePVP: major bump suggested |
| 2022-08-04 22:51 UTC | 2.5.1.0 | +42/−5 lines, 5 filesdep +semigroupsdep ~basePVP ok |
showing 5 of 24 versions
time >=1.5.0.1 1.16 → 1.16.0.1
| 2026-07-20 21:55 UTC | 1.16.0.1 | +1203/−148 lines, 25 filesPVP ok |
| 2026-05-03 08:43 UTC | 1.16 | +353/−64 lines, 29 filesdep +template-haskell-liftdep ~template-haskellPVP ok |
| 2025-08-04 16:22 UTC | 1.15 | +1407/−743 lines, 56 filesdep ~basedep ~deepseqdep ~template-haskellPVP ok |
| 2024-03-10 22:18 UTC | 1.14 | +6594/−5536 lines, 73 filesdep +template-haskelldep ~basePVP ok |
| 2021-10-18 05:36 UTC | 1.13 | +1279/−1589 lines, 59 filesdep ~basePVP ok |
showing 5 of 48 versions
vector >=0.10.0.1 0.13.1.0 → 0.13.2.0
| 2024-10-31 18:01 UTC | 0.13.2.0 | +5177/−672 lines, 53 filesdep −HUnitdep ~QuickCheckdep ~basedep ~doctestPVP: major bump suggested |
| 2023-10-07 13:35 UTC | 0.13.1.0 | +302/−238 lines, 22 filesdep ~QuickCheckdep ~basedep ~doctestnew-uploaderPVP: major bump suggested |
| 2022-06-19 19:35 UTC | 0.13.0.0 | +19079/−19259 lines, 70 filesdep +tasty-benchdep +tasty-inspection-testingdep +vector-streamdep −faildep −ghc-primdep −semigroupsdep ~basedep ~doctestdep ~primitivePVP ok |
| 2021-09-21 16:21 UTC | 0.12.3.1 | +265/−191 lines, 13 filesdep ~basedep ~deepseqdep ~doctestPVP ok |
| 2021-04-06 19:54 UTC | 0.12.3.0 | +1218/−39 lines, 11 filesdep ~basedep ~ghc-primPVP ok |
showing 5 of 43 versions
Reverse dependencies
1 packages depend on aivika-distributed