Subject: Re: kern/31944 - Fix to reduce tmpfs memory usage
To: None <gnats-bugs@netbsd.org, kern-bug-people@netbsd.org,>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-bugs
Date: 04/23/2006 19:57:27
On Apr 23,  6:20pm, david@l8s.co.uk (David Laight) wrote:
-- Subject: Re: kern/31944 - Fix to reduce tmpfs memory usage

|  The NetBSD kernel was recently changed to support 64bit inode numbers, so
|  maybe you just use increment a 64bit inode number on every create?
|  (with a random(ish) generation number).

That was my proposal (without the random generation number, but keeping
it sequental).
  
|  Alternatively you just need to keep the last used generation number for
|  each inode number - which should just cost 4 bytes/inode, and ought to
|  be pagable.

And you only need to start doing this once you exceed 2^63 files...

christos