473,654 Members | 3,078 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Throttle automatic runstats

If RUNSTATS is called directly, we can specify UTIL_IMPACT_PRI ORITY to
limit CPU consumption. For automatic runstats, there is no place to
specify this paramater. Will it use the DBM value of UTIL_IMPACT_LIM ?
Thanks in advance,
Norm
Jun 27 '08 #1
3 4372
Ian
Norm wrote:
If RUNSTATS is called directly, we can specify UTIL_IMPACT_PRI ORITY to
limit CPU consumption. For automatic runstats, there is no place to
specify this paramater. Will it use the DBM value of UTIL_IMPACT_LIM ?
Norm,

With automatic stats, DB2 executes RUNSTATS in throttled mode, so it
will respect UTIL_IMPACT_LIM .

UTIL_IMPACT_PRI ORTY is there to assign relative priority when there
are multiple throttled utilities executing at the same time. The
default priority is 50. (i.e. if you just use UTIL_IMPACT_PRI ORITY
with no value to just turn throttling on).

Are you frequently executing mutiple utilities at the same time,
such that you need to control their relative priorities?

Jun 27 '08 #2
On May 19, 6:15 pm, Ian <ianb...@mobile audio.comwrote:
Norm wrote:
If RUNSTATS is called directly, we can specify UTIL_IMPACT_PRI ORITY to
limit CPU consumption. For automatic runstats, there is no place to
specify this paramater. Will it use the DBM value of UTIL_IMPACT_LIM ?

Norm,

With automatic stats, DB2 executes RUNSTATS in throttled mode, so it
will respect UTIL_IMPACT_LIM .

UTIL_IMPACT_PRI ORTY is there to assign relative priority when there
are multiple throttled utilities executing at the same time. The
default priority is 50. (i.e. if you just use UTIL_IMPACT_PRI ORITY
with no value to just turn throttling on).

Are you frequently executing mutiple utilities at the same time,
such that you need to control their relative priorities?
My misunderstandin g, I thought the
PRIORITY = UNTHROTTLED
in LIST UTILITIES was the current limit of CPU% a particular utility
was allowed. I had been expecting to see the value of UTIL_IMPACT_LIM
(50). Perhaps a "Max allowed CPU%" field would be useful.

The CPU was at 100% and a DB2 LIST UTILITIES showed a single automatic
runstats executing. There was a single table where SAP had done
massive deletes during an SAP Client delete. There were only 12 rows
left, but scattered across the tablespace. Selects against the table
were taking hours of time as asynchronous delete cleanup was going
on. A reorg of the table has resolved the issue.

Thanks for responding.
Jun 27 '08 #3
Here's the way this should work.
UTIL_IMPACT_LIM IT is a dbm parm. and controlsthe total amount of
resources one or many concurrent utilities may consume.
UTIL_IMPACT_PRI ORITY is a utility command parm. It is enforced only if
two or more utilities are running in the same db.
For RUNSTATS, if the command is automated, it means DB2 will determine
when it will run the other parms., of which UTIL_IMPACT_PRI ORITY is a
part, can be fixed by first storing the command in the
SYASIBM.SYSTABL ES col. for that TABNAME.
This is done using the PROFILE option when running the RUNSTATS
command.
From then on, DB2 should use that priority value whenever that command
is kaunched concurrently with anotherutility.
Note that other utilitues should have their priority set also.
Regards, Pierre.
>
Norm wrote:
If RUNSTATS is called directly, we can specify UTIL_IMPACT_PRI ORITY to
limit CPU consumption. *For automatic runstats, there is no place to
specify this paramater. *Will it use the DBM value of UTIL_IMPACT_LIM ?
Norm,
With automatic stats, DB2 executes RUNSTATS in throttled mode, so it
will respect UTIL_IMPACT_LIM .
UTIL_IMPACT_PRI ORTY is there to assign relative priority when there
are multiple throttled utilities executing at the same time. *The
default priority is 50. *(i.e. if you just use UTIL_IMPACT_PRI ORITY
with no value to just turn throttling on).
Are you frequently executing mutiple utilities at the same time,
such that you need to control their relative priorities?

My misunderstandin g, I thought the
PRIORITY = UNTHROTTLED
in LIST UTILITIES was the current limit of CPU% a particular utility
was allowed. *I had been expecting to see the value of UTIL_IMPACT_LIM
(50). *Perhaps a "Max allowed CPU%" field would be useful.

The CPU was at 100% and a DB2 LIST UTILITIES showed a single automatic
runstats executing. *There was a single table where SAP had done
massive deletes during an SAP Client delete. *There were only 12 rows
left, but scattered across the tablespace. *Selects against the table
were taking hours of time as asynchronous delete cleanup was going
on. *A reorg of the table has resolved the issue.

Thanks for responding.- Hide quoted text -

- Show quoted text -
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
7391
by: Todd McNeill | last post by:
Hi- Something was just pointed out to me this morning. According to the V8 Command Reference, the RUNSTATS command no longer uses the SHRLEVEL CHANGE/REFERENCE clauses, and it looks to be replaced with ALLOW READ/WRITE ACCESS. Is SHRLEVEL still a valid clause and interchangable with ALLOW..., or has it been deprecated and is it, or will it eventually become, invalid? We currently are not seeing any errors using SHRLEVEL in our...
3
3787
by: Gilda | last post by:
Does anyone know what entity (utility?) checks if statistics collections are required, if the Automatic RUNSTATS is enabled, in version 8.2? How often are these checks done? Thanks.
6
5471
by: Gert van der Kooij | last post by:
Hi, It's no problem to define the automatic maintenance using the wizard but I want to use commands to automate automation. I captured the SQL statements when activating the maintenance but that didn't help. I couldn't find anything about it in the docs so if anybody could help with this it would be great. Kind regards, Gert
4
3028
by: db2group88 | last post by:
Hello, we are using db2 udb v8.2 on windows. if we need to run a reorg and runstats monthly, i think the best way to do them is via the tool "Configure Automatic Maintainance". I find out that for reorg, it has to be done offline. So I should schedule the offline timing for reorg and online timing for runstats. Will the tool automatically makes the database offline? What is the best time for the process happen? Should i put them to...
2
4073
by: ladino | last post by:
Hi: I'm testing DB2's new automated maintenance feature and, so far it seems to accomplish what it is instructed to do, but we (DBA's) have no control on when the evaluation cycle is going to happen nor when the utilities are set to execute. We only supply 'time ranges' for DB2 to operate upon. What I want is a means to 'force' a new evaluation period (i.e. I'm creating and loading new tables and I want to force a new evaluation cycle...
4
3313
by: kenfar | last post by:
I've got a large table on db2 8.2.1 that I rarely perform runstats on. It has about 600 million rows organized in a single MDC time dimension on a non-dpf warehouse. Anyhow, we recently ran runstats on it with a 20% sampling. After this was performed the highly selective queries using the time dimension slowed down drastically (8000% increase in duration). Earlier today I marked the table 'volatile' and queries went back to normal. ...
1
4036
by: Michel Esber | last post by:
Hello, Linux RedHat AS4 running DB2 V8 FP11. I have followed the docs at http://tinyurl.com/qckrn and enabled automatic statistics collection. It has been 2 days since I updated my DB cfg and I don´t see any activity regarding auto runstats. Also, the field STATS_TIME from syscat.tables shows that all my table statistics were last collected in March. What am I missing here ? Is
0
922
by: RG | last post by:
I have a stored procedure which is called by db2 "call ....." statement from ksh script. When running from AIX DB2 v. 9.1.3 environment, after a while the stored procedure starts to hang and snapshot says it is on fetch statement. The job of the stored procedure is to loop through the cursor executing ddl command found in one of the columns and updating the table which is cursored. It is using handler and hold options.
4
6009
by: db2udb | last post by:
Hi, I have just taken over as the DBA for a database that has not had any reorgs/runstats run against it for the last three years. As a first step, I have just run reorg/runstats against the system catalog tables & rebound packages. I next intend to reorg/runstats all the application tables that I have identified as needing this and due to the remote possibility of this causing an adverse affect on performance, it has been decided that I...
0
8372
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8814
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8475
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6160
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5621
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4149
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4293
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1915
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1592
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.