Unix Technical Forum

Re: "get snapshot for locks" memory structure

This is a discussion on Re: "get snapshot for locks" memory structure within the DB2 forums, part of the Database Server Software category; --> On Wed, 23 Jul 2003 09:09:37 -0700, Bruce Pullen wrote: > DB2 v7.1.0.68 n AIX 4.3.3.0 > > I'd ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 11:04 AM
Philip Nelson
 
Posts: n/a
Default Re: "get snapshot for locks" memory structure

On Wed, 23 Jul 2003 09:09:37 -0700, Bruce Pullen wrote:

> DB2 v7.1.0.68 n AIX 4.3.3.0
>
> I'd like to know
> 1) What memory structure DB2 requires for it's "get snapshot" commands
> (is it UTIL_HEAP_SZ?)


No, UTIL_HEAP_SZ is for things like backups, reorgs and other utilities.
The area used to store monitoring information is the DBM CFG parameter
MON_HEAP_SZ.

> 2) Whether, when a lock escalates (i.e. when an application exceeds
> the locklist divided by maxlocks value), any db configuration
> parameter limits the amount of memory it swallows up. Or does the
> application grab all the machine memory that's available?


Not sure what your question is here. When a lock is escalated (e.g. from
page to table) the purpose is to REDUCE memory usage. The many page locks
in memory would be replaced by one table lock, thus freeing up a lot of the memory
used in the locklist.

> 3) Whether applications in Lock-Wait acquire any (lock) memory.
>


Since they've not been able to acquire a lock yet I'd guess not : but I'd
guess DB2 stores a list of things waiting on a resource in some sort of
list structure.

HINT : the default value for LOCKTIMEOUT (-1) is bad in almost all cases.
Suggest you set this to something else (10 seconds might be a good
starting place).

HTH

Phil Nelson
ScotDB Limited
(teamdba@scotdb.com)

> Thanks!
> Bruce


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:14 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com