Re: Question regarding memory disks

2010-01-08 Thread Julian Elischer
Ulrich Spörlein wrote: On Wed, 06.01.2010 at 16:27:09 -0800, Julian Elischer wrote: Pieter de Goeje wrote: Because when you "erase" something, all it does is unlink (delete the reference to) the data. So there is currently no way the memory disk can free the memory associated with the data. Th

Re: Question regarding memory disks

2010-01-08 Thread Ulrich Spörlein
On Wed, 06.01.2010 at 16:27:09 -0800, Julian Elischer wrote: > Pieter de Goeje wrote: > > Because when you "erase" something, all it does is unlink (delete the > > reference to) the data. So there is currently no way the memory disk can > > free > > the memory associated with the data. That is a

Re: Question regarding memory disks

2010-01-07 Thread Shrivats
Thanks a lot for the response.  --- On Wed, 1/6/10, Julian Elischer wrote: From: Julian Elischer Subject: Re: Question regarding memory disks To: "Pieter de Goeje" Cc: freebsd-hackers@freebsd.org, "shrivatsan" Date: Wednesday, January 6, 2010, 7:27 PM Pieter de Goeje w

Re: Question regarding memory disks

2010-01-06 Thread Julian Elischer
Pieter de Goeje wrote: On Wednesday 06 January 2010 22:49:44 shrivatsan wrote: 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 pr

Re: Question regarding memory disks

2010-01-06 Thread Pieter de Goeje
On Wednesday 06 January 2010 22:49:44 shrivatsan wrote: > 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 t

Question regarding memory disks

2010-01-06 Thread Shrivats
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 free memory indicated by kmem_map_free goes down, and this is proportional to the size of the data written. However, even after removing

Question regarding memory disks

2010-01-06 Thread shrivatsan
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 d