From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 6 22:41:13 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AFE01106568B for ; Wed, 6 Jan 2010 22:41:13 +0000 (UTC) (envelope-from shrivatsan_v@yahoo.com) Received: from web112004.mail.gq1.yahoo.com (web112004.mail.gq1.yahoo.com [67.195.23.82]) by mx1.freebsd.org (Postfix) with SMTP id 7D9298FC21 for ; Wed, 6 Jan 2010 22:41:13 +0000 (UTC) Received: (qmail 72347 invoked by uid 60001); 6 Jan 2010 22:14:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1262816072; bh=hiadw5A/QBB+/zld2YAmDKDwczimCJtsAcpvgBLUT3Q=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=M2vJfbJbiVJA25/1hrtxXDCZAC67Qtjru+CdQnJQF2Wey4/cYY50WVMFU6ikKUOlupoDUcwnWQRr1hwxmaUyEWEdIqlYinGF3LS32CkLnrT+EUXK7a291DxLAM6v19qeIOI7GMAkMiRRJXXV9Kr7Rwo+UtR2orBMvGH1VSKuC98= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=ytQcQFMv+krdoVKyCMGYmLDzb0aBH9hhujLIXfMWw2g1Al0C6/ikCy/43tTNGJlPUurgxEmMyklJLnpBJf6F2jJL0aJvlqC/UwnmlfJhIM6qWcD6l0lCGhhhYyjoUPYetC/Yj+C78aD1m3oClcdrhBCbTrc8WLgk2DbH7YNrAxE=; Message-ID: <575178.72000.qm@web112004.mail.gq1.yahoo.com> X-YMail-OSG: hrYxjbcVM1nKvejbVXNKqijRUo3Fy8YtWMXQeNLLRJSQ7TntsoZ6LEiTuBXTYENl6cBLnvEM2.bE.aD1ogIJL2LXNvXtkw.dFlC_6VBbMiaivStLtfjkvjeGKWP4.G3ExHTZHyq9gwa0l9mVzdG7KHW10ZsFmFIOfNRTh.McqmICa5QuEhM4Zbip0KdXx88IZbD6EbbjJeBWx7SAX973NDf.1083EOSV7lbCkla37ZQLwIofYmW0OlrOocjDO7Bena8K9LfhHSm4U.pMLyrQUQ-- Received: from [66.129.225.151] by web112004.mail.gq1.yahoo.com via HTTP; Wed, 06 Jan 2010 14:14:32 PST X-Mailer: YahooMailClassic/9.0.20 YahooMailWebService/0.8.100.260964 Date: Wed, 6 Jan 2010 14:14:32 -0800 (PST) From: Shrivats To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Question regarding memory disks X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jan 2010 22:41:13 -0000 Hi hackers, I have configured a malloc-backed memory disk, and I mount the device on to= the file system. I write some data onto the file system. I see that the fr= ee memory indicated by=A0kmem_map_free goes down, and this is=A0proportiona= l=A0to the size of the data written. However, even after removing all the d= ata,=A0kmem_map_free doesn't seem to go up. Its only after detaching the me= mory disk does the free memory go up. May I know the reason for this behavi= or?=A0 Thanks,-shrivatsan=0A=0A=0A