Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 2014 12:01:46 +0100 (CET)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        Matthias Apitz <guru@unixarea.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: restore(8) && used memory not freed-up
Message-ID:  <alpine.BSF.2.00.1401241158480.4811@mail.fig.ol.no>
In-Reply-To: <20140124103209.GA30885@sh4-5.1blu.de>
References:  <20140124103209.GA30885@sh4-5.1blu.de>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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.      |
+-------------------------------+------------------------------------+



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1401241158480.4811>