本帖最后由 hongyehongye 于 2013-9-22 13:43 编辑 购买地址: http://product.dangdang.com/23339169.html#catalog 编辑推荐 本书作者在DB2China数据库论坛担任热点讨论版块版主,主持多次热点讨论以及专家现场诊断,擅长DB2数据库及相关产品的性能调优及故障分析,对DB2技能及实践经验有多年积累,并且近年来多位业界专家一直在积极推动DB2领域的技术交流,真正理解DB2技术人员真正的需求与痛楚,是DB2系统知识及技巧精髓的热心分享者及贡献者。 内容推荐 本书以优化为主题,根据数据库内部原理将DB2数据库对SQL语句及其他操作的内部机制进行详细剖析,并将RDS、DMS、IXM、BPS等DB2内部组件不为人知的一面展现给大家,以期做到对数据库的调优过程知其然并知其所以然。同时本书结合响应时间与资源瓶颈两种性能问题的现象,对数据库调优的整体思路进行详细讲解,对原来老式的调优思路进行整理和改动,结合了DB2V10.1版本的一些新的监控工具及特性,以一种全新的方式阐述DB2数据库性能调优的基本思路及实践方法。 作者简介 洪烨,毕业于湖南大学,曾在IBM担任数据库现场技术支持,为北京移动、北京联通、中国银联、中国银行、中信银行、联想集团、国家气象局、中华联合保险、唐山商业银行等多家企业进行DB2故障诊断、技术支持以及技术培训工作,拥有DB2开发、高级管理以及AIX管理等多项国际认证。 目录 第1篇 性能定义及整体架构 购买地址: http://product.dangdang.com/23339169.html#catalog 试读章节: 04.pdf (1.71 MB) |
08.pdf (2.22 MB)
你好,老洪,说来惭愧,书买了很久了,但一直没有仔细拜读,只是功利主义的找个别章节来读了,最近得闲,仔细研读。
然而,在第一章1.3.1中的例子好像不对,union的结果是左右结果集的去重并集,(123)union(245) =(12345),而你改过之后的语句取值不对。
思路是没错,例子怕是举错了吧。
P32,书中指出“在64位系统中,必须将SHMMAX(共享内存段的最大大小)设置为最小值1GB(1073741824字节)”。根据信息中心的修改内核参数LINUX的介绍,SHMMAX应该设置成<RAM大小,以字节计>。
在developworks中看到如下的说明“DB2 will try to acquire the entire database memory area using a single segment if possible. If that fails (i.e. due to shmmax), then we'll retry using multiple 1GB segments, which is why you did not see any benefit to increasing shmmax to 4GB (it's still too small). So, if you set shmmax to 9GB or larger, you should see only a single segment created. In DB2 9.5, we recommend setting shmmax to the amount of RAM on the machine to avoid the multi-segment issue.
I can't say what the performance benefits of fewer segments may be - it will likely be dependent on your workload. If you have a highly variable workload where connections (and so DB2 agents too) are constantly coming and going, it may have more of an effect, since when the DB2 agent is associated to the database, it will need to make 9 system calls to attach each of those segments, rather than a single system call (similarly when the agent needs to disassociate from the database). Even if you can't see any tangible performance benefits though, it shouldn't hurt to increase shmmax.”
https://www.ibm.com/developerworks/community/forums/html/threadTopic?id=77777777-0000-0000-0000-000014068277
所以,我有了疑问,单段和多段哪种性能更好? 我们到底应该怎么来设置SHMMAX?
收起