Skip to content

Unpredictable and sporadic memory release #850

Description

@i-am-sijia

Describe the bug
Memory usage pattern can vary drastically when running the same model using the same code base on the same machine. For example, sometimes memory stacks up between mandatory tour scheduling segments (also observed in trip destination), sometimes it does not. Some times memory does not get released after a component is done before the next one starts.

This behavior is observed in more than one example model, also with more than one version of code base. So it seems to be not specific to a model or a version of code.

However, this seems to happen only in the Sharrow mode.

Below is an example of two model runs that are identical in everything except for memory pattern.

memory comp

To Reproduce
Steps to reproduce the behavior:

  1. Use the latest ActivitySim code
  2. Run in sharrow mode
  3. Run the full scale example MTC model
  4. Repeat

Expected behavior
It's desirable to have predictable and stable memory release.

Metadata

Metadata

Assignees

Labels

BugSomething isn't working/bug fPerformanceChanges that improve performance

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Punt
Status
ToDo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions