You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The crew worker and mirai dispatcher are efficient with memory, consuming no more than a few megabytes. But the memory consumption of the local targets process kept increasing without an ostensible bound. 3 GB isn't necessarily alarming, but I will need to look into what is responsible for most of this memory.
I wonder if this could explain #1347 or #1329, and I wonder what would happen without crew.
The text was updated successfully, but these errors were encountered:
The pipeline took a lot longer to run (~7 hr), but memory usage looked more reasonable:
There is a mild surge at the beginning, a mild surge at around 10000s (presumably when all the dynamic branches of z are defined) and then another mild surge at the end. A max of 800 MB is pretty good.
Takeaways:
Something about crew + targets guzzles memory.
Something about targets alone is slow for this type of pipeline, and the slowness does not appear to have anything to do with crew or (1).
So we actually have 2 different unrelated performance problems.
As best I can tell for now, most of the memory is consumed by the internal data structures targets needs for bookkeeping. targets has an internal object oriented programming system which uses environments with S3 classes. With 32k targets, there are 32k+ nested environments, and those happen to take up a lot of memory in aggregate. Unless I am missing something in scaled-up examples, improving memory efficiency here would be a huge undertaking and may involve converting many of the internal data structures into compact C structs. Converting this thread to a discussion.
c.f. #1347 and #1329. I tried the following pipeline on a RHEL9 node:
Then I read and visualized the
autometric
logs:The
crew
worker andmirai
dispatcher are efficient with memory, consuming no more than a few megabytes. But the memory consumption of the localtargets
process kept increasing without an ostensible bound. 3 GB isn't necessarily alarming, but I will need to look into what is responsible for most of this memory.I wonder if this could explain #1347 or #1329, and I wonder what would happen without
crew
.The text was updated successfully, but these errors were encountered: