![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Dear, Defining a high value for the lock_limit results in lots of memory alloction for the locking system. How can one determine how high this lock_limit parameter must be set ? |
#3
| |||
| |||
|
|
At 1:47 AM -0800 1/21/04, Franky Leeuwerck wrote: Defining a high value for the lock_limit results in lots of memory alloction for the locking system. |
|
How can one determine how high this lock_limit parameter must be set ? My usual advice is to run the installation for a while and do a lockstat -statistics. Look at the LKB and RSB highwater numbers. These are how many locks and resources your installation has used. Typically the numbers are much smaller than you expect. I multiply by a nice safety factor, like 5 or 10, and that's what I set lock_limit to. |
#4
| |||
| |||
|
|
Dear, Defining a high value for the lock_limit results in lots of memory alloction for the locking system. |
|
How can one determine how high this lock_limit parameter must be set ? |
|
Thanks in advance, Franky |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Hello Martin, Thanks for your quick reply. Currently we have this configuration : - 4 iidbms servers - each with active_limit : 100 - max locks per transaction : 4000 According to your calculation : (4*100)*4000*0,1 we come to a lock_limit of 160000 This comes closely to our current limit of 100000 locks ( about 107 MB in memory ). Your calculation makes me already confident that we have made a good guess about this figure. I am curious about your '10%'. I can easily understand why 10%, it makes sense, but maybe you have specific (mathematical) grounds for that figure. |
|
Regards, Franky -----Original Message----- From: Martin Bowes [mailto:bowes (AT) bucket (DOT) its.unimelb.edu.au] Sent: woensdag 21 januari 2004 23:09 To: Franky Leeuwerck Cc: ingres newsgroup Subject: Re: lock_limit Hi Franky, Dear, Defining a high value for the lock_limit results in lots of memory alloction for the locking system. Damn Right! I found that each 200000 on the lock_limit requires an extra 112M of virtual memory per server to manage. How can one determine how high this lock_limit parameter must be set ? My rule of thumb is: 10% Sum over all servers (active_limit) * number of locks per transaction. Eg. 3 servers with an active_limit of 150 and 2 servers with an active_limit of 50. Furthermore, we allow 2000 locks per transaction. Ergo we would set lock_limit to: lock_limit = 0.1 * ((3 * 150 + 2 * 50)) * 2000 = 110,000. The original default setting was 1053132. Marty PS. Don't use your thumb as a rule. The lines are all wonky and you might hit it with a hammer. Thanks in advance, Franky -- Random Farscape Quote #4: Jools - Play nice you monochromatic bitch! |
![]() |
| Thread Tools | |
| Display Modes | |
| |