<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p></p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">Hi,</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"><br>
</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">I'm investigating high memory usage of my program: RSS varies between executions in range 20-50 GB, though it should be determenistic. I've found that all the memory is allocated
in this stack:</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"><br>
</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"></p>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
Allocated 17673781248 bytes in 556 allocations</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
cds_lfht_alloc_bucket_table3 from liburcu-cds.so.2.0.0</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
_do_cds_lfht_resize from liburcu-cds.so.2.0.0</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
do_resize_cb from liburcu-cds.so.2.0.0</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
call_rcu_thread from liburcu-qsbr.so.2.0.0</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
start_thread from libpthread-2.12.so</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
clone from libc-2.12.so</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
According pstack it should be quiescent state. Call thread waits on syscall:<br>
<div>syscall</div>
<div>call_rcu_thread</div>
<div>start_thread</div>
<div>clone</div>
<div><br>
</div>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
<span style="font-size: 12pt;">We use </span><span style="font-size: 12pt;">urcu-0.8.7, only rculfhash (QSBR). Is it some kind of leak in RCU or any chance I misuse it? What would you recommend to troubleshoot the situation?</span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
<span style="font-size: 12pt;"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
<span style="font-size: 12pt;">Eugene</span></div>
<br>
<p></p>
</div>
</body>
</html>