From owner-freebsd-hackers@freebsd.org Tue Oct 30 01:20:26 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C027210F115A for ; Tue, 30 Oct 2018 01:20:26 +0000 (UTC) (envelope-from kib@freebsd.org) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A0C298F14A; Tue, 30 Oct 2018 01:20:25 +0000 (UTC) (envelope-from kib@freebsd.org) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id w9U1KC8E014828 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 30 Oct 2018 03:20:15 +0200 (EET) (envelope-from kib@freebsd.org) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua w9U1KC8E014828 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id w9U1KCgE014827; Tue, 30 Oct 2018 03:20:12 +0200 (EET) (envelope-from kib@freebsd.org) X-Authentication-Warning: tom.home: kostik set sender to kib@freebsd.org using -f Date: Tue, 30 Oct 2018 03:20:12 +0200 From: Konstantin Belousov To: Robert Cc: Mark Millard , FreeBSD , Mark Johnston , Rozhuk Ivan Subject: Re: Sudden grow of memory in "Laundry" state Message-ID: <20181030012012.GL5335@kib.kiev.ua> References: <104be96a-c16b-7e7c-7d0d-00338ab5a106@gmail.com> <20180928152550.GA3609@raichu> <20181024211237.302b72d9@gmail.com> <981C887D-78EB-46D2-AEE5-877E269AF066@yahoo.com> <42f6544f-830c-18c5-e1a8-0acc4c3f09cc@gmail.com> <20181027043819.GX5335@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tom.home X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2018 01:20:26 -0000 On Mon, Oct 29, 2018 at 03:45:25PM -0700, Robert wrote: > Hi Konstantin, thanks for your reply. > > As per your response, both active and inactive regions are actually > allocated to the user app, Not necessary. E.g. the pages which hold the data for some files are accounted there. > > means my app allocated (and haven't freed) more than available amount of > RAM... > > Does that mean there is basically a memory leak in the app code? It is too far reaching to state that there is a leak only seeing the the large number of pages becoming dirty. Leak means that memory is consumed and not recycled after becoming useless.