Open phil-skillwon opened 3 hours ago
@phil-skillwon Could you compile your test code (and possibly HPX) with -DHPX_WITH_SANITIZERS=On
, please? This should report memory leaks, if any. I'd be more than happy to assist in diagnosing and fixing those.
Recently, I’ve been validating the feasibility of using HPX as the foundational framework for our team's signal processing algorithm development. However, during testing, I noticed what seems to be a memory leak issue with HPX.
So, I wrote a separate test program using the TCP parcelport to test data interaction across multiple nodes and discovered what looked like a memory leak. But I’m not entirely sure, so I’m seeking your help here.
I used two nodes, running on two different hosts (Ubuntu 22.04 LTS), and the test code is as follows:
Node 0 is the root node. I observed the memory usage on both Node 0 and Node 1. Both hosts have 8GB of physical memory.
When the test program started, the memory usage on both nodes was about 0.4%. But after 1 hour, the memory usage on Node 0 increased to 0.7%, while the memory usage on Node 1 remained at 0.4%.
After about 24 hours, the memory usage on Node 0 reached 1.9%, while the memory usage on Node 1 remained at 0.4%. This looks like a memory leak.
Later, I modified the test code to run a single process on one host, and there was no increase in memory usage.
However, my test code is extremely simple, so it’s unlikely that the issue is due to my code. Could you help analyze this problem?