On Wed, 2005-01-12 at 12:00 -0600, Steven Pratt wrote:
> Sonny Rao wrote:
> >So, to summarize this logic, if you haven't set anything and you have
> >more than 1GB of ram total, the number of TxLocks is maxed out.  If
> >you haven't set anything and you have 1GB of RAM or less, then you
> >get something like a quarter of the number of kilobytes of ram worth
> >of txlocks?   If you have exactly 1GB of RAM, then won't that number
> >be too big?  ( 1048576 / 4 == 262144 )
> >
> No, because the math is on pages not KB.  So 262144 (pages) / 4 = 65536 
> locks, or max.

Right.  I'm not sure if these are ideal numbers, but they seem
reasonable.  It comes out to 1 tlock for every 4 pages of physical
memory.

> >
> >Both the number of txlocks and txblocks are limited to a 16bit number
> >correct? 
> >  
> >
> Yes, I think.

Yes.  They are represented by a u16 field.  I once tried to widen this
to 32 bits, but I messed up both structures because they overlay a lot
of stuff, so I changed them back.

-- 
David Kleikamp
IBM Linux Technology Center

_______________________________________________
Jfs-discussion mailing list
[email protected]
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/jfs-discussion

Reply via email to