dbTalk Databases Forums  

Correct method of sizing resident pool...

comp.databases.informix comp.databases.informix


Discuss Correct method of sizing resident pool... in the comp.databases.informix forum.



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

Default Correct method of sizing resident pool... - 07-11-2012 , 04:48 AM






Hi all,

I have a script that reads an onconfig file and outputs an estimated
memory footprint of the instance.

However, I am finding it hard to accurately predict the resident section
size.

According to
http://publib.boulder.ibm.com/infoce...f.doc/perf.htm


Quote:
To estimate the size of the data buffer, use the following formula:

buffer_value = (BUFFERS * pagesize) + (BUFFERS * 254)

pagesize
is the shared-memory page size, as onstat -b displays it on the last line in the buffer size field.

Calculate the values in the following formulas:

locks_value = LOCKS * 44
logbuff_value = LOGBUFF * 1024 * 3
physbuff_value = PHYSBUFF * 1024 * 2

To calculate the estimated size of the resident portion in kilobytes, use the following formula:

rsegsize = (buffer_value + locks_value + logbuff_value
+ physbuff_value + 51,200) / 1024


However, according to
http://publib.boulder.ibm.com/infoce..._prf_750. htm

Quote:
Estimate the size of the data buffer, using the following formula:

buffer_value = (BUFFERS * pagesize) + (BUFFERS * 254) + 250000
Okay, addiional 250000 as a fudge factor?

pagesize
is the shared-memory page size, as onstat -b displays it on the last line in the buffer size field.

If you have multiple buffer pools, add the buffer sizes for each buffer pool together.
Calculate the values in the following formulas:

locks_value = LOCKS * 44 44->128
44->128?? How I am supposed to figure out what value to use?
logbuff_value = LOGBUFF * 1024 * 3
physbuff_value = PHYSBUFF * 1024 * 2

Calculate the estimated size of the resident portion in kilobytes, using the following formula:

rsegsize = 1.02 * (buffer_value + locks_value + logbuff_value
Sneaky multiplication by 1.02 as another fudge factor?
+ physbuff_value + 51,200 51,200->1,200,000) / 1024

Again, I have no idea how to calculate where I should be in the range
51,200->1,200,000 (if that even *means* that is is a _range_)

I would be really glad of some help in getting this sorted!

Target platform AIX 6.1 Informix 11.50 FC3

Many (many!) thanks...

Martin

Reply With Quote
  #2  
Old   
Art Kagel
 
Posts: n/a

Default Re: Correct method of sizing resident pool... - 07-11-2012 , 07:56 AM






Locks take up 44 bytes on a 32bit release and 128 bytes each in a 64bit
release. I have no idea about the 51K versus 1.2M bit. Let me suggest
that since you are mostly interested in your own environment that you
simply bring up a minimal server instance with say 10,000 buffers and 1000
locks, record the sizing then play with those until you can work out your
own formula.

Art

Art S. Kagel
Advanced DataTools (www.advancedatatools.com)
Blog: http://informix-myview.blogspot.com/

Disclaimer: Please keep in mind that my own opinions are my own opinions
and do not reflect on my employer, Advanced DataTools, the IIUG, nor any
other organization with which I am associated either explicitly,
implicitly, or by inference. Neither do those opinions reflect those of
other individuals affiliated with any entity with which I am affiliated nor
those of the entities themselves.



On Wed, Jul 11, 2012 at 5:48 AM, bunnymjh <bunnymjh (AT) googlemail (DOT) com> wrote:

Quote:
Hi all,

I have a script that reads an onconfig file and outputs an estimated
memory footprint of the instance.

However, I am finding it hard to accurately predict the resident section
size.

According to

http://publib.boulder.ibm.com/infoce...f.doc/perf.htm


To estimate the size of the data buffer, use the following formula:

buffer_value = (BUFFERS * pagesize) + (BUFFERS * 254)

pagesize
is the shared-memory page size, as onstat -b displays it on the last
line in the buffer size field.

Calculate the values in the following formulas:

locks_value = LOCKS * 44
logbuff_value = LOGBUFF * 1024 * 3
physbuff_value = PHYSBUFF * 1024 * 2

To calculate the estimated size of the resident portion in kilobytes,
use the following formula:

rsegsize = (buffer_value + locks_value + logbuff_value
+ physbuff_value + 51,200) / 1024



However, according to

http://publib.boulder.ibm.com/infoce..._prf_750. htm

Estimate the size of the data buffer, using the following formula:

buffer_value = (BUFFERS * pagesize) + (BUFFERS * 254) + 250000
Okay, addiional 250000 as a fudge factor?

pagesize
is the shared-memory page size, as onstat -b displays it on the
last line in the buffer size field.

If you have multiple buffer pools, add the buffer sizes for each
buffer pool together.
Calculate the values in the following formulas:

locks_value = LOCKS * 44 44->128
44->128?? How I am supposed to figure out what value to use?
logbuff_value = LOGBUFF * 1024 * 3
physbuff_value = PHYSBUFF * 1024 * 2

Calculate the estimated size of the resident portion in kilobytes,
using the following formula:

rsegsize = 1.02 * (buffer_value + locks_value + logbuff_value
Sneaky multiplication by 1.02 as another fudge factor?
+ physbuff_value + 51,200 51,200->1,200,000) / 1024

Again, I have no idea how to calculate where I should be in the range
51,200->1,200,000 (if that even *means* that is is a _range_)

I would be really glad of some help in getting this sorted!

Target platform AIX 6.1 Informix 11.50 FC3

Many (many!) thanks...

Martin


_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list

Reply With Quote
  #3  
Old   
bunnymjh
 
Posts: n/a

Default Re: Correct method of sizing resident pool... - 07-12-2012 , 10:30 AM



On 11/07/2012 13:56, Art Kagel wrote:
Quote:
Locks take up 44 bytes on a 32bit release and 128 bytes each in a 64bit
release. I have no idea about the 51K versus 1.2M bit. Let me suggest
that since you are mostly interested in your own environment that you
simply bring up a minimal server instance with say 10,000 buffers and
1000 locks, record the sizing then play with those until you can work
out your own formula.

Art

Art S. Kagel
Advanced DataTools (www.advancedatatools.com
http://www.advancedatatools.com>)
Blog: http://informix-myview.blogspot.com/

Disclaimer: Please keep in mind that my own opinions are my own opinions
and do not reflect on my employer, Advanced DataTools, the IIUG, nor any
other organization with which I am associated either explicitly,
implicitly, or by inference. Neither do those opinions reflect those of
other individuals affiliated with any entity with which I am affiliated
nor those of the entities themselves.



On Wed, Jul 11, 2012 at 5:48 AM, bunnymjh <bunnymjh (AT) googlemail (DOT) com
mailto:bunnymjh (AT) googlemail (DOT) com>> wrote:

Hi all,

I have a script that reads an onconfig file and outputs an estimated
memory footprint of the instance.

However, I am finding it hard to accurately predict the resident section
size.

According to
http://publib.boulder.ibm.com/infoce...f.doc/perf.htm


To estimate the size of the data buffer, use the following formula:

buffer_value = (BUFFERS * pagesize) + (BUFFERS * 254)

pagesize
is the shared-memory page size, as onstat -b displays it on
the last line in the buffer size field.

Calculate the values in the following formulas:

locks_value = LOCKS * 44
logbuff_value = LOGBUFF * 1024 * 3
physbuff_value = PHYSBUFF * 1024 * 2

To calculate the estimated size of the resident portion in
kilobytes, use the following formula:

rsegsize = (buffer_value + locks_value + logbuff_value
+ physbuff_value + 51,200) / 1024



However, according to
http://publib.boulder.ibm.com/infoce..._prf_750. htm

Estimate the size of the data buffer, using the following formula:

buffer_value = (BUFFERS * pagesize) + (BUFFERS * 254) + 250000
Okay, addiional 250000 as a fudge factor?

pagesize
is the shared-memory page size, as onstat -b displays it
on the last line in the buffer size field.

If you have multiple buffer pools, add the buffer sizes for
each buffer pool together.
Calculate the values in the following formulas:

locks_value = LOCKS * 44 44->128
44->128?? How I am supposed to figure out what value to use?
logbuff_value = LOGBUFF * 1024 * 3
physbuff_value = PHYSBUFF * 1024 * 2

Calculate the estimated size of the resident portion in
kilobytes, using the following formula:

rsegsize = 1.02 * (buffer_value + locks_value + logbuff_value
Sneaky multiplication by 1.02 as another fudge factor?
+ physbuff_value + 51,200 51,200->1,200,000) / 1024

Again, I have no idea how to calculate where I should be in the range
51,200->1,200,000 (if that even *means* that is is a _range_)

I would be really glad of some help in getting this sorted!

Target platform AIX 6.1 Informix 11.50 FC3

Many (many!) thanks...

Martin


_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org <mailto:Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list



Okay, so by applying the logic that '->' indicates the 64bit value, I
now have a *fairly* accurate script (had to change the 1.02 fudge to
1.009, and I dropped the +250000 alltogether if anyone is interested...)

Thanks Art.

(You back in the states these days?)

Reply With Quote
  #4  
Old   
bunnymjh
 
Posts: n/a

Default Re: Correct method of sizing resident pool... - 07-12-2012 , 10:30 AM



On 11/07/2012 13:56, Art Kagel wrote:
Quote:
Locks take up 44 bytes on a 32bit release and 128 bytes each in a 64bit
release. I have no idea about the 51K versus 1.2M bit. Let me suggest
that since you are mostly interested in your own environment that you
simply bring up a minimal server instance with say 10,000 buffers and
1000 locks, record the sizing then play with those until you can work
out your own formula.

Art

Art S. Kagel
Advanced DataTools (www.advancedatatools.com
http://www.advancedatatools.com>)
Blog: http://informix-myview.blogspot.com/

Disclaimer: Please keep in mind that my own opinions are my own opinions
and do not reflect on my employer, Advanced DataTools, the IIUG, nor any
other organization with which I am associated either explicitly,
implicitly, or by inference. Neither do those opinions reflect those of
other individuals affiliated with any entity with which I am affiliated
nor those of the entities themselves.



On Wed, Jul 11, 2012 at 5:48 AM, bunnymjh <bunnymjh (AT) googlemail (DOT) com
mailto:bunnymjh (AT) googlemail (DOT) com>> wrote:

Hi all,

I have a script that reads an onconfig file and outputs an estimated
memory footprint of the instance.

However, I am finding it hard to accurately predict the resident section
size.

According to
http://publib.boulder.ibm.com/infoce...f.doc/perf.htm


To estimate the size of the data buffer, use the following formula:

buffer_value = (BUFFERS * pagesize) + (BUFFERS * 254)

pagesize
is the shared-memory page size, as onstat -b displays it on
the last line in the buffer size field.

Calculate the values in the following formulas:

locks_value = LOCKS * 44
logbuff_value = LOGBUFF * 1024 * 3
physbuff_value = PHYSBUFF * 1024 * 2

To calculate the estimated size of the resident portion in
kilobytes, use the following formula:

rsegsize = (buffer_value + locks_value + logbuff_value
+ physbuff_value + 51,200) / 1024



However, according to
http://publib.boulder.ibm.com/infoce..._prf_750. htm

Estimate the size of the data buffer, using the following formula:

buffer_value = (BUFFERS * pagesize) + (BUFFERS * 254) + 250000
Okay, addiional 250000 as a fudge factor?

pagesize
is the shared-memory page size, as onstat -b displays it
on the last line in the buffer size field.

If you have multiple buffer pools, add the buffer sizes for
each buffer pool together.
Calculate the values in the following formulas:

locks_value = LOCKS * 44 44->128
44->128?? How I am supposed to figure out what value to use?
logbuff_value = LOGBUFF * 1024 * 3
physbuff_value = PHYSBUFF * 1024 * 2

Calculate the estimated size of the resident portion in
kilobytes, using the following formula:

rsegsize = 1.02 * (buffer_value + locks_value + logbuff_value
Sneaky multiplication by 1.02 as another fudge factor?
+ physbuff_value + 51,200 51,200->1,200,000) / 1024

Again, I have no idea how to calculate where I should be in the range
51,200->1,200,000 (if that even *means* that is is a _range_)

I would be really glad of some help in getting this sorted!

Target platform AIX 6.1 Informix 11.50 FC3

Many (many!) thanks...

Martin


_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org <mailto:Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list


Okay, so by applying the logic that '->' indicates the 64bit value, I
now have a *fairly* accurate script (had to change the 1.02 fudge to
1.009, and I dropped the +250000 alltogether if anyone is interested...)

Thanks Art.

(You back in the states these days?)

Reply With Quote
  #5  
Old   
Art Kagel
 
Posts: n/a

Default Re: Correct method of sizing resident pool... - 07-12-2012 , 10:41 AM



Back in the USA for now, yes.

Art

Art S. Kagel
Advanced DataTools (www.advancedatatools.com)
Blog: http://informix-myview.blogspot.com/

Disclaimer: Please keep in mind that my own opinions are my own opinions
and do not reflect on my employer, Advanced DataTools, the IIUG, nor any
other organization with which I am associated either explicitly,
implicitly, or by inference. Neither do those opinions reflect those of
other individuals affiliated with any entity with which I am affiliated nor
those of the entities themselves.



On Thu, Jul 12, 2012 at 11:30 AM, bunnymjh <bunnymjh (AT) googlemail (DOT) com> wrote:

Quote:
On 11/07/2012 13:56, Art Kagel wrote:
Locks take up 44 bytes on a 32bit release and 128 bytes each in a 64bit
release. I have no idea about the 51K versus 1.2M bit. Let me suggest
that since you are mostly interested in your own environment that you
simply bring up a minimal server instance with say 10,000 buffers and
1000 locks, record the sizing then play with those until you can work
out your own formula.

Art

Art S. Kagel
Advanced DataTools (www.advancedatatools.com
http://www.advancedatatools.com>)
Blog: http://informix-myview.blogspot.com/

Disclaimer: Please keep in mind that my own opinions are my own opinions
and do not reflect on my employer, Advanced DataTools, the IIUG, nor any
other organization with which I am associated either explicitly,
implicitly, or by inference. Neither do those opinions reflect those of
other individuals affiliated with any entity with which I am affiliated
nor those of the entities themselves.



On Wed, Jul 11, 2012 at 5:48 AM, bunnymjh <bunnymjh (AT) googlemail (DOT) com
mailto:bunnymjh (AT) googlemail (DOT) com>> wrote:

Hi all,

I have a script that reads an onconfig file and outputs an estimated
memory footprint of the instance.

However, I am finding it hard to accurately predict the resident
section
size.

According to

http://publib.boulder.ibm.com/infoce...f.doc/perf.htm


To estimate the size of the data buffer, use the following
formula:

buffer_value = (BUFFERS * pagesize) + (BUFFERS * 254)

pagesize
is the shared-memory page size, as onstat -b displays it on
the last line in the buffer size field.

Calculate the values in the following formulas:

locks_value = LOCKS * 44
logbuff_value = LOGBUFF * 1024 * 3
physbuff_value = PHYSBUFF * 1024 * 2

To calculate the estimated size of the resident portion in
kilobytes, use the following formula:

rsegsize = (buffer_value + locks_value + logbuff_value
+ physbuff_value + 51,200) / 1024



However, according to

http://publib.boulder.ibm.com/infoce..._prf_750. htm

Estimate the size of the data buffer, using the following formula:

buffer_value = (BUFFERS * pagesize) + (BUFFERS * 254) + 250000
Okay, addiional 250000 as a fudge factor?

pagesize
is the shared-memory page size, as onstat -b displays it
on the last line in the buffer size field.

If you have multiple buffer pools, add the buffer sizes for
each buffer pool together.
Calculate the values in the following formulas:

locks_value = LOCKS * 44 44->128
44->128?? How I am supposed to figure out what value to use?
logbuff_value = LOGBUFF * 1024 * 3
physbuff_value = PHYSBUFF * 1024 * 2

Calculate the estimated size of the resident portion in
kilobytes, using the following formula:

rsegsize = 1.02 * (buffer_value + locks_value + logbuff_value
Sneaky multiplication by 1.02 as another fudge factor?
+ physbuff_value + 51,200 51,200->1,200,000) / 1024

Again, I have no idea how to calculate where I should be in the range
51,200->1,200,000 (if that even *means* that is is a _range_)

I would be really glad of some help in getting this sorted!

Target platform AIX 6.1 Informix 11.50 FC3

Many (many!) thanks...

Martin


_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org <mailto:Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list



Okay, so by applying the logic that '->' indicates the 64bit value, I
now have a *fairly* accurate script (had to change the 1.02 fudge to
1.009, and I dropped the +250000 alltogether if anyone is interested...)

Thanks Art.

(You back in the states these days?)



_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list

Reply With Quote
  #6  
Old   
Todd Roy
 
Posts: n/a

Default How do I find out the last time a table has been changed (notmetadata). - 07-16-2012 , 10:36 AM



Hi all,
I'm sorry if this is a faq somewhere but I have a developer who wants toknow the last update/insert/delete
date of an arbitrary (ie any) table in a database.

Thanks,
Todd

Reply With Quote
  #7  
Old   
Fernando Nunes
 
Posts: n/a

Default Re: How do I find out the last time a table has been changed (notmetadata). - 07-16-2012 , 10:38 AM



Not possible...
Regards
On Jul 16, 2012 4:36 PM, "Todd Roy" <tmroy (AT) hotmail (DOT) com> wrote:

Quote:
Hi all,
I'm sorry if this is a faq somewhere but I have a developer who wants
to know the last update/insert/delete
date of an arbitrary (ie any) table in a database.

Thanks,
Todd


_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list


Reply With Quote
  #8  
Old   
malc_p
 
Posts: n/a

Default Re: How do I find out the last time a table has been changed (notmetadata). - 07-17-2012 , 04:44 AM



You could parse the output from the onlog -n -t<tblspace number> for
HUPDATE, HINSERT, HDELETE entries...the Administrator's ref manual gives
info on the relevant field values


On 16/07/2012 16:36, Todd Roy wrote:
Quote:
Hi all,
I'm sorry if this is a faq somewhere but I have a developer who
wants to know the last update/insert/delete
date of an arbitrary (ie any) table in a database.

Thanks,
Todd



_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list

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 - 2013, Jelsoft Enterprises Ltd.