Re: [RFC 8/8] Reduce inode memory usage for systems with a high MAX_NUMNODES

2007-01-16 Thread Christoph Lameter
On Tue, 16 Jan 2007, Paul Menage wrote: > I was thinking runtime, unless MAX_NUMNODES is less than 64 in which > case you can make the decision at compile time. > > > > > If done at compile time then we will end up with a pointer to an unsigned > > long for a system with <= 64 nodes. If we alloc

Re: [RFC 8/8] Reduce inode memory usage for systems with a high MAX_NUMNODES

2007-01-16 Thread Paul Menage
On 1/16/07, Christoph Lameter <[EMAIL PROTECTED]> wrote: On Tue, 16 Jan 2007, Paul Menage wrote: > On 1/15/07, Christoph Lameter <[EMAIL PROTECTED]> wrote: > > > > This solution may be a bit hokey. I tried other approaches but this > > one seemed to be the simplest with the least complications.

Re: [RFC 8/8] Reduce inode memory usage for systems with a high MAX_NUMNODES

2007-01-16 Thread Christoph Lameter
On Tue, 16 Jan 2007, Paul Menage wrote: > On 1/15/07, Christoph Lameter <[EMAIL PROTECTED]> wrote: > > > > This solution may be a bit hokey. I tried other approaches but this > > one seemed to be the simplest with the least complications. Maybe someone > > else can come up with a better solution?

Re: [RFC 8/8] Reduce inode memory usage for systems with a high MAX_NUMNODES

2007-01-16 Thread Paul Menage
On 1/15/07, Christoph Lameter <[EMAIL PROTECTED]> wrote: This solution may be a bit hokey. I tried other approaches but this one seemed to be the simplest with the least complications. Maybe someone else can come up with a better solution? How about a 64-bit field in struct inode that's used a

[RFC 8/8] Reduce inode memory usage for systems with a high MAX_NUMNODES

2007-01-15 Thread Christoph Lameter
Dynamically reduce the size of the nodemask_t in struct inode The nodemask_t in struct inode can potentially waste a lot of memory if MAX_NUMNODES is high. For IA64 MAX_NUMNODES is 1024 by default which results in 128 bytes to be used for the nodemask. This means that the memory use for inodes may