Subject: Re: kern/31944 - Fix to reduce tmpfs memory usage
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 04/22/2006 07:05:04
The following reply was made to PR kern/31944; it has been noted by GNATS.

From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
To: jmmv84@gmail.com
Cc: tech-kern@netbsd.org, gnats-bugs@netbsd.org
Subject: Re: kern/31944 - Fix to reduce tmpfs memory usage
Date: Sat, 22 Apr 2006 16:02:25 +0900

 hi,
 
 > Hello,
 > 
 > PR kern/31944 lists three issues that make tmpfs consume too much
 > memory.  The attached patch addresses the first of them.  It does the
 > following:
 > 
 > - Only keep the node identifier/generation number when deleting a node.
 >   The size of tmpfs_nid is much smaller than that of tmpfs_node.
 > - Avoid keeping nodes that were initialized but then discarded due to some
 >   error.  See the keepit parameter to the tmpfs_free_node function.
 > 
 > I have read the replies to that PR but the proposed solutions seem to be
 > "not right".  Also, one question that arises... can there be two live files in a
 > file system with the same node number?  If not, all those solutions do not
 > seem to address this...
 > 
 > tmpfs passes the regression test suite after the changes.
 > 
 > Please raise your comments.
 
 what's wrong with global generation number christos suggested?
 
 YAMAMOTO Takashi