Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Aug 2009 21:37:38 GMT
From:      remko@FreeBSD.org
To:        piroman@myconfig.ru, remko@FreeBSD.org, freebsd-i386@FreeBSD.org
Subject:   Re: i386/137975: Not clearing of memory after file deletion from a ram-disk
Message-ID:  <200908192137.n7JLbcSb081133@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
Synopsis: Not clearing of memory after file deletion from a ram-disk

State-Changed-From-To: open->closed
State-Changed-By: remko
State-Changed-When: Wed Aug 19 21:37:38 UTC 2009
State-Changed-Why: 
I think this is not a problem but misunderstanding about how FreeBSD's
memory allocation works. As you see memory is being taken and 'released'
after use, though not entirely; why? FreeBSD also uses the memory as
caching mechanism. For example if you issue an ``ls`` and then do the
``ls`` again, you will see that the second time it will return much
quicker; this is temporarily cached in memory to help you do repeated
tasks quicker. If needed the memory is freed and used for 'more
important' operations. On my systems I normally have 'limited' free
memory available; I do not worry about this because I understand that
it's the caching that 'takes' the memory and releases it when needed.
Please ask around on the questions mailinglist if this was insufficient
explanation.

http://www.freebsd.org/cgi/query-pr.cgi?pr=137975



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908192137.n7JLbcSb081133>