Skip to content

Commit 71d0384

Browse files
helqgonsie
authored andcommitted
Adding "don't mess with the msg state" faq suggestion
1 parent 77372a3 commit 71d0384

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

_posts/2021-12-21-usage-faq.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,3 +221,17 @@ A quick list of Answered Questions for new people (and not so much) to ROSS.
221221
are created or create several different pools for every single event type
222222
(challenging to support cleanly and also very inefficient - will lead to more
223223
problems than it solves), and so on and on.
224+
225+
- My model produces correct results in serial mode but it glitches on optimistic mode. No,
226+
it's not segfaulting. It runs, but its output is weird. The more ranks/cores I use the
227+
more it fails. What is happening?
228+
229+
There are many possible reasons for this to be happening, but one that has made almost
230+
every ROSS developer suffer is _messing with the message state_. Sometimes reverse
231+
computation is not enough to reverse an LP state. You decide to encode some
232+
information in the message, so that if you have to rollback you just decode the
233+
information into the LP state. This is how everybody does it, and it works, but
234+
there's a catch: you have to make sure to clean the state of the message/event on
235+
rollbacks too. Events are not automatically cleansed on a rollback. Remember: in
236+
rollbacks both the LP state and the contents of the message have to be brought to
237+
their previous state.

0 commit comments

Comments
 (0)