Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

How to reduce CPU memory consumption? #19

Open
playerkk opened this issue May 1, 2018 · 3 comments
Open

How to reduce CPU memory consumption? #19

playerkk opened this issue May 1, 2018 · 3 comments

Comments

@playerkk
Copy link

playerkk commented May 1, 2018

With 32 MultiHouseEnv running in parallel, it consumes ~200G CPU memory. Which part costs most of the memory? Any suggestions of how to reduce the memory consumption? Thanks.

@ppwwyyxx
Copy link
Contributor

We have a coming version that puts a lot of the processing into C++ to save memory. However I remember that the current memory cost should be about 1G per house.

It may be related to the use of MultiHouseEnv -- it caches all the houses it has loaded so far. Using multiple instances of the single house Environment should save the memory.

Note that to use multiple instances of Environment you'll need to create multiple RenderAPI. See the recently added section in docs: https://github.com/facebookresearch/House3D/blob/master/INSTRUCTION.md#concurrency-issues

@playerkk
Copy link
Author

In my current implementation, I naively keep an instance of MultiHouseEnv in each agent (process), which costs a lot of memory. Thanks for sharing the trick of using Environment.

Also look forward to the updated version.

@playerkk
Copy link
Author

playerkk commented Jul 9, 2018

Will the updated version be available soon? Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants