NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-amd64/54988: possible memory leaks/swap problems



On Sun, Apr 05, 2020 at 11:20:01PM +0000, MLH wrote:

>  Another thing I noticed is that it seems to lose memory the fastest
>  when text is scrolling in an xterm at high speed, such as building
>  sets, or building/installing pkgsrc binaries. If I hide the window
>  during those operations, the loss rate slows pretty dramatically.

I tried compiling some stuff with the output going to an xterm and sure
enough it starts to leak out of kmem-192:

$ vmstat -m | grep kmem-00192
kmem-00192   192  2911902   28        0 138662    0 138662 138662   0   inf    0
$ vmstat -C | grep kmem-00192 
kmem-00192     182    15    0   39   2939175    3245745   9.4    35909883  91.0

It wasn't leaking before that, so it's a good repro.  Looking with dtrace
there are many allocations happenning in the DRM code which is probably the
first place I'd look given that it's very X specific.  Will need to think
about it some more.

Andrew


Home | Main Index | Thread Index | Old Index