dbTalk Databases Forums  

Max Locks Forever

comp.databases.informix comp.databases.informix


Discuss Max Locks Forever in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bill Hamilton
 
Posts: n/a

Default Max Locks Forever - 08-17-2005 , 03:19 PM







How would one find out the "maximum number of locks in use" for a period.
lockreqs from onstat -p does me no good.

I have a system that is stressed for memory and I'm running 100000 locks.
They probably could do ok with less.

This is 9.40.TC2 on Windows
sending to informix-list

Reply With Quote
  #2  
Old   
Konigsberg, Jay
 
Posts: n/a

Default RE: Max Locks Forever - 08-17-2005 , 04:17 PM







Sum up the "locks" column of onstat -u.


-----Original Message-----
From: owner-informix-list (AT) iiug (DOT) org [mailtowner-informix-list (AT) iiug (DOT) org] On Behalf Of Bill Hamilton
Sent: Wednesday, August 17, 2005 1:19 PM
To: informix-list
Subject: Max Locks Forever

How would one find out the "maximum number of locks in use" for a period.
lockreqs from onstat -p does me no good.

I have a system that is stressed for memory and I'm running 100000 locks.
They probably could do ok with less.

This is 9.40.TC2 on Windows
sending to informix-list



sending to informix-list

Reply With Quote
  #3  
Old   
david@smooth1.co.uk
 
Posts: n/a

Default Re: Max Locks Forever - 08-17-2005 , 06:40 PM




each lock is 43.2 bytes so that will be 4.11 Mb

Are you really that stressed on memory?


Reply With Quote
  #4  
Old   
david@smooth1.co.uk
 
Posts: n/a

Default Re: Max Locks Forever - 08-18-2005 , 05:48 PM




Well, well I'm getting different results under IDS 10.00.TC3 under
windows.

with 2000 locks onstat -g seg gives:-

Segment Summary:
id key addr size ovhd class blkused blkfree
1381386241 1381386241 c000000 5308416 215512 R 1278 18
1381386242 1381386242 c510000 8388608 904 V 1651 397
1381386243 1381386243 cd10000 8388608 904 V 14 2034


resident segment where the locks are is
5308416 bytesK = 1296*4K blocks

1278*4K blks used = 5234688 bytes with 2000 locks

with 202000 locks onstat -g seg gives:-

Segment Summary:
id key addr size ovhd class blkused blkfree
1381386241 1381386241 c000000 23920640 216080 R 5823 17


resident segment where the locks are is
23920640 = 5840 4k blocks

5823*4k blks used = 23851008 bytes with 202000 locks

therefore 23851008 - 5234688 = 18616320 bytes for 200000 locks
= 93 bytes per lock.

Clearly this has gone up for version 10 and possible version 9.40 as
well.

Still 100,000 locks = 9300000 bytes = 8.86Mb


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.