Subject: Re: pkg/31944
To: None <,,>
From: Christos Zoulas <>
List: netbsd-bugs
Date: 03/07/2006 09:38:47
On Mar 7,  8:50am, ("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" <>
| To:
| 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