<div dir="auto"><div>May I ask for self-education, how did you conclude memory leak, based on that, I guess, 'ps' output?<br><br><div data-smartmail="gmail_signature">--<br>  Mykola Ivanets</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пн, 10 серп. 2020, 10:48 користувач Richard W.M. Jones <<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>> пише:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm using nbdkit + the file plugin to serve NBD root filesystems for<br>
some machines, so I get to observe how it behaves for very long runs.<br>
I think this indicates a memory leak?<br>
<br>
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND<br>
 5038 root      20   0 4577220  16000    796 S   0.0  0.1  30:52.40 nbdkit<br>
 5592 root      20   0 4159224  11708    784 S   0.0  0.1  22:21.67 nbdkit<br>
<br>
Not sure how to easily diagnose this.  My thought was to force a<br>
coredump by sending a signal, but I don't know if these processes have<br>
a suitable rlimit.  I could also attach gdb.  Perhaps by looking at a<br>
dump of the memory we could get an idea of what structure leaks.<br>
<br>
Unfortunately also it's a very old version:<br>
<br>
$ rpm -qf /usr/sbin/nbdkit <br>
nbdkit-1.8.0-1.el7.x86_64<br>
<br>
Rich.<br>
<br>
-- <br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" rel="noreferrer noreferrer" target="_blank">http://people.redhat.com/~rjones</a><br>
Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com" rel="noreferrer noreferrer" target="_blank">http://rwmj.wordpress.com</a><br>
virt-top is 'top' for virtual machines.  Tiny program with many<br>
powerful monitoring features, net stats, disk stats, logging, etc.<br>
<a href="http://people.redhat.com/~rjones/virt-top" rel="noreferrer noreferrer" target="_blank">http://people.redhat.com/~rjones/virt-top</a><br>
<br>
_______________________________________________<br>
Libguestfs mailing list<br>
<a href="mailto:Libguestfs@redhat.com" target="_blank" rel="noreferrer">Libguestfs@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libguestfs" rel="noreferrer noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/libguestfs</a><br>
<br>
</blockquote></div></div></div>