kyle-ip commented on issue #40738: URL: https://github.com/apache/arrow/issues/40738#issuecomment-2016399240
Hi @guozhans . Have you tried to release the memory pool: https://arrow.apache.org/docs/python/generated/pyarrow.MemoryPool.html#pyarrow.MemoryPool.release_unused I encountered a similar issue: Every time I used **pyarrow.parquet.ParquetDataset** to load parquet from S3, the memory usage continued to increase and cannot be released, so I used **release_unused** after the I/O operations: ```python import pyarrow as pa pool = pa.default_memory_pool() # ... pool.release_unused() ``` However, the occupied memory cannot be released immediately until I executed next time. On the other hand, it’s not sure how much memory can be released. -- 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]
