From owner-freebsd-questions@FreeBSD.ORG Fri May 29 14:20:39 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E3495103 for ; Fri, 29 May 2015 14:20:39 +0000 (UTC) (envelope-from lokadamus@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 730FA1B8D for ; Fri, 29 May 2015 14:20:39 +0000 (UTC) (envelope-from lokadamus@gmx.de) Received: from [192.168.0.143] ([95.91.226.171]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0Lh7PL-1ZV93D04m7-00oXzN; Fri, 29 May 2015 16:20:36 +0200 Message-ID: <556875B1.2000203@gmx.de> Date: Fri, 29 May 2015 16:20:33 +0200 From: "lokadamus@gmx.de" User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Doug Hardie , FreeBSD - Subject: Re: Swap exhaustion References: <1CD13C1C-5344-4909-A061-F25FBB86AFF9@lafn.org> In-Reply-To: <1CD13C1C-5344-4909-A061-F25FBB86AFF9@lafn.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:qxTVz4QbmQ8I21JwuOgrkvT6V7sVmmFHP5xRT1w3BTgpnWmRW/P B9hkC0tw+5aVUzA3i/vHKkhH6JDByo+sVLxQ6lZfyeDWh4pYi7Fffp2B9eZkYaUmXx6r4wA AP8HTMMlQOY3cNJ131bnlC7aj4iUZmb6zkIoA08MSSMYkoqo1iKsPsJIvnVlfuCOBmEUq6Z eh0j2j4N96M1X/ElkfNrg== X-UI-Out-Filterresults: notjunk:1;V01:K0:SvY6zDEKxWA=:N8YYTQRhW0uOGSph38HIVk XkNIgTR1kGjeVpu4gJ7o1PWiM92ihiSPQcJcox8o1MAcHKG3SPj65u94TxmvLlgr7R8qEGGVp broI66+Sr3WLJ3uWrDHOW8xRt82SZHhIT15pzkrYNNzDlDGmuaQs1jGsDKShZqVi89NKcm9NP 6NLZXLhUzB/q0vAMkuAPDt1rFBghzzuhR6ukGzx9FmRw2yz39Y9DRwZ2CF2zZeat3kJoPE0J2 vNJAth9xz0yow2KQ5Qnjg1YfewkF0irFWcmljueRoxx2G9E3eYrHSMZCKhHhV1u6eUaRE8TAh CCb22XiiZvAeaOueSq2DF3FlPjHYVirDaHo487CP6cD0NsL2kxxJD/FQKgqvzoWHjVHDRcfqN sqT3IE4Fzrh3z8WDzskq4LD7Z2De1nZav4GB5A1KzaL0YVFpBFa8xJFzh8c3W3xgj3GDC2s/Z Czs75Q8msocZRvX8aTKhYIaiFcoDenT7kllOQOU1XNb7JqHVjrVnLTAUliA604DrqF0xh75YN oxdl3RikTT48kS0L1xL6hF9mETpTZXvQYSXJ3Of8RgL9E6FlyM6skObFy4AImKOpvM/oLLtib quaYGqYDubHY+rpc0c8hetGbdp5du4+drvTYoScpK7yl4Z/cpFO9HahQliRmGjYDA6cqGBP/W Mhj0ipauOQHAYXdSHwMj/vYr27A5XlDYMdmoXKXZ9xFO4KMInJwoSilU1g8QSZZM5A4ZYlCsr 15BlYLWmVdDWMs8F X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 May 2015 14:20:40 -0000 On 05/28/15 01:49, Doug Hardie wrote: > I have a process that is eating up 6 GB of swap space. At that point, FreeBSD 9.3 terminates a process. However, occasionally its not the one eating up the space. When I manually quit the process then the swap space returns to a few KB used. The system runs fine after that. > > I have very little knowledge of what this process is doing internally but would like to know what might be causing this issue. There are 5 of these processes running (parent plus 4 children). Normally each uses about 90 MB RES/SIZE. However when the problem occurs they are about 2GB RES/SIZE each. The system has 4 GB memory. I thought that a malloc would not be able to grab that much memory, even with swapping as it has to be in memory. Could a malloc cause this growth in process size or need I look elsewhere? > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Look with ps ax or ps aux to understand, how much memory a program takes. Or with top it is possible to see memory usage. Greetings