![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Folks, I wonder what the real-world results for turning STMM on, along with many of the AUTOMATIC memory config parameters that's been introduced since V9 ? We are turning STMM on in production. There's never enough traffic or volume of activities in development to get good estimates and find gotchas. Your experience with this in production settings and recommendations will get us far. Thank you in advance. RL |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Thanks for your input. How about the AUTOMATIC database memory - the close cousin to STMM, how do they fair in real production ? RL |
#5
| |||
| |||
|
|
"Richard" <rsl... (AT) gmail (DOT) com> wrote in message news:065314d9-0315-48bc-80a8-0f130f792ee5 (AT) 37g2000vbj (DOT) googlegroups.com... Thanks for your input. How about the AUTOMATIC database memory - the close cousin to STMM, how do they fair in real production ? RL Automatic settings are generally recommended, and I have seen no problems with it. |
#6
| |||
| |||
|
|
"Richard" <rsl101 (AT) gmail (DOT) com> wrote in message news:065314d9-0315-48bc-80a8-0f130f792ee5 (AT) 37g2000vbj (DOT) googlegroups.com... Thanks for your input. How about the AUTOMATIC database memory - the close cousin to STMM, how do they fair in real production ? RL Automatic settings are generally recommended, and I have seen no problems with it. |
#7
| |||
| |||
|
|
In general, I'd say that STMM is recommended both in test and in production. We have thousands of customers happily running STMM in production and have hit only a hand-full of issues. If you don't believe me, here are some of our customer quotes around STMM: "The self tuning memory manager (STMM) technology we now consider a "must have". We don't let one database go live without this feature enabled. STMM saves us 1 month of manual adjustments to the memory model and the fact that it works across instances really helps us consolidate databases and get the most out of our servers." - Canadian Department of National Defence "STMM in DB2 is rock solid, no matter how many transactions our customers throw at DB2 it just auto configures and hums along." - TMW Systems "We are very impressed with the performance improvements achieved with the DB2 Self-Tuning Memory Manager (STMM). Reports that took two to three minutes to extract before are now extracted in less than 10 seconds!" - Automatos Mark, it might help if you outline specific issues that you've hit with STMM. The vagueness of your response leaves more questions than answers. For instance, why do you say that STMM in DB2 9.5 can "crash your system"? Thanks, Adam |
#8
| |||
| |||
|
|
I have many customers using STMM in France in DB2 9.5 (from FP3 to FP5) and we have not problem with it. We have only deactivated because of 1 application the tuning of LOCKLIST, that's all. Regards, JM |
#9
| |||||||||||
| |||||||||||
|
|
1. I cannot disclose the specific extent of the problems I have seen in our applications due to confidentiality issues (some of which involves IBM). |
|
2. If someone went from 2-3 minutes to 10 seconds on a query (I assume this is a data warehouse) then they must have used the DB2 defaults previously, including the pitifully small default bufferpools size of 1000 pages, or pitifully small sort heaps. Just because the DB2 database defaults are ridiculously small (most of them in 9.5 have not been changes since OS/2 Database Manager when the largest PC's had 16 MB of main memory), does not mean STMM works well. Any half-competent DBA could change the defaults to run quite well without STMM. Unfortunately, not all DBA's are competent, or more often than not many managers don't think they even need DBA's. |
|
3. I will admit that the problem may be worse with Linux, where DB2 STMM gives up memory it doesn't need at the moment, but can't get it back when it asks for it back a few seconds later. We experienced this big time with locklist and with sort heaps (with disastrous results). However, I have also heard of others complain about AIX also. I don't know about DB2 on Windows. |
|
4. There have been known problems with multiple instances on the same server with STMM, and these problems are irrefutable (although may have been fixed with 9.5.5 or 9.7.x). Most likely STMM works better with one instance and one database per server. That is not the norm in most enterprises. |
|
5. The whole idea that STMM can manage bufferpools for you completely takes away the advantage of having multiple bufferpools, since DB2 treats them all the same. In other words if you have two bufferpools, how does STMM know that you always want a 100% hit ratio on one of them, but can live with less than 100% on the other? |
|
6. The DPF Balanced Warehouse Configurations (DPF) do not use STMM and specifically advise against it in the Balanced Warehouse manuals. |
|
7. Current IBM DB2 Instructors have admitted that STMM does not work well in 9.5 and have recommended that you wait until 9.7. I don't want to mention their names for obvious reasons. |
|
8. Since I am a former IBM employee and former DB2 instructor when I worked for IBM, I have some idea what I am talking about. Yes, STMM may work better than the defaults, but that is not saying much. And STMM can definitely crash or hang your system. Just ask any IBM support person. I did admit that it works better in 9.7, but to be honest I fail to see the benefit, especially for bufferpools (as I mention above when one wants more than one bufferpool, each with different priorities). One theoretical advantage of STMM is that is saves memory by giving it up when not needed, so other parts of DB2 can use it. In practice, memory is cheap and plentiful, and aside from bufferpools, the amounts of memory we are talking about are not worth being stingy about. So if one just allocated liberal amounts of memory to locklist, sortheaps, and the few other heaps controlled by STMM, then one would almost always be better off (and also you won't have your logs filled up with notices of STMM adjustments ad nauseam). |
|
Adam, I would suggest that if want some education on this matter, that you read each and every APAR that has been fixed with each 9.5 fixpack. You can get the list at the fixpack download site. |
|
In summary, the DB2 default memory allocations were atrocious, and poorly documented as to how to rationally configure them. In response, we get a totally automated overkill that doesn't yet work as advertised. Like most thinks happening in Toronto these days, it is designed to sell DB2 to executives who don't know any better, not to really help out DBA's. |
|
Also, I would like to know why those DB2 certification tests have such nasty and complicated questions about STMM? |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |