You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @shiguangzqz A memory leak in the pointcloud processing block is on the list of Known Issues. It dates back a long time. The link below, which is also quoted in the release notes regarding this known issue, contains advice about dealing with it.
this is my code :
void testGetData()
{
std::cout<<"test GetData"<<std::endl;
rs2::pointcloud pc;
}
while(100000)
{
testGetData();
}
when I run the testGetData fun more and more times, I find the process's Memory is bigger and bigger .I see the memory by top in linux.
This the top Data :
First:
top - 11:52:13 up 1 day, 21:31, 10 users, load average: 3.36, 3.13, 2.87
Tasks: 1 total, 1 running, 0 sleeping, 0 stopped, 0 zombie
%Cpu(s): 23.3 us, 13.3 sy, 0.0 ni, 63.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 8034040 total, 1421780 free, 1295924 used, 5316336 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 5738924 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
30785 root 20 0 158604 122352 8948 R 120.0 1.5 0:18.15 realsensetest
Second:
top - 11:52:56 up 1 day, 21:32, 10 users, load average: 3.54, 3.18, 2.90
Tasks: 1 total, 1 running, 0 sleeping, 0 stopped, 0 zombie
%Cpu(s): 23.8 us, 19.0 sy, 0.0 ni, 57.1 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 8034040 total, 1162672 free, 1554836 used, 5316532 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 5480028 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
30785 root 20 0 418332 382268 8948 R 75.0 4.8 1:00.26 realsensetest
Third:
top - 11:53:34 up 1 day, 21:32, 10 users, load average: 3.45, 3.20, 2.92
Tasks: 1 total, 1 running, 0 sleeping, 0 stopped, 0 zombie
%Cpu(s): 17.6 us, 5.9 sy, 0.0 ni, 70.6 id, 0.0 wa, 0.0 hi, 5.9 si, 0.0 st
KiB Mem : 8034040 total, 937304 free, 1780036 used, 5316700 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 5254852 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
30785 root 20 0 641960 605896 8948 R 100.0 7.5 1:38.00 realsensetest
The text was updated successfully, but these errors were encountered: