[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-amd64/54988: possible memory leaks/swap problems
The following reply was made to PR port-amd64/54988; it has been noted by GNATS.
From: Andrew Doran <ad%netbsd.org@localhost>
Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost, mlh%goathill.org@localhost
Subject: Re: port-amd64/54988: possible memory leaks/swap problems
Date: Tue, 7 Apr 2020 22:12:21 +0000
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.
Main Index |
Thread Index |