DataBase - Recommeded SHMALL Linux kernel parm for DB2 Linux 9.5

Asked By Mark A
11-Mar-10 04:43 PM
Here is the recommendation for SHMALL in the Redbook entitled Up and Running
with DB2 on Linux (SG24-6899-01) that covers V9.5:

more physical memory than 8 GB for DB2, increase the value of this parameter
to approximately 90% of your computer’s physical memory."

Here is the recommendation from the current DB2 9.5 InfoCenter for SHMALL on
Linux:

IPC kernel parameter: kernel.shmall (SHMALL)
Enforced minimum setting: no value is enforced
Recommended minimum value: 2 * <size of RAM in bytes> (setting is in 4K
pages)
Example minimum value (system with 16GB of RAM: 8388608 (4K pages) [which is
32GB]

So the Redbook effectively states SHMALL should be 90% of real memory on a
system with more than 8 GB, and the DB2 LUW 9.5 InfoCenter says it should be
two times the amount of real memory for Linux. Anyone have any info on this
discrepancy, or any other ideas.
Linux
(1)
InfoCenter
(1)
IngeteronisabeisWhen
(1)
Mulligan
(1)
Redbook
(1)
Bestpractices
(1)
Kernel.shmall
(1)
Discrepancy
(1)
  Henrik Loeser replied to Mark A
12-Mar-10 04:28 AM
ing
e
ter
on
is
a
be
is

When you check the DB2 9.7 InfoCenter in the section "Configuring for
good performance", it is the 90% rule. Go with that.

http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.=
admin.perf.doc/doc/c0054689.html

Henrik
  The Boss replied to Henrik Loeser
12-Mar-10 04:32 PM
That's also in line with this "Best Practices" document (based on 9.5):
http://download.boulder.ibm.com/ibmdl/pub/software/dw/dm/db2/bestpractices/DB2BP_System_Performance_1008I.pdf

Unfortunately it contradicts with what is written on this IC9.7 page:
http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.qb.server.doc/doc/c0057140.html
(As far as I can tell, there is no 9.5 equivalent for this page)

To add to the confusion, Mark Mulligan offers yet another alternative on his
blog on Automatic Memory Management:
http://it.toolbox.com/blogs/db2-luw-tips/db2-luw-automatic-memory-management-configuration-tips-on-linux-servers-31337

Quoting Mark M.:
LINUX Configuration Tip: If you want to use the DB2 LUW Automatic Memory
Manager feature on a LINUX server then the maximum segment size (SHMMAX)
should be configured to the same size as the maximum total shared memory
(SHMALL) and the maximum total shared memory (SHMALL) should be configured
to the total physical memory on the server.

DB2 Configuration Tip: If the maximum segment size is less than the maximum
total shared memory for LINUX then you should avoid using AUTOMATIC on
configuration parameters that manage the amount of shared memory that DB2
will use or you will experience problems if DB2 exceeds these limits. The
same is true for the maximum total shared memory if it is set to something
smaller than the maximum physical memory on the server. The SHMMAX and
SHMALL LINUX configuration values limit the amount of shared memory DB2 can
use on a LINUX server. If DB2 is configured to exceed these limits or if the
DB2 automatic memory manager adjusts DB2 shared memory so that it exceeds
these limits then LINUX will stop the DB2 threads when these limits are
exceeded.

As the InfoCenter (at least for 9.7) contradicts itself, I would suggest to
the OP to use the "Feedback" option that is offered.


Cheers!

--
Jeroen
  The Boss replied to The Boss
12-Mar-10 04:48 PM
Actually, the content of above IC9.7 page is copied from the "Best
Practices" document (page 6-15).

--
Jeroen
  The Boss replied to The Boss
12-Mar-10 04:51 PM
I meant to say there is a 9.5 equivalent for this page, but not for the page
offered by Henrik.
Sorry for the extra confusion...

--
Jeroen
Create New Account
help
backup / restore from 32bit linux db2 9.1 to 64bit linux 9.7 DataBase Hi, I am trying to migrate a database from a Linux-IA32 V9.1 server onto a Linux-x86-64 server running 9.7 What I get is SQL2570N An attempt to retore on target OS "Linux-x86-64" from a backup created on source OS "Linux-IA32" failed due to the incompatibility of operating systems or an incorrect specifcatino of the as well :-(( Any magical commands to get the restore to work? TIA Alex DB2 Discussions Linux (1) Database (1) Alex (1) Specifcatino (1) Comprlib (1) Retore (1) Lib64 (1) Lelle (1 me with 9.5, have not tried 9.7 / Lennart keywords: backup / restore, from, 32bit, linux, db2, 9.1, to, 64bit, linux, 9.7 description: Hi, I am trying to migrate
About Linux Softwares DataBase Hi, I have been using Fedora Linux 8.0. I want to get audio, video players to install on my system. Please tell me where can I download the utility softwares for linux. U.Ravi Kumar India. Access Discussions Linux (1) Database (1) Fedora (1) Players (1) Audio (1) You're asking in the wrong forum is for the Microsoft database program "Microsoft Access". - - John W. Vinson [MVP] keywords: About, Linux, Softwares description: Hi, I have been using Fedora Linux 8.0. I want to get audio, video players to install on my system. Please
DB2 LUW 9.7 InfoCenter is not working DataBase DB2 LUW 9.7 InfoCenter is not working. Please notify your contacts within IBM. 9.5 seems to work fine. http: / / publib.boulder.ibm.com / infocenter / db2luw / v9r7 / index.jsp http: / / publib.boulder.ibm.com / infocenter / db2luw / v9r5 / index.jsp DB2 Discussions Cheers Helmut Helmut K. C. Tessarek (1) Helmut K tried again, and now performance is quite good. Cheers! - - Jeroen keywords: DB2, LUW, 9.7, InfoCenter, is, not, working description: DB2 LUW 9.7 InfoCenter is not working. Please notify your contacts within IBM. 9.5 seems to work fine. publib.boulder.ibm.com / infocenter / db2luw / v9r7 / inde