Subject: Re: pkg/31944
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-bugs
Date: 03/07/2006 14:40:02
The following reply was made to PR kern/31944; it has been noted by GNATS.

From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@netbsd.org, kern-bug-people@netbsd.org,
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,
	yamt@mwd.biglobe.ne.jp
Cc: 
Subject: Re: pkg/31944
Date: Tue, 7 Mar 2006 09:38:47 -0500

 On Mar 7,  8:50am, jmmv84@gmail.com ("Julio M. Merino Vidal") wrote:
 -- Subject: Re: pkg/31944
 
 | The following reply was made to PR kern/31944; it has been noted by GNATS.
 | 
 | From: "Julio M. Merino Vidal" <jmmv84@gmail.com>
 | To: gnats-bugs@netbsd.org
 | Cc: 
 | Subject: Re: pkg/31944
 | Date: Tue, 7 Mar 2006 09:47:21 +0100
 | 
 |  > 1. tmpfs doesn't free tmpfs_nodes until unmount.
 |  
 |  This is because, once a node has been created, tmpfs needs to keep its id
 |  and generation number so that if the same node is reused it carries the same
 |  generation number.
 |  
 |  Maybe the memory needs could be lowered by keeping a id->gen map?  This
 |  way, when a node was deleted, tmpfs could insert this pair in the map for
 |  later reuses, avoiding the need to keep the whole node in memory.  The
 |  problem could not disappear completely (and it looks like it cannot), but it
 |  would take less memory.
 |  
 |  Does this sound reasonable?
 
 just keep a global generation number counter and use it to allocate generation
 numbers.
 
 christos