memory-maze icon indicating copy to clipboard operation
memory-maze copied to clipboard

Reducing FPS and Memory Usage

Open subho406 opened this issue 1 year ago • 1 comments

Hey, I am trying to use this environment with Sample Factory. My current setup is 12 CPUs, 80GB Memory, 1XA100 GPU. I'm training using Async PPO with a total of 24 parallel environment instances. However, I'm noticing extremely high environment step times and RAM usage, which is making it difficult for me to increase the number of environment instances beyond 24. Is there a way reduce the memory usage and the environment step times? Maybe the tricks used in the Sample Factory DMLab experiments to cache the level data might help? Thanks

subho406 avatar Jul 11 '23 20:07 subho406

That's strange, I have never noticed high RAM usage per environment. Are you sure it is the environment that is using up RAM, and not something else? The slowness of environments could be a side effect if something else is gobbling up the resources.

I suggest you try to benchmark the environment individually to confirm it is indeed the source of the problem.

If it were, it would be interesting to know, but in that case the issue would have to be raised with MuJoCo, since there is nothing resource-intensive that is happening in the memory-maze itself.

jurgisp avatar Jul 12 '23 07:07 jurgisp