From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 6 22:17:37 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 4064B10656A8 for ; Wed, 6 Jan 2010 22:17:37 +0000 (UTC) (envelope-from shrivatsan@gmail.com) Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com [209.85.219.226]) by mx1.freebsd.org (Postfix) with ESMTP id CF94C8FC0A for ; Wed, 6 Jan 2010 22:17:36 +0000 (UTC) Received: by ewy26 with SMTP id 26so15983245ewy.3 for ; Wed, 06 Jan 2010 14:17:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=lfpor4LBoeUnFOEGrpCK4TtVkuQWI/3Fi41ksD/ZpoY=; b=kks6L0ywavqnQvgAsiy7u5VDnYgK51Iol12gzvHOnVzqw0hUimMr922FJVzluCpqRd kgay9xZ2R782N7TOoZMIKlEwgNC0i47FOAAw6pxekljYl49QcuE+6F7YgS9+hnm7R7Kl E8X9m5IAEDrHxkm3VYcw0nXXDuAzUqQAM684o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=qKdO6+DsOMWkcrnGkLZ1DUKrMKzqsRxGU6V/RaiiJY9LD8mLGkF0wNdNqM529sy3n+ 3VOmU955yJPAp+nlVAXYZOM0mwK7wBbC2zX92FVbJxoRkhNb4dvjqwKVK3K8+99qBYj3 mPmtCnPS+A++hgHdw9P+KAIWbyAsoElJzDLj8= MIME-Version: 1.0 Received: by 10.216.88.7 with SMTP id z7mr3010216wee.19.1262814584168; Wed, 06 Jan 2010 13:49:44 -0800 (PST) Date: Wed, 6 Jan 2010 13:49:44 -0800 Message-ID: <5a13b8941001061349m701d17fbl489ec8cf883e8c3c@mail.gmail.com> From: shrivatsan To: freebsd-hackers@freebsd.org X-Mailman-Approved-At: Wed, 06 Jan 2010 22:23:34 +0000 Content-Type: text/plain; charset=ISO-8859-1 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:17:37 -0000 Hi, 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 free memory indicated by kmem_map_free goes down, and this is proportional to the size of the data written. However, even after removing all the data, kmem_map_free doesn't seem to go up. Its only after detaching the memory disk does the free memory go up. May I know the reason for this behavior? Thanks, -shrivatsan