From owner-freebsd-questions@FreeBSD.ORG Fri Jan 24 11:01:52 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0863327E for ; Fri, 24 Jan 2014 11:01:52 +0000 (UTC) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6BA5E10E5 for ; Fri, 24 Jan 2014 11:01:51 +0000 (UTC) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.14.7/8.14.7) with ESMTP id s0OB1knY091528 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 24 Jan 2014 12:01:46 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.14.7/8.14.7/Submit) with ESMTP id s0OB1kI7091525; Fri, 24 Jan 2014 12:01:46 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Fri, 24 Jan 2014 12:01:46 +0100 (CET) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: Matthias Apitz Subject: Re: restore(8) && used memory not freed-up In-Reply-To: <20140124103209.GA30885@sh4-5.1blu.de> Message-ID: References: <20140124103209.GA30885@sh4-5.1blu.de> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.fig.ol.no Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jan 2014 11:01:52 -0000 On Fri, 24 Jan 2014 11:32+0100, Matthias Apitz wrote: > Hello, > > I was restoring some files which I removed while updating from KDE3 to > KDE4 and encountered the following interesting problem: > > # mount -o ro /dev/da1s1a /mnt > # cd /tmp > # restore -x -f /mnt/Tiny/dumpsTiny-20131025/usrLocal.dmp ./guru/.kde/share/apps/knode > > after the restore was finished(!) the memory in top was shown as: > > Mem: 535M Active, 1136M Inact, 270M Wired, 28M Cache, 90M Buf, 14M Free > > only the unmount of the device freed-up the memory: > > # umount /mnt > > Mem: 535M Active, 46M Inact, 192M Wired, 8104K Cache, 90M Buf, 1203M Free > > Why is the memory reserved by the system (10-CURRENT, i386)? I assume you're referring to the amount of inactive pages. These are freed pages ready for consumption by other processes, however their contents has not been overwritten and they can thus be reactivated without any disk activity. Once you unmounted the filesystem, the contents of these inactive pages became invalid and the pages were moved to the free list. -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+