Subject: Re: kern/31944 - Fix to reduce tmpfs memory usage
To: None <jmmv84@gmail.com>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: tech-kern
Date: 04/22/2006 16:02:25
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