matteosal opened a new issue, #21076:
URL: https://github.com/apache/incubator-mxnet/issues/21076

   This looks pretty bad:
   
   ```
   import mxnet as mx
   import os, psutil
   
   print('branch: ' + mx.runtime.get_branch())
   print('commit: ' + mx.runtime.get_commit_hash())
   
   def get_memory_usage():
        return psutil.Process(os.getpid()).memory_info().rss / 1e+6
   
   print(get_memory_usage())
   nd = mx.nd.ones([1000000, 1000])
   mx.ndarray.waitall()
   print(get_memory_usage())
   del(nd)
   mx.ndarray.waitall()
   print(get_memory_usage())
   ```
   output:
   ```
   branch: master
   commit: 1dba76998de3584bfa98c05989845ac08db2079a
   196.419584
   [16:47:01] 
/home/matteo/Git/mxnet-build/Build/Linux-x86-64/MKL/mxnet/src/storage/storage.cc:202:
 Using Pooled (Naive) StorageManager for CPU
   4195.528704
   4195.528704
   ```
   
   Psutil shows that memory is not released after the NDArray is destroyed 
(last print)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to