question

Noah Z avatar image
0 Likes"
Noah Z asked Ben Wilson commented

Stats Collector Table Size Strategies?

I have a high throughput process flow only model where thousands of tokens are created daily and then ultimately sent to a sink a day or two later after a series of steps. I record information about each token in a stats collector that gets triggered just before the sink. All in all, for the desired model run length I would generate approximately 200k items.

I'm running into an issue where a few days into my simulation the stats collector table reaches ~75k rows and the model really slows down and can barely progress anymore. If I remove the link to write to the stats collector the model runs just fine without any slowdown. I'm wondering if there are any strategies the community might know for ways around this slowdown?


FlexSim 20.0.0
flexsim 20.0.0model speedstats collector
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Benjamin W2 avatar image Benjamin W2 commented ·

@noah.zenker, can you run the performance profiler and memory profiler and take snapshots of their results? Here is the documentation:

https://docs.flexsim.com/en/20.2/Reference/Tools/PerformanceProfiler/

https://docs.flexsim.com/en/20.2/Reference/Tools/MemoryProfiler/

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @noah.zenker, was jordan.johnson's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.

0 Likes 0 ·

1 Answer

·
Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered
I'd be interested to see your actual model. I haven't seen a slowdown like that with the stats collector before, unless the rows are being sorted. In that case, it will take longer and longer to sort new rows in to the table.

@benjamin.w2 has the right idea; the performance profiler may help you discover the issue best.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.