From owner-freebsd-current@freebsd.org Tue Sep 26 12:45:31 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AB00FE09C7D for ; Tue, 26 Sep 2017 12:45:31 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 16FAE647C1 for ; Tue, 26 Sep 2017 12:45:30 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from freyja.zeit4.iv.bundesimmobilien.de ([87.138.105.249]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MEFIm-1e7rr90vxA-00FVl7 for ; Tue, 26 Sep 2017 14:45:23 +0200 Date: Tue, 26 Sep 2017 14:45:22 +0200 From: "O. Hartmann" To: freebsd-current Subject: net/asterisk13: memory leak under 12-CURRENT? Message-ID: <20170926144522.21e59cfe@freyja.zeit4.iv.bundesimmobilien.de> Organization: Walstatt MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:MVCegF916ppv2vJJgEYCgZVHKXTBGqbtsw7ewpUGF6CCYRfOu9R 8QNsv3OAoj6Qqt7DWCMa9Sw98pa//DcUrGcUaRek/ALaoddtBjZIt0Q5r8wrVOBW0aTrbLJ WrU2dMG5U8/OLO2cinFCyIO3HirF0S8RHGAMwqBxRXbqZFZ6wVHMpjqyKSy9uJ44vW6X8cy skHLIYRvARQPC4mQvv1+g== X-UI-Out-Filterresults: notjunk:1;V01:K0:u8n/067QGIo=:ZY03tsGOaInC9/E9cTo+hC d9D5K2mTqSiGnh1oDZfAW7d4Iwpwwq2b5MZbbhXFGginiFzvaYzz7bY3G714rz2Vlwfdhd3bf 4GrJa/RGShrZPKvg5geXNvQj313tA/hah5jCibHoTNajqYKu48GTd6T9pARtlyJsqn5hhOpYo CzIfACL8hI1z3n9lygqE4vPyZfDwif9IOltLgOoKMno+imN+JLceT4r+yoWf3JElwDkV1DhgO v38I3ac4NnLI1KRKLkw1APY8oNMtFsYDHuUYgVYvh4kfMSy9VaEOIyx+ZfUdyTV0HTIfjPGiU 3rUt/e4vkce3KXF0n7I0MKwS4+UoBRvDqnLNcCJpD9g4dygAi9BUdgXkAlMwEDtgkAM4pYkil hPDB/M62qXQxrNXU0uRFLq8loZclw91Yka3I39uGxDzX7brXjOMABd3TwEsJ8+sBrvxbNy/+o TQNfRSTPeKaqKauC1oy/vD08LFR3HhDbxoKLhaSVfdxIr0EXukMcY91MijBA81u3fRjxD9Bbw WEvJOQs4JJl17rsMDqWczH/jzn5VFMG6ScLodpT1RtiCCCU2VWdFpYUauof+dmB7CpumTYvA/ Eyq8PGAgjm+UkmKn7PF/SG501oc7d+ugFI3r1Ef5G2qJ3NrldbSi/n3JSSSonUA7ZVJxpKnL8 gBbjidanEb1XtNK1tFSc+pqofRJv7LbULIhyABdTsqZgwN8Owyu6VmQfhLCBonW2J6TufeM+o mpfKR2E1/OoH0dVV94YaEtYT8Jt8u/2nvIWhPmxRmznbypVzR+8ZUzG/ahFJTsi63f0Y4R0zh yb8joxUmUkJh43AeSbQbZi2XgENHPr+KfYFy2jzo9mCT4gCSlg= X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Sep 2017 12:45:31 -0000 Befor starting a PR I'd liek to ask for some advice to document a supposedly existent memory leak in net/asterisk13 and 12-CURRENT. Background: Running recent 12-CURRENT (FreeBSD 12.0-CURRENT #58 r323999: Tue Sep 26 06:18:27 CEST 2017 amd64) on a PCengine APU 2C4, equipted with 4GB of RAM and 4080 KB free after the most recent SeaBIOS has been started, I try to utilise a net/asterisk13 as PBX on that platform. Asterisk13 has been build via poudriere and is compiled with CLANG/LLVM, not GCC! When FreeBSD (NanoBSD) has been started, depending on the recent revision of the OS/Kernel, top shows ~3680 - 3705 MBytes of free memory. Starting net/asterisk13 via "service asterisk onestart" indicates an overall usage of up to 100 MBytes of memory. After having now run the Asterisk 13.17.2 daemon for two days resulted in ~ 3100 MBytes of free memory, while the asterisk daemon was still running and doing nothing. But performing several restarts on a freshly started box gives the same result after ~ 10 restarts - and even after stopping asterisk and let the system run for a couple of days doesn't free the memory. I stopped after 15 restarts or so watching the loss of memory after each restart of asterisk, so i came to the conclusion that there must be a memory leak somewhere. now i try to provide more informations as needed for a PR. Can someone help? Thanks in advance, Oliver